summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/compat/bsdos/bsdos_syscall.h2
-rw-r--r--sys/compat/bsdos/bsdos_syscallargs.h18
-rw-r--r--sys/compat/bsdos/bsdos_syscalls.c2
-rw-r--r--sys/compat/bsdos/bsdos_sysent.c2
-rw-r--r--sys/compat/freebsd/freebsd_syscall.h2
-rw-r--r--sys/compat/freebsd/freebsd_syscallargs.h18
-rw-r--r--sys/compat/freebsd/freebsd_syscalls.c2
-rw-r--r--sys/compat/freebsd/freebsd_sysent.c2
-rw-r--r--sys/compat/hpux/hpux_syscall.h2
-rw-r--r--sys/compat/hpux/hpux_syscallargs.h18
-rw-r--r--sys/compat/hpux/hpux_syscalls.c2
-rw-r--r--sys/compat/hpux/hpux_sysent.c2
-rw-r--r--sys/compat/ibcs2/ibcs2_syscall.h2
-rw-r--r--sys/compat/ibcs2/ibcs2_syscallargs.h18
-rw-r--r--sys/compat/ibcs2/ibcs2_syscalls.c2
-rw-r--r--sys/compat/ibcs2/ibcs2_sysent.c2
-rw-r--r--sys/compat/linux/linux_syscall.h2
-rw-r--r--sys/compat/linux/linux_syscallargs.h18
-rw-r--r--sys/compat/linux/linux_syscalls.c2
-rw-r--r--sys/compat/linux/linux_sysent.c2
-rw-r--r--sys/compat/netbsd/netbsd_syscall.h4
-rw-r--r--sys/compat/netbsd/netbsd_syscallargs.h20
-rw-r--r--sys/compat/netbsd/netbsd_syscalls.c4
-rw-r--r--sys/compat/netbsd/netbsd_sysent.c4
-rw-r--r--sys/compat/osf1/osf1_syscall.h2
-rw-r--r--sys/compat/osf1/osf1_syscallargs.h18
-rw-r--r--sys/compat/osf1/osf1_syscalls.c2
-rw-r--r--sys/compat/osf1/osf1_sysent.c2
-rw-r--r--sys/compat/sunos/sunos_syscall.h2
-rw-r--r--sys/compat/sunos/sunos_syscallargs.h18
-rw-r--r--sys/compat/sunos/sunos_syscalls.c2
-rw-r--r--sys/compat/sunos/sunos_sysent.c2
-rw-r--r--sys/compat/svr4/svr4_syscall.h2
-rw-r--r--sys/compat/svr4/svr4_syscallargs.h18
-rw-r--r--sys/compat/svr4/svr4_syscalls.c2
-rw-r--r--sys/compat/svr4/svr4_sysent.c2
-rw-r--r--sys/compat/ultrix/ultrix_syscall.h2
-rw-r--r--sys/compat/ultrix/ultrix_syscallargs.h18
-rw-r--r--sys/compat/ultrix/ultrix_syscalls.c2
-rw-r--r--sys/compat/ultrix/ultrix_sysent.c2
40 files changed, 194 insertions, 54 deletions
diff --git a/sys/compat/bsdos/bsdos_syscall.h b/sys/compat/bsdos/bsdos_syscall.h
index 03162ab815b..dbdedfa4390 100644
--- a/sys/compat/bsdos/bsdos_syscall.h
+++ b/sys/compat/bsdos/bsdos_syscall.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bsdos_syscall.h,v 1.8 2001/05/16 17:17:05 millert Exp $ */
+/* $OpenBSD: bsdos_syscall.h,v 1.9 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call numbers.
diff --git a/sys/compat/bsdos/bsdos_syscallargs.h b/sys/compat/bsdos/bsdos_syscallargs.h
index c1da2d05b7e..9956651c44e 100644
--- a/sys/compat/bsdos/bsdos_syscallargs.h
+++ b/sys/compat/bsdos/bsdos_syscallargs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bsdos_syscallargs.h,v 1.8 2001/05/16 17:17:05 millert Exp $ */
+/* $OpenBSD: bsdos_syscallargs.h,v 1.9 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call argument lists.
@@ -7,7 +7,21 @@
* created from OpenBSD: syscalls.master,v 1.8 2001/05/16 17:14:37 millert 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 bsdos_sys_ioctl_args {
syscallarg(int) fd;
diff --git a/sys/compat/bsdos/bsdos_syscalls.c b/sys/compat/bsdos/bsdos_syscalls.c
index 0bdb0cd3dba..3e76e88719f 100644
--- a/sys/compat/bsdos/bsdos_syscalls.c
+++ b/sys/compat/bsdos/bsdos_syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bsdos_syscalls.c,v 1.8 2001/05/16 17:17:05 millert Exp $ */
+/* $OpenBSD: bsdos_syscalls.c,v 1.9 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call names.
diff --git a/sys/compat/bsdos/bsdos_sysent.c b/sys/compat/bsdos/bsdos_sysent.c
index 0210b8c8e17..213e2b420b2 100644
--- a/sys/compat/bsdos/bsdos_sysent.c
+++ b/sys/compat/bsdos/bsdos_sysent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bsdos_sysent.c,v 1.8 2001/05/16 17:17:06 millert Exp $ */
+/* $OpenBSD: bsdos_sysent.c,v 1.9 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call switch table.
diff --git a/sys/compat/freebsd/freebsd_syscall.h b/sys/compat/freebsd/freebsd_syscall.h
index 16fa87195a6..8760edf2d7c 100644
--- a/sys/compat/freebsd/freebsd_syscall.h
+++ b/sys/compat/freebsd/freebsd_syscall.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: freebsd_syscall.h,v 1.15 2001/02/02 19:46:37 tholo Exp $ */
+/* $OpenBSD: freebsd_syscall.h,v 1.16 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call numbers.
diff --git a/sys/compat/freebsd/freebsd_syscallargs.h b/sys/compat/freebsd/freebsd_syscallargs.h
index 1a3bf596100..5cb9693afa0 100644
--- a/sys/compat/freebsd/freebsd_syscallargs.h
+++ b/sys/compat/freebsd/freebsd_syscallargs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: freebsd_syscallargs.h,v 1.16 2001/02/02 19:46:38 tholo Exp $ */
+/* $OpenBSD: freebsd_syscallargs.h,v 1.17 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call argument lists.
@@ -7,7 +7,21 @@
* created from OpenBSD: syscalls.master,v 1.15 2001/02/02 19:45:09 tholo 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 freebsd_sys_open_args {
syscallarg(char *) path;
diff --git a/sys/compat/freebsd/freebsd_syscalls.c b/sys/compat/freebsd/freebsd_syscalls.c
index 4d76509c376..cf41723eb8c 100644
--- a/sys/compat/freebsd/freebsd_syscalls.c
+++ b/sys/compat/freebsd/freebsd_syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: freebsd_syscalls.c,v 1.15 2001/02/02 19:46:38 tholo Exp $ */
+/* $OpenBSD: freebsd_syscalls.c,v 1.16 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call names.
diff --git a/sys/compat/freebsd/freebsd_sysent.c b/sys/compat/freebsd/freebsd_sysent.c
index d2f4b867147..70506fde1c9 100644
--- a/sys/compat/freebsd/freebsd_sysent.c
+++ b/sys/compat/freebsd/freebsd_sysent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: freebsd_sysent.c,v 1.16 2001/02/02 19:46:38 tholo Exp $ */
+/* $OpenBSD: freebsd_sysent.c,v 1.17 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call switch table.
diff --git a/sys/compat/hpux/hpux_syscall.h b/sys/compat/hpux/hpux_syscall.h
index 3eeb46d576d..7cbcccd7344 100644
--- a/sys/compat/hpux/hpux_syscall.h
+++ b/sys/compat/hpux/hpux_syscall.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: hpux_syscall.h,v 1.6 1999/06/07 07:18:35 deraadt Exp $ */
+/* $OpenBSD: hpux_syscall.h,v 1.7 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call numbers.
diff --git a/sys/compat/hpux/hpux_syscallargs.h b/sys/compat/hpux/hpux_syscallargs.h
index 7dbaac980d1..0805845dc8e 100644
--- a/sys/compat/hpux/hpux_syscallargs.h
+++ b/sys/compat/hpux/hpux_syscallargs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: hpux_syscallargs.h,v 1.7 1999/06/07 07:18:35 deraadt Exp $ */
+/* $OpenBSD: hpux_syscallargs.h,v 1.8 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call argument lists.
@@ -7,7 +7,21 @@
* created from OpenBSD: syscalls.master,v 1.6 1999/06/07 07:17:46 deraadt 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 hpux_sys_read_args {
syscallarg(int) fd;
diff --git a/sys/compat/hpux/hpux_syscalls.c b/sys/compat/hpux/hpux_syscalls.c
index 83c0db1c9ff..90e8b96ad1c 100644
--- a/sys/compat/hpux/hpux_syscalls.c
+++ b/sys/compat/hpux/hpux_syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hpux_syscalls.c,v 1.6 1999/06/07 07:18:35 deraadt Exp $ */
+/* $OpenBSD: hpux_syscalls.c,v 1.7 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call names.
diff --git a/sys/compat/hpux/hpux_sysent.c b/sys/compat/hpux/hpux_sysent.c
index da057c2d005..7c30f535d26 100644
--- a/sys/compat/hpux/hpux_sysent.c
+++ b/sys/compat/hpux/hpux_sysent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hpux_sysent.c,v 1.7 1999/06/07 07:18:35 deraadt Exp $ */
+/* $OpenBSD: hpux_sysent.c,v 1.8 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call switch table.
diff --git a/sys/compat/ibcs2/ibcs2_syscall.h b/sys/compat/ibcs2/ibcs2_syscall.h
index 1b02530f929..bd36be112ed 100644
--- a/sys/compat/ibcs2/ibcs2_syscall.h
+++ b/sys/compat/ibcs2/ibcs2_syscall.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ibcs2_syscall.h,v 1.7 2001/05/16 05:05:10 millert Exp $ */
+/* $OpenBSD: ibcs2_syscall.h,v 1.8 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call numbers.
diff --git a/sys/compat/ibcs2/ibcs2_syscallargs.h b/sys/compat/ibcs2/ibcs2_syscallargs.h
index 4d10a3f3e3f..d5688b48205 100644
--- a/sys/compat/ibcs2/ibcs2_syscallargs.h
+++ b/sys/compat/ibcs2/ibcs2_syscallargs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ibcs2_syscallargs.h,v 1.8 2001/05/16 05:05:10 millert Exp $ */
+/* $OpenBSD: ibcs2_syscallargs.h,v 1.9 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call argument lists.
@@ -7,7 +7,21 @@
* created from OpenBSD: syscalls.master,v 1.7 1999/06/07 07:17:47 deraadt 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 ibcs2_sys_read_args {
syscallarg(int) fd;
diff --git a/sys/compat/ibcs2/ibcs2_syscalls.c b/sys/compat/ibcs2/ibcs2_syscalls.c
index 5f76cb6b170..08c77764f9e 100644
--- a/sys/compat/ibcs2/ibcs2_syscalls.c
+++ b/sys/compat/ibcs2/ibcs2_syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ibcs2_syscalls.c,v 1.7 2001/05/16 05:05:10 millert Exp $ */
+/* $OpenBSD: ibcs2_syscalls.c,v 1.8 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call names.
diff --git a/sys/compat/ibcs2/ibcs2_sysent.c b/sys/compat/ibcs2/ibcs2_sysent.c
index 527210c1917..00020c404d3 100644
--- a/sys/compat/ibcs2/ibcs2_sysent.c
+++ b/sys/compat/ibcs2/ibcs2_sysent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ibcs2_sysent.c,v 1.7 2001/05/16 05:05:10 millert Exp $ */
+/* $OpenBSD: ibcs2_sysent.c,v 1.8 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call switch table.
diff --git a/sys/compat/linux/linux_syscall.h b/sys/compat/linux/linux_syscall.h
index 26f84615a93..6fd1d22981d 100644
--- a/sys/compat/linux/linux_syscall.h
+++ b/sys/compat/linux/linux_syscall.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_syscall.h,v 1.30 2001/07/04 20:01:40 jasoni Exp $ */
+/* $OpenBSD: linux_syscall.h,v 1.31 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call numbers.
diff --git a/sys/compat/linux/linux_syscallargs.h b/sys/compat/linux/linux_syscallargs.h
index 706281f857f..229598ac4d8 100644
--- a/sys/compat/linux/linux_syscallargs.h
+++ b/sys/compat/linux/linux_syscallargs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_syscallargs.h,v 1.31 2001/07/04 20:01:40 jasoni Exp $ */
+/* $OpenBSD: linux_syscallargs.h,v 1.32 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call argument lists.
@@ -7,7 +7,21 @@
* created from OpenBSD: syscalls.master,v 1.31 2001/07/04 19:59:47 jasoni 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 linux_sys_open_args {
syscallarg(char *) path;
diff --git a/sys/compat/linux/linux_syscalls.c b/sys/compat/linux/linux_syscalls.c
index 154a07b562c..556f582c4fb 100644
--- a/sys/compat/linux/linux_syscalls.c
+++ b/sys/compat/linux/linux_syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_syscalls.c,v 1.30 2001/07/04 20:01:41 jasoni Exp $ */
+/* $OpenBSD: linux_syscalls.c,v 1.31 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call names.
diff --git a/sys/compat/linux/linux_sysent.c b/sys/compat/linux/linux_sysent.c
index b550edac2d3..10d0178b42d 100644
--- a/sys/compat/linux/linux_sysent.c
+++ b/sys/compat/linux/linux_sysent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_sysent.c,v 1.31 2001/07/04 20:01:41 jasoni Exp $ */
+/* $OpenBSD: linux_sysent.c,v 1.32 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call switch table.
diff --git a/sys/compat/netbsd/netbsd_syscall.h b/sys/compat/netbsd/netbsd_syscall.h
index 17e09d16412..20deb195ab8 100644
--- a/sys/compat/netbsd/netbsd_syscall.h
+++ b/sys/compat/netbsd/netbsd_syscall.h
@@ -1,10 +1,10 @@
-/* $OpenBSD: netbsd_syscall.h,v 1.13 2001/05/16 21:24:00 millert Exp $ */
+/* $OpenBSD: netbsd_syscall.h,v 1.14 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from; OpenBSD: syscalls.master,v 1.12 2001/05/16 17:14:38 millert Exp
+ * created from; OpenBSD: syscalls.master,v 1.13 2001/05/16 21:24:01 millert Exp
*/
/* syscall: "syscall" ret: "int" args: "int" "..." */
diff --git a/sys/compat/netbsd/netbsd_syscallargs.h b/sys/compat/netbsd/netbsd_syscallargs.h
index cc2640b2087..3828ce97569 100644
--- a/sys/compat/netbsd/netbsd_syscallargs.h
+++ b/sys/compat/netbsd/netbsd_syscallargs.h
@@ -1,13 +1,27 @@
-/* $OpenBSD: netbsd_syscallargs.h,v 1.13 2001/05/16 21:24:00 millert Exp $ */
+/* $OpenBSD: netbsd_syscallargs.h,v 1.14 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from; OpenBSD: syscalls.master,v 1.12 2001/05/16 17:14:38 millert Exp
+ * created from; OpenBSD: syscalls.master,v 1.13 2001/05/16 21:24:01 millert 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 netbsd_sys_open_args {
syscallarg(char *) path;
diff --git a/sys/compat/netbsd/netbsd_syscalls.c b/sys/compat/netbsd/netbsd_syscalls.c
index c777dcd6715..ce7f4d5565a 100644
--- a/sys/compat/netbsd/netbsd_syscalls.c
+++ b/sys/compat/netbsd/netbsd_syscalls.c
@@ -1,10 +1,10 @@
-/* $OpenBSD: netbsd_syscalls.c,v 1.13 2001/05/16 21:24:00 millert Exp $ */
+/* $OpenBSD: netbsd_syscalls.c,v 1.14 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from; OpenBSD: syscalls.master,v 1.12 2001/05/16 17:14:38 millert Exp
+ * created from; OpenBSD: syscalls.master,v 1.13 2001/05/16 21:24:01 millert Exp
*/
char *netbsd_syscallnames[] = {
diff --git a/sys/compat/netbsd/netbsd_sysent.c b/sys/compat/netbsd/netbsd_sysent.c
index a44a7c5da97..a9d528865cf 100644
--- a/sys/compat/netbsd/netbsd_sysent.c
+++ b/sys/compat/netbsd/netbsd_sysent.c
@@ -1,10 +1,10 @@
-/* $OpenBSD: netbsd_sysent.c,v 1.13 2001/05/16 21:24:01 millert Exp $ */
+/* $OpenBSD: netbsd_sysent.c,v 1.14 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from; OpenBSD: syscalls.master,v 1.12 2001/05/16 17:14:38 millert Exp
+ * created from; OpenBSD: syscalls.master,v 1.13 2001/05/16 21:24:01 millert Exp
*/
#include <sys/param.h>
diff --git a/sys/compat/osf1/osf1_syscall.h b/sys/compat/osf1/osf1_syscall.h
index e984a9dea1d..53cd655aa4a 100644
--- a/sys/compat/osf1/osf1_syscall.h
+++ b/sys/compat/osf1/osf1_syscall.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: osf1_syscall.h,v 1.8 2000/08/04 15:49:06 ericj Exp $ */
+/* $OpenBSD: osf1_syscall.h,v 1.9 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call numbers.
diff --git a/sys/compat/osf1/osf1_syscallargs.h b/sys/compat/osf1/osf1_syscallargs.h
index 1579b3fb533..c57fab5c80d 100644
--- a/sys/compat/osf1/osf1_syscallargs.h
+++ b/sys/compat/osf1/osf1_syscallargs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: osf1_syscallargs.h,v 1.8 2000/08/04 15:49:06 ericj Exp $ */
+/* $OpenBSD: osf1_syscallargs.h,v 1.9 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call argument lists.
@@ -7,7 +7,21 @@
* created from OpenBSD: syscalls.master,v 1.8 2000/08/04 15:47:55 ericj 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 osf1_sys_wait4_args {
syscallarg(int) pid;
diff --git a/sys/compat/osf1/osf1_syscalls.c b/sys/compat/osf1/osf1_syscalls.c
index 504585c55a3..22c1debf775 100644
--- a/sys/compat/osf1/osf1_syscalls.c
+++ b/sys/compat/osf1/osf1_syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: osf1_syscalls.c,v 1.8 2000/08/04 15:49:06 ericj Exp $ */
+/* $OpenBSD: osf1_syscalls.c,v 1.9 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call names.
diff --git a/sys/compat/osf1/osf1_sysent.c b/sys/compat/osf1/osf1_sysent.c
index 557fc74addd..75270c5c45e 100644
--- a/sys/compat/osf1/osf1_sysent.c
+++ b/sys/compat/osf1/osf1_sysent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: osf1_sysent.c,v 1.8 2000/08/04 15:49:06 ericj Exp $ */
+/* $OpenBSD: osf1_sysent.c,v 1.9 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call switch table.
diff --git a/sys/compat/sunos/sunos_syscall.h b/sys/compat/sunos/sunos_syscall.h
index 375bdca19c8..a8b7d028980 100644
--- a/sys/compat/sunos/sunos_syscall.h
+++ b/sys/compat/sunos/sunos_syscall.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sunos_syscall.h,v 1.12 2001/05/16 05:05:09 millert Exp $ */
+/* $OpenBSD: sunos_syscall.h,v 1.13 2001/08/26 04:14:27 deraadt Exp $ */
/*
* System call numbers.
diff --git a/sys/compat/sunos/sunos_syscallargs.h b/sys/compat/sunos/sunos_syscallargs.h
index addd8780045..fcd0304a28e 100644
--- a/sys/compat/sunos/sunos_syscallargs.h
+++ b/sys/compat/sunos/sunos_syscallargs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sunos_syscallargs.h,v 1.12 2001/05/16 05:05:09 millert Exp $ */
+/* $OpenBSD: sunos_syscallargs.h,v 1.13 2001/08/26 04:14:27 deraadt Exp $ */
/*
* System call argument lists.
@@ -7,7 +7,21 @@
* created from OpenBSD: syscalls.master,v 1.11 1999/06/07 07:17:48 deraadt 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 sunos_sys_open_args {
syscallarg(char *) path;
diff --git a/sys/compat/sunos/sunos_syscalls.c b/sys/compat/sunos/sunos_syscalls.c
index 891d3badaed..004873c190b 100644
--- a/sys/compat/sunos/sunos_syscalls.c
+++ b/sys/compat/sunos/sunos_syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sunos_syscalls.c,v 1.12 2001/05/16 05:05:09 millert Exp $ */
+/* $OpenBSD: sunos_syscalls.c,v 1.13 2001/08/26 04:14:27 deraadt Exp $ */
/*
* System call names.
diff --git a/sys/compat/sunos/sunos_sysent.c b/sys/compat/sunos/sunos_sysent.c
index 5db4c83a356..92175d5f60e 100644
--- a/sys/compat/sunos/sunos_sysent.c
+++ b/sys/compat/sunos/sunos_sysent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sunos_sysent.c,v 1.12 2001/05/16 05:05:09 millert Exp $ */
+/* $OpenBSD: sunos_sysent.c,v 1.13 2001/08/26 04:14:27 deraadt Exp $ */
/*
* System call switch table.
diff --git a/sys/compat/svr4/svr4_syscall.h b/sys/compat/svr4/svr4_syscall.h
index 8ff383829ef..28ef0e7dcdf 100644
--- a/sys/compat/svr4/svr4_syscall.h
+++ b/sys/compat/svr4/svr4_syscall.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: svr4_syscall.h,v 1.31 2001/05/16 05:05:08 millert Exp $ */
+/* $OpenBSD: svr4_syscall.h,v 1.32 2001/08/26 04:14:27 deraadt Exp $ */
/*
* System call numbers.
diff --git a/sys/compat/svr4/svr4_syscallargs.h b/sys/compat/svr4/svr4_syscallargs.h
index 3ebeeb4d872..2e99a8db671 100644
--- a/sys/compat/svr4/svr4_syscallargs.h
+++ b/sys/compat/svr4/svr4_syscallargs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: svr4_syscallargs.h,v 1.31 2001/05/16 05:05:09 millert Exp $ */
+/* $OpenBSD: svr4_syscallargs.h,v 1.32 2001/08/26 04:14:27 deraadt Exp $ */
/*
* System call argument lists.
@@ -7,7 +7,21 @@
* created from OpenBSD: syscalls.master,v 1.30 2000/08/23 19:31:35 fgsch 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 svr4_sys_open_args {
syscallarg(char *) path;
diff --git a/sys/compat/svr4/svr4_syscalls.c b/sys/compat/svr4/svr4_syscalls.c
index 4a65a2dbce6..d45adeadf12 100644
--- a/sys/compat/svr4/svr4_syscalls.c
+++ b/sys/compat/svr4/svr4_syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: svr4_syscalls.c,v 1.31 2001/05/16 05:05:09 millert Exp $ */
+/* $OpenBSD: svr4_syscalls.c,v 1.32 2001/08/26 04:14:27 deraadt Exp $ */
/*
* System call names.
diff --git a/sys/compat/svr4/svr4_sysent.c b/sys/compat/svr4/svr4_sysent.c
index d2777d00f14..6208e40f66b 100644
--- a/sys/compat/svr4/svr4_sysent.c
+++ b/sys/compat/svr4/svr4_sysent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: svr4_sysent.c,v 1.31 2001/05/16 05:05:09 millert Exp $ */
+/* $OpenBSD: svr4_sysent.c,v 1.32 2001/08/26 04:14:27 deraadt Exp $ */
/*
* System call switch table.
diff --git a/sys/compat/ultrix/ultrix_syscall.h b/sys/compat/ultrix/ultrix_syscall.h
index 6ae728686d3..54be687289d 100644
--- a/sys/compat/ultrix/ultrix_syscall.h
+++ b/sys/compat/ultrix/ultrix_syscall.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ultrix_syscall.h,v 1.8 2001/05/16 05:05:10 millert Exp $ */
+/* $OpenBSD: ultrix_syscall.h,v 1.9 2001/08/26 04:14:27 deraadt Exp $ */
/*
* System call numbers.
diff --git a/sys/compat/ultrix/ultrix_syscallargs.h b/sys/compat/ultrix/ultrix_syscallargs.h
index 25b08cfa1d1..4156963ca9f 100644
--- a/sys/compat/ultrix/ultrix_syscallargs.h
+++ b/sys/compat/ultrix/ultrix_syscallargs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ultrix_syscallargs.h,v 1.8 2001/05/16 05:05:10 millert Exp $ */
+/* $OpenBSD: ultrix_syscallargs.h,v 1.9 2001/08/26 04:14:27 deraadt Exp $ */
/*
* System call argument lists.
@@ -7,7 +7,21 @@
* created from OpenBSD: syscalls.master,v 1.7 1999/06/07 07:17:48 deraadt 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 ultrix_sys_open_args {
syscallarg(char *) path;
diff --git a/sys/compat/ultrix/ultrix_syscalls.c b/sys/compat/ultrix/ultrix_syscalls.c
index ceb03d50d9d..762fa88a503 100644
--- a/sys/compat/ultrix/ultrix_syscalls.c
+++ b/sys/compat/ultrix/ultrix_syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ultrix_syscalls.c,v 1.8 2001/05/16 05:05:10 millert Exp $ */
+/* $OpenBSD: ultrix_syscalls.c,v 1.9 2001/08/26 04:14:27 deraadt Exp $ */
/*
* System call names.
diff --git a/sys/compat/ultrix/ultrix_sysent.c b/sys/compat/ultrix/ultrix_sysent.c
index 5c6223936be..e10654f068c 100644
--- a/sys/compat/ultrix/ultrix_sysent.c
+++ b/sys/compat/ultrix/ultrix_sysent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ultrix_sysent.c,v 1.8 2001/05/16 05:05:10 millert Exp $ */
+/* $OpenBSD: ultrix_sysent.c,v 1.9 2001/08/26 04:14:27 deraadt Exp $ */
/*
* System call switch table.