Fixup big-endian syscall args.
This commit is contained in:
parent
1281be6b0e
commit
fc6c67ff5d
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: hpux_syscallargs.h,v 1.17 1998/02/19 03:34:17 thorpej Exp $ */
|
||||
/* $NetBSD: hpux_syscallargs.h,v 1.18 1998/10/03 19:33:32 eeh Exp $ */
|
||||
|
||||
/*
|
||||
* System call argument lists.
|
||||
@ -7,7 +7,17 @@
|
||||
* created from NetBSD: syscalls.master,v 1.17 1998/02/19 00:37:43 thorpej Exp
|
||||
*/
|
||||
|
||||
#define syscallarg(x) union { x datum; register_t pad; }
|
||||
#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 hpux_sys_read_args {
|
||||
syscallarg(int) fd;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ibcs2_syscallargs.h,v 1.19 1998/09/12 10:33:52 mycroft Exp $ */
|
||||
/* $NetBSD: ibcs2_syscallargs.h,v 1.20 1998/10/03 19:35:07 eeh Exp $ */
|
||||
|
||||
/*
|
||||
* System call argument lists.
|
||||
@ -7,7 +7,17 @@
|
||||
* created from NetBSD: syscalls.master,v 1.16 1998/09/12 00:47:13 mycroft Exp
|
||||
*/
|
||||
|
||||
#define syscallarg(x) union { x datum; register_t pad; }
|
||||
#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 ibcs2_sys_read_args {
|
||||
syscallarg(int) fd;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: osf1_syscallargs.h,v 1.16 1998/07/01 00:41:55 thorpej Exp $ */
|
||||
/* $NetBSD: osf1_syscallargs.h,v 1.17 1998/10/03 19:38:58 eeh Exp $ */
|
||||
|
||||
/*
|
||||
* System call argument lists.
|
||||
@ -7,7 +7,17 @@
|
||||
* created from NetBSD: syscalls.master,v 1.11 1998/07/01 00:41:36 thorpej Exp
|
||||
*/
|
||||
|
||||
#define syscallarg(x) union { x datum; register_t pad; }
|
||||
#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_mknod_args {
|
||||
syscallarg(char *) path;
|
||||
|
@ -1,13 +1,23 @@
|
||||
/* $NetBSD: sunos_syscallargs.h,v 1.36 1998/09/13 22:29:06 pk Exp $ */
|
||||
/* $NetBSD: sunos_syscallargs.h,v 1.37 1998/10/03 19:40:43 eeh Exp $ */
|
||||
|
||||
/*
|
||||
* System call argument lists.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from NetBSD: syscalls.master,v 1.46 1998/06/25 22:19:12 thorpej Exp
|
||||
* created from NetBSD: syscalls.master,v 1.47 1998/09/13 22:28:17 pk Exp
|
||||
*/
|
||||
|
||||
#define syscallarg(x) union { x datum; register_t pad; }
|
||||
#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 sunos_sys_open_args {
|
||||
syscallarg(char *) path;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: svr4_ipc.c,v 1.5 1998/09/04 19:54:38 christos Exp $ */
|
||||
/* $NetBSD: svr4_ipc.c,v 1.6 1998/10/03 19:43:27 eeh Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995 The NetBSD Foundation, Inc.
|
||||
@ -59,8 +59,6 @@
|
||||
#include <compat/svr4/svr4_util.h>
|
||||
#include <compat/svr4/svr4_ipc.h>
|
||||
|
||||
#define syscallarg(x) union { x datum; register_t pad; }
|
||||
|
||||
#if defined(SYSVMSG) || defined(SYSVSHM) || defined(SYSVSEM)
|
||||
static void svr4_to_bsd_ipc_perm __P((const struct svr4_ipc_perm *,
|
||||
struct ipc_perm *));
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: svr4_misc.c,v 1.67 1998/10/01 19:26:30 christos Exp $ */
|
||||
/* $NetBSD: svr4_misc.c,v 1.68 1998/10/03 19:43:27 eeh Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994 The NetBSD Foundation, Inc.
|
||||
@ -1074,8 +1074,6 @@ svr4_sys_pgrpsys(p, v, retval)
|
||||
}
|
||||
}
|
||||
|
||||
#define syscallarg(x) union { x datum; register_t pad; }
|
||||
|
||||
struct svr4_hrtcntl_args {
|
||||
syscallarg(int) cmd;
|
||||
syscallarg(int) fun;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: svr4_syscallargs.h,v 1.47 1998/09/12 00:10:33 mycroft Exp $ */
|
||||
/* $NetBSD: svr4_syscallargs.h,v 1.48 1998/10/03 19:43:27 eeh Exp $ */
|
||||
|
||||
/*
|
||||
* System call argument lists.
|
||||
@ -7,7 +7,17 @@
|
||||
* created from NetBSD: syscalls.master,v 1.35 1998/09/12 00:10:06 mycroft Exp
|
||||
*/
|
||||
|
||||
#define syscallarg(x) union { x datum; register_t pad; }
|
||||
#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 svr4_sys_open_args {
|
||||
syscallarg(char *) path;
|
||||
|
Loading…
Reference in New Issue
Block a user