Fix big-endian syscall args.
This commit is contained in:
parent
68458c66e4
commit
1281be6b0e
@ -1,13 +1,23 @@
|
||||
/* $NetBSD: freebsd_syscallargs.h,v 1.24 1998/09/11 23:15:07 mycroft Exp $ */
|
||||
/* $NetBSD: freebsd_syscallargs.h,v 1.25 1998/10/03 19:31:24 eeh Exp $ */
|
||||
|
||||
/*
|
||||
* System call argument lists.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from NetBSD: syscalls.master,v 1.18 1998/06/25 22:18:32 thorpej Exp
|
||||
* created from NetBSD: syscalls.master,v 1.19 1998/09/11 12:50:08 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 freebsd_sys_open_args {
|
||||
syscallarg(char *) path;
|
||||
|
Loading…
x
Reference in New Issue
Block a user