summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnotherTest <ali.mpfard@gmail.com>2021-02-13 14:38:54 +0330
committerAndreas Kling <kling@serenityos.org>2021-02-15 17:32:56 +0100
commit2e50c232f7802c668b8d49d92b990a2d19ae598b (patch)
tree3a9d2962395c37838d343cd708b874e55d67125c
parent26a8a84ded000ea42ecd0ae236cc5c452fd67df7 (diff)
downloadserenity-2e50c232f7802c668b8d49d92b990a2d19ae598b.zip
LibPthread: Stub out `pthread_atfork()`
-rw-r--r--Userland/Libraries/LibPthread/pthread.cpp5
-rw-r--r--Userland/Libraries/LibPthread/pthread.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/Userland/Libraries/LibPthread/pthread.cpp b/Userland/Libraries/LibPthread/pthread.cpp
index 1dc878f210..493657de69 100644
--- a/Userland/Libraries/LibPthread/pthread.cpp
+++ b/Userland/Libraries/LibPthread/pthread.cpp
@@ -740,4 +740,9 @@ int pthread_rwlockattr_setpshared(pthread_rwlockattr_t*, int)
ASSERT_NOT_REACHED();
}
+int pthread_atfork(void (*)(void), void (*)(void), void (*)(void))
+{
+ ASSERT_NOT_REACHED();
+}
+
} // extern "C"
diff --git a/Userland/Libraries/LibPthread/pthread.h b/Userland/Libraries/LibPthread/pthread.h
index 5994ae1009..e9fe3389d8 100644
--- a/Userland/Libraries/LibPthread/pthread.h
+++ b/Userland/Libraries/LibPthread/pthread.h
@@ -145,4 +145,6 @@ int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t* __restrict, int* _
int pthread_rwlockattr_init(pthread_rwlockattr_t*);
int pthread_rwlockattr_setpshared(pthread_rwlockattr_t*, int);
+int pthread_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void));
+
__END_DECLS