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/osf1/osf1_syscallargs.h | |
parent | ccad3e6cbdd1e5db33d39d2138d048187344cd2d (diff) |
sync
Diffstat (limited to 'sys/compat/osf1/osf1_syscallargs.h')
-rw-r--r-- | sys/compat/osf1/osf1_syscallargs.h | 18 |
1 files changed, 16 insertions, 2 deletions
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; |