diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2006-02-13 08:00:42 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2006-02-13 08:00:42 +0000 |
commit | 40eb22873ce97a44004885462605daf0a69c56e9 (patch) | |
tree | e8f00f963ea93da5e9c28641d029060f5a6feb1b /libc/sysdeps | |
parent | 9127b654c766b0c86eecad4b99d77d411137a785 (diff) |
Remove unused file
Diffstat (limited to 'libc/sysdeps')
-rw-r--r-- | libc/sysdeps/linux/powerpc/vfork.c | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/libc/sysdeps/linux/powerpc/vfork.c b/libc/sysdeps/linux/powerpc/vfork.c deleted file mode 100644 index 1b8e3cd35..000000000 --- a/libc/sysdeps/linux/powerpc/vfork.c +++ /dev/null @@ -1,51 +0,0 @@ -#include <unistd.h> -#include <sys/types.h> -#include <errno.h> -#include <sys/syscall.h> - -#define __syscall_clobbers \ - "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12" -#define __syscall_return(type) \ - return (__sc_err & 0x10000000 ? errno = __sc_ret, __sc_ret = -1 : 0), \ - (type) __sc_ret - -pid_t attribute_hidden __vfork(void) -{ - unsigned long __sc_ret, __sc_err; - register unsigned long __sc_0 __asm__ ("r0"); - register unsigned long __sc_3 __asm__ ("r3"); - -#if 0 - /* Sigh. The vfork system call on powerpc - * seems to be completely broken. So just - * use fork instead */ - - __sc_0 = __NR_vfork; - __asm__ __volatile__ - ("sc \n\t" - "mfcr %1 " - : "=&r" (__sc_3), "=&r" (__sc_0) - : "0" (__sc_3), "1" (__sc_0) - : __syscall_clobbers); - __sc_ret = __sc_3; - __sc_err = __sc_0; - - if((__sc_err & 0x10000000) && (__sc_ret == ENOSYS)) -#endif - { - __sc_0 = __NR_fork; - __asm__ __volatile__ - ("sc \n\t" - "mfcr %1 " - : "=&r" (__sc_3), "=&r" (__sc_0) - : "0" (__sc_3), "1" (__sc_0) - : __syscall_clobbers); - __sc_ret = __sc_3; - __sc_err = __sc_0; - } - - __syscall_return (pid_t); -} -libc_hidden_proto(vfork) -weak_alias(__vfork,vfork) -libc_hidden_def(vfork) |