summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads.old/ptfork.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-24 17:18:19 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-24 17:18:19 +0000
commit48143d8a8f92fd69d95564516fd1b7cf122511b1 (patch)
tree60b6a07f9836b7885e6ee2cc2bfead197b554e2b /libpthread/linuxthreads.old/ptfork.c
parentc3f6501060987d967a28495b009cd0da9da25252 (diff)
fork/vfork weak in libc, strong in libpthread
Diffstat (limited to 'libpthread/linuxthreads.old/ptfork.c')
-rw-r--r--libpthread/linuxthreads.old/ptfork.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libpthread/linuxthreads.old/ptfork.c b/libpthread/linuxthreads.old/ptfork.c
index 8c0b464d2..9d0d80cd3 100644
--- a/libpthread/linuxthreads.old/ptfork.c
+++ b/libpthread/linuxthreads.old/ptfork.c
@@ -78,9 +78,9 @@ static inline void pthread_call_handlers(struct handler_list * list)
for (/*nothing*/; list != NULL; list = list->next) (list->handler)();
}
-extern int __libc_fork(void);
+extern __typeof(fork) __libc_fork;
-pid_t __fork(void)
+pid_t attribute_hidden __fork(void)
{
pid_t pid;
struct handler_list * prepare, * child, * parent;
@@ -101,13 +101,13 @@ pid_t __fork(void)
}
return pid;
}
-weak_alias (__fork, fork)
+strong_alias(__fork,fork)
-pid_t __vfork(void)
+pid_t attribute_hidden __vfork(void)
{
return __fork();
}
-weak_alias (__vfork, vfork)
+strong_alias(__vfork,vfork)
#else