diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-08-11 03:25:34 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-08-11 03:25:34 +0000 |
commit | 3e618254fd7d842f63b19b89a7b9cee0ec76637b (patch) | |
tree | 6c7f987aac4fdce85255227059fe6b4e498da4c4 /libpthread/nptl/sysdeps/unix/sysv/linux/fork.c | |
parent | 6581d74f6e6a32a37aec1e895ec050ebc10a6f9b (diff) | |
download | uClibc-alpine-3e618254fd7d842f63b19b89a7b9cee0ec76637b.tar.bz2 uClibc-alpine-3e618254fd7d842f63b19b89a7b9cee0ec76637b.tar.xz |
It occurred to me that for the uClibc way of doing things, we should be using the syscall to fork if pthreads is not being used for NPTL, just like we do with the linuxthreads model. There were some name collisions that had to fixed, but things should be sane now. Also, due to complexities of the new thread model and compilation, the 'fork.c' from NPTL has to be compiled in with the C library, even though the code in it is not called until pthreads is linked in either dynamically by the loader or in a static binary. If that all makes sense to you, give yourself a cookie.
Diffstat (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux/fork.c')
-rw-r--r-- | libpthread/nptl/sysdeps/unix/sysv/linux/fork.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c b/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c index ea22b0df2..0bc2a2410 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c @@ -59,7 +59,11 @@ fresetlockfiles (void) pid_t +#ifdef __UCLIBC__ +__libc_fork_nptl (void) +#else __libc_fork (void) +#endif { pid_t pid; struct used_handler @@ -231,6 +235,8 @@ __libc_fork (void) return pid; } +#ifndef __UCLIBC__ weak_alias (__libc_fork, __fork) libc_hidden_def (__fork) weak_alias (__libc_fork, fork) +#endif |