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 --- .../linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S | 2 +- .../linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc') diff --git a/libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S b/libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S index 353c7d07f..bd774f759 100644 --- a/libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S +++ b/libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S @@ -66,7 +66,7 @@ ENTRY (__vfork) # endif .Lhidden_fork: - b HIDDEN_JUMPTARGET(__fork) + b HIDDEN_JUMPTARGET(fork) #endif diff --git a/libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S b/libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S index 7a3cb82c1..da145e41f 100644 --- a/libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S +++ b/libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S @@ -42,7 +42,7 @@ ENTRY (__vfork) ld 10,.LC0@toc(2) ld 10,0(10) cmpwi 10,0 - bne- HIDDEN_JUMPTARGET(__fork) + bne- HIDDEN_JUMPTARGET(fork) # else .weak pthread_create lis 10,pthread_create@highest @@ -80,7 +80,7 @@ ENTRY (__vfork) # ifndef SHARED .Lhidden_fork: - b HIDDEN_JUMPTARGET(__fork) + b HIDDEN_JUMPTARGET(fork) .Lsyscall_error: b JUMPTARGET(__syscall_error) # endif -- cgit v1.2.3