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 --- include/unistd.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/unistd.h') diff --git a/include/unistd.h b/include/unistd.h index a3cf288b2..65b83bfb5 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -768,7 +768,10 @@ libc_hidden_proto(setresgid) Return -1 for errors, 0 to the new process, and the process ID of the new process to the old process. */ extern __pid_t fork (void) __THROW; +# ifdef _LIBC +extern __typeof(fork) __libc_fork; libc_hidden_proto(fork) +# endif #endif #if defined __USE_BSD || defined __USE_XOPEN_EXTENDED -- cgit v1.2.3