diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-08-26 04:14:28 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-08-26 04:14:28 +0000 |
commit | 9edc32a66c05b6833b8d2274526c21ec49520eaa (patch) | |
tree | 84101f7c2a73fdfee3d231212ecf7f3aed40f311 /sys/compat/ultrix | |
parent | ccad3e6cbdd1e5db33d39d2138d048187344cd2d (diff) |
sync
Diffstat (limited to 'sys/compat/ultrix')
-rw-r--r-- | sys/compat/ultrix/ultrix_syscall.h | 2 | ||||
-rw-r--r-- | sys/compat/ultrix/ultrix_syscallargs.h | 18 | ||||
-rw-r--r-- | sys/compat/ultrix/ultrix_syscalls.c | 2 | ||||
-rw-r--r-- | sys/compat/ultrix/ultrix_sysent.c | 2 |
4 files changed, 19 insertions, 5 deletions
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. |