summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/init_sysent.c2
-rw-r--r--sys/kern/syscalls.c2
-rw-r--r--sys/sys/syscall.h2
-rw-r--r--sys/sys/syscallargs.h18
4 files changed, 19 insertions, 5 deletions
diff --git a/sys/kern/init_sysent.c b/sys/kern/init_sysent.c
index 3cc0aaddb19..c5353453a4f 100644
--- a/sys/kern/init_sysent.c
+++ b/sys/kern/init_sysent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init_sysent.c,v 1.53 2001/06/26 20:07:27 dugsong Exp $ */
+/* $OpenBSD: init_sysent.c,v 1.54 2001/08/26 04:11:12 deraadt Exp $ */
/*
* System call switch table.
diff --git a/sys/kern/syscalls.c b/sys/kern/syscalls.c
index 7e1500ef177..8f02afc9226 100644
--- a/sys/kern/syscalls.c
+++ b/sys/kern/syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: syscalls.c,v 1.53 2001/06/26 20:07:27 dugsong Exp $ */
+/* $OpenBSD: syscalls.c,v 1.54 2001/08/26 04:11:12 deraadt Exp $ */
/*
* System call names.
diff --git a/sys/sys/syscall.h b/sys/sys/syscall.h
index d73a609d343..06a0e8e1692 100644
--- a/sys/sys/syscall.h
+++ b/sys/sys/syscall.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: syscall.h,v 1.52 2001/06/26 20:07:26 dugsong Exp $ */
+/* $OpenBSD: syscall.h,v 1.53 2001/08/26 04:11:12 deraadt Exp $ */
/*
* System call numbers.
diff --git a/sys/sys/syscallargs.h b/sys/sys/syscallargs.h
index 3fa0a81f736..b401c8293e4 100644
--- a/sys/sys/syscallargs.h
+++ b/sys/sys/syscallargs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: syscallargs.h,v 1.53 2001/06/26 20:07:26 dugsong Exp $ */
+/* $OpenBSD: syscallargs.h,v 1.54 2001/08/26 04:11:12 deraadt Exp $ */
/*
* System call argument lists.
@@ -7,7 +7,21 @@
* created from; OpenBSD: syscalls.master,v 1.47 2001/06/26 19:56:52 dugsong Exp
*/
-#define syscallarg(x) union { x datum; register_t pad; }
+#ifdef syscallarg
+#undef syscallarg
+#endif
+
+#define syscallarg(x) \
+ union { \
+ register_t pad; \
+ struct { x datum; } le; \
+ struct { \
+ int8_t pad[ (sizeof (register_t) < sizeof (x)) \
+ ? 0 \
+ : sizeof (register_t) - sizeof (x)]; \
+ x datum; \
+ } be; \
+ }
struct sys_exit_args {
syscallarg(int) rval;