From 9edc32a66c05b6833b8d2274526c21ec49520eaa Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sun, 26 Aug 2001 04:14:28 +0000 Subject: sync --- sys/compat/freebsd/freebsd_syscall.h | 2 +- sys/compat/freebsd/freebsd_syscallargs.h | 18 ++++++++++++++++-- sys/compat/freebsd/freebsd_syscalls.c | 2 +- sys/compat/freebsd/freebsd_sysent.c | 2 +- 4 files changed, 19 insertions(+), 5 deletions(-) (limited to 'sys/compat/freebsd') 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. -- cgit v1.2.3