summaryrefslogtreecommitdiff
path: root/sys/compat/netbsd
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/netbsd')
-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
4 files changed, 23 insertions, 9 deletions
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>