summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-02-22 09:37:12 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-02-22 09:37:12 +0000
commitb80f4cbc3345ad7211f75e75e08c9978cb3fc1e8 (patch)
tree0bbb3e999f9c239c8fee497c02ccaa81a55bae2c /libc/sysdeps/linux
parented496b2e5ffc2a361a476eff7ed251234940eba6 (diff)
Make use of bits/sched.h
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/ia64/vfork.S7
-rw-r--r--libc/sysdeps/linux/x86_64/clone.S5
2 files changed, 4 insertions, 8 deletions
diff --git a/libc/sysdeps/linux/ia64/vfork.S b/libc/sysdeps/linux/ia64/vfork.S
index ab29f6287..73ad4df65 100644
--- a/libc/sysdeps/linux/ia64/vfork.S
+++ b/libc/sysdeps/linux/ia64/vfork.S
@@ -20,11 +20,8 @@
#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) */
diff --git a/libc/sysdeps/linux/x86_64/clone.S b/libc/sysdeps/linux/x86_64/clone.S
index b93c2d9a4..2dc9a502c 100644
--- a/libc/sysdeps/linux/x86_64/clone.S
+++ b/libc/sysdeps/linux/x86_64/clone.S
@@ -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),