svn commit: trunk/uClibc/libc/sysdeps/linux: ia64 x86_64

psm at uclibc.org psm at uclibc.org
Wed Feb 22 09:37:13 UTC 2006


Author: psm
Date: 2006-02-22 01:37:12 -0800 (Wed, 22 Feb 2006)
New Revision: 14199

Log:
Make use of bits/sched.h

Modified:
   trunk/uClibc/libc/sysdeps/linux/ia64/vfork.S
   trunk/uClibc/libc/sysdeps/linux/x86_64/clone.S


Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/ia64/vfork.S
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/ia64/vfork.S	2006-02-22 09:36:13 UTC (rev 14198)
+++ trunk/uClibc/libc/sysdeps/linux/ia64/vfork.S	2006-02-22 09:37:12 UTC (rev 14199)
@@ -20,12 +20,9 @@
 #include "sysdep.h"
 #define _SIGNAL_H
 #include <bits/signum.h>
+#define _SCHED_H
+#include <bits/sched.h>
 
-/* The following are defined in linux/sched.h, which unfortunately	*/
-/* is not safe for inclusion in an assembly file.			*/
-#define CLONE_VM        0x00000100      /* set if VM shared between processes */
-#define CLONE_VFORK     0x00004000      /* set if the parent wants the child to wake it up on mm_release */
-
 /* pid_t vfork(void); */
 /* Implemented as __clone_syscall(CLONE_VFORK | CLONE_VM | SIGCHLD, 0)	*/
 

Modified: trunk/uClibc/libc/sysdeps/linux/x86_64/clone.S
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/x86_64/clone.S	2006-02-22 09:36:13 UTC (rev 14198)
+++ trunk/uClibc/libc/sysdeps/linux/x86_64/clone.S	2006-02-22 09:37:12 UTC (rev 14199)
@@ -23,10 +23,9 @@
 #define _ERRNO_H 1
 #include <bits/errno.h>
 #include <sys/syscall.h>
+#define _SCHED_H
+#include <bits/sched.h>
 
-#define CLONE_VM	0x00000100
-#define CLONE_THREAD	0x00010000
-
 /* The userland implementation is:
    int clone (int (*fn)(void *arg), void *child_stack, int flags, void *arg),
    the kernel entry is:




More information about the uClibc-cvs mailing list