From b91a7f431d894b7bafc5f8456f0c4f35e682caf6 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Mon, 14 Mar 2011 19:58:35 +0100 Subject: cleanup fork() Keep only fork (and it's hidden variant) and __libc_fork. Common __libc_fork prototype in unistd.h. Get rid of __fork, by changing HIDDEN_JUMPTARGET(__fork) to use fork I can't see the reason to have fork() in libpthread, but kept it for now making __fork static in these files. Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libpthread/linuxthreads.old/ptfork.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'libpthread/linuxthreads.old') diff --git a/libpthread/linuxthreads.old/ptfork.c b/libpthread/linuxthreads.old/ptfork.c index 47a567d23..98c63fe03 100644 --- a/libpthread/linuxthreads.old/ptfork.c +++ b/libpthread/linuxthreads.old/ptfork.c @@ -93,10 +93,7 @@ void __pthread_once_fork_prepare(void); void __pthread_once_fork_child(void); void __pthread_once_fork_parent(void); -extern __typeof(fork) __libc_fork; - -pid_t __fork(void) attribute_hidden; -pid_t __fork(void) +static pid_t __fork(void) { pid_t pid; struct handler_list * prepare, * child, * parent; -- cgit v1.2.3