diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2021-02-13 14:38:54 +0330 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-15 17:32:56 +0100 |
commit | 2e50c232f7802c668b8d49d92b990a2d19ae598b (patch) | |
tree | 3a9d2962395c37838d343cd708b874e55d67125c | |
parent | 26a8a84ded000ea42ecd0ae236cc5c452fd67df7 (diff) | |
download | serenity-2e50c232f7802c668b8d49d92b990a2d19ae598b.zip |
LibPthread: Stub out `pthread_atfork()`
-rw-r--r-- | Userland/Libraries/LibPthread/pthread.cpp | 5 | ||||
-rw-r--r-- | Userland/Libraries/LibPthread/pthread.h | 2 |
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 |