[uClibc-cvs] svn commit: branches/uClibc-nptl/libc/sysdeps/linux/powerpc

sjhill at uclibc.org sjhill at uclibc.org
Thu Aug 18 23:43:37 UTC 2005


Author: sjhill
Date: 2005-08-18 17:43:36 -0600 (Thu, 18 Aug 2005)
New Revision: 11212

Log:
Sync with trunk.


Added:
   branches/uClibc-nptl/libc/sysdeps/linux/powerpc/vfork.S


Changeset:
Added: branches/uClibc-nptl/libc/sysdeps/linux/powerpc/vfork.S
===================================================================
--- branches/uClibc-nptl/libc/sysdeps/linux/powerpc/vfork.S	2005-08-18 23:42:56 UTC (rev 11211)
+++ branches/uClibc-nptl/libc/sysdeps/linux/powerpc/vfork.S	2005-08-18 23:43:36 UTC (rev 11212)
@@ -0,0 +1,23 @@
+#include <sys/syscall.h>
+
+#ifndef __NR_vfork
+
+/* No vfork so use fork instead */
+.weak vfork ; vfork = __libc_fork
+
+#else
+
+.text
+.global __vfork
+.type   __vfork, at function
+.type   __syscall_error, at function
+
+__vfork:
+	li	0, __NR_vfork
+	sc
+	bnslr+
+	b	__syscall_error
+.size __vfork,.-__vfork
+
+.weak vfork ; vfork = __vfork
+#endif




More information about the uClibc-cvs mailing list