summaryrefslogtreecommitdiff
path: root/sys/compat/linux
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/linux')
-rw-r--r--sys/compat/linux/linux_syscall.h2
-rw-r--r--sys/compat/linux/linux_syscallargs.h18
-rw-r--r--sys/compat/linux/linux_syscalls.c2
-rw-r--r--sys/compat/linux/linux_sysent.c2
4 files changed, 19 insertions, 5 deletions
diff --git a/sys/compat/linux/linux_syscall.h b/sys/compat/linux/linux_syscall.h
index 26f84615a93..6fd1d22981d 100644
--- a/sys/compat/linux/linux_syscall.h
+++ b/sys/compat/linux/linux_syscall.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_syscall.h,v 1.30 2001/07/04 20:01:40 jasoni Exp $ */
+/* $OpenBSD: linux_syscall.h,v 1.31 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call numbers.
diff --git a/sys/compat/linux/linux_syscallargs.h b/sys/compat/linux/linux_syscallargs.h
index 706281f857f..229598ac4d8 100644
--- a/sys/compat/linux/linux_syscallargs.h
+++ b/sys/compat/linux/linux_syscallargs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_syscallargs.h,v 1.31 2001/07/04 20:01:40 jasoni Exp $ */
+/* $OpenBSD: linux_syscallargs.h,v 1.32 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call argument lists.
@@ -7,7 +7,21 @@
* created from OpenBSD: syscalls.master,v 1.31 2001/07/04 19:59:47 jasoni 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 linux_sys_open_args {
syscallarg(char *) path;
diff --git a/sys/compat/linux/linux_syscalls.c b/sys/compat/linux/linux_syscalls.c
index 154a07b562c..556f582c4fb 100644
--- a/sys/compat/linux/linux_syscalls.c
+++ b/sys/compat/linux/linux_syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_syscalls.c,v 1.30 2001/07/04 20:01:41 jasoni Exp $ */
+/* $OpenBSD: linux_syscalls.c,v 1.31 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call names.
diff --git a/sys/compat/linux/linux_sysent.c b/sys/compat/linux/linux_sysent.c
index b550edac2d3..10d0178b42d 100644
--- a/sys/compat/linux/linux_sysent.c
+++ b/sys/compat/linux/linux_sysent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_sysent.c,v 1.31 2001/07/04 20:01:41 jasoni Exp $ */
+/* $OpenBSD: linux_sysent.c,v 1.32 2001/08/26 04:14:26 deraadt Exp $ */
/*
* System call switch table.