diff --git a/include/zephyr/posix/pthread.h b/include/zephyr/posix/pthread.h index d978e914a5..2f942f6553 100644 --- a/include/zephyr/posix/pthread.h +++ b/include/zephyr/posix/pthread.h @@ -473,6 +473,7 @@ int pthread_key_create(pthread_key_t *key, int pthread_key_delete(pthread_key_t key); int pthread_setspecific(pthread_key_t key, const void *value); void *pthread_getspecific(pthread_key_t key); +int pthread_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void)); /* Glibc / Oracle Extension Functions */ diff --git a/lib/posix/pthread.c b/lib/posix/pthread.c index f2bbc07ae9..c5c00a5349 100644 --- a/lib/posix/pthread.c +++ b/lib/posix/pthread.c @@ -954,6 +954,15 @@ int pthread_getname_np(pthread_t thread, char *name, size_t len) #endif } +int pthread_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void)) +{ + ARG_UNUSED(prepare); + ARG_UNUSED(parent); + ARG_UNUSED(child); + + return ENOSYS; +} + static int posix_thread_pool_init(void) { size_t i;