svn commit: branches/uClibc_0_9_28/libc/sysdeps/linux/powerpc
vapier at uclibc.org
vapier at uclibc.org
Thu Jan 25 23:55:20 UTC 2007
Author: vapier
Date: 2007-01-25 15:55:20 -0800 (Thu, 25 Jan 2007)
New Revision: 17525
Log:
cut old file
Removed:
branches/uClibc_0_9_28/libc/sysdeps/linux/powerpc/vfork.c
Changeset:
Deleted: branches/uClibc_0_9_28/libc/sysdeps/linux/powerpc/vfork.c
===================================================================
--- branches/uClibc_0_9_28/libc/sysdeps/linux/powerpc/vfork.c 2007-01-25 23:54:19 UTC (rev 17524)
+++ branches/uClibc_0_9_28/libc/sysdeps/linux/powerpc/vfork.c 2007-01-25 23:55:20 UTC (rev 17525)
@@ -1,49 +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 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);
-}
-
More information about the uClibc-cvs
mailing list