OSDN Git Service

Make use of bits/sched.h
authorPeter S. Mazinger <ps.m@gmx.net>
Wed, 22 Feb 2006 09:37:12 +0000 (09:37 -0000)
committerPeter S. Mazinger <ps.m@gmx.net>
Wed, 22 Feb 2006 09:37:12 +0000 (09:37 -0000)
libc/sysdeps/linux/ia64/vfork.S
libc/sysdeps/linux/x86_64/clone.S

index ab29f62..73ad4df 100644 (file)
 #include "sysdep.h"
 #define _SIGNAL_H
 #include <bits/signum.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 */
+#define _SCHED_H
+#include <bits/sched.h>
 
 /* pid_t vfork(void); */
 /* Implemented as __clone_syscall(CLONE_VFORK | CLONE_VM | SIGCHLD, 0) */
index b93c2d9..2dc9a50 100644 (file)
@@ -23,9 +23,8 @@
 #define _ERRNO_H 1
 #include <bits/errno.h>
 #include <sys/syscall.h>
-
-#define CLONE_VM       0x00000100
-#define CLONE_THREAD   0x00010000
+#define _SCHED_H
+#include <bits/sched.h>
 
 /* The userland implementation is:
    int clone (int (*fn)(void *arg), void *child_stack, int flags, void *arg),