diff options
author | Romain Naour <romain.naour@gmail.com> | 2016-11-05 19:55:43 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-11-17 19:54:02 +0100 |
commit | 79c4017f3518cd30afb59a170717c1e754eedadf (patch) | |
tree | b79955ff3e2ee8c461897cedf2144571d6ea1cb2 /libpthread/linuxthreads/ptfork.c | |
parent | 2d2aa1bd7074222d9d54232b2d96eae1d2aab7ae (diff) |
libpthread: remove pthread_atfork for noMMU target
There is not possible to use use fork() on noMMU target, so exporting
pthread_atfork() for such target is useless.
A program using pthread_atfork() will likely fail at runtime due to the
error code returned by this function.
Signed-off-by: Romain Naour <romain.naour@gmail.com>
Diffstat (limited to 'libpthread/linuxthreads/ptfork.c')
-rw-r--r-- | libpthread/linuxthreads/ptfork.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/libpthread/linuxthreads/ptfork.c b/libpthread/linuxthreads/ptfork.c index 6f1e2d3c9..74d630830 100644 --- a/libpthread/linuxthreads/ptfork.c +++ b/libpthread/linuxthreads/ptfork.c @@ -150,18 +150,4 @@ static pid_t __fork(void) strong_alias(__fork,fork) strong_alias(__fork,vfork) -#else - -/* We can't support pthread_atfork without MMU, since we don't have - fork(), and we can't offer the correct semantics for vfork(). */ -int pthread_atfork(void (*prepare)(void), - void (*parent)(void), - void (*child)(void)) -{ - /* ENOMEM is probably pushing it a little bit. - Take it as `no *virtual* memory' :-) */ - errno = ENOMEM; - return -1; -} - #endif |