summaryrefslogtreecommitdiff
path: root/sys/compat/ultrix/ultrix_syscallargs.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-08-26 04:14:28 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-08-26 04:14:28 +0000
commit9edc32a66c05b6833b8d2274526c21ec49520eaa (patch)
tree84101f7c2a73fdfee3d231212ecf7f3aed40f311 /sys/compat/ultrix/ultrix_syscallargs.h
parentccad3e6cbdd1e5db33d39d2138d048187344cd2d (diff)
sync
Diffstat (limited to 'sys/compat/ultrix/ultrix_syscallargs.h')
-rw-r--r--sys/compat/ultrix/ultrix_syscallargs.h18
1 files changed, 16 insertions, 2 deletions
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;