summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/ia64
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-08-24 00:05:09 +0000
committerMike Frysinger <vapier@gentoo.org>2006-08-24 00:05:09 +0000
commit7320e0ffac2dd65a911fd6bdc8f65c1467eede5e (patch)
tree2b32d286014cc9a195c92235fea5adc3846ed86d /libc/sysdeps/linux/ia64
parentb4a09d83d1568672b94fe91b678194409983b824 (diff)
sync with upstream via psm
Diffstat (limited to 'libc/sysdeps/linux/ia64')
-rw-r--r--libc/sysdeps/linux/ia64/vfork.S9
1 files changed, 6 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/ia64/vfork.S b/libc/sysdeps/linux/ia64/vfork.S
index c9d485b5d..d100443b7 100644
--- a/libc/sysdeps/linux/ia64/vfork.S
+++ b/libc/sysdeps/linux/ia64/vfork.S
@@ -20,8 +20,11 @@
#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) */
@@ -36,6 +39,6 @@ ENTRY(__vfork)
(p6) br.cond.spnt.few __syscall_error
ret
PSEUDO_END(__vfork)
+libc_hidden_weak (vfork)
weak_alias (__vfork, vfork)
-libc_hidden_weak (vfork)