Home | History | Annotate | Line # | Download | only in rumpkern
rump_syscalls.c revision 1.41.2.4
      1  1.41.2.3     rmind /* $NetBSD: rump_syscalls.c,v 1.41.2.4 2011/04/21 01:42:17 rmind Exp $ */
      2       1.1     pooka 
      3       1.1     pooka /*
      4      1.29     pooka  * System call vector and marshalling for rump.
      5       1.1     pooka  *
      6       1.1     pooka  * DO NOT EDIT-- this file is automatically generated.
      7  1.41.2.4     rmind  * created from	NetBSD: syscalls.master,v 1.246 2011/03/06 17:08:36 bouyer Exp
      8       1.1     pooka  */
      9       1.1     pooka 
     10       1.1     pooka #include <sys/cdefs.h>
     11  1.41.2.3     rmind __KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.41.2.4 2011/04/21 01:42:17 rmind Exp $");
     12       1.1     pooka 
     13       1.1     pooka #include <sys/param.h>
     14  1.41.2.3     rmind #include <sys/fstypes.h>
     15       1.1     pooka #include <sys/proc.h>
     16  1.41.2.3     rmind #ifdef RUMP_CLIENT
     17  1.41.2.4     rmind #include <srcsys/syscall.h>
     18  1.41.2.4     rmind #include <srcsys/syscallargs.h>
     19  1.41.2.4     rmind 
     20  1.41.2.3     rmind #include <errno.h>
     21  1.41.2.3     rmind #include <rump/rumpclient.h>
     22  1.41.2.3     rmind 
     23  1.41.2.3     rmind #define rsys_syscall(num, data, dlen, retval)	\
     24  1.41.2.3     rmind     rumpclient_syscall(num, data, dlen, retval)
     25  1.41.2.3     rmind #define rsys_seterrno(error) errno = error
     26  1.41.2.3     rmind #define rsys_alias(a,b)
     27  1.41.2.3     rmind #else
     28  1.41.2.4     rmind #include <sys/syscall.h>
     29  1.41.2.4     rmind #include <sys/syscallargs.h>
     30  1.41.2.4     rmind 
     31  1.41.2.3     rmind #include <sys/syscallvar.h>
     32  1.41.2.3     rmind 
     33      1.27     pooka #include <rump/rumpuser.h>
     34      1.15     pooka #include "rump_private.h"
     35       1.1     pooka 
     36  1.41.2.3     rmind static int
     37  1.41.2.3     rmind rsys_syscall(int num, void *data, size_t dlen, register_t *retval)
     38  1.41.2.3     rmind {
     39  1.41.2.3     rmind 	struct sysent *callp = rump_sysent + num;
     40  1.41.2.3     rmind 	int rv;
     41  1.41.2.3     rmind 
     42  1.41.2.3     rmind 	KASSERT(num > 0 && num < SYS_NSYSENT);
     43  1.41.2.3     rmind 
     44  1.41.2.3     rmind 	rump_schedule();
     45  1.41.2.3     rmind 	rv = sy_call(callp, curlwp, data, retval);
     46  1.41.2.3     rmind 	rump_unschedule();
     47  1.41.2.3     rmind 
     48  1.41.2.3     rmind 	return rv;
     49  1.41.2.3     rmind }
     50  1.41.2.3     rmind 
     51  1.41.2.3     rmind #define rsys_seterrno(error) rumpuser_seterrno(error)
     52  1.41.2.3     rmind #define rsys_alias(a,b) __weak_alias(a,b);
     53  1.41.2.3     rmind #endif
     54  1.41.2.3     rmind 
     55       1.1     pooka #if	BYTE_ORDER == BIG_ENDIAN
     56       1.1     pooka #define SPARG(p,k)	((p)->k.be.datum)
     57       1.1     pooka #else /* LITTLE_ENDIAN, I hope dearly */
     58       1.1     pooka #define SPARG(p,k)	((p)->k.le.datum)
     59       1.1     pooka #endif
     60       1.1     pooka 
     61  1.41.2.3     rmind #ifndef RUMP_CLIENT
     62      1.16     pooka int rump_enosys(void);
     63      1.16     pooka int
     64      1.31     pooka rump_enosys()
     65      1.16     pooka {
     66      1.16     pooka 
     67      1.16     pooka 	return ENOSYS;
     68      1.16     pooka }
     69  1.41.2.3     rmind #endif
     70      1.16     pooka 
     71  1.41.2.3     rmind ssize_t rump___sysimpl_read(int, void *, size_t);
     72       1.1     pooka ssize_t
     73  1.41.2.3     rmind rump___sysimpl_read(int fd, void * buf, size_t nbyte)
     74       1.1     pooka {
     75  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
     76      1.27     pooka 	int error = 0;
     77  1.41.2.3     rmind 	ssize_t rv = -1;
     78      1.31     pooka 	struct sys_read_args callarg;
     79       1.1     pooka 
     80      1.31     pooka 	SPARG(&callarg, fd) = fd;
     81      1.31     pooka 	SPARG(&callarg, buf) = buf;
     82      1.31     pooka 	SPARG(&callarg, nbyte) = nbyte;
     83       1.1     pooka 
     84  1.41.2.3     rmind 	error = rsys_syscall(SYS_read, &callarg, sizeof(callarg), retval);
     85  1.41.2.3     rmind 	rsys_seterrno(error);
     86  1.41.2.3     rmind 	if (error == 0) {
     87  1.41.2.3     rmind 		if (sizeof(ssize_t) > sizeof(register_t))
     88  1.41.2.3     rmind 			rv = *(ssize_t *)retval;
     89  1.41.2.3     rmind 		else
     90  1.41.2.3     rmind 			rv = *retval;
     91      1.27     pooka 	}
     92  1.41.2.3     rmind 	return rv;
     93       1.1     pooka }
     94  1.41.2.3     rmind rsys_alias(sys_read,rump_enosys)
     95       1.1     pooka 
     96  1.41.2.3     rmind ssize_t rump___sysimpl_write(int, const void *, size_t);
     97       1.1     pooka ssize_t
     98  1.41.2.3     rmind rump___sysimpl_write(int fd, const void * buf, size_t nbyte)
     99       1.1     pooka {
    100  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    101      1.27     pooka 	int error = 0;
    102  1.41.2.3     rmind 	ssize_t rv = -1;
    103      1.31     pooka 	struct sys_write_args callarg;
    104       1.1     pooka 
    105      1.31     pooka 	SPARG(&callarg, fd) = fd;
    106      1.31     pooka 	SPARG(&callarg, buf) = buf;
    107      1.31     pooka 	SPARG(&callarg, nbyte) = nbyte;
    108       1.1     pooka 
    109  1.41.2.3     rmind 	error = rsys_syscall(SYS_write, &callarg, sizeof(callarg), retval);
    110  1.41.2.3     rmind 	rsys_seterrno(error);
    111  1.41.2.3     rmind 	if (error == 0) {
    112  1.41.2.3     rmind 		if (sizeof(ssize_t) > sizeof(register_t))
    113  1.41.2.3     rmind 			rv = *(ssize_t *)retval;
    114  1.41.2.3     rmind 		else
    115  1.41.2.3     rmind 			rv = *retval;
    116      1.27     pooka 	}
    117  1.41.2.3     rmind 	return rv;
    118       1.1     pooka }
    119  1.41.2.3     rmind rsys_alias(sys_write,rump_enosys)
    120       1.1     pooka 
    121  1.41.2.3     rmind int rump___sysimpl_open(const char *, int, mode_t);
    122       1.1     pooka int
    123  1.41.2.3     rmind rump___sysimpl_open(const char * path, int flags, mode_t mode)
    124       1.1     pooka {
    125  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    126      1.27     pooka 	int error = 0;
    127  1.41.2.3     rmind 	int rv = -1;
    128      1.31     pooka 	struct sys_open_args callarg;
    129       1.1     pooka 
    130      1.31     pooka 	SPARG(&callarg, path) = path;
    131      1.31     pooka 	SPARG(&callarg, flags) = flags;
    132      1.31     pooka 	SPARG(&callarg, mode) = mode;
    133       1.1     pooka 
    134  1.41.2.3     rmind 	error = rsys_syscall(SYS_open, &callarg, sizeof(callarg), retval);
    135  1.41.2.3     rmind 	rsys_seterrno(error);
    136  1.41.2.3     rmind 	if (error == 0) {
    137  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
    138  1.41.2.3     rmind 			rv = *(int *)retval;
    139  1.41.2.3     rmind 		else
    140  1.41.2.3     rmind 			rv = *retval;
    141      1.27     pooka 	}
    142  1.41.2.3     rmind 	return rv;
    143       1.1     pooka }
    144  1.41.2.3     rmind rsys_alias(sys_open,rump_enosys)
    145       1.1     pooka 
    146  1.41.2.3     rmind int rump___sysimpl_close(int);
    147       1.1     pooka int
    148  1.41.2.3     rmind rump___sysimpl_close(int fd)
    149       1.1     pooka {
    150  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    151      1.27     pooka 	int error = 0;
    152  1.41.2.3     rmind 	int rv = -1;
    153      1.31     pooka 	struct sys_close_args callarg;
    154       1.1     pooka 
    155      1.31     pooka 	SPARG(&callarg, fd) = fd;
    156       1.1     pooka 
    157  1.41.2.3     rmind 	error = rsys_syscall(SYS_close, &callarg, sizeof(callarg), retval);
    158  1.41.2.3     rmind 	rsys_seterrno(error);
    159  1.41.2.3     rmind 	if (error == 0) {
    160  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
    161  1.41.2.3     rmind 			rv = *(int *)retval;
    162  1.41.2.3     rmind 		else
    163  1.41.2.3     rmind 			rv = *retval;
    164      1.27     pooka 	}
    165  1.41.2.3     rmind 	return rv;
    166       1.1     pooka }
    167  1.41.2.3     rmind rsys_alias(sys_close,rump_enosys)
    168       1.1     pooka 
    169  1.41.2.3     rmind int rump___sysimpl_link(const char *, const char *);
    170       1.1     pooka int
    171  1.41.2.3     rmind rump___sysimpl_link(const char * path, const char * link)
    172       1.1     pooka {
    173  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    174      1.27     pooka 	int error = 0;
    175  1.41.2.3     rmind 	int rv = -1;
    176      1.31     pooka 	struct sys_link_args callarg;
    177       1.1     pooka 
    178      1.31     pooka 	SPARG(&callarg, path) = path;
    179      1.31     pooka 	SPARG(&callarg, link) = link;
    180       1.1     pooka 
    181  1.41.2.3     rmind 	error = rsys_syscall(SYS_link, &callarg, sizeof(callarg), retval);
    182  1.41.2.3     rmind 	rsys_seterrno(error);
    183  1.41.2.3     rmind 	if (error == 0) {
    184  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
    185  1.41.2.3     rmind 			rv = *(int *)retval;
    186  1.41.2.3     rmind 		else
    187  1.41.2.3     rmind 			rv = *retval;
    188      1.27     pooka 	}
    189  1.41.2.3     rmind 	return rv;
    190       1.1     pooka }
    191  1.41.2.3     rmind rsys_alias(sys_link,rump_enosys)
    192       1.1     pooka 
    193  1.41.2.3     rmind int rump___sysimpl_unlink(const char *);
    194       1.1     pooka int
    195  1.41.2.3     rmind rump___sysimpl_unlink(const char * path)
    196       1.1     pooka {
    197  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    198      1.27     pooka 	int error = 0;
    199  1.41.2.3     rmind 	int rv = -1;
    200      1.31     pooka 	struct sys_unlink_args callarg;
    201       1.1     pooka 
    202      1.31     pooka 	SPARG(&callarg, path) = path;
    203       1.1     pooka 
    204  1.41.2.3     rmind 	error = rsys_syscall(SYS_unlink, &callarg, sizeof(callarg), retval);
    205  1.41.2.3     rmind 	rsys_seterrno(error);
    206  1.41.2.3     rmind 	if (error == 0) {
    207  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
    208  1.41.2.3     rmind 			rv = *(int *)retval;
    209  1.41.2.3     rmind 		else
    210  1.41.2.3     rmind 			rv = *retval;
    211      1.27     pooka 	}
    212  1.41.2.3     rmind 	return rv;
    213       1.1     pooka }
    214  1.41.2.3     rmind rsys_alias(sys_unlink,rump_enosys)
    215       1.1     pooka 
    216  1.41.2.3     rmind int rump___sysimpl_chdir(const char *);
    217       1.1     pooka int
    218  1.41.2.3     rmind rump___sysimpl_chdir(const char * path)
    219       1.1     pooka {
    220  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    221      1.27     pooka 	int error = 0;
    222  1.41.2.3     rmind 	int rv = -1;
    223      1.31     pooka 	struct sys_chdir_args callarg;
    224       1.1     pooka 
    225      1.31     pooka 	SPARG(&callarg, path) = path;
    226       1.1     pooka 
    227  1.41.2.3     rmind 	error = rsys_syscall(SYS_chdir, &callarg, sizeof(callarg), retval);
    228  1.41.2.3     rmind 	rsys_seterrno(error);
    229  1.41.2.3     rmind 	if (error == 0) {
    230  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
    231  1.41.2.3     rmind 			rv = *(int *)retval;
    232  1.41.2.3     rmind 		else
    233  1.41.2.3     rmind 			rv = *retval;
    234      1.27     pooka 	}
    235  1.41.2.3     rmind 	return rv;
    236       1.1     pooka }
    237  1.41.2.3     rmind rsys_alias(sys_chdir,rump_enosys)
    238       1.1     pooka 
    239  1.41.2.3     rmind int rump___sysimpl_fchdir(int);
    240       1.1     pooka int
    241  1.41.2.3     rmind rump___sysimpl_fchdir(int fd)
    242       1.1     pooka {
    243  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    244      1.27     pooka 	int error = 0;
    245  1.41.2.3     rmind 	int rv = -1;
    246      1.31     pooka 	struct sys_fchdir_args callarg;
    247       1.1     pooka 
    248      1.31     pooka 	SPARG(&callarg, fd) = fd;
    249       1.1     pooka 
    250  1.41.2.3     rmind 	error = rsys_syscall(SYS_fchdir, &callarg, sizeof(callarg), retval);
    251  1.41.2.3     rmind 	rsys_seterrno(error);
    252  1.41.2.3     rmind 	if (error == 0) {
    253  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
    254  1.41.2.3     rmind 			rv = *(int *)retval;
    255  1.41.2.3     rmind 		else
    256  1.41.2.3     rmind 			rv = *retval;
    257  1.41.2.3     rmind 	}
    258  1.41.2.3     rmind 	return rv;
    259  1.41.2.3     rmind }
    260  1.41.2.3     rmind rsys_alias(sys_fchdir,rump_enosys)
    261  1.41.2.3     rmind 
    262  1.41.2.3     rmind int rump___sysimpl_mknod(const char *, mode_t, uint32_t);
    263  1.41.2.3     rmind int
    264  1.41.2.3     rmind rump___sysimpl_mknod(const char * path, mode_t mode, uint32_t dev)
    265  1.41.2.3     rmind {
    266  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    267  1.41.2.3     rmind 	int error = 0;
    268  1.41.2.3     rmind 	int rv = -1;
    269  1.41.2.3     rmind 	struct compat_50_sys_mknod_args callarg;
    270  1.41.2.3     rmind 
    271  1.41.2.3     rmind 	SPARG(&callarg, path) = path;
    272  1.41.2.3     rmind 	SPARG(&callarg, mode) = mode;
    273  1.41.2.3     rmind 	SPARG(&callarg, dev) = dev;
    274  1.41.2.3     rmind 
    275  1.41.2.3     rmind 	error = rsys_syscall(SYS_compat_50_mknod, &callarg, sizeof(callarg), retval);
    276  1.41.2.3     rmind 	rsys_seterrno(error);
    277  1.41.2.3     rmind 	if (error == 0) {
    278  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
    279  1.41.2.3     rmind 			rv = *(int *)retval;
    280  1.41.2.3     rmind 		else
    281  1.41.2.3     rmind 			rv = *retval;
    282      1.27     pooka 	}
    283  1.41.2.3     rmind 	return rv;
    284       1.1     pooka }
    285  1.41.2.3     rmind rsys_alias(compat_50_sys_mknod,rump_enosys)
    286       1.1     pooka 
    287  1.41.2.3     rmind int rump___sysimpl_chmod(const char *, mode_t);
    288       1.1     pooka int
    289  1.41.2.3     rmind rump___sysimpl_chmod(const char * path, mode_t mode)
    290       1.1     pooka {
    291  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    292      1.27     pooka 	int error = 0;
    293  1.41.2.3     rmind 	int rv = -1;
    294      1.31     pooka 	struct sys_chmod_args callarg;
    295       1.1     pooka 
    296      1.31     pooka 	SPARG(&callarg, path) = path;
    297      1.31     pooka 	SPARG(&callarg, mode) = mode;
    298       1.1     pooka 
    299  1.41.2.3     rmind 	error = rsys_syscall(SYS_chmod, &callarg, sizeof(callarg), retval);
    300  1.41.2.3     rmind 	rsys_seterrno(error);
    301  1.41.2.3     rmind 	if (error == 0) {
    302  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
    303  1.41.2.3     rmind 			rv = *(int *)retval;
    304  1.41.2.3     rmind 		else
    305  1.41.2.3     rmind 			rv = *retval;
    306      1.27     pooka 	}
    307  1.41.2.3     rmind 	return rv;
    308       1.1     pooka }
    309  1.41.2.3     rmind rsys_alias(sys_chmod,rump_enosys)
    310       1.1     pooka 
    311  1.41.2.3     rmind int rump___sysimpl_chown(const char *, uid_t, gid_t);
    312       1.1     pooka int
    313  1.41.2.3     rmind rump___sysimpl_chown(const char * path, uid_t uid, gid_t gid)
    314       1.1     pooka {
    315  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    316      1.27     pooka 	int error = 0;
    317  1.41.2.3     rmind 	int rv = -1;
    318      1.31     pooka 	struct sys_chown_args callarg;
    319       1.1     pooka 
    320      1.31     pooka 	SPARG(&callarg, path) = path;
    321      1.31     pooka 	SPARG(&callarg, uid) = uid;
    322      1.31     pooka 	SPARG(&callarg, gid) = gid;
    323       1.1     pooka 
    324  1.41.2.3     rmind 	error = rsys_syscall(SYS_chown, &callarg, sizeof(callarg), retval);
    325  1.41.2.3     rmind 	rsys_seterrno(error);
    326  1.41.2.3     rmind 	if (error == 0) {
    327  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
    328  1.41.2.3     rmind 			rv = *(int *)retval;
    329  1.41.2.3     rmind 		else
    330  1.41.2.3     rmind 			rv = *retval;
    331      1.27     pooka 	}
    332  1.41.2.3     rmind 	return rv;
    333  1.41.2.3     rmind }
    334  1.41.2.3     rmind rsys_alias(sys_chown,rump_enosys)
    335  1.41.2.3     rmind 
    336  1.41.2.3     rmind pid_t rump___sysimpl_getpid(void);
    337  1.41.2.3     rmind pid_t
    338  1.41.2.3     rmind rump___sysimpl_getpid(void )
    339  1.41.2.3     rmind {
    340  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    341  1.41.2.3     rmind 	pid_t rv = -1;
    342  1.41.2.3     rmind 
    343  1.41.2.3     rmind 	rsys_syscall(SYS_getpid, NULL, 0, retval);
    344  1.41.2.3     rmind 	if (sizeof(pid_t) > sizeof(register_t))
    345  1.41.2.3     rmind 		rv = *(pid_t *)retval;
    346  1.41.2.3     rmind 	else
    347  1.41.2.3     rmind 		rv = *retval;
    348  1.41.2.3     rmind 	return rv;
    349       1.1     pooka }
    350  1.41.2.3     rmind rsys_alias(sys_getpid_with_ppid,rump_enosys)
    351       1.1     pooka 
    352  1.41.2.3     rmind int rump___sysimpl_unmount(const char *, int);
    353       1.1     pooka int
    354  1.41.2.3     rmind rump___sysimpl_unmount(const char * path, int flags)
    355       1.1     pooka {
    356  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    357      1.27     pooka 	int error = 0;
    358  1.41.2.3     rmind 	int rv = -1;
    359      1.31     pooka 	struct sys_unmount_args callarg;
    360       1.1     pooka 
    361      1.31     pooka 	SPARG(&callarg, path) = path;
    362      1.31     pooka 	SPARG(&callarg, flags) = flags;
    363       1.1     pooka 
    364  1.41.2.3     rmind 	error = rsys_syscall(SYS_unmount, &callarg, sizeof(callarg), retval);
    365  1.41.2.3     rmind 	rsys_seterrno(error);
    366  1.41.2.3     rmind 	if (error == 0) {
    367  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
    368  1.41.2.3     rmind 			rv = *(int *)retval;
    369  1.41.2.3     rmind 		else
    370  1.41.2.3     rmind 			rv = *retval;
    371      1.27     pooka 	}
    372  1.41.2.3     rmind 	return rv;
    373  1.41.2.3     rmind }
    374  1.41.2.3     rmind rsys_alias(sys_unmount,rump_enosys)
    375  1.41.2.3     rmind 
    376  1.41.2.3     rmind int rump___sysimpl_setuid(uid_t);
    377  1.41.2.3     rmind int
    378  1.41.2.3     rmind rump___sysimpl_setuid(uid_t uid)
    379  1.41.2.3     rmind {
    380  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    381  1.41.2.3     rmind 	int error = 0;
    382  1.41.2.3     rmind 	int rv = -1;
    383  1.41.2.3     rmind 	struct sys_setuid_args callarg;
    384  1.41.2.3     rmind 
    385  1.41.2.3     rmind 	SPARG(&callarg, uid) = uid;
    386  1.41.2.3     rmind 
    387  1.41.2.3     rmind 	error = rsys_syscall(SYS_setuid, &callarg, sizeof(callarg), retval);
    388  1.41.2.3     rmind 	rsys_seterrno(error);
    389  1.41.2.3     rmind 	if (error == 0) {
    390  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
    391  1.41.2.3     rmind 			rv = *(int *)retval;
    392  1.41.2.3     rmind 		else
    393  1.41.2.3     rmind 			rv = *retval;
    394  1.41.2.3     rmind 	}
    395  1.41.2.3     rmind 	return rv;
    396  1.41.2.3     rmind }
    397  1.41.2.3     rmind rsys_alias(sys_setuid,rump_enosys)
    398  1.41.2.3     rmind 
    399  1.41.2.3     rmind uid_t rump___sysimpl_getuid(void);
    400  1.41.2.3     rmind uid_t
    401  1.41.2.3     rmind rump___sysimpl_getuid(void )
    402  1.41.2.3     rmind {
    403  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    404  1.41.2.3     rmind 	uid_t rv = -1;
    405  1.41.2.3     rmind 
    406  1.41.2.3     rmind 	rsys_syscall(SYS_getuid, NULL, 0, retval);
    407  1.41.2.3     rmind 	if (sizeof(uid_t) > sizeof(register_t))
    408  1.41.2.3     rmind 		rv = *(uid_t *)retval;
    409  1.41.2.3     rmind 	else
    410  1.41.2.3     rmind 		rv = *retval;
    411  1.41.2.3     rmind 	return rv;
    412  1.41.2.3     rmind }
    413  1.41.2.3     rmind rsys_alias(sys_getuid_with_euid,rump_enosys)
    414  1.41.2.3     rmind 
    415  1.41.2.3     rmind uid_t rump___sysimpl_geteuid(void);
    416  1.41.2.3     rmind uid_t
    417  1.41.2.3     rmind rump___sysimpl_geteuid(void )
    418  1.41.2.3     rmind {
    419  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    420  1.41.2.3     rmind 	uid_t rv = -1;
    421  1.41.2.3     rmind 
    422  1.41.2.3     rmind 	rsys_syscall(SYS_geteuid, NULL, 0, retval);
    423  1.41.2.3     rmind 	if (sizeof(uid_t) > sizeof(register_t))
    424  1.41.2.3     rmind 		rv = *(uid_t *)retval;
    425  1.41.2.3     rmind 	else
    426  1.41.2.3     rmind 		rv = *retval;
    427  1.41.2.3     rmind 	return rv;
    428       1.1     pooka }
    429  1.41.2.3     rmind rsys_alias(sys_geteuid,rump_enosys)
    430       1.1     pooka 
    431  1.41.2.3     rmind ssize_t rump___sysimpl_recvmsg(int, struct msghdr *, int);
    432      1.28     pooka ssize_t
    433  1.41.2.3     rmind rump___sysimpl_recvmsg(int s, struct msghdr * msg, int flags)
    434      1.28     pooka {
    435  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    436      1.28     pooka 	int error = 0;
    437  1.41.2.3     rmind 	ssize_t rv = -1;
    438      1.31     pooka 	struct sys_recvmsg_args callarg;
    439      1.28     pooka 
    440      1.31     pooka 	SPARG(&callarg, s) = s;
    441      1.31     pooka 	SPARG(&callarg, msg) = msg;
    442      1.31     pooka 	SPARG(&callarg, flags) = flags;
    443      1.28     pooka 
    444  1.41.2.3     rmind 	error = rsys_syscall(SYS_recvmsg, &callarg, sizeof(callarg), retval);
    445  1.41.2.3     rmind 	rsys_seterrno(error);
    446  1.41.2.3     rmind 	if (error == 0) {
    447  1.41.2.3     rmind 		if (sizeof(ssize_t) > sizeof(register_t))
    448  1.41.2.3     rmind 			rv = *(ssize_t *)retval;
    449  1.41.2.3     rmind 		else
    450  1.41.2.3     rmind 			rv = *retval;
    451      1.28     pooka 	}
    452  1.41.2.3     rmind 	return rv;
    453      1.28     pooka }
    454  1.41.2.3     rmind rsys_alias(sys_recvmsg,rump_enosys)
    455      1.28     pooka 
    456  1.41.2.3     rmind ssize_t rump___sysimpl_sendmsg(int, const struct msghdr *, int);
    457      1.28     pooka ssize_t
    458  1.41.2.3     rmind rump___sysimpl_sendmsg(int s, const struct msghdr * msg, int flags)
    459      1.28     pooka {
    460  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    461      1.28     pooka 	int error = 0;
    462  1.41.2.3     rmind 	ssize_t rv = -1;
    463      1.31     pooka 	struct sys_sendmsg_args callarg;
    464      1.28     pooka 
    465      1.31     pooka 	SPARG(&callarg, s) = s;
    466      1.31     pooka 	SPARG(&callarg, msg) = msg;
    467      1.31     pooka 	SPARG(&callarg, flags) = flags;
    468      1.28     pooka 
    469  1.41.2.3     rmind 	error = rsys_syscall(SYS_sendmsg, &callarg, sizeof(callarg), retval);
    470  1.41.2.3     rmind 	rsys_seterrno(error);
    471  1.41.2.3     rmind 	if (error == 0) {
    472  1.41.2.3     rmind 		if (sizeof(ssize_t) > sizeof(register_t))
    473  1.41.2.3     rmind 			rv = *(ssize_t *)retval;
    474  1.41.2.3     rmind 		else
    475  1.41.2.3     rmind 			rv = *retval;
    476      1.28     pooka 	}
    477  1.41.2.3     rmind 	return rv;
    478      1.28     pooka }
    479  1.41.2.3     rmind rsys_alias(sys_sendmsg,rump_enosys)
    480      1.28     pooka 
    481  1.41.2.3     rmind ssize_t rump___sysimpl_recvfrom(int, void *, size_t, int, struct sockaddr *, unsigned int *);
    482      1.28     pooka ssize_t
    483  1.41.2.3     rmind rump___sysimpl_recvfrom(int s, void * buf, size_t len, int flags, struct sockaddr * from, unsigned int * fromlenaddr)
    484      1.28     pooka {
    485  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    486      1.28     pooka 	int error = 0;
    487  1.41.2.3     rmind 	ssize_t rv = -1;
    488      1.31     pooka 	struct sys_recvfrom_args callarg;
    489      1.28     pooka 
    490      1.31     pooka 	SPARG(&callarg, s) = s;
    491      1.31     pooka 	SPARG(&callarg, buf) = buf;
    492      1.31     pooka 	SPARG(&callarg, len) = len;
    493      1.31     pooka 	SPARG(&callarg, flags) = flags;
    494      1.31     pooka 	SPARG(&callarg, from) = from;
    495      1.31     pooka 	SPARG(&callarg, fromlenaddr) = fromlenaddr;
    496      1.28     pooka 
    497  1.41.2.3     rmind 	error = rsys_syscall(SYS_recvfrom, &callarg, sizeof(callarg), retval);
    498  1.41.2.3     rmind 	rsys_seterrno(error);
    499  1.41.2.3     rmind 	if (error == 0) {
    500  1.41.2.3     rmind 		if (sizeof(ssize_t) > sizeof(register_t))
    501  1.41.2.3     rmind 			rv = *(ssize_t *)retval;
    502  1.41.2.3     rmind 		else
    503  1.41.2.3     rmind 			rv = *retval;
    504      1.28     pooka 	}
    505  1.41.2.3     rmind 	return rv;
    506      1.28     pooka }
    507  1.41.2.3     rmind rsys_alias(sys_recvfrom,rump_enosys)
    508      1.28     pooka 
    509  1.41.2.3     rmind int rump___sysimpl_accept(int, struct sockaddr *, unsigned int *);
    510       1.1     pooka int
    511  1.41.2.3     rmind rump___sysimpl_accept(int s, struct sockaddr * name, unsigned int * anamelen)
    512      1.22     pooka {
    513  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    514      1.27     pooka 	int error = 0;
    515  1.41.2.3     rmind 	int rv = -1;
    516      1.31     pooka 	struct sys_accept_args callarg;
    517      1.22     pooka 
    518      1.31     pooka 	SPARG(&callarg, s) = s;
    519      1.31     pooka 	SPARG(&callarg, name) = name;
    520      1.31     pooka 	SPARG(&callarg, anamelen) = anamelen;
    521      1.22     pooka 
    522  1.41.2.3     rmind 	error = rsys_syscall(SYS_accept, &callarg, sizeof(callarg), retval);
    523  1.41.2.3     rmind 	rsys_seterrno(error);
    524  1.41.2.3     rmind 	if (error == 0) {
    525  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
    526  1.41.2.3     rmind 			rv = *(int *)retval;
    527  1.41.2.3     rmind 		else
    528  1.41.2.3     rmind 			rv = *retval;
    529      1.27     pooka 	}
    530  1.41.2.3     rmind 	return rv;
    531      1.22     pooka }
    532  1.41.2.3     rmind rsys_alias(sys_accept,rump_enosys)
    533      1.22     pooka 
    534  1.41.2.3     rmind int rump___sysimpl_getpeername(int, struct sockaddr *, unsigned int *);
    535      1.28     pooka int
    536  1.41.2.3     rmind rump___sysimpl_getpeername(int fdes, struct sockaddr * asa, unsigned int * alen)
    537      1.28     pooka {
    538  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    539      1.28     pooka 	int error = 0;
    540  1.41.2.3     rmind 	int rv = -1;
    541      1.31     pooka 	struct sys_getpeername_args callarg;
    542      1.28     pooka 
    543      1.31     pooka 	SPARG(&callarg, fdes) = fdes;
    544      1.31     pooka 	SPARG(&callarg, asa) = asa;
    545      1.31     pooka 	SPARG(&callarg, alen) = alen;
    546      1.28     pooka 
    547  1.41.2.3     rmind 	error = rsys_syscall(SYS_getpeername, &callarg, sizeof(callarg), retval);
    548  1.41.2.3     rmind 	rsys_seterrno(error);
    549  1.41.2.3     rmind 	if (error == 0) {
    550  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
    551  1.41.2.3     rmind 			rv = *(int *)retval;
    552  1.41.2.3     rmind 		else
    553  1.41.2.3     rmind 			rv = *retval;
    554      1.28     pooka 	}
    555  1.41.2.3     rmind 	return rv;
    556      1.28     pooka }
    557  1.41.2.3     rmind rsys_alias(sys_getpeername,rump_enosys)
    558      1.28     pooka 
    559  1.41.2.3     rmind int rump___sysimpl_getsockname(int, struct sockaddr *, unsigned int *);
    560      1.28     pooka int
    561  1.41.2.3     rmind rump___sysimpl_getsockname(int fdes, struct sockaddr * asa, unsigned int * alen)
    562      1.28     pooka {
    563  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    564      1.28     pooka 	int error = 0;
    565  1.41.2.3     rmind 	int rv = -1;
    566      1.31     pooka 	struct sys_getsockname_args callarg;
    567      1.28     pooka 
    568      1.31     pooka 	SPARG(&callarg, fdes) = fdes;
    569      1.31     pooka 	SPARG(&callarg, asa) = asa;
    570      1.31     pooka 	SPARG(&callarg, alen) = alen;
    571      1.28     pooka 
    572  1.41.2.3     rmind 	error = rsys_syscall(SYS_getsockname, &callarg, sizeof(callarg), retval);
    573  1.41.2.3     rmind 	rsys_seterrno(error);
    574  1.41.2.3     rmind 	if (error == 0) {
    575  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
    576  1.41.2.3     rmind 			rv = *(int *)retval;
    577  1.41.2.3     rmind 		else
    578  1.41.2.3     rmind 			rv = *retval;
    579      1.28     pooka 	}
    580  1.41.2.3     rmind 	return rv;
    581      1.28     pooka }
    582  1.41.2.3     rmind rsys_alias(sys_getsockname,rump_enosys)
    583      1.28     pooka 
    584  1.41.2.3     rmind int rump___sysimpl_access(const char *, int);
    585      1.34     pooka int
    586  1.41.2.3     rmind rump___sysimpl_access(const char * path, int flags)
    587      1.34     pooka {
    588  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    589      1.34     pooka 	int error = 0;
    590  1.41.2.3     rmind 	int rv = -1;
    591      1.34     pooka 	struct sys_access_args callarg;
    592      1.34     pooka 
    593      1.34     pooka 	SPARG(&callarg, path) = path;
    594      1.34     pooka 	SPARG(&callarg, flags) = flags;
    595      1.34     pooka 
    596  1.41.2.3     rmind 	error = rsys_syscall(SYS_access, &callarg, sizeof(callarg), retval);
    597  1.41.2.3     rmind 	rsys_seterrno(error);
    598  1.41.2.3     rmind 	if (error == 0) {
    599  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
    600  1.41.2.3     rmind 			rv = *(int *)retval;
    601  1.41.2.3     rmind 		else
    602  1.41.2.3     rmind 			rv = *retval;
    603      1.34     pooka 	}
    604  1.41.2.3     rmind 	return rv;
    605      1.34     pooka }
    606  1.41.2.3     rmind rsys_alias(sys_access,rump_enosys)
    607      1.34     pooka 
    608  1.41.2.3     rmind int rump___sysimpl_chflags(const char *, u_long);
    609      1.22     pooka int
    610  1.41.2.3     rmind rump___sysimpl_chflags(const char * path, u_long flags)
    611       1.1     pooka {
    612  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    613      1.27     pooka 	int error = 0;
    614  1.41.2.3     rmind 	int rv = -1;
    615      1.31     pooka 	struct sys_chflags_args callarg;
    616       1.1     pooka 
    617      1.31     pooka 	SPARG(&callarg, path) = path;
    618      1.31     pooka 	SPARG(&callarg, flags) = flags;
    619       1.1     pooka 
    620  1.41.2.3     rmind 	error = rsys_syscall(SYS_chflags, &callarg, sizeof(callarg), retval);
    621  1.41.2.3     rmind 	rsys_seterrno(error);
    622  1.41.2.3     rmind 	if (error == 0) {
    623  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
    624  1.41.2.3     rmind 			rv = *(int *)retval;
    625  1.41.2.3     rmind 		else
    626  1.41.2.3     rmind 			rv = *retval;
    627      1.27     pooka 	}
    628  1.41.2.3     rmind 	return rv;
    629       1.1     pooka }
    630  1.41.2.3     rmind rsys_alias(sys_chflags,rump_enosys)
    631       1.1     pooka 
    632  1.41.2.3     rmind int rump___sysimpl_fchflags(int, u_long);
    633      1.34     pooka int
    634  1.41.2.3     rmind rump___sysimpl_fchflags(int fd, u_long flags)
    635      1.34     pooka {
    636  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    637      1.34     pooka 	int error = 0;
    638  1.41.2.3     rmind 	int rv = -1;
    639      1.34     pooka 	struct sys_fchflags_args callarg;
    640      1.34     pooka 
    641      1.34     pooka 	SPARG(&callarg, fd) = fd;
    642      1.34     pooka 	SPARG(&callarg, flags) = flags;
    643      1.34     pooka 
    644  1.41.2.3     rmind 	error = rsys_syscall(SYS_fchflags, &callarg, sizeof(callarg), retval);
    645  1.41.2.3     rmind 	rsys_seterrno(error);
    646  1.41.2.3     rmind 	if (error == 0) {
    647  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
    648  1.41.2.3     rmind 			rv = *(int *)retval;
    649  1.41.2.3     rmind 		else
    650  1.41.2.3     rmind 			rv = *retval;
    651      1.34     pooka 	}
    652  1.41.2.3     rmind 	return rv;
    653      1.34     pooka }
    654  1.41.2.3     rmind rsys_alias(sys_fchflags,rump_enosys)
    655      1.34     pooka 
    656  1.41.2.3     rmind void rump___sysimpl_sync(void);
    657       1.1     pooka void
    658  1.41.2.3     rmind rump___sysimpl_sync(void )
    659       1.1     pooka {
    660  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    661       1.1     pooka 
    662  1.41.2.3     rmind 	rsys_syscall(SYS_sync, NULL, 0, retval);
    663  1.41.2.3     rmind }
    664  1.41.2.3     rmind rsys_alias(sys_sync,rump_enosys)
    665  1.41.2.3     rmind 
    666  1.41.2.3     rmind pid_t rump___sysimpl_getppid(void);
    667  1.41.2.3     rmind pid_t
    668  1.41.2.3     rmind rump___sysimpl_getppid(void )
    669  1.41.2.3     rmind {
    670  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    671  1.41.2.3     rmind 	pid_t rv = -1;
    672  1.41.2.3     rmind 
    673  1.41.2.3     rmind 	rsys_syscall(SYS_getppid, NULL, 0, retval);
    674  1.41.2.3     rmind 	if (sizeof(pid_t) > sizeof(register_t))
    675  1.41.2.3     rmind 		rv = *(pid_t *)retval;
    676  1.41.2.3     rmind 	else
    677  1.41.2.3     rmind 		rv = *retval;
    678  1.41.2.3     rmind 	return rv;
    679       1.1     pooka }
    680  1.41.2.3     rmind rsys_alias(sys_getppid,rump_enosys)
    681       1.1     pooka 
    682  1.41.2.3     rmind int rump___sysimpl_dup(int);
    683      1.34     pooka int
    684  1.41.2.3     rmind rump___sysimpl_dup(int fd)
    685      1.34     pooka {
    686  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    687      1.34     pooka 	int error = 0;
    688  1.41.2.3     rmind 	int rv = -1;
    689      1.34     pooka 	struct sys_dup_args callarg;
    690      1.34     pooka 
    691      1.34     pooka 	SPARG(&callarg, fd) = fd;
    692      1.34     pooka 
    693  1.41.2.3     rmind 	error = rsys_syscall(SYS_dup, &callarg, sizeof(callarg), retval);
    694  1.41.2.3     rmind 	rsys_seterrno(error);
    695  1.41.2.3     rmind 	if (error == 0) {
    696  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
    697  1.41.2.3     rmind 			rv = *(int *)retval;
    698  1.41.2.3     rmind 		else
    699  1.41.2.3     rmind 			rv = *retval;
    700  1.41.2.3     rmind 	}
    701  1.41.2.3     rmind 	return rv;
    702  1.41.2.3     rmind }
    703  1.41.2.3     rmind rsys_alias(sys_dup,rump_enosys)
    704  1.41.2.3     rmind 
    705  1.41.2.3     rmind gid_t rump___sysimpl_getegid(void);
    706  1.41.2.3     rmind gid_t
    707  1.41.2.3     rmind rump___sysimpl_getegid(void )
    708  1.41.2.3     rmind {
    709  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    710  1.41.2.3     rmind 	gid_t rv = -1;
    711  1.41.2.3     rmind 
    712  1.41.2.3     rmind 	rsys_syscall(SYS_getegid, NULL, 0, retval);
    713  1.41.2.3     rmind 	if (sizeof(gid_t) > sizeof(register_t))
    714  1.41.2.3     rmind 		rv = *(gid_t *)retval;
    715  1.41.2.3     rmind 	else
    716  1.41.2.3     rmind 		rv = *retval;
    717  1.41.2.3     rmind 	return rv;
    718  1.41.2.3     rmind }
    719  1.41.2.3     rmind rsys_alias(sys_getegid,rump_enosys)
    720  1.41.2.3     rmind 
    721  1.41.2.3     rmind gid_t rump___sysimpl_getgid(void);
    722  1.41.2.3     rmind gid_t
    723  1.41.2.3     rmind rump___sysimpl_getgid(void )
    724  1.41.2.3     rmind {
    725  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    726  1.41.2.3     rmind 	gid_t rv = -1;
    727  1.41.2.3     rmind 
    728  1.41.2.3     rmind 	rsys_syscall(SYS_getgid, NULL, 0, retval);
    729  1.41.2.3     rmind 	if (sizeof(gid_t) > sizeof(register_t))
    730  1.41.2.3     rmind 		rv = *(gid_t *)retval;
    731  1.41.2.3     rmind 	else
    732  1.41.2.3     rmind 		rv = *retval;
    733  1.41.2.3     rmind 	return rv;
    734  1.41.2.3     rmind }
    735  1.41.2.3     rmind rsys_alias(sys_getgid_with_egid,rump_enosys)
    736  1.41.2.3     rmind 
    737  1.41.2.3     rmind int rump___sysimpl___getlogin(char *, size_t);
    738  1.41.2.3     rmind int
    739  1.41.2.3     rmind rump___sysimpl___getlogin(char * namebuf, size_t namelen)
    740  1.41.2.3     rmind {
    741  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    742  1.41.2.3     rmind 	int error = 0;
    743  1.41.2.3     rmind 	int rv = -1;
    744  1.41.2.3     rmind 	struct sys___getlogin_args callarg;
    745  1.41.2.3     rmind 
    746  1.41.2.3     rmind 	SPARG(&callarg, namebuf) = namebuf;
    747  1.41.2.3     rmind 	SPARG(&callarg, namelen) = namelen;
    748  1.41.2.3     rmind 
    749  1.41.2.3     rmind 	error = rsys_syscall(SYS___getlogin, &callarg, sizeof(callarg), retval);
    750  1.41.2.3     rmind 	rsys_seterrno(error);
    751  1.41.2.3     rmind 	if (error == 0) {
    752  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
    753  1.41.2.3     rmind 			rv = *(int *)retval;
    754  1.41.2.3     rmind 		else
    755  1.41.2.3     rmind 			rv = *retval;
    756      1.34     pooka 	}
    757  1.41.2.3     rmind 	return rv;
    758      1.34     pooka }
    759  1.41.2.3     rmind rsys_alias(sys___getlogin,rump_enosys)
    760      1.34     pooka 
    761  1.41.2.3     rmind int rump___sysimpl___setlogin(const char *);
    762       1.1     pooka int
    763  1.41.2.3     rmind rump___sysimpl___setlogin(const char * namebuf)
    764      1.19     pooka {
    765  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    766      1.27     pooka 	int error = 0;
    767  1.41.2.3     rmind 	int rv = -1;
    768  1.41.2.3     rmind 	struct sys___setlogin_args callarg;
    769  1.41.2.3     rmind 
    770  1.41.2.3     rmind 	SPARG(&callarg, namebuf) = namebuf;
    771  1.41.2.3     rmind 
    772  1.41.2.3     rmind 	error = rsys_syscall(SYS___setlogin, &callarg, sizeof(callarg), retval);
    773  1.41.2.3     rmind 	rsys_seterrno(error);
    774  1.41.2.3     rmind 	if (error == 0) {
    775  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
    776  1.41.2.3     rmind 			rv = *(int *)retval;
    777  1.41.2.3     rmind 		else
    778  1.41.2.3     rmind 			rv = *retval;
    779  1.41.2.3     rmind 	}
    780  1.41.2.3     rmind 	return rv;
    781  1.41.2.3     rmind }
    782  1.41.2.3     rmind rsys_alias(sys___setlogin,rump_enosys)
    783  1.41.2.3     rmind 
    784  1.41.2.3     rmind int rump___sysimpl_ioctl(int, u_long, void *);
    785  1.41.2.3     rmind int
    786  1.41.2.3     rmind rump___sysimpl_ioctl(int fd, u_long com, void * data)
    787  1.41.2.3     rmind {
    788  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    789  1.41.2.3     rmind 	int error = 0;
    790  1.41.2.3     rmind 	int rv = -1;
    791      1.31     pooka 	struct sys_ioctl_args callarg;
    792      1.19     pooka 
    793      1.31     pooka 	SPARG(&callarg, fd) = fd;
    794      1.31     pooka 	SPARG(&callarg, com) = com;
    795      1.31     pooka 	SPARG(&callarg, data) = data;
    796      1.19     pooka 
    797  1.41.2.3     rmind 	error = rsys_syscall(SYS_ioctl, &callarg, sizeof(callarg), retval);
    798  1.41.2.3     rmind 	rsys_seterrno(error);
    799  1.41.2.3     rmind 	if (error == 0) {
    800  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
    801  1.41.2.3     rmind 			rv = *(int *)retval;
    802  1.41.2.3     rmind 		else
    803  1.41.2.3     rmind 			rv = *retval;
    804      1.27     pooka 	}
    805  1.41.2.3     rmind 	return rv;
    806      1.19     pooka }
    807  1.41.2.3     rmind rsys_alias(sys_ioctl,rump_enosys)
    808      1.19     pooka 
    809  1.41.2.3     rmind int rump___sysimpl_revoke(const char *);
    810      1.34     pooka int
    811  1.41.2.3     rmind rump___sysimpl_revoke(const char * path)
    812      1.34     pooka {
    813  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    814      1.34     pooka 	int error = 0;
    815  1.41.2.3     rmind 	int rv = -1;
    816      1.34     pooka 	struct sys_revoke_args callarg;
    817      1.34     pooka 
    818      1.34     pooka 	SPARG(&callarg, path) = path;
    819      1.34     pooka 
    820  1.41.2.3     rmind 	error = rsys_syscall(SYS_revoke, &callarg, sizeof(callarg), retval);
    821  1.41.2.3     rmind 	rsys_seterrno(error);
    822  1.41.2.3     rmind 	if (error == 0) {
    823  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
    824  1.41.2.3     rmind 			rv = *(int *)retval;
    825  1.41.2.3     rmind 		else
    826  1.41.2.3     rmind 			rv = *retval;
    827      1.34     pooka 	}
    828  1.41.2.3     rmind 	return rv;
    829      1.34     pooka }
    830  1.41.2.3     rmind rsys_alias(sys_revoke,rump_enosys)
    831      1.34     pooka 
    832  1.41.2.3     rmind int rump___sysimpl_symlink(const char *, const char *);
    833      1.19     pooka int
    834  1.41.2.3     rmind rump___sysimpl_symlink(const char * path, const char * link)
    835       1.1     pooka {
    836  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    837      1.27     pooka 	int error = 0;
    838  1.41.2.3     rmind 	int rv = -1;
    839      1.31     pooka 	struct sys_symlink_args callarg;
    840       1.1     pooka 
    841      1.31     pooka 	SPARG(&callarg, path) = path;
    842      1.31     pooka 	SPARG(&callarg, link) = link;
    843       1.1     pooka 
    844  1.41.2.3     rmind 	error = rsys_syscall(SYS_symlink, &callarg, sizeof(callarg), retval);
    845  1.41.2.3     rmind 	rsys_seterrno(error);
    846  1.41.2.3     rmind 	if (error == 0) {
    847  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
    848  1.41.2.3     rmind 			rv = *(int *)retval;
    849  1.41.2.3     rmind 		else
    850  1.41.2.3     rmind 			rv = *retval;
    851      1.27     pooka 	}
    852  1.41.2.3     rmind 	return rv;
    853       1.1     pooka }
    854  1.41.2.3     rmind rsys_alias(sys_symlink,rump_enosys)
    855       1.1     pooka 
    856  1.41.2.3     rmind ssize_t rump___sysimpl_readlink(const char *, char *, size_t);
    857       1.1     pooka ssize_t
    858  1.41.2.3     rmind rump___sysimpl_readlink(const char * path, char * buf, size_t count)
    859       1.1     pooka {
    860  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    861      1.27     pooka 	int error = 0;
    862  1.41.2.3     rmind 	ssize_t rv = -1;
    863      1.31     pooka 	struct sys_readlink_args callarg;
    864       1.1     pooka 
    865      1.31     pooka 	SPARG(&callarg, path) = path;
    866      1.31     pooka 	SPARG(&callarg, buf) = buf;
    867      1.31     pooka 	SPARG(&callarg, count) = count;
    868       1.1     pooka 
    869  1.41.2.3     rmind 	error = rsys_syscall(SYS_readlink, &callarg, sizeof(callarg), retval);
    870  1.41.2.3     rmind 	rsys_seterrno(error);
    871  1.41.2.3     rmind 	if (error == 0) {
    872  1.41.2.3     rmind 		if (sizeof(ssize_t) > sizeof(register_t))
    873  1.41.2.3     rmind 			rv = *(ssize_t *)retval;
    874  1.41.2.3     rmind 		else
    875  1.41.2.3     rmind 			rv = *retval;
    876  1.41.2.3     rmind 	}
    877  1.41.2.3     rmind 	return rv;
    878  1.41.2.3     rmind }
    879  1.41.2.3     rmind rsys_alias(sys_readlink,rump_enosys)
    880  1.41.2.3     rmind 
    881  1.41.2.3     rmind mode_t rump___sysimpl_umask(mode_t);
    882  1.41.2.3     rmind mode_t
    883  1.41.2.3     rmind rump___sysimpl_umask(mode_t newmask)
    884  1.41.2.3     rmind {
    885  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    886  1.41.2.3     rmind 	int error = 0;
    887  1.41.2.3     rmind 	mode_t rv = -1;
    888  1.41.2.3     rmind 	struct sys_umask_args callarg;
    889  1.41.2.3     rmind 
    890  1.41.2.3     rmind 	SPARG(&callarg, newmask) = newmask;
    891  1.41.2.3     rmind 
    892  1.41.2.3     rmind 	error = rsys_syscall(SYS_umask, &callarg, sizeof(callarg), retval);
    893  1.41.2.3     rmind 	rsys_seterrno(error);
    894  1.41.2.3     rmind 	if (error == 0) {
    895  1.41.2.3     rmind 		if (sizeof(mode_t) > sizeof(register_t))
    896  1.41.2.3     rmind 			rv = *(mode_t *)retval;
    897  1.41.2.3     rmind 		else
    898  1.41.2.3     rmind 			rv = *retval;
    899      1.27     pooka 	}
    900  1.41.2.3     rmind 	return rv;
    901       1.1     pooka }
    902  1.41.2.3     rmind rsys_alias(sys_umask,rump_enosys)
    903       1.1     pooka 
    904  1.41.2.3     rmind int rump___sysimpl_chroot(const char *);
    905      1.34     pooka int
    906  1.41.2.3     rmind rump___sysimpl_chroot(const char * path)
    907      1.34     pooka {
    908  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    909      1.34     pooka 	int error = 0;
    910  1.41.2.3     rmind 	int rv = -1;
    911      1.34     pooka 	struct sys_chroot_args callarg;
    912      1.34     pooka 
    913      1.34     pooka 	SPARG(&callarg, path) = path;
    914      1.34     pooka 
    915  1.41.2.3     rmind 	error = rsys_syscall(SYS_chroot, &callarg, sizeof(callarg), retval);
    916  1.41.2.3     rmind 	rsys_seterrno(error);
    917  1.41.2.3     rmind 	if (error == 0) {
    918  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
    919  1.41.2.3     rmind 			rv = *(int *)retval;
    920  1.41.2.3     rmind 		else
    921  1.41.2.3     rmind 			rv = *retval;
    922  1.41.2.3     rmind 	}
    923  1.41.2.3     rmind 	return rv;
    924  1.41.2.3     rmind }
    925  1.41.2.3     rmind rsys_alias(sys_chroot,rump_enosys)
    926  1.41.2.3     rmind 
    927  1.41.2.3     rmind int rump___sysimpl_getgroups(int, gid_t *);
    928  1.41.2.3     rmind int
    929  1.41.2.3     rmind rump___sysimpl_getgroups(int gidsetsize, gid_t * gidset)
    930  1.41.2.3     rmind {
    931  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    932  1.41.2.3     rmind 	int error = 0;
    933  1.41.2.3     rmind 	int rv = -1;
    934  1.41.2.3     rmind 	struct sys_getgroups_args callarg;
    935  1.41.2.3     rmind 
    936  1.41.2.3     rmind 	SPARG(&callarg, gidsetsize) = gidsetsize;
    937  1.41.2.3     rmind 	SPARG(&callarg, gidset) = gidset;
    938  1.41.2.3     rmind 
    939  1.41.2.3     rmind 	error = rsys_syscall(SYS_getgroups, &callarg, sizeof(callarg), retval);
    940  1.41.2.3     rmind 	rsys_seterrno(error);
    941  1.41.2.3     rmind 	if (error == 0) {
    942  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
    943  1.41.2.3     rmind 			rv = *(int *)retval;
    944  1.41.2.3     rmind 		else
    945  1.41.2.3     rmind 			rv = *retval;
    946  1.41.2.3     rmind 	}
    947  1.41.2.3     rmind 	return rv;
    948  1.41.2.3     rmind }
    949  1.41.2.3     rmind rsys_alias(sys_getgroups,rump_enosys)
    950  1.41.2.3     rmind 
    951  1.41.2.3     rmind int rump___sysimpl_setgroups(int, const gid_t *);
    952  1.41.2.3     rmind int
    953  1.41.2.3     rmind rump___sysimpl_setgroups(int gidsetsize, const gid_t * gidset)
    954  1.41.2.3     rmind {
    955  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    956  1.41.2.3     rmind 	int error = 0;
    957  1.41.2.3     rmind 	int rv = -1;
    958  1.41.2.3     rmind 	struct sys_setgroups_args callarg;
    959  1.41.2.3     rmind 
    960  1.41.2.3     rmind 	SPARG(&callarg, gidsetsize) = gidsetsize;
    961  1.41.2.3     rmind 	SPARG(&callarg, gidset) = gidset;
    962  1.41.2.3     rmind 
    963  1.41.2.3     rmind 	error = rsys_syscall(SYS_setgroups, &callarg, sizeof(callarg), retval);
    964  1.41.2.3     rmind 	rsys_seterrno(error);
    965  1.41.2.3     rmind 	if (error == 0) {
    966  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
    967  1.41.2.3     rmind 			rv = *(int *)retval;
    968  1.41.2.3     rmind 		else
    969  1.41.2.3     rmind 			rv = *retval;
    970  1.41.2.3     rmind 	}
    971  1.41.2.3     rmind 	return rv;
    972  1.41.2.3     rmind }
    973  1.41.2.3     rmind rsys_alias(sys_setgroups,rump_enosys)
    974  1.41.2.3     rmind 
    975  1.41.2.3     rmind int rump___sysimpl_getpgrp(void);
    976  1.41.2.3     rmind int
    977  1.41.2.3     rmind rump___sysimpl_getpgrp(void )
    978  1.41.2.3     rmind {
    979  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
    980  1.41.2.3     rmind 	int error = 0;
    981  1.41.2.3     rmind 	int rv = -1;
    982  1.41.2.3     rmind 
    983  1.41.2.3     rmind 	error = rsys_syscall(SYS_getpgrp, NULL, 0, retval);
    984  1.41.2.3     rmind 	rsys_seterrno(error);
    985  1.41.2.3     rmind 	if (error == 0) {
    986  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
    987  1.41.2.3     rmind 			rv = *(int *)retval;
    988  1.41.2.3     rmind 		else
    989  1.41.2.3     rmind 			rv = *retval;
    990  1.41.2.3     rmind 	}
    991  1.41.2.3     rmind 	return rv;
    992  1.41.2.3     rmind }
    993  1.41.2.3     rmind rsys_alias(sys_getpgrp,rump_enosys)
    994  1.41.2.3     rmind 
    995  1.41.2.3     rmind int rump___sysimpl_setpgid(pid_t, pid_t);
    996  1.41.2.3     rmind int
    997  1.41.2.3     rmind rump___sysimpl_setpgid(pid_t pid, pid_t pgid)
    998  1.41.2.3     rmind {
    999  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1000  1.41.2.3     rmind 	int error = 0;
   1001  1.41.2.3     rmind 	int rv = -1;
   1002  1.41.2.3     rmind 	struct sys_setpgid_args callarg;
   1003  1.41.2.3     rmind 
   1004  1.41.2.3     rmind 	SPARG(&callarg, pid) = pid;
   1005  1.41.2.3     rmind 	SPARG(&callarg, pgid) = pgid;
   1006  1.41.2.3     rmind 
   1007  1.41.2.3     rmind 	error = rsys_syscall(SYS_setpgid, &callarg, sizeof(callarg), retval);
   1008  1.41.2.3     rmind 	rsys_seterrno(error);
   1009  1.41.2.3     rmind 	if (error == 0) {
   1010  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1011  1.41.2.3     rmind 			rv = *(int *)retval;
   1012  1.41.2.3     rmind 		else
   1013  1.41.2.3     rmind 			rv = *retval;
   1014      1.34     pooka 	}
   1015  1.41.2.3     rmind 	return rv;
   1016      1.34     pooka }
   1017  1.41.2.3     rmind rsys_alias(sys_setpgid,rump_enosys)
   1018      1.34     pooka 
   1019  1.41.2.3     rmind int rump___sysimpl_dup2(int, int);
   1020      1.34     pooka int
   1021  1.41.2.3     rmind rump___sysimpl_dup2(int from, int to)
   1022      1.34     pooka {
   1023  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1024      1.34     pooka 	int error = 0;
   1025  1.41.2.3     rmind 	int rv = -1;
   1026      1.34     pooka 	struct sys_dup2_args callarg;
   1027      1.34     pooka 
   1028      1.34     pooka 	SPARG(&callarg, from) = from;
   1029      1.34     pooka 	SPARG(&callarg, to) = to;
   1030      1.34     pooka 
   1031  1.41.2.3     rmind 	error = rsys_syscall(SYS_dup2, &callarg, sizeof(callarg), retval);
   1032  1.41.2.3     rmind 	rsys_seterrno(error);
   1033  1.41.2.3     rmind 	if (error == 0) {
   1034  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1035  1.41.2.3     rmind 			rv = *(int *)retval;
   1036  1.41.2.3     rmind 		else
   1037  1.41.2.3     rmind 			rv = *retval;
   1038      1.34     pooka 	}
   1039  1.41.2.3     rmind 	return rv;
   1040      1.34     pooka }
   1041  1.41.2.3     rmind rsys_alias(sys_dup2,rump_enosys)
   1042      1.34     pooka 
   1043  1.41.2.3     rmind int rump___sysimpl_fcntl(int, int, void *);
   1044      1.34     pooka int
   1045  1.41.2.3     rmind rump___sysimpl_fcntl(int fd, int cmd, void * arg)
   1046      1.34     pooka {
   1047  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1048      1.34     pooka 	int error = 0;
   1049  1.41.2.3     rmind 	int rv = -1;
   1050      1.34     pooka 	struct sys_fcntl_args callarg;
   1051      1.34     pooka 
   1052      1.34     pooka 	SPARG(&callarg, fd) = fd;
   1053      1.34     pooka 	SPARG(&callarg, cmd) = cmd;
   1054      1.34     pooka 	SPARG(&callarg, arg) = arg;
   1055      1.34     pooka 
   1056  1.41.2.3     rmind 	error = rsys_syscall(SYS_fcntl, &callarg, sizeof(callarg), retval);
   1057  1.41.2.3     rmind 	rsys_seterrno(error);
   1058  1.41.2.3     rmind 	if (error == 0) {
   1059  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1060  1.41.2.3     rmind 			rv = *(int *)retval;
   1061  1.41.2.3     rmind 		else
   1062  1.41.2.3     rmind 			rv = *retval;
   1063  1.41.2.3     rmind 	}
   1064  1.41.2.3     rmind 	return rv;
   1065  1.41.2.3     rmind }
   1066  1.41.2.3     rmind rsys_alias(sys_fcntl,rump_enosys)
   1067  1.41.2.3     rmind 
   1068  1.41.2.3     rmind int rump___sysimpl_select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
   1069  1.41.2.3     rmind int
   1070  1.41.2.3     rmind rump___sysimpl_select(int nd, fd_set * in, fd_set * ou, fd_set * ex, struct timeval * tv)
   1071  1.41.2.3     rmind {
   1072  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1073  1.41.2.3     rmind 	int error = 0;
   1074  1.41.2.3     rmind 	int rv = -1;
   1075  1.41.2.3     rmind 	struct compat_50_sys_select_args callarg;
   1076  1.41.2.3     rmind 
   1077  1.41.2.3     rmind 	SPARG(&callarg, nd) = nd;
   1078  1.41.2.3     rmind 	SPARG(&callarg, in) = in;
   1079  1.41.2.3     rmind 	SPARG(&callarg, ou) = ou;
   1080  1.41.2.3     rmind 	SPARG(&callarg, ex) = ex;
   1081  1.41.2.3     rmind 	SPARG(&callarg, tv) = (struct timeval50 *)tv;
   1082  1.41.2.3     rmind 
   1083  1.41.2.3     rmind 	error = rsys_syscall(SYS_compat_50_select, &callarg, sizeof(callarg), retval);
   1084  1.41.2.3     rmind 	rsys_seterrno(error);
   1085  1.41.2.3     rmind 	if (error == 0) {
   1086  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1087  1.41.2.3     rmind 			rv = *(int *)retval;
   1088  1.41.2.3     rmind 		else
   1089  1.41.2.3     rmind 			rv = *retval;
   1090      1.34     pooka 	}
   1091  1.41.2.3     rmind 	return rv;
   1092      1.34     pooka }
   1093  1.41.2.3     rmind rsys_alias(compat_50_sys_select,rump_enosys)
   1094      1.34     pooka 
   1095  1.41.2.3     rmind int rump___sysimpl_fsync(int);
   1096       1.1     pooka int
   1097  1.41.2.3     rmind rump___sysimpl_fsync(int fd)
   1098      1.12     pooka {
   1099  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1100      1.27     pooka 	int error = 0;
   1101  1.41.2.3     rmind 	int rv = -1;
   1102      1.31     pooka 	struct sys_fsync_args callarg;
   1103      1.12     pooka 
   1104      1.31     pooka 	SPARG(&callarg, fd) = fd;
   1105      1.12     pooka 
   1106  1.41.2.3     rmind 	error = rsys_syscall(SYS_fsync, &callarg, sizeof(callarg), retval);
   1107  1.41.2.3     rmind 	rsys_seterrno(error);
   1108  1.41.2.3     rmind 	if (error == 0) {
   1109  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1110  1.41.2.3     rmind 			rv = *(int *)retval;
   1111  1.41.2.3     rmind 		else
   1112  1.41.2.3     rmind 			rv = *retval;
   1113      1.27     pooka 	}
   1114  1.41.2.3     rmind 	return rv;
   1115      1.12     pooka }
   1116  1.41.2.3     rmind rsys_alias(sys_fsync,rump_enosys)
   1117      1.12     pooka 
   1118  1.41.2.3     rmind int rump___sysimpl_connect(int, const struct sockaddr *, unsigned int);
   1119      1.12     pooka int
   1120  1.41.2.3     rmind rump___sysimpl_connect(int s, const struct sockaddr * name, unsigned int namelen)
   1121      1.18     pooka {
   1122  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1123      1.27     pooka 	int error = 0;
   1124  1.41.2.3     rmind 	int rv = -1;
   1125      1.31     pooka 	struct sys_connect_args callarg;
   1126      1.18     pooka 
   1127      1.31     pooka 	SPARG(&callarg, s) = s;
   1128      1.31     pooka 	SPARG(&callarg, name) = name;
   1129      1.31     pooka 	SPARG(&callarg, namelen) = namelen;
   1130      1.18     pooka 
   1131  1.41.2.3     rmind 	error = rsys_syscall(SYS_connect, &callarg, sizeof(callarg), retval);
   1132  1.41.2.3     rmind 	rsys_seterrno(error);
   1133  1.41.2.3     rmind 	if (error == 0) {
   1134  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1135  1.41.2.3     rmind 			rv = *(int *)retval;
   1136  1.41.2.3     rmind 		else
   1137  1.41.2.3     rmind 			rv = *retval;
   1138      1.27     pooka 	}
   1139  1.41.2.3     rmind 	return rv;
   1140      1.18     pooka }
   1141  1.41.2.3     rmind rsys_alias(sys_connect,rump_enosys)
   1142      1.18     pooka 
   1143  1.41.2.3     rmind int rump___sysimpl_bind(int, const struct sockaddr *, unsigned int);
   1144      1.18     pooka int
   1145  1.41.2.3     rmind rump___sysimpl_bind(int s, const struct sockaddr * name, unsigned int namelen)
   1146      1.22     pooka {
   1147  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1148      1.27     pooka 	int error = 0;
   1149  1.41.2.3     rmind 	int rv = -1;
   1150      1.31     pooka 	struct sys_bind_args callarg;
   1151      1.22     pooka 
   1152      1.31     pooka 	SPARG(&callarg, s) = s;
   1153      1.31     pooka 	SPARG(&callarg, name) = name;
   1154      1.31     pooka 	SPARG(&callarg, namelen) = namelen;
   1155      1.22     pooka 
   1156  1.41.2.3     rmind 	error = rsys_syscall(SYS_bind, &callarg, sizeof(callarg), retval);
   1157  1.41.2.3     rmind 	rsys_seterrno(error);
   1158  1.41.2.3     rmind 	if (error == 0) {
   1159  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1160  1.41.2.3     rmind 			rv = *(int *)retval;
   1161  1.41.2.3     rmind 		else
   1162  1.41.2.3     rmind 			rv = *retval;
   1163      1.27     pooka 	}
   1164  1.41.2.3     rmind 	return rv;
   1165      1.22     pooka }
   1166  1.41.2.3     rmind rsys_alias(sys_bind,rump_enosys)
   1167      1.22     pooka 
   1168  1.41.2.3     rmind int rump___sysimpl_setsockopt(int, int, int, const void *, unsigned int);
   1169      1.22     pooka int
   1170  1.41.2.3     rmind rump___sysimpl_setsockopt(int s, int level, int name, const void * val, unsigned int valsize)
   1171      1.18     pooka {
   1172  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1173      1.27     pooka 	int error = 0;
   1174  1.41.2.3     rmind 	int rv = -1;
   1175      1.31     pooka 	struct sys_setsockopt_args callarg;
   1176      1.18     pooka 
   1177      1.31     pooka 	SPARG(&callarg, s) = s;
   1178      1.31     pooka 	SPARG(&callarg, level) = level;
   1179      1.31     pooka 	SPARG(&callarg, name) = name;
   1180      1.31     pooka 	SPARG(&callarg, val) = val;
   1181      1.31     pooka 	SPARG(&callarg, valsize) = valsize;
   1182      1.18     pooka 
   1183  1.41.2.3     rmind 	error = rsys_syscall(SYS_setsockopt, &callarg, sizeof(callarg), retval);
   1184  1.41.2.3     rmind 	rsys_seterrno(error);
   1185  1.41.2.3     rmind 	if (error == 0) {
   1186  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1187  1.41.2.3     rmind 			rv = *(int *)retval;
   1188  1.41.2.3     rmind 		else
   1189  1.41.2.3     rmind 			rv = *retval;
   1190      1.27     pooka 	}
   1191  1.41.2.3     rmind 	return rv;
   1192      1.18     pooka }
   1193  1.41.2.3     rmind rsys_alias(sys_setsockopt,rump_enosys)
   1194      1.18     pooka 
   1195  1.41.2.3     rmind int rump___sysimpl_listen(int, int);
   1196      1.18     pooka int
   1197  1.41.2.3     rmind rump___sysimpl_listen(int s, int backlog)
   1198      1.22     pooka {
   1199  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1200      1.27     pooka 	int error = 0;
   1201  1.41.2.3     rmind 	int rv = -1;
   1202      1.31     pooka 	struct sys_listen_args callarg;
   1203      1.22     pooka 
   1204      1.31     pooka 	SPARG(&callarg, s) = s;
   1205      1.31     pooka 	SPARG(&callarg, backlog) = backlog;
   1206      1.22     pooka 
   1207  1.41.2.3     rmind 	error = rsys_syscall(SYS_listen, &callarg, sizeof(callarg), retval);
   1208  1.41.2.3     rmind 	rsys_seterrno(error);
   1209  1.41.2.3     rmind 	if (error == 0) {
   1210  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1211  1.41.2.3     rmind 			rv = *(int *)retval;
   1212  1.41.2.3     rmind 		else
   1213  1.41.2.3     rmind 			rv = *retval;
   1214      1.27     pooka 	}
   1215  1.41.2.3     rmind 	return rv;
   1216      1.22     pooka }
   1217  1.41.2.3     rmind rsys_alias(sys_listen,rump_enosys)
   1218      1.22     pooka 
   1219  1.41.2.3     rmind int rump___sysimpl_getsockopt(int, int, int, void *, unsigned int *);
   1220      1.22     pooka int
   1221  1.41.2.3     rmind rump___sysimpl_getsockopt(int s, int level, int name, void * val, unsigned int * avalsize)
   1222      1.18     pooka {
   1223  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1224      1.27     pooka 	int error = 0;
   1225  1.41.2.3     rmind 	int rv = -1;
   1226      1.31     pooka 	struct sys_getsockopt_args callarg;
   1227      1.18     pooka 
   1228      1.31     pooka 	SPARG(&callarg, s) = s;
   1229      1.31     pooka 	SPARG(&callarg, level) = level;
   1230      1.31     pooka 	SPARG(&callarg, name) = name;
   1231      1.31     pooka 	SPARG(&callarg, val) = val;
   1232      1.31     pooka 	SPARG(&callarg, avalsize) = avalsize;
   1233      1.18     pooka 
   1234  1.41.2.3     rmind 	error = rsys_syscall(SYS_getsockopt, &callarg, sizeof(callarg), retval);
   1235  1.41.2.3     rmind 	rsys_seterrno(error);
   1236  1.41.2.3     rmind 	if (error == 0) {
   1237  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1238  1.41.2.3     rmind 			rv = *(int *)retval;
   1239  1.41.2.3     rmind 		else
   1240  1.41.2.3     rmind 			rv = *retval;
   1241      1.27     pooka 	}
   1242  1.41.2.3     rmind 	return rv;
   1243      1.18     pooka }
   1244  1.41.2.3     rmind rsys_alias(sys_getsockopt,rump_enosys)
   1245      1.18     pooka 
   1246  1.41.2.3     rmind ssize_t rump___sysimpl_readv(int, const struct iovec *, int);
   1247      1.34     pooka ssize_t
   1248  1.41.2.3     rmind rump___sysimpl_readv(int fd, const struct iovec * iovp, int iovcnt)
   1249      1.34     pooka {
   1250  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1251      1.34     pooka 	int error = 0;
   1252  1.41.2.3     rmind 	ssize_t rv = -1;
   1253      1.34     pooka 	struct sys_readv_args callarg;
   1254      1.34     pooka 
   1255      1.34     pooka 	SPARG(&callarg, fd) = fd;
   1256      1.34     pooka 	SPARG(&callarg, iovp) = iovp;
   1257      1.34     pooka 	SPARG(&callarg, iovcnt) = iovcnt;
   1258      1.34     pooka 
   1259  1.41.2.3     rmind 	error = rsys_syscall(SYS_readv, &callarg, sizeof(callarg), retval);
   1260  1.41.2.3     rmind 	rsys_seterrno(error);
   1261  1.41.2.3     rmind 	if (error == 0) {
   1262  1.41.2.3     rmind 		if (sizeof(ssize_t) > sizeof(register_t))
   1263  1.41.2.3     rmind 			rv = *(ssize_t *)retval;
   1264  1.41.2.3     rmind 		else
   1265  1.41.2.3     rmind 			rv = *retval;
   1266      1.34     pooka 	}
   1267  1.41.2.3     rmind 	return rv;
   1268      1.34     pooka }
   1269  1.41.2.3     rmind rsys_alias(sys_readv,rump_enosys)
   1270      1.34     pooka 
   1271  1.41.2.3     rmind ssize_t rump___sysimpl_writev(int, const struct iovec *, int);
   1272      1.34     pooka ssize_t
   1273  1.41.2.3     rmind rump___sysimpl_writev(int fd, const struct iovec * iovp, int iovcnt)
   1274      1.34     pooka {
   1275  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1276      1.34     pooka 	int error = 0;
   1277  1.41.2.3     rmind 	ssize_t rv = -1;
   1278      1.34     pooka 	struct sys_writev_args callarg;
   1279      1.34     pooka 
   1280      1.34     pooka 	SPARG(&callarg, fd) = fd;
   1281      1.34     pooka 	SPARG(&callarg, iovp) = iovp;
   1282      1.34     pooka 	SPARG(&callarg, iovcnt) = iovcnt;
   1283      1.34     pooka 
   1284  1.41.2.3     rmind 	error = rsys_syscall(SYS_writev, &callarg, sizeof(callarg), retval);
   1285  1.41.2.3     rmind 	rsys_seterrno(error);
   1286  1.41.2.3     rmind 	if (error == 0) {
   1287  1.41.2.3     rmind 		if (sizeof(ssize_t) > sizeof(register_t))
   1288  1.41.2.3     rmind 			rv = *(ssize_t *)retval;
   1289  1.41.2.3     rmind 		else
   1290  1.41.2.3     rmind 			rv = *retval;
   1291      1.34     pooka 	}
   1292  1.41.2.3     rmind 	return rv;
   1293      1.34     pooka }
   1294  1.41.2.3     rmind rsys_alias(sys_writev,rump_enosys)
   1295      1.34     pooka 
   1296  1.41.2.3     rmind int rump___sysimpl_fchown(int, uid_t, gid_t);
   1297      1.34     pooka int
   1298  1.41.2.3     rmind rump___sysimpl_fchown(int fd, uid_t uid, gid_t gid)
   1299      1.34     pooka {
   1300  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1301      1.34     pooka 	int error = 0;
   1302  1.41.2.3     rmind 	int rv = -1;
   1303      1.34     pooka 	struct sys_fchown_args callarg;
   1304      1.34     pooka 
   1305      1.34     pooka 	SPARG(&callarg, fd) = fd;
   1306      1.34     pooka 	SPARG(&callarg, uid) = uid;
   1307      1.34     pooka 	SPARG(&callarg, gid) = gid;
   1308      1.34     pooka 
   1309  1.41.2.3     rmind 	error = rsys_syscall(SYS_fchown, &callarg, sizeof(callarg), retval);
   1310  1.41.2.3     rmind 	rsys_seterrno(error);
   1311  1.41.2.3     rmind 	if (error == 0) {
   1312  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1313  1.41.2.3     rmind 			rv = *(int *)retval;
   1314  1.41.2.3     rmind 		else
   1315  1.41.2.3     rmind 			rv = *retval;
   1316      1.34     pooka 	}
   1317  1.41.2.3     rmind 	return rv;
   1318      1.34     pooka }
   1319  1.41.2.3     rmind rsys_alias(sys_fchown,rump_enosys)
   1320      1.34     pooka 
   1321  1.41.2.3     rmind int rump___sysimpl_fchmod(int, mode_t);
   1322      1.34     pooka int
   1323  1.41.2.3     rmind rump___sysimpl_fchmod(int fd, mode_t mode)
   1324      1.34     pooka {
   1325  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1326      1.34     pooka 	int error = 0;
   1327  1.41.2.3     rmind 	int rv = -1;
   1328      1.34     pooka 	struct sys_fchmod_args callarg;
   1329      1.34     pooka 
   1330      1.34     pooka 	SPARG(&callarg, fd) = fd;
   1331      1.34     pooka 	SPARG(&callarg, mode) = mode;
   1332      1.34     pooka 
   1333  1.41.2.3     rmind 	error = rsys_syscall(SYS_fchmod, &callarg, sizeof(callarg), retval);
   1334  1.41.2.3     rmind 	rsys_seterrno(error);
   1335  1.41.2.3     rmind 	if (error == 0) {
   1336  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1337  1.41.2.3     rmind 			rv = *(int *)retval;
   1338  1.41.2.3     rmind 		else
   1339  1.41.2.3     rmind 			rv = *retval;
   1340  1.41.2.3     rmind 	}
   1341  1.41.2.3     rmind 	return rv;
   1342  1.41.2.3     rmind }
   1343  1.41.2.3     rmind rsys_alias(sys_fchmod,rump_enosys)
   1344  1.41.2.3     rmind 
   1345  1.41.2.3     rmind int rump___sysimpl_setreuid(uid_t, uid_t);
   1346  1.41.2.3     rmind int
   1347  1.41.2.3     rmind rump___sysimpl_setreuid(uid_t ruid, uid_t euid)
   1348  1.41.2.3     rmind {
   1349  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1350  1.41.2.3     rmind 	int error = 0;
   1351  1.41.2.3     rmind 	int rv = -1;
   1352  1.41.2.3     rmind 	struct sys_setreuid_args callarg;
   1353  1.41.2.3     rmind 
   1354  1.41.2.3     rmind 	SPARG(&callarg, ruid) = ruid;
   1355  1.41.2.3     rmind 	SPARG(&callarg, euid) = euid;
   1356  1.41.2.3     rmind 
   1357  1.41.2.3     rmind 	error = rsys_syscall(SYS_setreuid, &callarg, sizeof(callarg), retval);
   1358  1.41.2.3     rmind 	rsys_seterrno(error);
   1359  1.41.2.3     rmind 	if (error == 0) {
   1360  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1361  1.41.2.3     rmind 			rv = *(int *)retval;
   1362  1.41.2.3     rmind 		else
   1363  1.41.2.3     rmind 			rv = *retval;
   1364  1.41.2.3     rmind 	}
   1365  1.41.2.3     rmind 	return rv;
   1366  1.41.2.3     rmind }
   1367  1.41.2.3     rmind rsys_alias(sys_setreuid,rump_enosys)
   1368  1.41.2.3     rmind 
   1369  1.41.2.3     rmind int rump___sysimpl_setregid(gid_t, gid_t);
   1370  1.41.2.3     rmind int
   1371  1.41.2.3     rmind rump___sysimpl_setregid(gid_t rgid, gid_t egid)
   1372  1.41.2.3     rmind {
   1373  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1374  1.41.2.3     rmind 	int error = 0;
   1375  1.41.2.3     rmind 	int rv = -1;
   1376  1.41.2.3     rmind 	struct sys_setregid_args callarg;
   1377  1.41.2.3     rmind 
   1378  1.41.2.3     rmind 	SPARG(&callarg, rgid) = rgid;
   1379  1.41.2.3     rmind 	SPARG(&callarg, egid) = egid;
   1380  1.41.2.3     rmind 
   1381  1.41.2.3     rmind 	error = rsys_syscall(SYS_setregid, &callarg, sizeof(callarg), retval);
   1382  1.41.2.3     rmind 	rsys_seterrno(error);
   1383  1.41.2.3     rmind 	if (error == 0) {
   1384  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1385  1.41.2.3     rmind 			rv = *(int *)retval;
   1386  1.41.2.3     rmind 		else
   1387  1.41.2.3     rmind 			rv = *retval;
   1388      1.34     pooka 	}
   1389  1.41.2.3     rmind 	return rv;
   1390      1.34     pooka }
   1391  1.41.2.3     rmind rsys_alias(sys_setregid,rump_enosys)
   1392      1.34     pooka 
   1393  1.41.2.3     rmind int rump___sysimpl_rename(const char *, const char *);
   1394      1.18     pooka int
   1395  1.41.2.3     rmind rump___sysimpl_rename(const char * from, const char * to)
   1396       1.1     pooka {
   1397  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1398      1.27     pooka 	int error = 0;
   1399  1.41.2.3     rmind 	int rv = -1;
   1400      1.31     pooka 	struct sys_rename_args callarg;
   1401       1.1     pooka 
   1402      1.31     pooka 	SPARG(&callarg, from) = from;
   1403      1.31     pooka 	SPARG(&callarg, to) = to;
   1404       1.1     pooka 
   1405  1.41.2.3     rmind 	error = rsys_syscall(SYS_rename, &callarg, sizeof(callarg), retval);
   1406  1.41.2.3     rmind 	rsys_seterrno(error);
   1407  1.41.2.3     rmind 	if (error == 0) {
   1408  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1409  1.41.2.3     rmind 			rv = *(int *)retval;
   1410  1.41.2.3     rmind 		else
   1411  1.41.2.3     rmind 			rv = *retval;
   1412      1.27     pooka 	}
   1413  1.41.2.3     rmind 	return rv;
   1414       1.1     pooka }
   1415  1.41.2.3     rmind rsys_alias(sys_rename,rump_enosys)
   1416       1.1     pooka 
   1417  1.41.2.3     rmind int rump___sysimpl_flock(int, int);
   1418      1.34     pooka int
   1419  1.41.2.3     rmind rump___sysimpl_flock(int fd, int how)
   1420      1.34     pooka {
   1421  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1422      1.34     pooka 	int error = 0;
   1423  1.41.2.3     rmind 	int rv = -1;
   1424      1.34     pooka 	struct sys_flock_args callarg;
   1425      1.34     pooka 
   1426      1.34     pooka 	SPARG(&callarg, fd) = fd;
   1427      1.34     pooka 	SPARG(&callarg, how) = how;
   1428      1.34     pooka 
   1429  1.41.2.3     rmind 	error = rsys_syscall(SYS_flock, &callarg, sizeof(callarg), retval);
   1430  1.41.2.3     rmind 	rsys_seterrno(error);
   1431  1.41.2.3     rmind 	if (error == 0) {
   1432  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1433  1.41.2.3     rmind 			rv = *(int *)retval;
   1434  1.41.2.3     rmind 		else
   1435  1.41.2.3     rmind 			rv = *retval;
   1436      1.34     pooka 	}
   1437  1.41.2.3     rmind 	return rv;
   1438      1.34     pooka }
   1439  1.41.2.3     rmind rsys_alias(sys_flock,rump_enosys)
   1440      1.34     pooka 
   1441  1.41.2.3     rmind int rump___sysimpl_mkfifo(const char *, mode_t);
   1442       1.1     pooka int
   1443  1.41.2.3     rmind rump___sysimpl_mkfifo(const char * path, mode_t mode)
   1444      1.10     pooka {
   1445  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1446      1.27     pooka 	int error = 0;
   1447  1.41.2.3     rmind 	int rv = -1;
   1448      1.31     pooka 	struct sys_mkfifo_args callarg;
   1449      1.10     pooka 
   1450      1.31     pooka 	SPARG(&callarg, path) = path;
   1451      1.31     pooka 	SPARG(&callarg, mode) = mode;
   1452      1.10     pooka 
   1453  1.41.2.3     rmind 	error = rsys_syscall(SYS_mkfifo, &callarg, sizeof(callarg), retval);
   1454  1.41.2.3     rmind 	rsys_seterrno(error);
   1455  1.41.2.3     rmind 	if (error == 0) {
   1456  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1457  1.41.2.3     rmind 			rv = *(int *)retval;
   1458  1.41.2.3     rmind 		else
   1459  1.41.2.3     rmind 			rv = *retval;
   1460      1.27     pooka 	}
   1461  1.41.2.3     rmind 	return rv;
   1462      1.10     pooka }
   1463  1.41.2.3     rmind rsys_alias(sys_mkfifo,rump_enosys)
   1464      1.10     pooka 
   1465  1.41.2.3     rmind ssize_t rump___sysimpl_sendto(int, const void *, size_t, int, const struct sockaddr *, unsigned int);
   1466      1.28     pooka ssize_t
   1467  1.41.2.3     rmind rump___sysimpl_sendto(int s, const void * buf, size_t len, int flags, const struct sockaddr * to, unsigned int tolen)
   1468      1.28     pooka {
   1469  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1470      1.28     pooka 	int error = 0;
   1471  1.41.2.3     rmind 	ssize_t rv = -1;
   1472      1.31     pooka 	struct sys_sendto_args callarg;
   1473      1.28     pooka 
   1474      1.31     pooka 	SPARG(&callarg, s) = s;
   1475      1.31     pooka 	SPARG(&callarg, buf) = buf;
   1476      1.31     pooka 	SPARG(&callarg, len) = len;
   1477      1.31     pooka 	SPARG(&callarg, flags) = flags;
   1478      1.31     pooka 	SPARG(&callarg, to) = to;
   1479      1.31     pooka 	SPARG(&callarg, tolen) = tolen;
   1480      1.28     pooka 
   1481  1.41.2.3     rmind 	error = rsys_syscall(SYS_sendto, &callarg, sizeof(callarg), retval);
   1482  1.41.2.3     rmind 	rsys_seterrno(error);
   1483  1.41.2.3     rmind 	if (error == 0) {
   1484  1.41.2.3     rmind 		if (sizeof(ssize_t) > sizeof(register_t))
   1485  1.41.2.3     rmind 			rv = *(ssize_t *)retval;
   1486  1.41.2.3     rmind 		else
   1487  1.41.2.3     rmind 			rv = *retval;
   1488      1.28     pooka 	}
   1489  1.41.2.3     rmind 	return rv;
   1490      1.28     pooka }
   1491  1.41.2.3     rmind rsys_alias(sys_sendto,rump_enosys)
   1492      1.28     pooka 
   1493  1.41.2.3     rmind int rump___sysimpl_shutdown(int, int);
   1494      1.28     pooka int
   1495  1.41.2.3     rmind rump___sysimpl_shutdown(int s, int how)
   1496      1.28     pooka {
   1497  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1498      1.28     pooka 	int error = 0;
   1499  1.41.2.3     rmind 	int rv = -1;
   1500      1.31     pooka 	struct sys_shutdown_args callarg;
   1501      1.28     pooka 
   1502      1.31     pooka 	SPARG(&callarg, s) = s;
   1503      1.31     pooka 	SPARG(&callarg, how) = how;
   1504      1.28     pooka 
   1505  1.41.2.3     rmind 	error = rsys_syscall(SYS_shutdown, &callarg, sizeof(callarg), retval);
   1506  1.41.2.3     rmind 	rsys_seterrno(error);
   1507  1.41.2.3     rmind 	if (error == 0) {
   1508  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1509  1.41.2.3     rmind 			rv = *(int *)retval;
   1510  1.41.2.3     rmind 		else
   1511  1.41.2.3     rmind 			rv = *retval;
   1512      1.28     pooka 	}
   1513  1.41.2.3     rmind 	return rv;
   1514      1.28     pooka }
   1515  1.41.2.3     rmind rsys_alias(sys_shutdown,rump_enosys)
   1516      1.28     pooka 
   1517  1.41.2.3     rmind int rump___sysimpl_socketpair(int, int, int, int *);
   1518      1.28     pooka int
   1519  1.41.2.3     rmind rump___sysimpl_socketpair(int domain, int type, int protocol, int * rsv)
   1520      1.28     pooka {
   1521  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1522      1.28     pooka 	int error = 0;
   1523  1.41.2.3     rmind 	int rv = -1;
   1524      1.31     pooka 	struct sys_socketpair_args callarg;
   1525      1.28     pooka 
   1526      1.31     pooka 	SPARG(&callarg, domain) = domain;
   1527      1.31     pooka 	SPARG(&callarg, type) = type;
   1528      1.31     pooka 	SPARG(&callarg, protocol) = protocol;
   1529      1.31     pooka 	SPARG(&callarg, rsv) = rsv;
   1530      1.28     pooka 
   1531  1.41.2.3     rmind 	error = rsys_syscall(SYS_socketpair, &callarg, sizeof(callarg), retval);
   1532  1.41.2.3     rmind 	rsys_seterrno(error);
   1533  1.41.2.3     rmind 	if (error == 0) {
   1534  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1535  1.41.2.3     rmind 			rv = *(int *)retval;
   1536  1.41.2.3     rmind 		else
   1537  1.41.2.3     rmind 			rv = *retval;
   1538      1.34     pooka 	}
   1539  1.41.2.3     rmind 	return rv;
   1540      1.34     pooka }
   1541  1.41.2.3     rmind rsys_alias(sys_socketpair,rump_enosys)
   1542      1.34     pooka 
   1543  1.41.2.3     rmind int rump___sysimpl_mkdir(const char *, mode_t);
   1544      1.34     pooka int
   1545  1.41.2.3     rmind rump___sysimpl_mkdir(const char * path, mode_t mode)
   1546      1.34     pooka {
   1547  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1548      1.34     pooka 	int error = 0;
   1549  1.41.2.3     rmind 	int rv = -1;
   1550      1.34     pooka 	struct sys_mkdir_args callarg;
   1551      1.34     pooka 
   1552      1.34     pooka 	SPARG(&callarg, path) = path;
   1553      1.34     pooka 	SPARG(&callarg, mode) = mode;
   1554      1.34     pooka 
   1555  1.41.2.3     rmind 	error = rsys_syscall(SYS_mkdir, &callarg, sizeof(callarg), retval);
   1556  1.41.2.3     rmind 	rsys_seterrno(error);
   1557  1.41.2.3     rmind 	if (error == 0) {
   1558  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1559  1.41.2.3     rmind 			rv = *(int *)retval;
   1560  1.41.2.3     rmind 		else
   1561  1.41.2.3     rmind 			rv = *retval;
   1562      1.34     pooka 	}
   1563  1.41.2.3     rmind 	return rv;
   1564      1.34     pooka }
   1565  1.41.2.3     rmind rsys_alias(sys_mkdir,rump_enosys)
   1566      1.34     pooka 
   1567  1.41.2.3     rmind int rump___sysimpl_rmdir(const char *);
   1568      1.34     pooka int
   1569  1.41.2.3     rmind rump___sysimpl_rmdir(const char * path)
   1570      1.34     pooka {
   1571  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1572      1.34     pooka 	int error = 0;
   1573  1.41.2.3     rmind 	int rv = -1;
   1574      1.34     pooka 	struct sys_rmdir_args callarg;
   1575      1.34     pooka 
   1576      1.34     pooka 	SPARG(&callarg, path) = path;
   1577      1.34     pooka 
   1578  1.41.2.3     rmind 	error = rsys_syscall(SYS_rmdir, &callarg, sizeof(callarg), retval);
   1579  1.41.2.3     rmind 	rsys_seterrno(error);
   1580  1.41.2.3     rmind 	if (error == 0) {
   1581  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1582  1.41.2.3     rmind 			rv = *(int *)retval;
   1583  1.41.2.3     rmind 		else
   1584  1.41.2.3     rmind 			rv = *retval;
   1585  1.41.2.3     rmind 	}
   1586  1.41.2.3     rmind 	return rv;
   1587  1.41.2.3     rmind }
   1588  1.41.2.3     rmind rsys_alias(sys_rmdir,rump_enosys)
   1589  1.41.2.3     rmind 
   1590  1.41.2.3     rmind int rump___sysimpl_utimes(const char *, const struct timeval *);
   1591  1.41.2.3     rmind int
   1592  1.41.2.3     rmind rump___sysimpl_utimes(const char * path, const struct timeval * tptr)
   1593  1.41.2.3     rmind {
   1594  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1595  1.41.2.3     rmind 	int error = 0;
   1596  1.41.2.3     rmind 	int rv = -1;
   1597  1.41.2.3     rmind 	struct compat_50_sys_utimes_args callarg;
   1598  1.41.2.3     rmind 
   1599  1.41.2.3     rmind 	SPARG(&callarg, path) = path;
   1600  1.41.2.3     rmind 	SPARG(&callarg, tptr) = (const struct timeval50 *)tptr;
   1601  1.41.2.3     rmind 
   1602  1.41.2.3     rmind 	error = rsys_syscall(SYS_compat_50_utimes, &callarg, sizeof(callarg), retval);
   1603  1.41.2.3     rmind 	rsys_seterrno(error);
   1604  1.41.2.3     rmind 	if (error == 0) {
   1605  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1606  1.41.2.3     rmind 			rv = *(int *)retval;
   1607  1.41.2.3     rmind 		else
   1608  1.41.2.3     rmind 			rv = *retval;
   1609  1.41.2.3     rmind 	}
   1610  1.41.2.3     rmind 	return rv;
   1611  1.41.2.3     rmind }
   1612  1.41.2.3     rmind rsys_alias(compat_50_sys_utimes,rump_enosys)
   1613  1.41.2.3     rmind 
   1614  1.41.2.3     rmind int rump___sysimpl_setsid(void);
   1615  1.41.2.3     rmind int
   1616  1.41.2.3     rmind rump___sysimpl_setsid(void )
   1617  1.41.2.3     rmind {
   1618  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1619  1.41.2.3     rmind 	int error = 0;
   1620  1.41.2.3     rmind 	int rv = -1;
   1621  1.41.2.3     rmind 
   1622  1.41.2.3     rmind 	error = rsys_syscall(SYS_setsid, NULL, 0, retval);
   1623  1.41.2.3     rmind 	rsys_seterrno(error);
   1624  1.41.2.3     rmind 	if (error == 0) {
   1625  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1626  1.41.2.3     rmind 			rv = *(int *)retval;
   1627  1.41.2.3     rmind 		else
   1628  1.41.2.3     rmind 			rv = *retval;
   1629      1.34     pooka 	}
   1630  1.41.2.3     rmind 	return rv;
   1631      1.34     pooka }
   1632  1.41.2.3     rmind rsys_alias(sys_setsid,rump_enosys)
   1633      1.34     pooka 
   1634  1.41.2.3     rmind int rump___sysimpl_nfssvc(int, void *);
   1635      1.34     pooka int
   1636  1.41.2.3     rmind rump___sysimpl_nfssvc(int flag, void * argp)
   1637      1.34     pooka {
   1638  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1639      1.34     pooka 	int error = 0;
   1640  1.41.2.3     rmind 	int rv = -1;
   1641      1.34     pooka 	struct sys_nfssvc_args callarg;
   1642      1.34     pooka 
   1643      1.34     pooka 	SPARG(&callarg, flag) = flag;
   1644      1.34     pooka 	SPARG(&callarg, argp) = argp;
   1645      1.34     pooka 
   1646  1.41.2.3     rmind 	error = rsys_syscall(SYS_nfssvc, &callarg, sizeof(callarg), retval);
   1647  1.41.2.3     rmind 	rsys_seterrno(error);
   1648  1.41.2.3     rmind 	if (error == 0) {
   1649  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1650  1.41.2.3     rmind 			rv = *(int *)retval;
   1651  1.41.2.3     rmind 		else
   1652  1.41.2.3     rmind 			rv = *retval;
   1653      1.34     pooka 	}
   1654  1.41.2.3     rmind 	return rv;
   1655      1.34     pooka }
   1656  1.41.2.3     rmind rsys_alias(sys_nfssvc,rump_enosys)
   1657      1.34     pooka 
   1658  1.41.2.3     rmind ssize_t rump___sysimpl_pread(int, void *, size_t, off_t);
   1659      1.34     pooka ssize_t
   1660  1.41.2.3     rmind rump___sysimpl_pread(int fd, void * buf, size_t nbyte, off_t offset)
   1661      1.34     pooka {
   1662  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1663      1.34     pooka 	int error = 0;
   1664  1.41.2.3     rmind 	ssize_t rv = -1;
   1665      1.34     pooka 	struct sys_pread_args callarg;
   1666      1.34     pooka 
   1667      1.34     pooka 	SPARG(&callarg, fd) = fd;
   1668      1.34     pooka 	SPARG(&callarg, buf) = buf;
   1669      1.34     pooka 	SPARG(&callarg, nbyte) = nbyte;
   1670      1.35     pooka 	SPARG(&callarg, PAD) = 0;
   1671      1.34     pooka 	SPARG(&callarg, offset) = offset;
   1672      1.34     pooka 
   1673  1.41.2.3     rmind 	error = rsys_syscall(SYS_pread, &callarg, sizeof(callarg), retval);
   1674  1.41.2.3     rmind 	rsys_seterrno(error);
   1675  1.41.2.3     rmind 	if (error == 0) {
   1676  1.41.2.3     rmind 		if (sizeof(ssize_t) > sizeof(register_t))
   1677  1.41.2.3     rmind 			rv = *(ssize_t *)retval;
   1678  1.41.2.3     rmind 		else
   1679  1.41.2.3     rmind 			rv = *retval;
   1680      1.34     pooka 	}
   1681  1.41.2.3     rmind 	return rv;
   1682      1.34     pooka }
   1683  1.41.2.3     rmind rsys_alias(sys_pread,rump_enosys)
   1684      1.34     pooka 
   1685  1.41.2.3     rmind ssize_t rump___sysimpl_pwrite(int, const void *, size_t, off_t);
   1686      1.34     pooka ssize_t
   1687  1.41.2.3     rmind rump___sysimpl_pwrite(int fd, const void * buf, size_t nbyte, off_t offset)
   1688      1.34     pooka {
   1689  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1690      1.34     pooka 	int error = 0;
   1691  1.41.2.3     rmind 	ssize_t rv = -1;
   1692      1.34     pooka 	struct sys_pwrite_args callarg;
   1693      1.34     pooka 
   1694      1.34     pooka 	SPARG(&callarg, fd) = fd;
   1695      1.34     pooka 	SPARG(&callarg, buf) = buf;
   1696      1.34     pooka 	SPARG(&callarg, nbyte) = nbyte;
   1697      1.35     pooka 	SPARG(&callarg, PAD) = 0;
   1698      1.34     pooka 	SPARG(&callarg, offset) = offset;
   1699      1.34     pooka 
   1700  1.41.2.3     rmind 	error = rsys_syscall(SYS_pwrite, &callarg, sizeof(callarg), retval);
   1701  1.41.2.3     rmind 	rsys_seterrno(error);
   1702  1.41.2.3     rmind 	if (error == 0) {
   1703  1.41.2.3     rmind 		if (sizeof(ssize_t) > sizeof(register_t))
   1704  1.41.2.3     rmind 			rv = *(ssize_t *)retval;
   1705  1.41.2.3     rmind 		else
   1706  1.41.2.3     rmind 			rv = *retval;
   1707  1.41.2.3     rmind 	}
   1708  1.41.2.3     rmind 	return rv;
   1709  1.41.2.3     rmind }
   1710  1.41.2.3     rmind rsys_alias(sys_pwrite,rump_enosys)
   1711  1.41.2.3     rmind 
   1712  1.41.2.3     rmind int rump___sysimpl_setgid(gid_t);
   1713  1.41.2.3     rmind int
   1714  1.41.2.3     rmind rump___sysimpl_setgid(gid_t gid)
   1715  1.41.2.3     rmind {
   1716  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1717  1.41.2.3     rmind 	int error = 0;
   1718  1.41.2.3     rmind 	int rv = -1;
   1719  1.41.2.3     rmind 	struct sys_setgid_args callarg;
   1720  1.41.2.3     rmind 
   1721  1.41.2.3     rmind 	SPARG(&callarg, gid) = gid;
   1722  1.41.2.3     rmind 
   1723  1.41.2.3     rmind 	error = rsys_syscall(SYS_setgid, &callarg, sizeof(callarg), retval);
   1724  1.41.2.3     rmind 	rsys_seterrno(error);
   1725  1.41.2.3     rmind 	if (error == 0) {
   1726  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1727  1.41.2.3     rmind 			rv = *(int *)retval;
   1728  1.41.2.3     rmind 		else
   1729  1.41.2.3     rmind 			rv = *retval;
   1730  1.41.2.3     rmind 	}
   1731  1.41.2.3     rmind 	return rv;
   1732  1.41.2.3     rmind }
   1733  1.41.2.3     rmind rsys_alias(sys_setgid,rump_enosys)
   1734  1.41.2.3     rmind 
   1735  1.41.2.3     rmind int rump___sysimpl_setegid(gid_t);
   1736  1.41.2.3     rmind int
   1737  1.41.2.3     rmind rump___sysimpl_setegid(gid_t egid)
   1738  1.41.2.3     rmind {
   1739  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1740  1.41.2.3     rmind 	int error = 0;
   1741  1.41.2.3     rmind 	int rv = -1;
   1742  1.41.2.3     rmind 	struct sys_setegid_args callarg;
   1743  1.41.2.3     rmind 
   1744  1.41.2.3     rmind 	SPARG(&callarg, egid) = egid;
   1745  1.41.2.3     rmind 
   1746  1.41.2.3     rmind 	error = rsys_syscall(SYS_setegid, &callarg, sizeof(callarg), retval);
   1747  1.41.2.3     rmind 	rsys_seterrno(error);
   1748  1.41.2.3     rmind 	if (error == 0) {
   1749  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1750  1.41.2.3     rmind 			rv = *(int *)retval;
   1751  1.41.2.3     rmind 		else
   1752  1.41.2.3     rmind 			rv = *retval;
   1753  1.41.2.3     rmind 	}
   1754  1.41.2.3     rmind 	return rv;
   1755  1.41.2.3     rmind }
   1756  1.41.2.3     rmind rsys_alias(sys_setegid,rump_enosys)
   1757  1.41.2.3     rmind 
   1758  1.41.2.3     rmind int rump___sysimpl_seteuid(uid_t);
   1759  1.41.2.3     rmind int
   1760  1.41.2.3     rmind rump___sysimpl_seteuid(uid_t euid)
   1761  1.41.2.3     rmind {
   1762  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1763  1.41.2.3     rmind 	int error = 0;
   1764  1.41.2.3     rmind 	int rv = -1;
   1765  1.41.2.3     rmind 	struct sys_seteuid_args callarg;
   1766  1.41.2.3     rmind 
   1767  1.41.2.3     rmind 	SPARG(&callarg, euid) = euid;
   1768  1.41.2.3     rmind 
   1769  1.41.2.3     rmind 	error = rsys_syscall(SYS_seteuid, &callarg, sizeof(callarg), retval);
   1770  1.41.2.3     rmind 	rsys_seterrno(error);
   1771  1.41.2.3     rmind 	if (error == 0) {
   1772  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1773  1.41.2.3     rmind 			rv = *(int *)retval;
   1774  1.41.2.3     rmind 		else
   1775  1.41.2.3     rmind 			rv = *retval;
   1776      1.34     pooka 	}
   1777  1.41.2.3     rmind 	return rv;
   1778      1.34     pooka }
   1779  1.41.2.3     rmind rsys_alias(sys_seteuid,rump_enosys)
   1780      1.34     pooka 
   1781  1.41.2.3     rmind long rump___sysimpl_pathconf(const char *, int);
   1782  1.41.2.2     rmind long
   1783  1.41.2.3     rmind rump___sysimpl_pathconf(const char * path, int name)
   1784  1.41.2.2     rmind {
   1785  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1786  1.41.2.2     rmind 	int error = 0;
   1787  1.41.2.3     rmind 	long rv = -1;
   1788  1.41.2.2     rmind 	struct sys_pathconf_args callarg;
   1789  1.41.2.2     rmind 
   1790  1.41.2.2     rmind 	SPARG(&callarg, path) = path;
   1791  1.41.2.2     rmind 	SPARG(&callarg, name) = name;
   1792  1.41.2.2     rmind 
   1793  1.41.2.3     rmind 	error = rsys_syscall(SYS_pathconf, &callarg, sizeof(callarg), retval);
   1794  1.41.2.3     rmind 	rsys_seterrno(error);
   1795  1.41.2.3     rmind 	if (error == 0) {
   1796  1.41.2.3     rmind 		if (sizeof(long) > sizeof(register_t))
   1797  1.41.2.3     rmind 			rv = *(long *)retval;
   1798  1.41.2.3     rmind 		else
   1799  1.41.2.3     rmind 			rv = *retval;
   1800  1.41.2.2     rmind 	}
   1801  1.41.2.3     rmind 	return rv;
   1802  1.41.2.2     rmind }
   1803  1.41.2.3     rmind rsys_alias(sys_pathconf,rump_enosys)
   1804  1.41.2.2     rmind 
   1805  1.41.2.3     rmind long rump___sysimpl_fpathconf(int, int);
   1806  1.41.2.2     rmind long
   1807  1.41.2.3     rmind rump___sysimpl_fpathconf(int fd, int name)
   1808  1.41.2.2     rmind {
   1809  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1810  1.41.2.2     rmind 	int error = 0;
   1811  1.41.2.3     rmind 	long rv = -1;
   1812  1.41.2.2     rmind 	struct sys_fpathconf_args callarg;
   1813  1.41.2.2     rmind 
   1814  1.41.2.2     rmind 	SPARG(&callarg, fd) = fd;
   1815  1.41.2.2     rmind 	SPARG(&callarg, name) = name;
   1816  1.41.2.2     rmind 
   1817  1.41.2.3     rmind 	error = rsys_syscall(SYS_fpathconf, &callarg, sizeof(callarg), retval);
   1818  1.41.2.3     rmind 	rsys_seterrno(error);
   1819  1.41.2.3     rmind 	if (error == 0) {
   1820  1.41.2.3     rmind 		if (sizeof(long) > sizeof(register_t))
   1821  1.41.2.3     rmind 			rv = *(long *)retval;
   1822  1.41.2.3     rmind 		else
   1823  1.41.2.3     rmind 			rv = *retval;
   1824  1.41.2.2     rmind 	}
   1825  1.41.2.3     rmind 	return rv;
   1826  1.41.2.2     rmind }
   1827  1.41.2.3     rmind rsys_alias(sys_fpathconf,rump_enosys)
   1828  1.41.2.2     rmind 
   1829  1.41.2.3     rmind int rump___sysimpl_getrlimit(int, struct rlimit *);
   1830  1.41.2.1     rmind int
   1831  1.41.2.3     rmind rump___sysimpl_getrlimit(int which, struct rlimit * rlp)
   1832  1.41.2.1     rmind {
   1833  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1834  1.41.2.1     rmind 	int error = 0;
   1835  1.41.2.3     rmind 	int rv = -1;
   1836  1.41.2.1     rmind 	struct sys_getrlimit_args callarg;
   1837  1.41.2.1     rmind 
   1838  1.41.2.1     rmind 	SPARG(&callarg, which) = which;
   1839  1.41.2.1     rmind 	SPARG(&callarg, rlp) = rlp;
   1840  1.41.2.1     rmind 
   1841  1.41.2.3     rmind 	error = rsys_syscall(SYS_getrlimit, &callarg, sizeof(callarg), retval);
   1842  1.41.2.3     rmind 	rsys_seterrno(error);
   1843  1.41.2.3     rmind 	if (error == 0) {
   1844  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1845  1.41.2.3     rmind 			rv = *(int *)retval;
   1846  1.41.2.3     rmind 		else
   1847  1.41.2.3     rmind 			rv = *retval;
   1848  1.41.2.1     rmind 	}
   1849  1.41.2.3     rmind 	return rv;
   1850  1.41.2.1     rmind }
   1851  1.41.2.3     rmind rsys_alias(sys_getrlimit,rump_enosys)
   1852  1.41.2.1     rmind 
   1853  1.41.2.3     rmind int rump___sysimpl_setrlimit(int, const struct rlimit *);
   1854  1.41.2.1     rmind int
   1855  1.41.2.3     rmind rump___sysimpl_setrlimit(int which, const struct rlimit * rlp)
   1856  1.41.2.1     rmind {
   1857  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1858  1.41.2.1     rmind 	int error = 0;
   1859  1.41.2.3     rmind 	int rv = -1;
   1860  1.41.2.1     rmind 	struct sys_setrlimit_args callarg;
   1861  1.41.2.1     rmind 
   1862  1.41.2.1     rmind 	SPARG(&callarg, which) = which;
   1863  1.41.2.1     rmind 	SPARG(&callarg, rlp) = rlp;
   1864  1.41.2.1     rmind 
   1865  1.41.2.3     rmind 	error = rsys_syscall(SYS_setrlimit, &callarg, sizeof(callarg), retval);
   1866  1.41.2.3     rmind 	rsys_seterrno(error);
   1867  1.41.2.3     rmind 	if (error == 0) {
   1868  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1869  1.41.2.3     rmind 			rv = *(int *)retval;
   1870  1.41.2.3     rmind 		else
   1871  1.41.2.3     rmind 			rv = *retval;
   1872  1.41.2.1     rmind 	}
   1873  1.41.2.3     rmind 	return rv;
   1874  1.41.2.1     rmind }
   1875  1.41.2.3     rmind rsys_alias(sys_setrlimit,rump_enosys)
   1876  1.41.2.1     rmind 
   1877  1.41.2.3     rmind off_t rump___sysimpl_lseek(int, off_t, int);
   1878      1.34     pooka off_t
   1879  1.41.2.3     rmind rump___sysimpl_lseek(int fd, off_t offset, int whence)
   1880      1.34     pooka {
   1881  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1882      1.34     pooka 	int error = 0;
   1883  1.41.2.3     rmind 	off_t rv = -1;
   1884      1.34     pooka 	struct sys_lseek_args callarg;
   1885      1.34     pooka 
   1886      1.34     pooka 	SPARG(&callarg, fd) = fd;
   1887      1.35     pooka 	SPARG(&callarg, PAD) = 0;
   1888      1.34     pooka 	SPARG(&callarg, offset) = offset;
   1889      1.34     pooka 	SPARG(&callarg, whence) = whence;
   1890      1.34     pooka 
   1891  1.41.2.3     rmind 	error = rsys_syscall(SYS_lseek, &callarg, sizeof(callarg), retval);
   1892  1.41.2.3     rmind 	rsys_seterrno(error);
   1893  1.41.2.3     rmind 	if (error == 0) {
   1894  1.41.2.3     rmind 		if (sizeof(off_t) > sizeof(register_t))
   1895  1.41.2.3     rmind 			rv = *(off_t *)retval;
   1896  1.41.2.3     rmind 		else
   1897  1.41.2.3     rmind 			rv = *retval;
   1898      1.34     pooka 	}
   1899  1.41.2.3     rmind 	return rv;
   1900      1.34     pooka }
   1901  1.41.2.3     rmind rsys_alias(sys_lseek,rump_enosys)
   1902      1.34     pooka 
   1903  1.41.2.3     rmind int rump___sysimpl_truncate(const char *, off_t);
   1904      1.34     pooka int
   1905  1.41.2.3     rmind rump___sysimpl_truncate(const char * path, off_t length)
   1906      1.34     pooka {
   1907  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1908      1.34     pooka 	int error = 0;
   1909  1.41.2.3     rmind 	int rv = -1;
   1910      1.34     pooka 	struct sys_truncate_args callarg;
   1911      1.34     pooka 
   1912      1.34     pooka 	SPARG(&callarg, path) = path;
   1913      1.35     pooka 	SPARG(&callarg, PAD) = 0;
   1914      1.34     pooka 	SPARG(&callarg, length) = length;
   1915      1.34     pooka 
   1916  1.41.2.3     rmind 	error = rsys_syscall(SYS_truncate, &callarg, sizeof(callarg), retval);
   1917  1.41.2.3     rmind 	rsys_seterrno(error);
   1918  1.41.2.3     rmind 	if (error == 0) {
   1919  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1920  1.41.2.3     rmind 			rv = *(int *)retval;
   1921  1.41.2.3     rmind 		else
   1922  1.41.2.3     rmind 			rv = *retval;
   1923      1.34     pooka 	}
   1924  1.41.2.3     rmind 	return rv;
   1925      1.34     pooka }
   1926  1.41.2.3     rmind rsys_alias(sys_truncate,rump_enosys)
   1927      1.34     pooka 
   1928  1.41.2.3     rmind int rump___sysimpl_ftruncate(int, off_t);
   1929      1.34     pooka int
   1930  1.41.2.3     rmind rump___sysimpl_ftruncate(int fd, off_t length)
   1931      1.34     pooka {
   1932  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1933      1.34     pooka 	int error = 0;
   1934  1.41.2.3     rmind 	int rv = -1;
   1935      1.34     pooka 	struct sys_ftruncate_args callarg;
   1936      1.34     pooka 
   1937      1.34     pooka 	SPARG(&callarg, fd) = fd;
   1938      1.35     pooka 	SPARG(&callarg, PAD) = 0;
   1939      1.34     pooka 	SPARG(&callarg, length) = length;
   1940      1.34     pooka 
   1941  1.41.2.3     rmind 	error = rsys_syscall(SYS_ftruncate, &callarg, sizeof(callarg), retval);
   1942  1.41.2.3     rmind 	rsys_seterrno(error);
   1943  1.41.2.3     rmind 	if (error == 0) {
   1944  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1945  1.41.2.3     rmind 			rv = *(int *)retval;
   1946  1.41.2.3     rmind 		else
   1947  1.41.2.3     rmind 			rv = *retval;
   1948      1.34     pooka 	}
   1949  1.41.2.3     rmind 	return rv;
   1950      1.34     pooka }
   1951  1.41.2.3     rmind rsys_alias(sys_ftruncate,rump_enosys)
   1952      1.34     pooka 
   1953  1.41.2.3     rmind int rump___sysimpl___sysctl(const int *, u_int, void *, size_t *, const void *, size_t);
   1954      1.34     pooka int
   1955  1.41.2.3     rmind rump___sysimpl___sysctl(const int * name, u_int namelen, void * old, size_t * oldlenp, const void * new, size_t newlen)
   1956      1.34     pooka {
   1957  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1958      1.34     pooka 	int error = 0;
   1959  1.41.2.3     rmind 	int rv = -1;
   1960      1.34     pooka 	struct sys___sysctl_args callarg;
   1961      1.34     pooka 
   1962      1.34     pooka 	SPARG(&callarg, name) = name;
   1963      1.34     pooka 	SPARG(&callarg, namelen) = namelen;
   1964      1.34     pooka 	SPARG(&callarg, old) = old;
   1965      1.34     pooka 	SPARG(&callarg, oldlenp) = oldlenp;
   1966      1.34     pooka 	SPARG(&callarg, new) = new;
   1967      1.34     pooka 	SPARG(&callarg, newlen) = newlen;
   1968      1.34     pooka 
   1969  1.41.2.3     rmind 	error = rsys_syscall(SYS___sysctl, &callarg, sizeof(callarg), retval);
   1970  1.41.2.3     rmind 	rsys_seterrno(error);
   1971  1.41.2.3     rmind 	if (error == 0) {
   1972  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1973  1.41.2.3     rmind 			rv = *(int *)retval;
   1974  1.41.2.3     rmind 		else
   1975  1.41.2.3     rmind 			rv = *retval;
   1976  1.41.2.3     rmind 	}
   1977  1.41.2.3     rmind 	return rv;
   1978  1.41.2.3     rmind }
   1979  1.41.2.3     rmind rsys_alias(sys___sysctl,rump_enosys)
   1980  1.41.2.3     rmind 
   1981  1.41.2.3     rmind int rump___sysimpl_futimes(int, const struct timeval *);
   1982  1.41.2.3     rmind int
   1983  1.41.2.3     rmind rump___sysimpl_futimes(int fd, const struct timeval * tptr)
   1984  1.41.2.3     rmind {
   1985  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   1986  1.41.2.3     rmind 	int error = 0;
   1987  1.41.2.3     rmind 	int rv = -1;
   1988  1.41.2.3     rmind 	struct compat_50_sys_futimes_args callarg;
   1989  1.41.2.3     rmind 
   1990  1.41.2.3     rmind 	SPARG(&callarg, fd) = fd;
   1991  1.41.2.3     rmind 	SPARG(&callarg, tptr) = (const struct timeval50 *)tptr;
   1992  1.41.2.3     rmind 
   1993  1.41.2.3     rmind 	error = rsys_syscall(SYS_compat_50_futimes, &callarg, sizeof(callarg), retval);
   1994  1.41.2.3     rmind 	rsys_seterrno(error);
   1995  1.41.2.3     rmind 	if (error == 0) {
   1996  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   1997  1.41.2.3     rmind 			rv = *(int *)retval;
   1998  1.41.2.3     rmind 		else
   1999  1.41.2.3     rmind 			rv = *retval;
   2000      1.34     pooka 	}
   2001  1.41.2.3     rmind 	return rv;
   2002      1.34     pooka }
   2003  1.41.2.3     rmind rsys_alias(compat_50_sys_futimes,rump_enosys)
   2004      1.34     pooka 
   2005  1.41.2.3     rmind pid_t rump___sysimpl_getpgid(pid_t);
   2006  1.41.2.3     rmind pid_t
   2007  1.41.2.3     rmind rump___sysimpl_getpgid(pid_t pid)
   2008  1.41.2.3     rmind {
   2009  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2010  1.41.2.3     rmind 	int error = 0;
   2011  1.41.2.3     rmind 	pid_t rv = -1;
   2012  1.41.2.3     rmind 	struct sys_getpgid_args callarg;
   2013  1.41.2.3     rmind 
   2014  1.41.2.3     rmind 	SPARG(&callarg, pid) = pid;
   2015  1.41.2.3     rmind 
   2016  1.41.2.3     rmind 	error = rsys_syscall(SYS_getpgid, &callarg, sizeof(callarg), retval);
   2017  1.41.2.3     rmind 	rsys_seterrno(error);
   2018  1.41.2.3     rmind 	if (error == 0) {
   2019  1.41.2.3     rmind 		if (sizeof(pid_t) > sizeof(register_t))
   2020  1.41.2.3     rmind 			rv = *(pid_t *)retval;
   2021  1.41.2.3     rmind 		else
   2022  1.41.2.3     rmind 			rv = *retval;
   2023  1.41.2.3     rmind 	}
   2024  1.41.2.3     rmind 	return rv;
   2025  1.41.2.3     rmind }
   2026  1.41.2.3     rmind rsys_alias(sys_getpgid,rump_enosys)
   2027  1.41.2.3     rmind 
   2028  1.41.2.3     rmind int rump___sysimpl_reboot(int, char *);
   2029      1.34     pooka int
   2030  1.41.2.3     rmind rump___sysimpl_reboot(int opt, char * bootstr)
   2031      1.34     pooka {
   2032  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2033      1.34     pooka 	int error = 0;
   2034  1.41.2.3     rmind 	int rv = -1;
   2035      1.34     pooka 	struct sys_reboot_args callarg;
   2036      1.34     pooka 
   2037      1.34     pooka 	SPARG(&callarg, opt) = opt;
   2038      1.34     pooka 	SPARG(&callarg, bootstr) = bootstr;
   2039      1.34     pooka 
   2040  1.41.2.3     rmind 	error = rsys_syscall(SYS_reboot, &callarg, sizeof(callarg), retval);
   2041  1.41.2.3     rmind 	rsys_seterrno(error);
   2042  1.41.2.3     rmind 	if (error == 0) {
   2043  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2044  1.41.2.3     rmind 			rv = *(int *)retval;
   2045  1.41.2.3     rmind 		else
   2046  1.41.2.3     rmind 			rv = *retval;
   2047      1.34     pooka 	}
   2048  1.41.2.3     rmind 	return rv;
   2049      1.34     pooka }
   2050  1.41.2.3     rmind rsys_alias(sys_reboot,rump_enosys)
   2051      1.34     pooka 
   2052  1.41.2.3     rmind int rump___sysimpl_poll(struct pollfd *, u_int, int);
   2053      1.34     pooka int
   2054  1.41.2.3     rmind rump___sysimpl_poll(struct pollfd * fds, u_int nfds, int timeout)
   2055      1.34     pooka {
   2056  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2057      1.34     pooka 	int error = 0;
   2058  1.41.2.3     rmind 	int rv = -1;
   2059      1.34     pooka 	struct sys_poll_args callarg;
   2060      1.34     pooka 
   2061      1.34     pooka 	SPARG(&callarg, fds) = fds;
   2062      1.34     pooka 	SPARG(&callarg, nfds) = nfds;
   2063      1.34     pooka 	SPARG(&callarg, timeout) = timeout;
   2064      1.34     pooka 
   2065  1.41.2.3     rmind 	error = rsys_syscall(SYS_poll, &callarg, sizeof(callarg), retval);
   2066  1.41.2.3     rmind 	rsys_seterrno(error);
   2067  1.41.2.3     rmind 	if (error == 0) {
   2068  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2069  1.41.2.3     rmind 			rv = *(int *)retval;
   2070  1.41.2.3     rmind 		else
   2071  1.41.2.3     rmind 			rv = *retval;
   2072      1.34     pooka 	}
   2073  1.41.2.3     rmind 	return rv;
   2074      1.34     pooka }
   2075  1.41.2.3     rmind rsys_alias(sys_poll,rump_enosys)
   2076      1.34     pooka 
   2077  1.41.2.3     rmind int rump___sysimpl_fdatasync(int);
   2078      1.34     pooka int
   2079  1.41.2.3     rmind rump___sysimpl_fdatasync(int fd)
   2080      1.34     pooka {
   2081  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2082      1.34     pooka 	int error = 0;
   2083  1.41.2.3     rmind 	int rv = -1;
   2084      1.34     pooka 	struct sys_fdatasync_args callarg;
   2085      1.34     pooka 
   2086      1.34     pooka 	SPARG(&callarg, fd) = fd;
   2087      1.34     pooka 
   2088  1.41.2.3     rmind 	error = rsys_syscall(SYS_fdatasync, &callarg, sizeof(callarg), retval);
   2089  1.41.2.3     rmind 	rsys_seterrno(error);
   2090  1.41.2.3     rmind 	if (error == 0) {
   2091  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2092  1.41.2.3     rmind 			rv = *(int *)retval;
   2093  1.41.2.3     rmind 		else
   2094  1.41.2.3     rmind 			rv = *retval;
   2095      1.34     pooka 	}
   2096  1.41.2.3     rmind 	return rv;
   2097      1.34     pooka }
   2098  1.41.2.3     rmind rsys_alias(sys_fdatasync,rump_enosys)
   2099      1.34     pooka 
   2100  1.41.2.3     rmind int rump___sysimpl_modctl(int, void *);
   2101      1.38     pooka int
   2102  1.41.2.3     rmind rump___sysimpl_modctl(int cmd, void * arg)
   2103      1.38     pooka {
   2104  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2105      1.38     pooka 	int error = 0;
   2106  1.41.2.3     rmind 	int rv = -1;
   2107      1.38     pooka 	struct sys_modctl_args callarg;
   2108      1.38     pooka 
   2109      1.38     pooka 	SPARG(&callarg, cmd) = cmd;
   2110      1.38     pooka 	SPARG(&callarg, arg) = arg;
   2111      1.38     pooka 
   2112  1.41.2.3     rmind 	error = rsys_syscall(SYS_modctl, &callarg, sizeof(callarg), retval);
   2113  1.41.2.3     rmind 	rsys_seterrno(error);
   2114  1.41.2.3     rmind 	if (error == 0) {
   2115  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2116  1.41.2.3     rmind 			rv = *(int *)retval;
   2117  1.41.2.3     rmind 		else
   2118  1.41.2.3     rmind 			rv = *retval;
   2119      1.38     pooka 	}
   2120  1.41.2.3     rmind 	return rv;
   2121      1.38     pooka }
   2122  1.41.2.3     rmind rsys_alias(sys_modctl,rump_enosys)
   2123      1.38     pooka 
   2124  1.41.2.3     rmind int rump___sysimpl__ksem_init(unsigned int, intptr_t *);
   2125  1.41.2.2     rmind int
   2126  1.41.2.3     rmind rump___sysimpl__ksem_init(unsigned int value, intptr_t * idp)
   2127  1.41.2.2     rmind {
   2128  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2129  1.41.2.2     rmind 	int error = 0;
   2130  1.41.2.3     rmind 	int rv = -1;
   2131  1.41.2.2     rmind 	struct sys__ksem_init_args callarg;
   2132  1.41.2.2     rmind 
   2133  1.41.2.2     rmind 	SPARG(&callarg, value) = value;
   2134  1.41.2.2     rmind 	SPARG(&callarg, idp) = idp;
   2135  1.41.2.2     rmind 
   2136  1.41.2.3     rmind 	error = rsys_syscall(SYS__ksem_init, &callarg, sizeof(callarg), retval);
   2137  1.41.2.3     rmind 	rsys_seterrno(error);
   2138  1.41.2.3     rmind 	if (error == 0) {
   2139  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2140  1.41.2.3     rmind 			rv = *(int *)retval;
   2141  1.41.2.3     rmind 		else
   2142  1.41.2.3     rmind 			rv = *retval;
   2143  1.41.2.2     rmind 	}
   2144  1.41.2.3     rmind 	return rv;
   2145  1.41.2.2     rmind }
   2146  1.41.2.3     rmind rsys_alias(sys__ksem_init,rump_enosys)
   2147  1.41.2.2     rmind 
   2148  1.41.2.3     rmind int rump___sysimpl__ksem_open(const char *, int, mode_t, unsigned int, intptr_t *);
   2149  1.41.2.2     rmind int
   2150  1.41.2.3     rmind rump___sysimpl__ksem_open(const char * name, int oflag, mode_t mode, unsigned int value, intptr_t * idp)
   2151  1.41.2.2     rmind {
   2152  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2153  1.41.2.2     rmind 	int error = 0;
   2154  1.41.2.3     rmind 	int rv = -1;
   2155  1.41.2.2     rmind 	struct sys__ksem_open_args callarg;
   2156  1.41.2.2     rmind 
   2157  1.41.2.2     rmind 	SPARG(&callarg, name) = name;
   2158  1.41.2.2     rmind 	SPARG(&callarg, oflag) = oflag;
   2159  1.41.2.2     rmind 	SPARG(&callarg, mode) = mode;
   2160  1.41.2.2     rmind 	SPARG(&callarg, value) = value;
   2161  1.41.2.2     rmind 	SPARG(&callarg, idp) = idp;
   2162  1.41.2.2     rmind 
   2163  1.41.2.3     rmind 	error = rsys_syscall(SYS__ksem_open, &callarg, sizeof(callarg), retval);
   2164  1.41.2.3     rmind 	rsys_seterrno(error);
   2165  1.41.2.3     rmind 	if (error == 0) {
   2166  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2167  1.41.2.3     rmind 			rv = *(int *)retval;
   2168  1.41.2.3     rmind 		else
   2169  1.41.2.3     rmind 			rv = *retval;
   2170  1.41.2.2     rmind 	}
   2171  1.41.2.3     rmind 	return rv;
   2172  1.41.2.2     rmind }
   2173  1.41.2.3     rmind rsys_alias(sys__ksem_open,rump_enosys)
   2174  1.41.2.2     rmind 
   2175  1.41.2.3     rmind int rump___sysimpl__ksem_unlink(const char *);
   2176  1.41.2.2     rmind int
   2177  1.41.2.3     rmind rump___sysimpl__ksem_unlink(const char * name)
   2178  1.41.2.2     rmind {
   2179  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2180  1.41.2.2     rmind 	int error = 0;
   2181  1.41.2.3     rmind 	int rv = -1;
   2182  1.41.2.2     rmind 	struct sys__ksem_unlink_args callarg;
   2183  1.41.2.2     rmind 
   2184  1.41.2.2     rmind 	SPARG(&callarg, name) = name;
   2185  1.41.2.2     rmind 
   2186  1.41.2.3     rmind 	error = rsys_syscall(SYS__ksem_unlink, &callarg, sizeof(callarg), retval);
   2187  1.41.2.3     rmind 	rsys_seterrno(error);
   2188  1.41.2.3     rmind 	if (error == 0) {
   2189  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2190  1.41.2.3     rmind 			rv = *(int *)retval;
   2191  1.41.2.3     rmind 		else
   2192  1.41.2.3     rmind 			rv = *retval;
   2193  1.41.2.2     rmind 	}
   2194  1.41.2.3     rmind 	return rv;
   2195  1.41.2.2     rmind }
   2196  1.41.2.3     rmind rsys_alias(sys__ksem_unlink,rump_enosys)
   2197  1.41.2.2     rmind 
   2198  1.41.2.3     rmind int rump___sysimpl__ksem_close(intptr_t);
   2199  1.41.2.2     rmind int
   2200  1.41.2.3     rmind rump___sysimpl__ksem_close(intptr_t id)
   2201  1.41.2.2     rmind {
   2202  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2203  1.41.2.2     rmind 	int error = 0;
   2204  1.41.2.3     rmind 	int rv = -1;
   2205  1.41.2.2     rmind 	struct sys__ksem_close_args callarg;
   2206  1.41.2.2     rmind 
   2207  1.41.2.2     rmind 	SPARG(&callarg, id) = id;
   2208  1.41.2.2     rmind 
   2209  1.41.2.3     rmind 	error = rsys_syscall(SYS__ksem_close, &callarg, sizeof(callarg), retval);
   2210  1.41.2.3     rmind 	rsys_seterrno(error);
   2211  1.41.2.3     rmind 	if (error == 0) {
   2212  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2213  1.41.2.3     rmind 			rv = *(int *)retval;
   2214  1.41.2.3     rmind 		else
   2215  1.41.2.3     rmind 			rv = *retval;
   2216  1.41.2.2     rmind 	}
   2217  1.41.2.3     rmind 	return rv;
   2218  1.41.2.2     rmind }
   2219  1.41.2.3     rmind rsys_alias(sys__ksem_close,rump_enosys)
   2220  1.41.2.2     rmind 
   2221  1.41.2.3     rmind int rump___sysimpl__ksem_post(intptr_t);
   2222  1.41.2.2     rmind int
   2223  1.41.2.3     rmind rump___sysimpl__ksem_post(intptr_t id)
   2224  1.41.2.2     rmind {
   2225  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2226  1.41.2.2     rmind 	int error = 0;
   2227  1.41.2.3     rmind 	int rv = -1;
   2228  1.41.2.2     rmind 	struct sys__ksem_post_args callarg;
   2229  1.41.2.2     rmind 
   2230  1.41.2.2     rmind 	SPARG(&callarg, id) = id;
   2231  1.41.2.2     rmind 
   2232  1.41.2.3     rmind 	error = rsys_syscall(SYS__ksem_post, &callarg, sizeof(callarg), retval);
   2233  1.41.2.3     rmind 	rsys_seterrno(error);
   2234  1.41.2.3     rmind 	if (error == 0) {
   2235  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2236  1.41.2.3     rmind 			rv = *(int *)retval;
   2237  1.41.2.3     rmind 		else
   2238  1.41.2.3     rmind 			rv = *retval;
   2239  1.41.2.2     rmind 	}
   2240  1.41.2.3     rmind 	return rv;
   2241  1.41.2.2     rmind }
   2242  1.41.2.3     rmind rsys_alias(sys__ksem_post,rump_enosys)
   2243  1.41.2.2     rmind 
   2244  1.41.2.3     rmind int rump___sysimpl__ksem_wait(intptr_t);
   2245  1.41.2.2     rmind int
   2246  1.41.2.3     rmind rump___sysimpl__ksem_wait(intptr_t id)
   2247  1.41.2.2     rmind {
   2248  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2249  1.41.2.2     rmind 	int error = 0;
   2250  1.41.2.3     rmind 	int rv = -1;
   2251  1.41.2.2     rmind 	struct sys__ksem_wait_args callarg;
   2252  1.41.2.2     rmind 
   2253  1.41.2.2     rmind 	SPARG(&callarg, id) = id;
   2254  1.41.2.2     rmind 
   2255  1.41.2.3     rmind 	error = rsys_syscall(SYS__ksem_wait, &callarg, sizeof(callarg), retval);
   2256  1.41.2.3     rmind 	rsys_seterrno(error);
   2257  1.41.2.3     rmind 	if (error == 0) {
   2258  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2259  1.41.2.3     rmind 			rv = *(int *)retval;
   2260  1.41.2.3     rmind 		else
   2261  1.41.2.3     rmind 			rv = *retval;
   2262  1.41.2.2     rmind 	}
   2263  1.41.2.3     rmind 	return rv;
   2264  1.41.2.2     rmind }
   2265  1.41.2.3     rmind rsys_alias(sys__ksem_wait,rump_enosys)
   2266  1.41.2.2     rmind 
   2267  1.41.2.3     rmind int rump___sysimpl__ksem_trywait(intptr_t);
   2268  1.41.2.2     rmind int
   2269  1.41.2.3     rmind rump___sysimpl__ksem_trywait(intptr_t id)
   2270  1.41.2.2     rmind {
   2271  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2272  1.41.2.2     rmind 	int error = 0;
   2273  1.41.2.3     rmind 	int rv = -1;
   2274  1.41.2.2     rmind 	struct sys__ksem_trywait_args callarg;
   2275  1.41.2.2     rmind 
   2276  1.41.2.2     rmind 	SPARG(&callarg, id) = id;
   2277  1.41.2.2     rmind 
   2278  1.41.2.3     rmind 	error = rsys_syscall(SYS__ksem_trywait, &callarg, sizeof(callarg), retval);
   2279  1.41.2.3     rmind 	rsys_seterrno(error);
   2280  1.41.2.3     rmind 	if (error == 0) {
   2281  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2282  1.41.2.3     rmind 			rv = *(int *)retval;
   2283  1.41.2.3     rmind 		else
   2284  1.41.2.3     rmind 			rv = *retval;
   2285  1.41.2.2     rmind 	}
   2286  1.41.2.3     rmind 	return rv;
   2287  1.41.2.2     rmind }
   2288  1.41.2.3     rmind rsys_alias(sys__ksem_trywait,rump_enosys)
   2289  1.41.2.2     rmind 
   2290  1.41.2.3     rmind int rump___sysimpl__ksem_getvalue(intptr_t, unsigned int *);
   2291  1.41.2.2     rmind int
   2292  1.41.2.3     rmind rump___sysimpl__ksem_getvalue(intptr_t id, unsigned int * value)
   2293  1.41.2.2     rmind {
   2294  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2295  1.41.2.2     rmind 	int error = 0;
   2296  1.41.2.3     rmind 	int rv = -1;
   2297  1.41.2.2     rmind 	struct sys__ksem_getvalue_args callarg;
   2298  1.41.2.2     rmind 
   2299  1.41.2.2     rmind 	SPARG(&callarg, id) = id;
   2300  1.41.2.2     rmind 	SPARG(&callarg, value) = value;
   2301  1.41.2.2     rmind 
   2302  1.41.2.3     rmind 	error = rsys_syscall(SYS__ksem_getvalue, &callarg, sizeof(callarg), retval);
   2303  1.41.2.3     rmind 	rsys_seterrno(error);
   2304  1.41.2.3     rmind 	if (error == 0) {
   2305  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2306  1.41.2.3     rmind 			rv = *(int *)retval;
   2307  1.41.2.3     rmind 		else
   2308  1.41.2.3     rmind 			rv = *retval;
   2309  1.41.2.2     rmind 	}
   2310  1.41.2.3     rmind 	return rv;
   2311  1.41.2.2     rmind }
   2312  1.41.2.3     rmind rsys_alias(sys__ksem_getvalue,rump_enosys)
   2313  1.41.2.2     rmind 
   2314  1.41.2.3     rmind int rump___sysimpl__ksem_destroy(intptr_t);
   2315  1.41.2.2     rmind int
   2316  1.41.2.3     rmind rump___sysimpl__ksem_destroy(intptr_t id)
   2317  1.41.2.2     rmind {
   2318  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2319  1.41.2.2     rmind 	int error = 0;
   2320  1.41.2.3     rmind 	int rv = -1;
   2321  1.41.2.2     rmind 	struct sys__ksem_destroy_args callarg;
   2322  1.41.2.2     rmind 
   2323  1.41.2.2     rmind 	SPARG(&callarg, id) = id;
   2324  1.41.2.2     rmind 
   2325  1.41.2.3     rmind 	error = rsys_syscall(SYS__ksem_destroy, &callarg, sizeof(callarg), retval);
   2326  1.41.2.3     rmind 	rsys_seterrno(error);
   2327  1.41.2.3     rmind 	if (error == 0) {
   2328  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2329  1.41.2.3     rmind 			rv = *(int *)retval;
   2330  1.41.2.3     rmind 		else
   2331  1.41.2.3     rmind 			rv = *retval;
   2332  1.41.2.2     rmind 	}
   2333  1.41.2.3     rmind 	return rv;
   2334  1.41.2.2     rmind }
   2335  1.41.2.3     rmind rsys_alias(sys__ksem_destroy,rump_enosys)
   2336  1.41.2.2     rmind 
   2337  1.41.2.3     rmind int rump___sysimpl_lchmod(const char *, mode_t);
   2338      1.34     pooka int
   2339  1.41.2.3     rmind rump___sysimpl_lchmod(const char * path, mode_t mode)
   2340      1.34     pooka {
   2341  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2342      1.34     pooka 	int error = 0;
   2343  1.41.2.3     rmind 	int rv = -1;
   2344      1.34     pooka 	struct sys_lchmod_args callarg;
   2345      1.34     pooka 
   2346      1.34     pooka 	SPARG(&callarg, path) = path;
   2347      1.34     pooka 	SPARG(&callarg, mode) = mode;
   2348      1.34     pooka 
   2349  1.41.2.3     rmind 	error = rsys_syscall(SYS_lchmod, &callarg, sizeof(callarg), retval);
   2350  1.41.2.3     rmind 	rsys_seterrno(error);
   2351  1.41.2.3     rmind 	if (error == 0) {
   2352  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2353  1.41.2.3     rmind 			rv = *(int *)retval;
   2354  1.41.2.3     rmind 		else
   2355  1.41.2.3     rmind 			rv = *retval;
   2356      1.34     pooka 	}
   2357  1.41.2.3     rmind 	return rv;
   2358      1.34     pooka }
   2359  1.41.2.3     rmind rsys_alias(sys_lchmod,rump_enosys)
   2360      1.34     pooka 
   2361  1.41.2.3     rmind int rump___sysimpl_lchown(const char *, uid_t, gid_t);
   2362      1.34     pooka int
   2363  1.41.2.3     rmind rump___sysimpl_lchown(const char * path, uid_t uid, gid_t gid)
   2364      1.34     pooka {
   2365  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2366      1.34     pooka 	int error = 0;
   2367  1.41.2.3     rmind 	int rv = -1;
   2368      1.34     pooka 	struct sys_lchown_args callarg;
   2369      1.34     pooka 
   2370      1.34     pooka 	SPARG(&callarg, path) = path;
   2371      1.34     pooka 	SPARG(&callarg, uid) = uid;
   2372      1.34     pooka 	SPARG(&callarg, gid) = gid;
   2373      1.34     pooka 
   2374  1.41.2.3     rmind 	error = rsys_syscall(SYS_lchown, &callarg, sizeof(callarg), retval);
   2375  1.41.2.3     rmind 	rsys_seterrno(error);
   2376  1.41.2.3     rmind 	if (error == 0) {
   2377  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2378  1.41.2.3     rmind 			rv = *(int *)retval;
   2379  1.41.2.3     rmind 		else
   2380  1.41.2.3     rmind 			rv = *retval;
   2381      1.34     pooka 	}
   2382  1.41.2.3     rmind 	return rv;
   2383      1.34     pooka }
   2384  1.41.2.3     rmind rsys_alias(sys_lchown,rump_enosys)
   2385      1.34     pooka 
   2386  1.41.2.3     rmind int rump___sysimpl_lutimes(const char *, const struct timeval *);
   2387      1.34     pooka int
   2388  1.41.2.3     rmind rump___sysimpl_lutimes(const char * path, const struct timeval * tptr)
   2389  1.41.2.3     rmind {
   2390  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2391  1.41.2.3     rmind 	int error = 0;
   2392  1.41.2.3     rmind 	int rv = -1;
   2393  1.41.2.3     rmind 	struct compat_50_sys_lutimes_args callarg;
   2394  1.41.2.3     rmind 
   2395  1.41.2.3     rmind 	SPARG(&callarg, path) = path;
   2396  1.41.2.3     rmind 	SPARG(&callarg, tptr) = (const struct timeval50 *)tptr;
   2397  1.41.2.3     rmind 
   2398  1.41.2.3     rmind 	error = rsys_syscall(SYS_compat_50_lutimes, &callarg, sizeof(callarg), retval);
   2399  1.41.2.3     rmind 	rsys_seterrno(error);
   2400  1.41.2.3     rmind 	if (error == 0) {
   2401  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2402  1.41.2.3     rmind 			rv = *(int *)retval;
   2403  1.41.2.3     rmind 		else
   2404  1.41.2.3     rmind 			rv = *retval;
   2405  1.41.2.3     rmind 	}
   2406  1.41.2.3     rmind 	return rv;
   2407  1.41.2.3     rmind }
   2408  1.41.2.3     rmind rsys_alias(compat_50_sys_lutimes,rump_enosys)
   2409  1.41.2.3     rmind 
   2410  1.41.2.3     rmind pid_t rump___sysimpl_getsid(pid_t);
   2411  1.41.2.3     rmind pid_t
   2412  1.41.2.3     rmind rump___sysimpl_getsid(pid_t pid)
   2413  1.41.2.3     rmind {
   2414  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2415  1.41.2.3     rmind 	int error = 0;
   2416  1.41.2.3     rmind 	pid_t rv = -1;
   2417  1.41.2.3     rmind 	struct sys_getsid_args callarg;
   2418  1.41.2.3     rmind 
   2419  1.41.2.3     rmind 	SPARG(&callarg, pid) = pid;
   2420  1.41.2.3     rmind 
   2421  1.41.2.3     rmind 	error = rsys_syscall(SYS_getsid, &callarg, sizeof(callarg), retval);
   2422  1.41.2.3     rmind 	rsys_seterrno(error);
   2423  1.41.2.3     rmind 	if (error == 0) {
   2424  1.41.2.3     rmind 		if (sizeof(pid_t) > sizeof(register_t))
   2425  1.41.2.3     rmind 			rv = *(pid_t *)retval;
   2426  1.41.2.3     rmind 		else
   2427  1.41.2.3     rmind 			rv = *retval;
   2428  1.41.2.3     rmind 	}
   2429  1.41.2.3     rmind 	return rv;
   2430  1.41.2.3     rmind }
   2431  1.41.2.3     rmind rsys_alias(sys_getsid,rump_enosys)
   2432  1.41.2.3     rmind 
   2433  1.41.2.3     rmind ssize_t rump___sysimpl_preadv(int, const struct iovec *, int, off_t);
   2434  1.41.2.3     rmind ssize_t
   2435  1.41.2.3     rmind rump___sysimpl_preadv(int fd, const struct iovec * iovp, int iovcnt, off_t offset)
   2436      1.34     pooka {
   2437  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2438      1.34     pooka 	int error = 0;
   2439  1.41.2.3     rmind 	ssize_t rv = -1;
   2440  1.41.2.3     rmind 	struct sys_preadv_args callarg;
   2441  1.41.2.3     rmind 
   2442  1.41.2.3     rmind 	SPARG(&callarg, fd) = fd;
   2443  1.41.2.3     rmind 	SPARG(&callarg, iovp) = iovp;
   2444  1.41.2.3     rmind 	SPARG(&callarg, iovcnt) = iovcnt;
   2445  1.41.2.3     rmind 	SPARG(&callarg, PAD) = 0;
   2446  1.41.2.3     rmind 	SPARG(&callarg, offset) = offset;
   2447  1.41.2.3     rmind 
   2448  1.41.2.3     rmind 	error = rsys_syscall(SYS_preadv, &callarg, sizeof(callarg), retval);
   2449  1.41.2.3     rmind 	rsys_seterrno(error);
   2450  1.41.2.3     rmind 	if (error == 0) {
   2451  1.41.2.3     rmind 		if (sizeof(ssize_t) > sizeof(register_t))
   2452  1.41.2.3     rmind 			rv = *(ssize_t *)retval;
   2453  1.41.2.3     rmind 		else
   2454  1.41.2.3     rmind 			rv = *retval;
   2455  1.41.2.3     rmind 	}
   2456  1.41.2.3     rmind 	return rv;
   2457  1.41.2.3     rmind }
   2458  1.41.2.3     rmind rsys_alias(sys_preadv,rump_enosys)
   2459  1.41.2.3     rmind 
   2460  1.41.2.3     rmind ssize_t rump___sysimpl_pwritev(int, const struct iovec *, int, off_t);
   2461  1.41.2.3     rmind ssize_t
   2462  1.41.2.3     rmind rump___sysimpl_pwritev(int fd, const struct iovec * iovp, int iovcnt, off_t offset)
   2463  1.41.2.3     rmind {
   2464  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2465  1.41.2.3     rmind 	int error = 0;
   2466  1.41.2.3     rmind 	ssize_t rv = -1;
   2467  1.41.2.3     rmind 	struct sys_pwritev_args callarg;
   2468  1.41.2.3     rmind 
   2469  1.41.2.3     rmind 	SPARG(&callarg, fd) = fd;
   2470  1.41.2.3     rmind 	SPARG(&callarg, iovp) = iovp;
   2471  1.41.2.3     rmind 	SPARG(&callarg, iovcnt) = iovcnt;
   2472  1.41.2.3     rmind 	SPARG(&callarg, PAD) = 0;
   2473  1.41.2.3     rmind 	SPARG(&callarg, offset) = offset;
   2474  1.41.2.3     rmind 
   2475  1.41.2.3     rmind 	error = rsys_syscall(SYS_pwritev, &callarg, sizeof(callarg), retval);
   2476  1.41.2.3     rmind 	rsys_seterrno(error);
   2477  1.41.2.3     rmind 	if (error == 0) {
   2478  1.41.2.3     rmind 		if (sizeof(ssize_t) > sizeof(register_t))
   2479  1.41.2.3     rmind 			rv = *(ssize_t *)retval;
   2480  1.41.2.3     rmind 		else
   2481  1.41.2.3     rmind 			rv = *retval;
   2482  1.41.2.3     rmind 	}
   2483  1.41.2.3     rmind 	return rv;
   2484  1.41.2.3     rmind }
   2485  1.41.2.3     rmind rsys_alias(sys_pwritev,rump_enosys)
   2486  1.41.2.3     rmind 
   2487  1.41.2.3     rmind int rump___sysimpl___getcwd(char *, size_t);
   2488  1.41.2.3     rmind int
   2489  1.41.2.3     rmind rump___sysimpl___getcwd(char * bufp, size_t length)
   2490  1.41.2.3     rmind {
   2491  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2492  1.41.2.3     rmind 	int error = 0;
   2493  1.41.2.3     rmind 	int rv = -1;
   2494  1.41.2.3     rmind 	struct sys___getcwd_args callarg;
   2495  1.41.2.3     rmind 
   2496  1.41.2.3     rmind 	SPARG(&callarg, bufp) = bufp;
   2497  1.41.2.3     rmind 	SPARG(&callarg, length) = length;
   2498  1.41.2.3     rmind 
   2499  1.41.2.3     rmind 	error = rsys_syscall(SYS___getcwd, &callarg, sizeof(callarg), retval);
   2500  1.41.2.3     rmind 	rsys_seterrno(error);
   2501  1.41.2.3     rmind 	if (error == 0) {
   2502  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2503  1.41.2.3     rmind 			rv = *(int *)retval;
   2504  1.41.2.3     rmind 		else
   2505  1.41.2.3     rmind 			rv = *retval;
   2506  1.41.2.3     rmind 	}
   2507  1.41.2.3     rmind 	return rv;
   2508  1.41.2.3     rmind }
   2509  1.41.2.3     rmind rsys_alias(sys___getcwd,rump_enosys)
   2510  1.41.2.3     rmind 
   2511  1.41.2.3     rmind int rump___sysimpl_fchroot(int);
   2512  1.41.2.3     rmind int
   2513  1.41.2.3     rmind rump___sysimpl_fchroot(int fd)
   2514  1.41.2.3     rmind {
   2515  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2516  1.41.2.3     rmind 	int error = 0;
   2517  1.41.2.3     rmind 	int rv = -1;
   2518      1.34     pooka 	struct sys_fchroot_args callarg;
   2519      1.34     pooka 
   2520      1.34     pooka 	SPARG(&callarg, fd) = fd;
   2521      1.34     pooka 
   2522  1.41.2.3     rmind 	error = rsys_syscall(SYS_fchroot, &callarg, sizeof(callarg), retval);
   2523  1.41.2.3     rmind 	rsys_seterrno(error);
   2524  1.41.2.3     rmind 	if (error == 0) {
   2525  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2526  1.41.2.3     rmind 			rv = *(int *)retval;
   2527  1.41.2.3     rmind 		else
   2528  1.41.2.3     rmind 			rv = *retval;
   2529      1.34     pooka 	}
   2530  1.41.2.3     rmind 	return rv;
   2531      1.34     pooka }
   2532  1.41.2.3     rmind rsys_alias(sys_fchroot,rump_enosys)
   2533      1.34     pooka 
   2534  1.41.2.3     rmind int rump___sysimpl_lchflags(const char *, u_long);
   2535      1.34     pooka int
   2536  1.41.2.3     rmind rump___sysimpl_lchflags(const char * path, u_long flags)
   2537      1.34     pooka {
   2538  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2539      1.34     pooka 	int error = 0;
   2540  1.41.2.3     rmind 	int rv = -1;
   2541      1.34     pooka 	struct sys_lchflags_args callarg;
   2542      1.34     pooka 
   2543      1.34     pooka 	SPARG(&callarg, path) = path;
   2544      1.34     pooka 	SPARG(&callarg, flags) = flags;
   2545      1.34     pooka 
   2546  1.41.2.3     rmind 	error = rsys_syscall(SYS_lchflags, &callarg, sizeof(callarg), retval);
   2547  1.41.2.3     rmind 	rsys_seterrno(error);
   2548  1.41.2.3     rmind 	if (error == 0) {
   2549  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2550  1.41.2.3     rmind 			rv = *(int *)retval;
   2551  1.41.2.3     rmind 		else
   2552  1.41.2.3     rmind 			rv = *retval;
   2553  1.41.2.3     rmind 	}
   2554  1.41.2.3     rmind 	return rv;
   2555  1.41.2.3     rmind }
   2556  1.41.2.3     rmind rsys_alias(sys_lchflags,rump_enosys)
   2557  1.41.2.3     rmind 
   2558  1.41.2.3     rmind int rump___sysimpl_issetugid(void);
   2559  1.41.2.3     rmind int
   2560  1.41.2.3     rmind rump___sysimpl_issetugid(void )
   2561  1.41.2.3     rmind {
   2562  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2563  1.41.2.3     rmind 	int rv = -1;
   2564  1.41.2.3     rmind 
   2565  1.41.2.3     rmind 	rsys_syscall(SYS_issetugid, NULL, 0, retval);
   2566  1.41.2.3     rmind 	if (sizeof(int) > sizeof(register_t))
   2567  1.41.2.3     rmind 		rv = *(int *)retval;
   2568  1.41.2.3     rmind 	else
   2569  1.41.2.3     rmind 		rv = *retval;
   2570  1.41.2.3     rmind 	return rv;
   2571  1.41.2.3     rmind }
   2572  1.41.2.3     rmind rsys_alias(sys_issetugid,rump_enosys)
   2573  1.41.2.3     rmind 
   2574  1.41.2.3     rmind int rump___sysimpl_kqueue(void);
   2575  1.41.2.3     rmind int
   2576  1.41.2.3     rmind rump___sysimpl_kqueue(void )
   2577  1.41.2.3     rmind {
   2578  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2579  1.41.2.3     rmind 	int error = 0;
   2580  1.41.2.3     rmind 	int rv = -1;
   2581  1.41.2.3     rmind 
   2582  1.41.2.3     rmind 	error = rsys_syscall(SYS_kqueue, NULL, 0, retval);
   2583  1.41.2.3     rmind 	rsys_seterrno(error);
   2584  1.41.2.3     rmind 	if (error == 0) {
   2585  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2586  1.41.2.3     rmind 			rv = *(int *)retval;
   2587  1.41.2.3     rmind 		else
   2588  1.41.2.3     rmind 			rv = *retval;
   2589      1.34     pooka 	}
   2590  1.41.2.3     rmind 	return rv;
   2591      1.34     pooka }
   2592  1.41.2.3     rmind rsys_alias(sys_kqueue,rump_enosys)
   2593      1.34     pooka 
   2594  1.41.2.3     rmind int rump___sysimpl_kevent(int, const struct kevent *, size_t, struct kevent *, size_t, const struct timespec *);
   2595      1.34     pooka int
   2596  1.41.2.3     rmind rump___sysimpl_kevent(int fd, const struct kevent * changelist, size_t nchanges, struct kevent * eventlist, size_t nevents, const struct timespec * timeout)
   2597      1.34     pooka {
   2598  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2599      1.34     pooka 	int error = 0;
   2600  1.41.2.3     rmind 	int rv = -1;
   2601  1.41.2.3     rmind 	struct compat_50_sys_kevent_args callarg;
   2602      1.34     pooka 
   2603  1.41.2.3     rmind 	SPARG(&callarg, fd) = fd;
   2604  1.41.2.3     rmind 	SPARG(&callarg, changelist) = changelist;
   2605  1.41.2.3     rmind 	SPARG(&callarg, nchanges) = nchanges;
   2606  1.41.2.3     rmind 	SPARG(&callarg, eventlist) = eventlist;
   2607  1.41.2.3     rmind 	SPARG(&callarg, nevents) = nevents;
   2608  1.41.2.3     rmind 	SPARG(&callarg, timeout) = (const struct timespec50 *)timeout;
   2609  1.41.2.3     rmind 
   2610  1.41.2.3     rmind 	error = rsys_syscall(SYS_compat_50_kevent, &callarg, sizeof(callarg), retval);
   2611  1.41.2.3     rmind 	rsys_seterrno(error);
   2612  1.41.2.3     rmind 	if (error == 0) {
   2613  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2614  1.41.2.3     rmind 			rv = *(int *)retval;
   2615  1.41.2.3     rmind 		else
   2616  1.41.2.3     rmind 			rv = *retval;
   2617      1.34     pooka 	}
   2618  1.41.2.3     rmind 	return rv;
   2619      1.34     pooka }
   2620  1.41.2.3     rmind rsys_alias(compat_50_sys_kevent,rump_enosys)
   2621      1.34     pooka 
   2622  1.41.2.3     rmind int rump___sysimpl_fsync_range(int, int, off_t, off_t);
   2623      1.34     pooka int
   2624  1.41.2.3     rmind rump___sysimpl_fsync_range(int fd, int flags, off_t start, off_t length)
   2625      1.34     pooka {
   2626  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2627      1.34     pooka 	int error = 0;
   2628  1.41.2.3     rmind 	int rv = -1;
   2629      1.34     pooka 	struct sys_fsync_range_args callarg;
   2630      1.34     pooka 
   2631      1.34     pooka 	SPARG(&callarg, fd) = fd;
   2632      1.34     pooka 	SPARG(&callarg, flags) = flags;
   2633      1.34     pooka 	SPARG(&callarg, start) = start;
   2634      1.34     pooka 	SPARG(&callarg, length) = length;
   2635      1.34     pooka 
   2636  1.41.2.3     rmind 	error = rsys_syscall(SYS_fsync_range, &callarg, sizeof(callarg), retval);
   2637  1.41.2.3     rmind 	rsys_seterrno(error);
   2638  1.41.2.3     rmind 	if (error == 0) {
   2639  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2640  1.41.2.3     rmind 			rv = *(int *)retval;
   2641  1.41.2.3     rmind 		else
   2642  1.41.2.3     rmind 			rv = *retval;
   2643      1.34     pooka 	}
   2644  1.41.2.3     rmind 	return rv;
   2645      1.34     pooka }
   2646  1.41.2.3     rmind rsys_alias(sys_fsync_range,rump_enosys)
   2647      1.34     pooka 
   2648  1.41.2.3     rmind int rump___sysimpl_getvfsstat(struct statvfs *, size_t, int);
   2649      1.34     pooka int
   2650  1.41.2.3     rmind rump___sysimpl_getvfsstat(struct statvfs * buf, size_t bufsize, int flags)
   2651      1.34     pooka {
   2652  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2653      1.34     pooka 	int error = 0;
   2654  1.41.2.3     rmind 	int rv = -1;
   2655      1.34     pooka 	struct sys_getvfsstat_args callarg;
   2656      1.34     pooka 
   2657      1.34     pooka 	SPARG(&callarg, buf) = buf;
   2658      1.34     pooka 	SPARG(&callarg, bufsize) = bufsize;
   2659      1.34     pooka 	SPARG(&callarg, flags) = flags;
   2660      1.34     pooka 
   2661  1.41.2.3     rmind 	error = rsys_syscall(SYS_getvfsstat, &callarg, sizeof(callarg), retval);
   2662  1.41.2.3     rmind 	rsys_seterrno(error);
   2663  1.41.2.3     rmind 	if (error == 0) {
   2664  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2665  1.41.2.3     rmind 			rv = *(int *)retval;
   2666  1.41.2.3     rmind 		else
   2667  1.41.2.3     rmind 			rv = *retval;
   2668      1.34     pooka 	}
   2669  1.41.2.3     rmind 	return rv;
   2670      1.34     pooka }
   2671  1.41.2.3     rmind rsys_alias(sys_getvfsstat,rump_enosys)
   2672      1.34     pooka 
   2673  1.41.2.3     rmind int rump___sysimpl_statvfs1(const char *, struct statvfs *, int);
   2674      1.34     pooka int
   2675  1.41.2.3     rmind rump___sysimpl_statvfs1(const char * path, struct statvfs * buf, int flags)
   2676      1.34     pooka {
   2677  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2678      1.34     pooka 	int error = 0;
   2679  1.41.2.3     rmind 	int rv = -1;
   2680      1.34     pooka 	struct sys_statvfs1_args callarg;
   2681      1.34     pooka 
   2682      1.34     pooka 	SPARG(&callarg, path) = path;
   2683      1.34     pooka 	SPARG(&callarg, buf) = buf;
   2684      1.34     pooka 	SPARG(&callarg, flags) = flags;
   2685      1.34     pooka 
   2686  1.41.2.3     rmind 	error = rsys_syscall(SYS_statvfs1, &callarg, sizeof(callarg), retval);
   2687  1.41.2.3     rmind 	rsys_seterrno(error);
   2688  1.41.2.3     rmind 	if (error == 0) {
   2689  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2690  1.41.2.3     rmind 			rv = *(int *)retval;
   2691  1.41.2.3     rmind 		else
   2692  1.41.2.3     rmind 			rv = *retval;
   2693      1.34     pooka 	}
   2694  1.41.2.3     rmind 	return rv;
   2695      1.34     pooka }
   2696  1.41.2.3     rmind rsys_alias(sys_statvfs1,rump_enosys)
   2697      1.34     pooka 
   2698  1.41.2.3     rmind int rump___sysimpl_fstatvfs1(int, struct statvfs *, int);
   2699      1.34     pooka int
   2700  1.41.2.3     rmind rump___sysimpl_fstatvfs1(int fd, struct statvfs * buf, int flags)
   2701      1.34     pooka {
   2702  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2703      1.34     pooka 	int error = 0;
   2704  1.41.2.3     rmind 	int rv = -1;
   2705      1.34     pooka 	struct sys_fstatvfs1_args callarg;
   2706      1.34     pooka 
   2707      1.34     pooka 	SPARG(&callarg, fd) = fd;
   2708      1.34     pooka 	SPARG(&callarg, buf) = buf;
   2709      1.34     pooka 	SPARG(&callarg, flags) = flags;
   2710      1.34     pooka 
   2711  1.41.2.3     rmind 	error = rsys_syscall(SYS_fstatvfs1, &callarg, sizeof(callarg), retval);
   2712  1.41.2.3     rmind 	rsys_seterrno(error);
   2713  1.41.2.3     rmind 	if (error == 0) {
   2714  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2715  1.41.2.3     rmind 			rv = *(int *)retval;
   2716  1.41.2.3     rmind 		else
   2717  1.41.2.3     rmind 			rv = *retval;
   2718      1.34     pooka 	}
   2719  1.41.2.3     rmind 	return rv;
   2720      1.34     pooka }
   2721  1.41.2.3     rmind rsys_alias(sys_fstatvfs1,rump_enosys)
   2722      1.34     pooka 
   2723  1.41.2.3     rmind int rump___sysimpl_extattrctl(const char *, int, const char *, int, const char *);
   2724      1.34     pooka int
   2725  1.41.2.3     rmind rump___sysimpl_extattrctl(const char * path, int cmd, const char * filename, int attrnamespace, const char * attrname)
   2726      1.34     pooka {
   2727  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2728      1.34     pooka 	int error = 0;
   2729  1.41.2.3     rmind 	int rv = -1;
   2730      1.34     pooka 	struct sys_extattrctl_args callarg;
   2731      1.34     pooka 
   2732      1.34     pooka 	SPARG(&callarg, path) = path;
   2733      1.34     pooka 	SPARG(&callarg, cmd) = cmd;
   2734      1.34     pooka 	SPARG(&callarg, filename) = filename;
   2735      1.34     pooka 	SPARG(&callarg, attrnamespace) = attrnamespace;
   2736      1.34     pooka 	SPARG(&callarg, attrname) = attrname;
   2737      1.34     pooka 
   2738  1.41.2.3     rmind 	error = rsys_syscall(SYS_extattrctl, &callarg, sizeof(callarg), retval);
   2739  1.41.2.3     rmind 	rsys_seterrno(error);
   2740  1.41.2.3     rmind 	if (error == 0) {
   2741  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2742  1.41.2.3     rmind 			rv = *(int *)retval;
   2743  1.41.2.3     rmind 		else
   2744  1.41.2.3     rmind 			rv = *retval;
   2745      1.34     pooka 	}
   2746  1.41.2.3     rmind 	return rv;
   2747      1.34     pooka }
   2748  1.41.2.3     rmind rsys_alias(sys_extattrctl,rump_enosys)
   2749      1.34     pooka 
   2750  1.41.2.3     rmind int rump___sysimpl_extattr_set_file(const char *, int, const char *, const void *, size_t);
   2751      1.34     pooka int
   2752  1.41.2.3     rmind rump___sysimpl_extattr_set_file(const char * path, int attrnamespace, const char * attrname, const void * data, size_t nbytes)
   2753      1.34     pooka {
   2754  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2755      1.34     pooka 	int error = 0;
   2756  1.41.2.3     rmind 	int rv = -1;
   2757      1.34     pooka 	struct sys_extattr_set_file_args callarg;
   2758      1.34     pooka 
   2759      1.34     pooka 	SPARG(&callarg, path) = path;
   2760      1.34     pooka 	SPARG(&callarg, attrnamespace) = attrnamespace;
   2761      1.34     pooka 	SPARG(&callarg, attrname) = attrname;
   2762      1.34     pooka 	SPARG(&callarg, data) = data;
   2763      1.34     pooka 	SPARG(&callarg, nbytes) = nbytes;
   2764      1.34     pooka 
   2765  1.41.2.3     rmind 	error = rsys_syscall(SYS_extattr_set_file, &callarg, sizeof(callarg), retval);
   2766  1.41.2.3     rmind 	rsys_seterrno(error);
   2767  1.41.2.3     rmind 	if (error == 0) {
   2768  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2769  1.41.2.3     rmind 			rv = *(int *)retval;
   2770  1.41.2.3     rmind 		else
   2771  1.41.2.3     rmind 			rv = *retval;
   2772      1.34     pooka 	}
   2773  1.41.2.3     rmind 	return rv;
   2774      1.34     pooka }
   2775  1.41.2.3     rmind rsys_alias(sys_extattr_set_file,rump_enosys)
   2776      1.34     pooka 
   2777  1.41.2.3     rmind ssize_t rump___sysimpl_extattr_get_file(const char *, int, const char *, void *, size_t);
   2778      1.34     pooka ssize_t
   2779  1.41.2.3     rmind rump___sysimpl_extattr_get_file(const char * path, int attrnamespace, const char * attrname, void * data, size_t nbytes)
   2780      1.34     pooka {
   2781  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2782      1.34     pooka 	int error = 0;
   2783  1.41.2.3     rmind 	ssize_t rv = -1;
   2784      1.34     pooka 	struct sys_extattr_get_file_args callarg;
   2785      1.34     pooka 
   2786      1.34     pooka 	SPARG(&callarg, path) = path;
   2787      1.34     pooka 	SPARG(&callarg, attrnamespace) = attrnamespace;
   2788      1.34     pooka 	SPARG(&callarg, attrname) = attrname;
   2789      1.34     pooka 	SPARG(&callarg, data) = data;
   2790      1.34     pooka 	SPARG(&callarg, nbytes) = nbytes;
   2791      1.34     pooka 
   2792  1.41.2.3     rmind 	error = rsys_syscall(SYS_extattr_get_file, &callarg, sizeof(callarg), retval);
   2793  1.41.2.3     rmind 	rsys_seterrno(error);
   2794  1.41.2.3     rmind 	if (error == 0) {
   2795  1.41.2.3     rmind 		if (sizeof(ssize_t) > sizeof(register_t))
   2796  1.41.2.3     rmind 			rv = *(ssize_t *)retval;
   2797  1.41.2.3     rmind 		else
   2798  1.41.2.3     rmind 			rv = *retval;
   2799      1.34     pooka 	}
   2800  1.41.2.3     rmind 	return rv;
   2801      1.34     pooka }
   2802  1.41.2.3     rmind rsys_alias(sys_extattr_get_file,rump_enosys)
   2803      1.34     pooka 
   2804  1.41.2.3     rmind int rump___sysimpl_extattr_delete_file(const char *, int, const char *);
   2805      1.34     pooka int
   2806  1.41.2.3     rmind rump___sysimpl_extattr_delete_file(const char * path, int attrnamespace, const char * attrname)
   2807      1.34     pooka {
   2808  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2809      1.34     pooka 	int error = 0;
   2810  1.41.2.3     rmind 	int rv = -1;
   2811      1.34     pooka 	struct sys_extattr_delete_file_args callarg;
   2812      1.34     pooka 
   2813      1.34     pooka 	SPARG(&callarg, path) = path;
   2814      1.34     pooka 	SPARG(&callarg, attrnamespace) = attrnamespace;
   2815      1.34     pooka 	SPARG(&callarg, attrname) = attrname;
   2816      1.34     pooka 
   2817  1.41.2.3     rmind 	error = rsys_syscall(SYS_extattr_delete_file, &callarg, sizeof(callarg), retval);
   2818  1.41.2.3     rmind 	rsys_seterrno(error);
   2819  1.41.2.3     rmind 	if (error == 0) {
   2820  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2821  1.41.2.3     rmind 			rv = *(int *)retval;
   2822  1.41.2.3     rmind 		else
   2823  1.41.2.3     rmind 			rv = *retval;
   2824      1.34     pooka 	}
   2825  1.41.2.3     rmind 	return rv;
   2826      1.34     pooka }
   2827  1.41.2.3     rmind rsys_alias(sys_extattr_delete_file,rump_enosys)
   2828      1.34     pooka 
   2829  1.41.2.3     rmind int rump___sysimpl_extattr_set_fd(int, int, const char *, const void *, size_t);
   2830      1.34     pooka int
   2831  1.41.2.3     rmind rump___sysimpl_extattr_set_fd(int fd, int attrnamespace, const char * attrname, const void * data, size_t nbytes)
   2832      1.34     pooka {
   2833  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2834      1.34     pooka 	int error = 0;
   2835  1.41.2.3     rmind 	int rv = -1;
   2836      1.34     pooka 	struct sys_extattr_set_fd_args callarg;
   2837      1.34     pooka 
   2838      1.34     pooka 	SPARG(&callarg, fd) = fd;
   2839      1.34     pooka 	SPARG(&callarg, attrnamespace) = attrnamespace;
   2840      1.34     pooka 	SPARG(&callarg, attrname) = attrname;
   2841      1.34     pooka 	SPARG(&callarg, data) = data;
   2842      1.34     pooka 	SPARG(&callarg, nbytes) = nbytes;
   2843      1.34     pooka 
   2844  1.41.2.3     rmind 	error = rsys_syscall(SYS_extattr_set_fd, &callarg, sizeof(callarg), retval);
   2845  1.41.2.3     rmind 	rsys_seterrno(error);
   2846  1.41.2.3     rmind 	if (error == 0) {
   2847  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2848  1.41.2.3     rmind 			rv = *(int *)retval;
   2849  1.41.2.3     rmind 		else
   2850  1.41.2.3     rmind 			rv = *retval;
   2851      1.34     pooka 	}
   2852  1.41.2.3     rmind 	return rv;
   2853      1.34     pooka }
   2854  1.41.2.3     rmind rsys_alias(sys_extattr_set_fd,rump_enosys)
   2855      1.34     pooka 
   2856  1.41.2.3     rmind ssize_t rump___sysimpl_extattr_get_fd(int, int, const char *, void *, size_t);
   2857      1.34     pooka ssize_t
   2858  1.41.2.3     rmind rump___sysimpl_extattr_get_fd(int fd, int attrnamespace, const char * attrname, void * data, size_t nbytes)
   2859      1.34     pooka {
   2860  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2861      1.34     pooka 	int error = 0;
   2862  1.41.2.3     rmind 	ssize_t rv = -1;
   2863      1.34     pooka 	struct sys_extattr_get_fd_args callarg;
   2864      1.34     pooka 
   2865      1.34     pooka 	SPARG(&callarg, fd) = fd;
   2866      1.34     pooka 	SPARG(&callarg, attrnamespace) = attrnamespace;
   2867      1.34     pooka 	SPARG(&callarg, attrname) = attrname;
   2868      1.34     pooka 	SPARG(&callarg, data) = data;
   2869      1.34     pooka 	SPARG(&callarg, nbytes) = nbytes;
   2870      1.34     pooka 
   2871  1.41.2.3     rmind 	error = rsys_syscall(SYS_extattr_get_fd, &callarg, sizeof(callarg), retval);
   2872  1.41.2.3     rmind 	rsys_seterrno(error);
   2873  1.41.2.3     rmind 	if (error == 0) {
   2874  1.41.2.3     rmind 		if (sizeof(ssize_t) > sizeof(register_t))
   2875  1.41.2.3     rmind 			rv = *(ssize_t *)retval;
   2876  1.41.2.3     rmind 		else
   2877  1.41.2.3     rmind 			rv = *retval;
   2878      1.34     pooka 	}
   2879  1.41.2.3     rmind 	return rv;
   2880      1.34     pooka }
   2881  1.41.2.3     rmind rsys_alias(sys_extattr_get_fd,rump_enosys)
   2882      1.34     pooka 
   2883  1.41.2.3     rmind int rump___sysimpl_extattr_delete_fd(int, int, const char *);
   2884      1.34     pooka int
   2885  1.41.2.3     rmind rump___sysimpl_extattr_delete_fd(int fd, int attrnamespace, const char * attrname)
   2886      1.34     pooka {
   2887  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2888      1.34     pooka 	int error = 0;
   2889  1.41.2.3     rmind 	int rv = -1;
   2890      1.34     pooka 	struct sys_extattr_delete_fd_args callarg;
   2891      1.34     pooka 
   2892      1.34     pooka 	SPARG(&callarg, fd) = fd;
   2893      1.34     pooka 	SPARG(&callarg, attrnamespace) = attrnamespace;
   2894      1.34     pooka 	SPARG(&callarg, attrname) = attrname;
   2895      1.34     pooka 
   2896  1.41.2.3     rmind 	error = rsys_syscall(SYS_extattr_delete_fd, &callarg, sizeof(callarg), retval);
   2897  1.41.2.3     rmind 	rsys_seterrno(error);
   2898  1.41.2.3     rmind 	if (error == 0) {
   2899  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2900  1.41.2.3     rmind 			rv = *(int *)retval;
   2901  1.41.2.3     rmind 		else
   2902  1.41.2.3     rmind 			rv = *retval;
   2903      1.34     pooka 	}
   2904  1.41.2.3     rmind 	return rv;
   2905      1.34     pooka }
   2906  1.41.2.3     rmind rsys_alias(sys_extattr_delete_fd,rump_enosys)
   2907      1.34     pooka 
   2908  1.41.2.3     rmind int rump___sysimpl_extattr_set_link(const char *, int, const char *, const void *, size_t);
   2909      1.34     pooka int
   2910  1.41.2.3     rmind rump___sysimpl_extattr_set_link(const char * path, int attrnamespace, const char * attrname, const void * data, size_t nbytes)
   2911      1.34     pooka {
   2912  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2913      1.34     pooka 	int error = 0;
   2914  1.41.2.3     rmind 	int rv = -1;
   2915      1.34     pooka 	struct sys_extattr_set_link_args callarg;
   2916      1.34     pooka 
   2917      1.34     pooka 	SPARG(&callarg, path) = path;
   2918      1.34     pooka 	SPARG(&callarg, attrnamespace) = attrnamespace;
   2919      1.34     pooka 	SPARG(&callarg, attrname) = attrname;
   2920      1.34     pooka 	SPARG(&callarg, data) = data;
   2921      1.34     pooka 	SPARG(&callarg, nbytes) = nbytes;
   2922      1.34     pooka 
   2923  1.41.2.3     rmind 	error = rsys_syscall(SYS_extattr_set_link, &callarg, sizeof(callarg), retval);
   2924  1.41.2.3     rmind 	rsys_seterrno(error);
   2925  1.41.2.3     rmind 	if (error == 0) {
   2926  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2927  1.41.2.3     rmind 			rv = *(int *)retval;
   2928  1.41.2.3     rmind 		else
   2929  1.41.2.3     rmind 			rv = *retval;
   2930      1.34     pooka 	}
   2931  1.41.2.3     rmind 	return rv;
   2932      1.34     pooka }
   2933  1.41.2.3     rmind rsys_alias(sys_extattr_set_link,rump_enosys)
   2934      1.34     pooka 
   2935  1.41.2.3     rmind ssize_t rump___sysimpl_extattr_get_link(const char *, int, const char *, void *, size_t);
   2936      1.34     pooka ssize_t
   2937  1.41.2.3     rmind rump___sysimpl_extattr_get_link(const char * path, int attrnamespace, const char * attrname, void * data, size_t nbytes)
   2938      1.34     pooka {
   2939  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2940      1.34     pooka 	int error = 0;
   2941  1.41.2.3     rmind 	ssize_t rv = -1;
   2942      1.34     pooka 	struct sys_extattr_get_link_args callarg;
   2943      1.34     pooka 
   2944      1.34     pooka 	SPARG(&callarg, path) = path;
   2945      1.34     pooka 	SPARG(&callarg, attrnamespace) = attrnamespace;
   2946      1.34     pooka 	SPARG(&callarg, attrname) = attrname;
   2947      1.34     pooka 	SPARG(&callarg, data) = data;
   2948      1.34     pooka 	SPARG(&callarg, nbytes) = nbytes;
   2949      1.34     pooka 
   2950  1.41.2.3     rmind 	error = rsys_syscall(SYS_extattr_get_link, &callarg, sizeof(callarg), retval);
   2951  1.41.2.3     rmind 	rsys_seterrno(error);
   2952  1.41.2.3     rmind 	if (error == 0) {
   2953  1.41.2.3     rmind 		if (sizeof(ssize_t) > sizeof(register_t))
   2954  1.41.2.3     rmind 			rv = *(ssize_t *)retval;
   2955  1.41.2.3     rmind 		else
   2956  1.41.2.3     rmind 			rv = *retval;
   2957      1.34     pooka 	}
   2958  1.41.2.3     rmind 	return rv;
   2959      1.34     pooka }
   2960  1.41.2.3     rmind rsys_alias(sys_extattr_get_link,rump_enosys)
   2961      1.34     pooka 
   2962  1.41.2.3     rmind int rump___sysimpl_extattr_delete_link(const char *, int, const char *);
   2963      1.34     pooka int
   2964  1.41.2.3     rmind rump___sysimpl_extattr_delete_link(const char * path, int attrnamespace, const char * attrname)
   2965      1.34     pooka {
   2966  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2967      1.34     pooka 	int error = 0;
   2968  1.41.2.3     rmind 	int rv = -1;
   2969      1.34     pooka 	struct sys_extattr_delete_link_args callarg;
   2970      1.34     pooka 
   2971      1.34     pooka 	SPARG(&callarg, path) = path;
   2972      1.34     pooka 	SPARG(&callarg, attrnamespace) = attrnamespace;
   2973      1.34     pooka 	SPARG(&callarg, attrname) = attrname;
   2974      1.34     pooka 
   2975  1.41.2.3     rmind 	error = rsys_syscall(SYS_extattr_delete_link, &callarg, sizeof(callarg), retval);
   2976  1.41.2.3     rmind 	rsys_seterrno(error);
   2977  1.41.2.3     rmind 	if (error == 0) {
   2978  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   2979  1.41.2.3     rmind 			rv = *(int *)retval;
   2980  1.41.2.3     rmind 		else
   2981  1.41.2.3     rmind 			rv = *retval;
   2982      1.34     pooka 	}
   2983  1.41.2.3     rmind 	return rv;
   2984      1.34     pooka }
   2985  1.41.2.3     rmind rsys_alias(sys_extattr_delete_link,rump_enosys)
   2986      1.34     pooka 
   2987  1.41.2.3     rmind ssize_t rump___sysimpl_extattr_list_fd(int, int, void *, size_t);
   2988      1.34     pooka ssize_t
   2989  1.41.2.3     rmind rump___sysimpl_extattr_list_fd(int fd, int attrnamespace, void * data, size_t nbytes)
   2990      1.34     pooka {
   2991  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   2992      1.34     pooka 	int error = 0;
   2993  1.41.2.3     rmind 	ssize_t rv = -1;
   2994      1.34     pooka 	struct sys_extattr_list_fd_args callarg;
   2995      1.34     pooka 
   2996      1.34     pooka 	SPARG(&callarg, fd) = fd;
   2997      1.34     pooka 	SPARG(&callarg, attrnamespace) = attrnamespace;
   2998      1.34     pooka 	SPARG(&callarg, data) = data;
   2999      1.34     pooka 	SPARG(&callarg, nbytes) = nbytes;
   3000      1.34     pooka 
   3001  1.41.2.3     rmind 	error = rsys_syscall(SYS_extattr_list_fd, &callarg, sizeof(callarg), retval);
   3002  1.41.2.3     rmind 	rsys_seterrno(error);
   3003  1.41.2.3     rmind 	if (error == 0) {
   3004  1.41.2.3     rmind 		if (sizeof(ssize_t) > sizeof(register_t))
   3005  1.41.2.3     rmind 			rv = *(ssize_t *)retval;
   3006  1.41.2.3     rmind 		else
   3007  1.41.2.3     rmind 			rv = *retval;
   3008      1.34     pooka 	}
   3009  1.41.2.3     rmind 	return rv;
   3010      1.34     pooka }
   3011  1.41.2.3     rmind rsys_alias(sys_extattr_list_fd,rump_enosys)
   3012      1.34     pooka 
   3013  1.41.2.3     rmind ssize_t rump___sysimpl_extattr_list_file(const char *, int, void *, size_t);
   3014      1.34     pooka ssize_t
   3015  1.41.2.3     rmind rump___sysimpl_extattr_list_file(const char * path, int attrnamespace, void * data, size_t nbytes)
   3016      1.34     pooka {
   3017  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3018      1.34     pooka 	int error = 0;
   3019  1.41.2.3     rmind 	ssize_t rv = -1;
   3020      1.34     pooka 	struct sys_extattr_list_file_args callarg;
   3021      1.34     pooka 
   3022      1.34     pooka 	SPARG(&callarg, path) = path;
   3023      1.34     pooka 	SPARG(&callarg, attrnamespace) = attrnamespace;
   3024      1.34     pooka 	SPARG(&callarg, data) = data;
   3025      1.34     pooka 	SPARG(&callarg, nbytes) = nbytes;
   3026      1.34     pooka 
   3027  1.41.2.3     rmind 	error = rsys_syscall(SYS_extattr_list_file, &callarg, sizeof(callarg), retval);
   3028  1.41.2.3     rmind 	rsys_seterrno(error);
   3029  1.41.2.3     rmind 	if (error == 0) {
   3030  1.41.2.3     rmind 		if (sizeof(ssize_t) > sizeof(register_t))
   3031  1.41.2.3     rmind 			rv = *(ssize_t *)retval;
   3032  1.41.2.3     rmind 		else
   3033  1.41.2.3     rmind 			rv = *retval;
   3034      1.34     pooka 	}
   3035  1.41.2.3     rmind 	return rv;
   3036      1.34     pooka }
   3037  1.41.2.3     rmind rsys_alias(sys_extattr_list_file,rump_enosys)
   3038      1.34     pooka 
   3039  1.41.2.3     rmind ssize_t rump___sysimpl_extattr_list_link(const char *, int, void *, size_t);
   3040      1.34     pooka ssize_t
   3041  1.41.2.3     rmind rump___sysimpl_extattr_list_link(const char * path, int attrnamespace, void * data, size_t nbytes)
   3042      1.34     pooka {
   3043  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3044      1.34     pooka 	int error = 0;
   3045  1.41.2.3     rmind 	ssize_t rv = -1;
   3046      1.34     pooka 	struct sys_extattr_list_link_args callarg;
   3047      1.34     pooka 
   3048      1.34     pooka 	SPARG(&callarg, path) = path;
   3049      1.34     pooka 	SPARG(&callarg, attrnamespace) = attrnamespace;
   3050      1.34     pooka 	SPARG(&callarg, data) = data;
   3051      1.34     pooka 	SPARG(&callarg, nbytes) = nbytes;
   3052      1.34     pooka 
   3053  1.41.2.3     rmind 	error = rsys_syscall(SYS_extattr_list_link, &callarg, sizeof(callarg), retval);
   3054  1.41.2.3     rmind 	rsys_seterrno(error);
   3055  1.41.2.3     rmind 	if (error == 0) {
   3056  1.41.2.3     rmind 		if (sizeof(ssize_t) > sizeof(register_t))
   3057  1.41.2.3     rmind 			rv = *(ssize_t *)retval;
   3058  1.41.2.3     rmind 		else
   3059  1.41.2.3     rmind 			rv = *retval;
   3060      1.34     pooka 	}
   3061  1.41.2.3     rmind 	return rv;
   3062      1.34     pooka }
   3063  1.41.2.3     rmind rsys_alias(sys_extattr_list_link,rump_enosys)
   3064      1.34     pooka 
   3065  1.41.2.3     rmind int rump___sysimpl_pselect(int, fd_set *, fd_set *, fd_set *, const struct timespec *, const sigset_t *);
   3066      1.34     pooka int
   3067  1.41.2.3     rmind rump___sysimpl_pselect(int nd, fd_set * in, fd_set * ou, fd_set * ex, const struct timespec * ts, const sigset_t * mask)
   3068      1.34     pooka {
   3069  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3070      1.34     pooka 	int error = 0;
   3071  1.41.2.3     rmind 	int rv = -1;
   3072  1.41.2.3     rmind 	struct compat_50_sys_pselect_args callarg;
   3073  1.41.2.3     rmind 
   3074  1.41.2.3     rmind 	SPARG(&callarg, nd) = nd;
   3075  1.41.2.3     rmind 	SPARG(&callarg, in) = in;
   3076  1.41.2.3     rmind 	SPARG(&callarg, ou) = ou;
   3077  1.41.2.3     rmind 	SPARG(&callarg, ex) = ex;
   3078  1.41.2.3     rmind 	SPARG(&callarg, ts) = (const struct timespec50 *)ts;
   3079  1.41.2.3     rmind 	SPARG(&callarg, mask) = mask;
   3080  1.41.2.3     rmind 
   3081  1.41.2.3     rmind 	error = rsys_syscall(SYS_compat_50_pselect, &callarg, sizeof(callarg), retval);
   3082  1.41.2.3     rmind 	rsys_seterrno(error);
   3083  1.41.2.3     rmind 	if (error == 0) {
   3084  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3085  1.41.2.3     rmind 			rv = *(int *)retval;
   3086  1.41.2.3     rmind 		else
   3087  1.41.2.3     rmind 			rv = *retval;
   3088  1.41.2.3     rmind 	}
   3089  1.41.2.3     rmind 	return rv;
   3090  1.41.2.3     rmind }
   3091  1.41.2.3     rmind rsys_alias(compat_50_sys_pselect,rump_enosys)
   3092  1.41.2.3     rmind 
   3093  1.41.2.3     rmind int rump___sysimpl_pollts(struct pollfd *, u_int, const struct timespec *, const sigset_t *);
   3094  1.41.2.3     rmind int
   3095  1.41.2.3     rmind rump___sysimpl_pollts(struct pollfd * fds, u_int nfds, const struct timespec * ts, const sigset_t * mask)
   3096  1.41.2.3     rmind {
   3097  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3098  1.41.2.3     rmind 	int error = 0;
   3099  1.41.2.3     rmind 	int rv = -1;
   3100  1.41.2.3     rmind 	struct compat_50_sys_pollts_args callarg;
   3101  1.41.2.3     rmind 
   3102  1.41.2.3     rmind 	SPARG(&callarg, fds) = fds;
   3103  1.41.2.3     rmind 	SPARG(&callarg, nfds) = nfds;
   3104  1.41.2.3     rmind 	SPARG(&callarg, ts) = (const struct timespec50 *)ts;
   3105  1.41.2.3     rmind 	SPARG(&callarg, mask) = mask;
   3106  1.41.2.3     rmind 
   3107  1.41.2.3     rmind 	error = rsys_syscall(SYS_compat_50_pollts, &callarg, sizeof(callarg), retval);
   3108  1.41.2.3     rmind 	rsys_seterrno(error);
   3109  1.41.2.3     rmind 	if (error == 0) {
   3110  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3111  1.41.2.3     rmind 			rv = *(int *)retval;
   3112  1.41.2.3     rmind 		else
   3113  1.41.2.3     rmind 			rv = *retval;
   3114  1.41.2.3     rmind 	}
   3115  1.41.2.3     rmind 	return rv;
   3116  1.41.2.3     rmind }
   3117  1.41.2.3     rmind rsys_alias(compat_50_sys_pollts,rump_enosys)
   3118  1.41.2.3     rmind 
   3119  1.41.2.3     rmind int rump___sysimpl_setxattr(const char *, const char *, void *, size_t, int);
   3120  1.41.2.3     rmind int
   3121  1.41.2.3     rmind rump___sysimpl_setxattr(const char * path, const char * name, void * value, size_t size, int flags)
   3122  1.41.2.3     rmind {
   3123  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3124  1.41.2.3     rmind 	int error = 0;
   3125  1.41.2.3     rmind 	int rv = -1;
   3126      1.34     pooka 	struct sys_setxattr_args callarg;
   3127      1.34     pooka 
   3128      1.34     pooka 	SPARG(&callarg, path) = path;
   3129      1.34     pooka 	SPARG(&callarg, name) = name;
   3130      1.34     pooka 	SPARG(&callarg, value) = value;
   3131      1.34     pooka 	SPARG(&callarg, size) = size;
   3132      1.34     pooka 	SPARG(&callarg, flags) = flags;
   3133      1.34     pooka 
   3134  1.41.2.3     rmind 	error = rsys_syscall(SYS_setxattr, &callarg, sizeof(callarg), retval);
   3135  1.41.2.3     rmind 	rsys_seterrno(error);
   3136  1.41.2.3     rmind 	if (error == 0) {
   3137  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3138  1.41.2.3     rmind 			rv = *(int *)retval;
   3139  1.41.2.3     rmind 		else
   3140  1.41.2.3     rmind 			rv = *retval;
   3141      1.28     pooka 	}
   3142  1.41.2.3     rmind 	return rv;
   3143      1.28     pooka }
   3144  1.41.2.3     rmind rsys_alias(sys_setxattr,rump_enosys)
   3145      1.28     pooka 
   3146  1.41.2.3     rmind int rump___sysimpl_lsetxattr(const char *, const char *, void *, size_t, int);
   3147      1.10     pooka int
   3148  1.41.2.3     rmind rump___sysimpl_lsetxattr(const char * path, const char * name, void * value, size_t size, int flags)
   3149       1.1     pooka {
   3150  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3151      1.27     pooka 	int error = 0;
   3152  1.41.2.3     rmind 	int rv = -1;
   3153      1.34     pooka 	struct sys_lsetxattr_args callarg;
   3154       1.1     pooka 
   3155      1.31     pooka 	SPARG(&callarg, path) = path;
   3156      1.34     pooka 	SPARG(&callarg, name) = name;
   3157      1.34     pooka 	SPARG(&callarg, value) = value;
   3158      1.34     pooka 	SPARG(&callarg, size) = size;
   3159      1.34     pooka 	SPARG(&callarg, flags) = flags;
   3160       1.1     pooka 
   3161  1.41.2.3     rmind 	error = rsys_syscall(SYS_lsetxattr, &callarg, sizeof(callarg), retval);
   3162  1.41.2.3     rmind 	rsys_seterrno(error);
   3163  1.41.2.3     rmind 	if (error == 0) {
   3164  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3165  1.41.2.3     rmind 			rv = *(int *)retval;
   3166  1.41.2.3     rmind 		else
   3167  1.41.2.3     rmind 			rv = *retval;
   3168      1.27     pooka 	}
   3169  1.41.2.3     rmind 	return rv;
   3170       1.1     pooka }
   3171  1.41.2.3     rmind rsys_alias(sys_lsetxattr,rump_enosys)
   3172       1.1     pooka 
   3173  1.41.2.3     rmind int rump___sysimpl_fsetxattr(int, const char *, void *, size_t, int);
   3174       1.1     pooka int
   3175  1.41.2.3     rmind rump___sysimpl_fsetxattr(int fd, const char * name, void * value, size_t size, int flags)
   3176       1.1     pooka {
   3177  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3178      1.27     pooka 	int error = 0;
   3179  1.41.2.3     rmind 	int rv = -1;
   3180      1.34     pooka 	struct sys_fsetxattr_args callarg;
   3181       1.1     pooka 
   3182      1.34     pooka 	SPARG(&callarg, fd) = fd;
   3183      1.34     pooka 	SPARG(&callarg, name) = name;
   3184      1.34     pooka 	SPARG(&callarg, value) = value;
   3185      1.34     pooka 	SPARG(&callarg, size) = size;
   3186      1.34     pooka 	SPARG(&callarg, flags) = flags;
   3187       1.1     pooka 
   3188  1.41.2.3     rmind 	error = rsys_syscall(SYS_fsetxattr, &callarg, sizeof(callarg), retval);
   3189  1.41.2.3     rmind 	rsys_seterrno(error);
   3190  1.41.2.3     rmind 	if (error == 0) {
   3191  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3192  1.41.2.3     rmind 			rv = *(int *)retval;
   3193  1.41.2.3     rmind 		else
   3194  1.41.2.3     rmind 			rv = *retval;
   3195      1.27     pooka 	}
   3196  1.41.2.3     rmind 	return rv;
   3197       1.1     pooka }
   3198  1.41.2.3     rmind rsys_alias(sys_fsetxattr,rump_enosys)
   3199       1.1     pooka 
   3200  1.41.2.3     rmind int rump___sysimpl_getxattr(const char *, const char *, void *, size_t);
   3201      1.11     pooka int
   3202  1.41.2.3     rmind rump___sysimpl_getxattr(const char * path, const char * name, void * value, size_t size)
   3203      1.22     pooka {
   3204  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3205      1.27     pooka 	int error = 0;
   3206  1.41.2.3     rmind 	int rv = -1;
   3207      1.34     pooka 	struct sys_getxattr_args callarg;
   3208      1.22     pooka 
   3209      1.34     pooka 	SPARG(&callarg, path) = path;
   3210      1.34     pooka 	SPARG(&callarg, name) = name;
   3211      1.34     pooka 	SPARG(&callarg, value) = value;
   3212      1.34     pooka 	SPARG(&callarg, size) = size;
   3213      1.22     pooka 
   3214  1.41.2.3     rmind 	error = rsys_syscall(SYS_getxattr, &callarg, sizeof(callarg), retval);
   3215  1.41.2.3     rmind 	rsys_seterrno(error);
   3216  1.41.2.3     rmind 	if (error == 0) {
   3217  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3218  1.41.2.3     rmind 			rv = *(int *)retval;
   3219  1.41.2.3     rmind 		else
   3220  1.41.2.3     rmind 			rv = *retval;
   3221      1.27     pooka 	}
   3222  1.41.2.3     rmind 	return rv;
   3223      1.22     pooka }
   3224  1.41.2.3     rmind rsys_alias(sys_getxattr,rump_enosys)
   3225      1.22     pooka 
   3226  1.41.2.3     rmind int rump___sysimpl_lgetxattr(const char *, const char *, void *, size_t);
   3227      1.34     pooka int
   3228  1.41.2.3     rmind rump___sysimpl_lgetxattr(const char * path, const char * name, void * value, size_t size)
   3229       1.8     pooka {
   3230  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3231      1.27     pooka 	int error = 0;
   3232  1.41.2.3     rmind 	int rv = -1;
   3233      1.34     pooka 	struct sys_lgetxattr_args callarg;
   3234       1.8     pooka 
   3235      1.34     pooka 	SPARG(&callarg, path) = path;
   3236      1.34     pooka 	SPARG(&callarg, name) = name;
   3237      1.34     pooka 	SPARG(&callarg, value) = value;
   3238      1.34     pooka 	SPARG(&callarg, size) = size;
   3239       1.8     pooka 
   3240  1.41.2.3     rmind 	error = rsys_syscall(SYS_lgetxattr, &callarg, sizeof(callarg), retval);
   3241  1.41.2.3     rmind 	rsys_seterrno(error);
   3242  1.41.2.3     rmind 	if (error == 0) {
   3243  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3244  1.41.2.3     rmind 			rv = *(int *)retval;
   3245  1.41.2.3     rmind 		else
   3246  1.41.2.3     rmind 			rv = *retval;
   3247      1.27     pooka 	}
   3248  1.41.2.3     rmind 	return rv;
   3249       1.8     pooka }
   3250  1.41.2.3     rmind rsys_alias(sys_lgetxattr,rump_enosys)
   3251       1.8     pooka 
   3252  1.41.2.3     rmind int rump___sysimpl_fgetxattr(int, const char *, void *, size_t);
   3253      1.34     pooka int
   3254  1.41.2.3     rmind rump___sysimpl_fgetxattr(int fd, const char * name, void * value, size_t size)
   3255       1.8     pooka {
   3256  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3257      1.27     pooka 	int error = 0;
   3258  1.41.2.3     rmind 	int rv = -1;
   3259      1.34     pooka 	struct sys_fgetxattr_args callarg;
   3260       1.8     pooka 
   3261      1.31     pooka 	SPARG(&callarg, fd) = fd;
   3262      1.34     pooka 	SPARG(&callarg, name) = name;
   3263      1.34     pooka 	SPARG(&callarg, value) = value;
   3264      1.34     pooka 	SPARG(&callarg, size) = size;
   3265       1.8     pooka 
   3266  1.41.2.3     rmind 	error = rsys_syscall(SYS_fgetxattr, &callarg, sizeof(callarg), retval);
   3267  1.41.2.3     rmind 	rsys_seterrno(error);
   3268  1.41.2.3     rmind 	if (error == 0) {
   3269  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3270  1.41.2.3     rmind 			rv = *(int *)retval;
   3271  1.41.2.3     rmind 		else
   3272  1.41.2.3     rmind 			rv = *retval;
   3273      1.27     pooka 	}
   3274  1.41.2.3     rmind 	return rv;
   3275       1.8     pooka }
   3276  1.41.2.3     rmind rsys_alias(sys_fgetxattr,rump_enosys)
   3277       1.8     pooka 
   3278  1.41.2.3     rmind int rump___sysimpl_listxattr(const char *, char *, size_t);
   3279       1.1     pooka int
   3280  1.41.2.3     rmind rump___sysimpl_listxattr(const char * path, char * list, size_t size)
   3281       1.1     pooka {
   3282  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3283      1.27     pooka 	int error = 0;
   3284  1.41.2.3     rmind 	int rv = -1;
   3285      1.34     pooka 	struct sys_listxattr_args callarg;
   3286       1.1     pooka 
   3287      1.31     pooka 	SPARG(&callarg, path) = path;
   3288      1.34     pooka 	SPARG(&callarg, list) = list;
   3289      1.34     pooka 	SPARG(&callarg, size) = size;
   3290       1.1     pooka 
   3291  1.41.2.3     rmind 	error = rsys_syscall(SYS_listxattr, &callarg, sizeof(callarg), retval);
   3292  1.41.2.3     rmind 	rsys_seterrno(error);
   3293  1.41.2.3     rmind 	if (error == 0) {
   3294  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3295  1.41.2.3     rmind 			rv = *(int *)retval;
   3296  1.41.2.3     rmind 		else
   3297  1.41.2.3     rmind 			rv = *retval;
   3298      1.27     pooka 	}
   3299  1.41.2.3     rmind 	return rv;
   3300       1.1     pooka }
   3301  1.41.2.3     rmind rsys_alias(sys_listxattr,rump_enosys)
   3302       1.1     pooka 
   3303  1.41.2.3     rmind int rump___sysimpl_llistxattr(const char *, char *, size_t);
   3304       1.1     pooka int
   3305  1.41.2.3     rmind rump___sysimpl_llistxattr(const char * path, char * list, size_t size)
   3306      1.13     pooka {
   3307  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3308      1.27     pooka 	int error = 0;
   3309  1.41.2.3     rmind 	int rv = -1;
   3310      1.34     pooka 	struct sys_llistxattr_args callarg;
   3311      1.13     pooka 
   3312      1.34     pooka 	SPARG(&callarg, path) = path;
   3313      1.34     pooka 	SPARG(&callarg, list) = list;
   3314      1.34     pooka 	SPARG(&callarg, size) = size;
   3315      1.13     pooka 
   3316  1.41.2.3     rmind 	error = rsys_syscall(SYS_llistxattr, &callarg, sizeof(callarg), retval);
   3317  1.41.2.3     rmind 	rsys_seterrno(error);
   3318  1.41.2.3     rmind 	if (error == 0) {
   3319  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3320  1.41.2.3     rmind 			rv = *(int *)retval;
   3321  1.41.2.3     rmind 		else
   3322  1.41.2.3     rmind 			rv = *retval;
   3323      1.27     pooka 	}
   3324  1.41.2.3     rmind 	return rv;
   3325      1.13     pooka }
   3326  1.41.2.3     rmind rsys_alias(sys_llistxattr,rump_enosys)
   3327      1.13     pooka 
   3328  1.41.2.3     rmind int rump___sysimpl_flistxattr(int, char *, size_t);
   3329      1.13     pooka int
   3330  1.41.2.3     rmind rump___sysimpl_flistxattr(int fd, char * list, size_t size)
   3331       1.1     pooka {
   3332  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3333      1.27     pooka 	int error = 0;
   3334  1.41.2.3     rmind 	int rv = -1;
   3335      1.34     pooka 	struct sys_flistxattr_args callarg;
   3336       1.1     pooka 
   3337      1.34     pooka 	SPARG(&callarg, fd) = fd;
   3338      1.34     pooka 	SPARG(&callarg, list) = list;
   3339      1.34     pooka 	SPARG(&callarg, size) = size;
   3340       1.1     pooka 
   3341  1.41.2.3     rmind 	error = rsys_syscall(SYS_flistxattr, &callarg, sizeof(callarg), retval);
   3342  1.41.2.3     rmind 	rsys_seterrno(error);
   3343  1.41.2.3     rmind 	if (error == 0) {
   3344  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3345  1.41.2.3     rmind 			rv = *(int *)retval;
   3346  1.41.2.3     rmind 		else
   3347  1.41.2.3     rmind 			rv = *retval;
   3348      1.27     pooka 	}
   3349  1.41.2.3     rmind 	return rv;
   3350       1.1     pooka }
   3351  1.41.2.3     rmind rsys_alias(sys_flistxattr,rump_enosys)
   3352       1.1     pooka 
   3353  1.41.2.3     rmind int rump___sysimpl_removexattr(const char *, const char *);
   3354       1.1     pooka int
   3355  1.41.2.3     rmind rump___sysimpl_removexattr(const char * path, const char * name)
   3356       1.1     pooka {
   3357  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3358      1.27     pooka 	int error = 0;
   3359  1.41.2.3     rmind 	int rv = -1;
   3360      1.34     pooka 	struct sys_removexattr_args callarg;
   3361       1.1     pooka 
   3362      1.31     pooka 	SPARG(&callarg, path) = path;
   3363      1.34     pooka 	SPARG(&callarg, name) = name;
   3364       1.1     pooka 
   3365  1.41.2.3     rmind 	error = rsys_syscall(SYS_removexattr, &callarg, sizeof(callarg), retval);
   3366  1.41.2.3     rmind 	rsys_seterrno(error);
   3367  1.41.2.3     rmind 	if (error == 0) {
   3368  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3369  1.41.2.3     rmind 			rv = *(int *)retval;
   3370  1.41.2.3     rmind 		else
   3371  1.41.2.3     rmind 			rv = *retval;
   3372      1.27     pooka 	}
   3373  1.41.2.3     rmind 	return rv;
   3374       1.1     pooka }
   3375  1.41.2.3     rmind rsys_alias(sys_removexattr,rump_enosys)
   3376       1.1     pooka 
   3377  1.41.2.3     rmind int rump___sysimpl_lremovexattr(const char *, const char *);
   3378      1.10     pooka int
   3379  1.41.2.3     rmind rump___sysimpl_lremovexattr(const char * path, const char * name)
   3380      1.11     pooka {
   3381  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3382      1.27     pooka 	int error = 0;
   3383  1.41.2.3     rmind 	int rv = -1;
   3384      1.34     pooka 	struct sys_lremovexattr_args callarg;
   3385      1.11     pooka 
   3386      1.31     pooka 	SPARG(&callarg, path) = path;
   3387      1.34     pooka 	SPARG(&callarg, name) = name;
   3388      1.11     pooka 
   3389  1.41.2.3     rmind 	error = rsys_syscall(SYS_lremovexattr, &callarg, sizeof(callarg), retval);
   3390  1.41.2.3     rmind 	rsys_seterrno(error);
   3391  1.41.2.3     rmind 	if (error == 0) {
   3392  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3393  1.41.2.3     rmind 			rv = *(int *)retval;
   3394  1.41.2.3     rmind 		else
   3395  1.41.2.3     rmind 			rv = *retval;
   3396      1.27     pooka 	}
   3397  1.41.2.3     rmind 	return rv;
   3398      1.11     pooka }
   3399  1.41.2.3     rmind rsys_alias(sys_lremovexattr,rump_enosys)
   3400      1.11     pooka 
   3401  1.41.2.3     rmind int rump___sysimpl_fremovexattr(int, const char *);
   3402      1.32     pooka int
   3403  1.41.2.3     rmind rump___sysimpl_fremovexattr(int fd, const char * name)
   3404      1.32     pooka {
   3405  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3406      1.32     pooka 	int error = 0;
   3407  1.41.2.3     rmind 	int rv = -1;
   3408      1.34     pooka 	struct sys_fremovexattr_args callarg;
   3409      1.34     pooka 
   3410      1.34     pooka 	SPARG(&callarg, fd) = fd;
   3411      1.34     pooka 	SPARG(&callarg, name) = name;
   3412      1.32     pooka 
   3413  1.41.2.3     rmind 	error = rsys_syscall(SYS_fremovexattr, &callarg, sizeof(callarg), retval);
   3414  1.41.2.3     rmind 	rsys_seterrno(error);
   3415  1.41.2.3     rmind 	if (error == 0) {
   3416  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3417  1.41.2.3     rmind 			rv = *(int *)retval;
   3418  1.41.2.3     rmind 		else
   3419  1.41.2.3     rmind 			rv = *retval;
   3420  1.41.2.3     rmind 	}
   3421  1.41.2.3     rmind 	return rv;
   3422  1.41.2.3     rmind }
   3423  1.41.2.3     rmind rsys_alias(sys_fremovexattr,rump_enosys)
   3424  1.41.2.3     rmind 
   3425  1.41.2.3     rmind int rump___sysimpl_stat30(const char *, struct stat *);
   3426  1.41.2.3     rmind int
   3427  1.41.2.3     rmind rump___sysimpl_stat30(const char * path, struct stat * ub)
   3428  1.41.2.3     rmind {
   3429  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3430  1.41.2.3     rmind 	int error = 0;
   3431  1.41.2.3     rmind 	int rv = -1;
   3432  1.41.2.3     rmind 	struct compat_50_sys___stat30_args callarg;
   3433  1.41.2.3     rmind 
   3434  1.41.2.3     rmind 	SPARG(&callarg, path) = path;
   3435  1.41.2.3     rmind 	SPARG(&callarg, ub) = (struct stat30 *)ub;
   3436  1.41.2.3     rmind 
   3437  1.41.2.3     rmind 	error = rsys_syscall(SYS_compat_50___stat30, &callarg, sizeof(callarg), retval);
   3438  1.41.2.3     rmind 	rsys_seterrno(error);
   3439  1.41.2.3     rmind 	if (error == 0) {
   3440  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3441  1.41.2.3     rmind 			rv = *(int *)retval;
   3442  1.41.2.3     rmind 		else
   3443  1.41.2.3     rmind 			rv = *retval;
   3444  1.41.2.3     rmind 	}
   3445  1.41.2.3     rmind 	return rv;
   3446  1.41.2.3     rmind }
   3447  1.41.2.3     rmind rsys_alias(compat_50_sys___stat30,rump_enosys)
   3448  1.41.2.3     rmind 
   3449  1.41.2.3     rmind int rump___sysimpl_fstat30(int, struct stat *);
   3450  1.41.2.3     rmind int
   3451  1.41.2.3     rmind rump___sysimpl_fstat30(int fd, struct stat * sb)
   3452  1.41.2.3     rmind {
   3453  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3454  1.41.2.3     rmind 	int error = 0;
   3455  1.41.2.3     rmind 	int rv = -1;
   3456  1.41.2.3     rmind 	struct compat_50_sys___fstat30_args callarg;
   3457  1.41.2.3     rmind 
   3458  1.41.2.3     rmind 	SPARG(&callarg, fd) = fd;
   3459  1.41.2.3     rmind 	SPARG(&callarg, sb) = (struct stat30 *)sb;
   3460  1.41.2.3     rmind 
   3461  1.41.2.3     rmind 	error = rsys_syscall(SYS_compat_50___fstat30, &callarg, sizeof(callarg), retval);
   3462  1.41.2.3     rmind 	rsys_seterrno(error);
   3463  1.41.2.3     rmind 	if (error == 0) {
   3464  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3465  1.41.2.3     rmind 			rv = *(int *)retval;
   3466  1.41.2.3     rmind 		else
   3467  1.41.2.3     rmind 			rv = *retval;
   3468  1.41.2.3     rmind 	}
   3469  1.41.2.3     rmind 	return rv;
   3470  1.41.2.3     rmind }
   3471  1.41.2.3     rmind rsys_alias(compat_50_sys___fstat30,rump_enosys)
   3472  1.41.2.3     rmind 
   3473  1.41.2.3     rmind int rump___sysimpl_lstat30(const char *, struct stat *);
   3474  1.41.2.3     rmind int
   3475  1.41.2.3     rmind rump___sysimpl_lstat30(const char * path, struct stat * ub)
   3476  1.41.2.3     rmind {
   3477  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3478  1.41.2.3     rmind 	int error = 0;
   3479  1.41.2.3     rmind 	int rv = -1;
   3480  1.41.2.3     rmind 	struct compat_50_sys___lstat30_args callarg;
   3481  1.41.2.3     rmind 
   3482  1.41.2.3     rmind 	SPARG(&callarg, path) = path;
   3483  1.41.2.3     rmind 	SPARG(&callarg, ub) = (struct stat30 *)ub;
   3484  1.41.2.3     rmind 
   3485  1.41.2.3     rmind 	error = rsys_syscall(SYS_compat_50___lstat30, &callarg, sizeof(callarg), retval);
   3486  1.41.2.3     rmind 	rsys_seterrno(error);
   3487  1.41.2.3     rmind 	if (error == 0) {
   3488  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3489  1.41.2.3     rmind 			rv = *(int *)retval;
   3490  1.41.2.3     rmind 		else
   3491  1.41.2.3     rmind 			rv = *retval;
   3492      1.32     pooka 	}
   3493  1.41.2.3     rmind 	return rv;
   3494      1.32     pooka }
   3495  1.41.2.3     rmind rsys_alias(compat_50_sys___lstat30,rump_enosys)
   3496      1.32     pooka 
   3497  1.41.2.3     rmind int rump___sysimpl_getdents30(int, char *, size_t);
   3498      1.11     pooka int
   3499  1.41.2.3     rmind rump___sysimpl_getdents30(int fd, char * buf, size_t count)
   3500      1.10     pooka {
   3501  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3502      1.27     pooka 	int error = 0;
   3503  1.41.2.3     rmind 	int rv = -1;
   3504      1.34     pooka 	struct sys___getdents30_args callarg;
   3505      1.10     pooka 
   3506      1.34     pooka 	SPARG(&callarg, fd) = fd;
   3507      1.31     pooka 	SPARG(&callarg, buf) = buf;
   3508      1.34     pooka 	SPARG(&callarg, count) = count;
   3509      1.10     pooka 
   3510  1.41.2.3     rmind 	error = rsys_syscall(SYS___getdents30, &callarg, sizeof(callarg), retval);
   3511  1.41.2.3     rmind 	rsys_seterrno(error);
   3512  1.41.2.3     rmind 	if (error == 0) {
   3513  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3514  1.41.2.3     rmind 			rv = *(int *)retval;
   3515  1.41.2.3     rmind 		else
   3516  1.41.2.3     rmind 			rv = *retval;
   3517      1.27     pooka 	}
   3518  1.41.2.3     rmind 	return rv;
   3519      1.23  christos }
   3520  1.41.2.3     rmind rsys_alias(sys___getdents30,rump_enosys)
   3521      1.23  christos 
   3522  1.41.2.3     rmind int rump___sysimpl_socket30(int, int, int);
   3523      1.23  christos int
   3524  1.41.2.3     rmind rump___sysimpl_socket30(int domain, int type, int protocol)
   3525      1.23  christos {
   3526  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3527      1.27     pooka 	int error = 0;
   3528  1.41.2.3     rmind 	int rv = -1;
   3529      1.31     pooka 	struct sys___socket30_args callarg;
   3530      1.23  christos 
   3531      1.31     pooka 	SPARG(&callarg, domain) = domain;
   3532      1.31     pooka 	SPARG(&callarg, type) = type;
   3533      1.31     pooka 	SPARG(&callarg, protocol) = protocol;
   3534      1.23  christos 
   3535  1.41.2.3     rmind 	error = rsys_syscall(SYS___socket30, &callarg, sizeof(callarg), retval);
   3536  1.41.2.3     rmind 	rsys_seterrno(error);
   3537  1.41.2.3     rmind 	if (error == 0) {
   3538  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3539  1.41.2.3     rmind 			rv = *(int *)retval;
   3540  1.41.2.3     rmind 		else
   3541  1.41.2.3     rmind 			rv = *retval;
   3542      1.27     pooka 	}
   3543  1.41.2.3     rmind 	return rv;
   3544      1.23  christos }
   3545  1.41.2.3     rmind rsys_alias(sys___socket30,rump_enosys)
   3546      1.23  christos 
   3547  1.41.2.3     rmind int rump___sysimpl_getfh30(const char *, void *, size_t *);
   3548      1.23  christos int
   3549  1.41.2.3     rmind rump___sysimpl_getfh30(const char * fname, void * fhp, size_t * fh_size)
   3550      1.23  christos {
   3551  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3552      1.27     pooka 	int error = 0;
   3553  1.41.2.3     rmind 	int rv = -1;
   3554      1.31     pooka 	struct sys___getfh30_args callarg;
   3555      1.23  christos 
   3556      1.31     pooka 	SPARG(&callarg, fname) = fname;
   3557      1.31     pooka 	SPARG(&callarg, fhp) = fhp;
   3558      1.31     pooka 	SPARG(&callarg, fh_size) = fh_size;
   3559      1.23  christos 
   3560  1.41.2.3     rmind 	error = rsys_syscall(SYS___getfh30, &callarg, sizeof(callarg), retval);
   3561  1.41.2.3     rmind 	rsys_seterrno(error);
   3562  1.41.2.3     rmind 	if (error == 0) {
   3563  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3564  1.41.2.3     rmind 			rv = *(int *)retval;
   3565  1.41.2.3     rmind 		else
   3566  1.41.2.3     rmind 			rv = *retval;
   3567      1.27     pooka 	}
   3568  1.41.2.3     rmind 	return rv;
   3569      1.10     pooka }
   3570  1.41.2.3     rmind rsys_alias(sys___getfh30,rump_enosys)
   3571      1.10     pooka 
   3572  1.41.2.3     rmind int rump___sysimpl_fhopen40(const void *, size_t, int);
   3573      1.36     pooka int
   3574  1.41.2.3     rmind rump___sysimpl_fhopen40(const void * fhp, size_t fh_size, int flags)
   3575      1.36     pooka {
   3576  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3577      1.36     pooka 	int error = 0;
   3578  1.41.2.3     rmind 	int rv = -1;
   3579      1.36     pooka 	struct sys___fhopen40_args callarg;
   3580      1.36     pooka 
   3581      1.36     pooka 	SPARG(&callarg, fhp) = fhp;
   3582      1.36     pooka 	SPARG(&callarg, fh_size) = fh_size;
   3583      1.36     pooka 	SPARG(&callarg, flags) = flags;
   3584      1.36     pooka 
   3585  1.41.2.3     rmind 	error = rsys_syscall(SYS___fhopen40, &callarg, sizeof(callarg), retval);
   3586  1.41.2.3     rmind 	rsys_seterrno(error);
   3587  1.41.2.3     rmind 	if (error == 0) {
   3588  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3589  1.41.2.3     rmind 			rv = *(int *)retval;
   3590  1.41.2.3     rmind 		else
   3591  1.41.2.3     rmind 			rv = *retval;
   3592      1.36     pooka 	}
   3593  1.41.2.3     rmind 	return rv;
   3594      1.36     pooka }
   3595  1.41.2.3     rmind rsys_alias(sys___fhopen40,rump_enosys)
   3596      1.36     pooka 
   3597  1.41.2.3     rmind int rump___sysimpl_fhstatvfs140(const void *, size_t, struct statvfs *, int);
   3598      1.36     pooka int
   3599  1.41.2.3     rmind rump___sysimpl_fhstatvfs140(const void * fhp, size_t fh_size, struct statvfs * buf, int flags)
   3600      1.36     pooka {
   3601  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3602      1.36     pooka 	int error = 0;
   3603  1.41.2.3     rmind 	int rv = -1;
   3604      1.36     pooka 	struct sys___fhstatvfs140_args callarg;
   3605      1.36     pooka 
   3606      1.36     pooka 	SPARG(&callarg, fhp) = fhp;
   3607      1.36     pooka 	SPARG(&callarg, fh_size) = fh_size;
   3608      1.36     pooka 	SPARG(&callarg, buf) = buf;
   3609      1.36     pooka 	SPARG(&callarg, flags) = flags;
   3610      1.36     pooka 
   3611  1.41.2.3     rmind 	error = rsys_syscall(SYS___fhstatvfs140, &callarg, sizeof(callarg), retval);
   3612  1.41.2.3     rmind 	rsys_seterrno(error);
   3613  1.41.2.3     rmind 	if (error == 0) {
   3614  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3615  1.41.2.3     rmind 			rv = *(int *)retval;
   3616  1.41.2.3     rmind 		else
   3617  1.41.2.3     rmind 			rv = *retval;
   3618  1.41.2.3     rmind 	}
   3619  1.41.2.3     rmind 	return rv;
   3620  1.41.2.3     rmind }
   3621  1.41.2.3     rmind rsys_alias(sys___fhstatvfs140,rump_enosys)
   3622  1.41.2.3     rmind 
   3623  1.41.2.3     rmind int rump___sysimpl_fhstat40(const void *, size_t, struct stat *);
   3624  1.41.2.3     rmind int
   3625  1.41.2.3     rmind rump___sysimpl_fhstat40(const void * fhp, size_t fh_size, struct stat * sb)
   3626  1.41.2.3     rmind {
   3627  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3628  1.41.2.3     rmind 	int error = 0;
   3629  1.41.2.3     rmind 	int rv = -1;
   3630  1.41.2.3     rmind 	struct compat_50_sys___fhstat40_args callarg;
   3631  1.41.2.3     rmind 
   3632  1.41.2.3     rmind 	SPARG(&callarg, fhp) = fhp;
   3633  1.41.2.3     rmind 	SPARG(&callarg, fh_size) = fh_size;
   3634  1.41.2.3     rmind 	SPARG(&callarg, sb) = (struct stat30 *)sb;
   3635  1.41.2.3     rmind 
   3636  1.41.2.3     rmind 	error = rsys_syscall(SYS_compat_50___fhstat40, &callarg, sizeof(callarg), retval);
   3637  1.41.2.3     rmind 	rsys_seterrno(error);
   3638  1.41.2.3     rmind 	if (error == 0) {
   3639  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3640  1.41.2.3     rmind 			rv = *(int *)retval;
   3641  1.41.2.3     rmind 		else
   3642  1.41.2.3     rmind 			rv = *retval;
   3643      1.36     pooka 	}
   3644  1.41.2.3     rmind 	return rv;
   3645      1.36     pooka }
   3646  1.41.2.3     rmind rsys_alias(compat_50_sys___fhstat40,rump_enosys)
   3647      1.36     pooka 
   3648  1.41.2.3     rmind int rump___sysimpl_mount50(const char *, const char *, int, void *, size_t);
   3649      1.33     pooka int
   3650  1.41.2.3     rmind rump___sysimpl_mount50(const char * type, const char * path, int flags, void * data, size_t data_len)
   3651      1.33     pooka {
   3652  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3653      1.33     pooka 	int error = 0;
   3654  1.41.2.3     rmind 	int rv = -1;
   3655      1.33     pooka 	struct sys___mount50_args callarg;
   3656      1.33     pooka 
   3657      1.33     pooka 	SPARG(&callarg, type) = type;
   3658      1.33     pooka 	SPARG(&callarg, path) = path;
   3659      1.33     pooka 	SPARG(&callarg, flags) = flags;
   3660      1.33     pooka 	SPARG(&callarg, data) = data;
   3661      1.33     pooka 	SPARG(&callarg, data_len) = data_len;
   3662      1.33     pooka 
   3663  1.41.2.3     rmind 	error = rsys_syscall(SYS___mount50, &callarg, sizeof(callarg), retval);
   3664  1.41.2.3     rmind 	rsys_seterrno(error);
   3665  1.41.2.3     rmind 	if (error == 0) {
   3666  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3667  1.41.2.3     rmind 			rv = *(int *)retval;
   3668  1.41.2.3     rmind 		else
   3669  1.41.2.3     rmind 			rv = *retval;
   3670      1.33     pooka 	}
   3671  1.41.2.3     rmind 	return rv;
   3672      1.33     pooka }
   3673  1.41.2.3     rmind rsys_alias(sys___mount50,rump_enosys)
   3674      1.33     pooka 
   3675  1.41.2.3     rmind int rump___sysimpl_posix_fadvise50(int, off_t, off_t, int);
   3676      1.34     pooka int
   3677  1.41.2.3     rmind rump___sysimpl_posix_fadvise50(int fd, off_t offset, off_t len, int advice)
   3678      1.34     pooka {
   3679  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3680  1.41.2.3     rmind 	int rv = -1;
   3681  1.41.2.3     rmind 	struct sys___posix_fadvise50_args callarg;
   3682  1.41.2.3     rmind 
   3683  1.41.2.3     rmind 	SPARG(&callarg, fd) = fd;
   3684  1.41.2.3     rmind 	SPARG(&callarg, PAD) = 0;
   3685  1.41.2.3     rmind 	SPARG(&callarg, offset) = offset;
   3686  1.41.2.3     rmind 	SPARG(&callarg, len) = len;
   3687  1.41.2.3     rmind 	SPARG(&callarg, advice) = advice;
   3688  1.41.2.3     rmind 
   3689  1.41.2.3     rmind 	rsys_syscall(SYS___posix_fadvise50, &callarg, sizeof(callarg), retval);
   3690  1.41.2.3     rmind 	if (sizeof(int) > sizeof(register_t))
   3691  1.41.2.3     rmind 		rv = *(int *)retval;
   3692  1.41.2.3     rmind 	else
   3693  1.41.2.3     rmind 		rv = *retval;
   3694  1.41.2.3     rmind 	return rv;
   3695  1.41.2.3     rmind }
   3696  1.41.2.3     rmind rsys_alias(sys___posix_fadvise50,rump_enosys)
   3697  1.41.2.3     rmind 
   3698  1.41.2.3     rmind int rump___sysimpl_select50(int, fd_set *, fd_set *, fd_set *, struct timeval *);
   3699  1.41.2.3     rmind int
   3700  1.41.2.3     rmind rump___sysimpl_select50(int nd, fd_set * in, fd_set * ou, fd_set * ex, struct timeval * tv)
   3701  1.41.2.3     rmind {
   3702  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3703      1.34     pooka 	int error = 0;
   3704  1.41.2.3     rmind 	int rv = -1;
   3705      1.34     pooka 	struct sys___select50_args callarg;
   3706      1.34     pooka 
   3707      1.34     pooka 	SPARG(&callarg, nd) = nd;
   3708      1.34     pooka 	SPARG(&callarg, in) = in;
   3709      1.34     pooka 	SPARG(&callarg, ou) = ou;
   3710      1.34     pooka 	SPARG(&callarg, ex) = ex;
   3711      1.34     pooka 	SPARG(&callarg, tv) = tv;
   3712      1.34     pooka 
   3713  1.41.2.3     rmind 	error = rsys_syscall(SYS___select50, &callarg, sizeof(callarg), retval);
   3714  1.41.2.3     rmind 	rsys_seterrno(error);
   3715  1.41.2.3     rmind 	if (error == 0) {
   3716  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3717  1.41.2.3     rmind 			rv = *(int *)retval;
   3718  1.41.2.3     rmind 		else
   3719  1.41.2.3     rmind 			rv = *retval;
   3720      1.34     pooka 	}
   3721  1.41.2.3     rmind 	return rv;
   3722      1.34     pooka }
   3723  1.41.2.3     rmind rsys_alias(sys___select50,rump_enosys)
   3724      1.34     pooka 
   3725  1.41.2.3     rmind int rump___sysimpl_utimes50(const char *, const struct timeval *);
   3726      1.10     pooka int
   3727  1.41.2.3     rmind rump___sysimpl_utimes50(const char * path, const struct timeval * tptr)
   3728      1.22     pooka {
   3729  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3730      1.27     pooka 	int error = 0;
   3731  1.41.2.3     rmind 	int rv = -1;
   3732      1.31     pooka 	struct sys___utimes50_args callarg;
   3733      1.22     pooka 
   3734      1.31     pooka 	SPARG(&callarg, path) = path;
   3735      1.31     pooka 	SPARG(&callarg, tptr) = tptr;
   3736      1.22     pooka 
   3737  1.41.2.3     rmind 	error = rsys_syscall(SYS___utimes50, &callarg, sizeof(callarg), retval);
   3738  1.41.2.3     rmind 	rsys_seterrno(error);
   3739  1.41.2.3     rmind 	if (error == 0) {
   3740  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3741  1.41.2.3     rmind 			rv = *(int *)retval;
   3742  1.41.2.3     rmind 		else
   3743  1.41.2.3     rmind 			rv = *retval;
   3744      1.27     pooka 	}
   3745  1.41.2.3     rmind 	return rv;
   3746      1.22     pooka }
   3747  1.41.2.3     rmind rsys_alias(sys___utimes50,rump_enosys)
   3748      1.22     pooka 
   3749  1.41.2.3     rmind int rump___sysimpl_futimes50(int, const struct timeval *);
   3750      1.34     pooka int
   3751  1.41.2.3     rmind rump___sysimpl_futimes50(int fd, const struct timeval * tptr)
   3752      1.34     pooka {
   3753  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3754      1.34     pooka 	int error = 0;
   3755  1.41.2.3     rmind 	int rv = -1;
   3756      1.34     pooka 	struct sys___futimes50_args callarg;
   3757      1.34     pooka 
   3758      1.34     pooka 	SPARG(&callarg, fd) = fd;
   3759      1.34     pooka 	SPARG(&callarg, tptr) = tptr;
   3760      1.34     pooka 
   3761  1.41.2.3     rmind 	error = rsys_syscall(SYS___futimes50, &callarg, sizeof(callarg), retval);
   3762  1.41.2.3     rmind 	rsys_seterrno(error);
   3763  1.41.2.3     rmind 	if (error == 0) {
   3764  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3765  1.41.2.3     rmind 			rv = *(int *)retval;
   3766  1.41.2.3     rmind 		else
   3767  1.41.2.3     rmind 			rv = *retval;
   3768      1.34     pooka 	}
   3769  1.41.2.3     rmind 	return rv;
   3770      1.34     pooka }
   3771  1.41.2.3     rmind rsys_alias(sys___futimes50,rump_enosys)
   3772      1.34     pooka 
   3773  1.41.2.3     rmind int rump___sysimpl_lutimes50(const char *, const struct timeval *);
   3774      1.22     pooka int
   3775  1.41.2.3     rmind rump___sysimpl_lutimes50(const char * path, const struct timeval * tptr)
   3776      1.10     pooka {
   3777  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3778      1.27     pooka 	int error = 0;
   3779  1.41.2.3     rmind 	int rv = -1;
   3780      1.31     pooka 	struct sys___lutimes50_args callarg;
   3781      1.10     pooka 
   3782      1.31     pooka 	SPARG(&callarg, path) = path;
   3783      1.31     pooka 	SPARG(&callarg, tptr) = tptr;
   3784      1.10     pooka 
   3785  1.41.2.3     rmind 	error = rsys_syscall(SYS___lutimes50, &callarg, sizeof(callarg), retval);
   3786  1.41.2.3     rmind 	rsys_seterrno(error);
   3787  1.41.2.3     rmind 	if (error == 0) {
   3788  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3789  1.41.2.3     rmind 			rv = *(int *)retval;
   3790  1.41.2.3     rmind 		else
   3791  1.41.2.3     rmind 			rv = *retval;
   3792      1.27     pooka 	}
   3793  1.41.2.3     rmind 	return rv;
   3794      1.10     pooka }
   3795  1.41.2.3     rmind rsys_alias(sys___lutimes50,rump_enosys)
   3796      1.10     pooka 
   3797  1.41.2.3     rmind int rump___sysimpl_kevent50(int, const struct kevent *, size_t, struct kevent *, size_t, const struct timespec *);
   3798      1.32     pooka int
   3799  1.41.2.3     rmind rump___sysimpl_kevent50(int fd, const struct kevent * changelist, size_t nchanges, struct kevent * eventlist, size_t nevents, const struct timespec * timeout)
   3800      1.32     pooka {
   3801  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3802      1.32     pooka 	int error = 0;
   3803  1.41.2.3     rmind 	int rv = -1;
   3804      1.32     pooka 	struct sys___kevent50_args callarg;
   3805      1.32     pooka 
   3806      1.32     pooka 	SPARG(&callarg, fd) = fd;
   3807      1.32     pooka 	SPARG(&callarg, changelist) = changelist;
   3808      1.32     pooka 	SPARG(&callarg, nchanges) = nchanges;
   3809      1.32     pooka 	SPARG(&callarg, eventlist) = eventlist;
   3810      1.32     pooka 	SPARG(&callarg, nevents) = nevents;
   3811      1.32     pooka 	SPARG(&callarg, timeout) = timeout;
   3812      1.32     pooka 
   3813  1.41.2.3     rmind 	error = rsys_syscall(SYS___kevent50, &callarg, sizeof(callarg), retval);
   3814  1.41.2.3     rmind 	rsys_seterrno(error);
   3815  1.41.2.3     rmind 	if (error == 0) {
   3816  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3817  1.41.2.3     rmind 			rv = *(int *)retval;
   3818  1.41.2.3     rmind 		else
   3819  1.41.2.3     rmind 			rv = *retval;
   3820      1.32     pooka 	}
   3821  1.41.2.3     rmind 	return rv;
   3822      1.32     pooka }
   3823  1.41.2.3     rmind rsys_alias(sys___kevent50,rump_enosys)
   3824      1.32     pooka 
   3825  1.41.2.3     rmind int rump___sysimpl_pselect50(int, fd_set *, fd_set *, fd_set *, const struct timespec *, const sigset_t *);
   3826      1.34     pooka int
   3827  1.41.2.3     rmind rump___sysimpl_pselect50(int nd, fd_set * in, fd_set * ou, fd_set * ex, const struct timespec * ts, const sigset_t * mask)
   3828      1.34     pooka {
   3829  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3830      1.34     pooka 	int error = 0;
   3831  1.41.2.3     rmind 	int rv = -1;
   3832      1.34     pooka 	struct sys___pselect50_args callarg;
   3833      1.34     pooka 
   3834      1.34     pooka 	SPARG(&callarg, nd) = nd;
   3835      1.34     pooka 	SPARG(&callarg, in) = in;
   3836      1.34     pooka 	SPARG(&callarg, ou) = ou;
   3837      1.34     pooka 	SPARG(&callarg, ex) = ex;
   3838      1.34     pooka 	SPARG(&callarg, ts) = ts;
   3839      1.34     pooka 	SPARG(&callarg, mask) = mask;
   3840      1.34     pooka 
   3841  1.41.2.3     rmind 	error = rsys_syscall(SYS___pselect50, &callarg, sizeof(callarg), retval);
   3842  1.41.2.3     rmind 	rsys_seterrno(error);
   3843  1.41.2.3     rmind 	if (error == 0) {
   3844  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3845  1.41.2.3     rmind 			rv = *(int *)retval;
   3846  1.41.2.3     rmind 		else
   3847  1.41.2.3     rmind 			rv = *retval;
   3848      1.34     pooka 	}
   3849  1.41.2.3     rmind 	return rv;
   3850      1.34     pooka }
   3851  1.41.2.3     rmind rsys_alias(sys___pselect50,rump_enosys)
   3852      1.34     pooka 
   3853  1.41.2.3     rmind int rump___sysimpl_pollts50(struct pollfd *, u_int, const struct timespec *, const sigset_t *);
   3854      1.34     pooka int
   3855  1.41.2.3     rmind rump___sysimpl_pollts50(struct pollfd * fds, u_int nfds, const struct timespec * ts, const sigset_t * mask)
   3856      1.34     pooka {
   3857  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3858      1.34     pooka 	int error = 0;
   3859  1.41.2.3     rmind 	int rv = -1;
   3860      1.34     pooka 	struct sys___pollts50_args callarg;
   3861      1.34     pooka 
   3862      1.34     pooka 	SPARG(&callarg, fds) = fds;
   3863      1.34     pooka 	SPARG(&callarg, nfds) = nfds;
   3864      1.34     pooka 	SPARG(&callarg, ts) = ts;
   3865      1.34     pooka 	SPARG(&callarg, mask) = mask;
   3866      1.34     pooka 
   3867  1.41.2.3     rmind 	error = rsys_syscall(SYS___pollts50, &callarg, sizeof(callarg), retval);
   3868  1.41.2.3     rmind 	rsys_seterrno(error);
   3869  1.41.2.3     rmind 	if (error == 0) {
   3870  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3871  1.41.2.3     rmind 			rv = *(int *)retval;
   3872  1.41.2.3     rmind 		else
   3873  1.41.2.3     rmind 			rv = *retval;
   3874      1.34     pooka 	}
   3875  1.41.2.3     rmind 	return rv;
   3876      1.34     pooka }
   3877  1.41.2.3     rmind rsys_alias(sys___pollts50,rump_enosys)
   3878      1.34     pooka 
   3879  1.41.2.3     rmind int rump___sysimpl_stat50(const char *, struct stat *);
   3880      1.10     pooka int
   3881  1.41.2.3     rmind rump___sysimpl_stat50(const char * path, struct stat * ub)
   3882      1.10     pooka {
   3883  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3884      1.27     pooka 	int error = 0;
   3885  1.41.2.3     rmind 	int rv = -1;
   3886      1.31     pooka 	struct sys___stat50_args callarg;
   3887      1.10     pooka 
   3888      1.31     pooka 	SPARG(&callarg, path) = path;
   3889      1.31     pooka 	SPARG(&callarg, ub) = ub;
   3890      1.10     pooka 
   3891  1.41.2.3     rmind 	error = rsys_syscall(SYS___stat50, &callarg, sizeof(callarg), retval);
   3892  1.41.2.3     rmind 	rsys_seterrno(error);
   3893  1.41.2.3     rmind 	if (error == 0) {
   3894  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3895  1.41.2.3     rmind 			rv = *(int *)retval;
   3896  1.41.2.3     rmind 		else
   3897  1.41.2.3     rmind 			rv = *retval;
   3898      1.27     pooka 	}
   3899  1.41.2.3     rmind 	return rv;
   3900      1.10     pooka }
   3901  1.41.2.3     rmind rsys_alias(sys___stat50,rump_enosys)
   3902      1.18     pooka 
   3903  1.41.2.3     rmind int rump___sysimpl_fstat50(int, struct stat *);
   3904      1.34     pooka int
   3905  1.41.2.3     rmind rump___sysimpl_fstat50(int fd, struct stat * sb)
   3906      1.34     pooka {
   3907  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3908      1.34     pooka 	int error = 0;
   3909  1.41.2.3     rmind 	int rv = -1;
   3910      1.34     pooka 	struct sys___fstat50_args callarg;
   3911      1.34     pooka 
   3912      1.34     pooka 	SPARG(&callarg, fd) = fd;
   3913      1.34     pooka 	SPARG(&callarg, sb) = sb;
   3914      1.34     pooka 
   3915  1.41.2.3     rmind 	error = rsys_syscall(SYS___fstat50, &callarg, sizeof(callarg), retval);
   3916  1.41.2.3     rmind 	rsys_seterrno(error);
   3917  1.41.2.3     rmind 	if (error == 0) {
   3918  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3919  1.41.2.3     rmind 			rv = *(int *)retval;
   3920  1.41.2.3     rmind 		else
   3921  1.41.2.3     rmind 			rv = *retval;
   3922      1.34     pooka 	}
   3923  1.41.2.3     rmind 	return rv;
   3924      1.34     pooka }
   3925  1.41.2.3     rmind rsys_alias(sys___fstat50,rump_enosys)
   3926      1.34     pooka 
   3927  1.41.2.3     rmind int rump___sysimpl_lstat50(const char *, struct stat *);
   3928      1.18     pooka int
   3929  1.41.2.3     rmind rump___sysimpl_lstat50(const char * path, struct stat * ub)
   3930      1.18     pooka {
   3931  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3932      1.27     pooka 	int error = 0;
   3933  1.41.2.3     rmind 	int rv = -1;
   3934      1.31     pooka 	struct sys___lstat50_args callarg;
   3935      1.18     pooka 
   3936      1.31     pooka 	SPARG(&callarg, path) = path;
   3937      1.31     pooka 	SPARG(&callarg, ub) = ub;
   3938      1.18     pooka 
   3939  1.41.2.3     rmind 	error = rsys_syscall(SYS___lstat50, &callarg, sizeof(callarg), retval);
   3940  1.41.2.3     rmind 	rsys_seterrno(error);
   3941  1.41.2.3     rmind 	if (error == 0) {
   3942  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3943  1.41.2.3     rmind 			rv = *(int *)retval;
   3944  1.41.2.3     rmind 		else
   3945  1.41.2.3     rmind 			rv = *retval;
   3946      1.27     pooka 	}
   3947  1.41.2.3     rmind 	return rv;
   3948      1.18     pooka }
   3949  1.41.2.3     rmind rsys_alias(sys___lstat50,rump_enosys)
   3950      1.22     pooka 
   3951  1.41.2.3     rmind int rump___sysimpl_mknod50(const char *, mode_t, dev_t);
   3952      1.22     pooka int
   3953  1.41.2.3     rmind rump___sysimpl_mknod50(const char * path, mode_t mode, dev_t dev)
   3954      1.22     pooka {
   3955  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3956      1.27     pooka 	int error = 0;
   3957  1.41.2.3     rmind 	int rv = -1;
   3958      1.31     pooka 	struct sys___mknod50_args callarg;
   3959      1.22     pooka 
   3960      1.31     pooka 	SPARG(&callarg, path) = path;
   3961      1.31     pooka 	SPARG(&callarg, mode) = mode;
   3962      1.31     pooka 	SPARG(&callarg, dev) = dev;
   3963      1.22     pooka 
   3964  1.41.2.3     rmind 	error = rsys_syscall(SYS___mknod50, &callarg, sizeof(callarg), retval);
   3965  1.41.2.3     rmind 	rsys_seterrno(error);
   3966  1.41.2.3     rmind 	if (error == 0) {
   3967  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3968  1.41.2.3     rmind 			rv = *(int *)retval;
   3969  1.41.2.3     rmind 		else
   3970  1.41.2.3     rmind 			rv = *retval;
   3971      1.27     pooka 	}
   3972  1.41.2.3     rmind 	return rv;
   3973      1.22     pooka }
   3974  1.41.2.3     rmind rsys_alias(sys___mknod50,rump_enosys)
   3975      1.29     pooka 
   3976  1.41.2.3     rmind int rump___sysimpl_fhstat50(const void *, size_t, struct stat *);
   3977      1.34     pooka int
   3978  1.41.2.3     rmind rump___sysimpl_fhstat50(const void * fhp, size_t fh_size, struct stat * sb)
   3979      1.34     pooka {
   3980  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   3981      1.34     pooka 	int error = 0;
   3982  1.41.2.3     rmind 	int rv = -1;
   3983      1.34     pooka 	struct sys___fhstat50_args callarg;
   3984      1.34     pooka 
   3985      1.34     pooka 	SPARG(&callarg, fhp) = fhp;
   3986      1.34     pooka 	SPARG(&callarg, fh_size) = fh_size;
   3987      1.34     pooka 	SPARG(&callarg, sb) = sb;
   3988      1.34     pooka 
   3989  1.41.2.3     rmind 	error = rsys_syscall(SYS___fhstat50, &callarg, sizeof(callarg), retval);
   3990  1.41.2.3     rmind 	rsys_seterrno(error);
   3991  1.41.2.3     rmind 	if (error == 0) {
   3992  1.41.2.3     rmind 		if (sizeof(int) > sizeof(register_t))
   3993  1.41.2.3     rmind 			rv = *(int *)retval;
   3994  1.41.2.3     rmind 		else
   3995  1.41.2.3     rmind 			rv = *retval;
   3996      1.34     pooka 	}
   3997  1.41.2.3     rmind 	return rv;
   3998      1.34     pooka }
   3999  1.41.2.3     rmind rsys_alias(sys___fhstat50,rump_enosys)
   4000      1.34     pooka 
   4001  1.41.2.4     rmind int rump___sysimpl_quotactl50(const char *, struct plistref *);
   4002  1.41.2.4     rmind int
   4003  1.41.2.4     rmind rump___sysimpl_quotactl50(const char * path, struct plistref * pref)
   4004  1.41.2.4     rmind {
   4005  1.41.2.4     rmind 	register_t retval[2] = {0, 0};
   4006  1.41.2.4     rmind 	int error = 0;
   4007  1.41.2.4     rmind 	int rv = -1;
   4008  1.41.2.4     rmind 	struct sys___quotactl50_args callarg;
   4009  1.41.2.4     rmind 
   4010  1.41.2.4     rmind 	SPARG(&callarg, path) = path;
   4011  1.41.2.4     rmind 	SPARG(&callarg, pref) = pref;
   4012  1.41.2.4     rmind 
   4013  1.41.2.4     rmind 	error = rsys_syscall(SYS___quotactl50, &callarg, sizeof(callarg), retval);
   4014  1.41.2.4     rmind 	rsys_seterrno(error);
   4015  1.41.2.4     rmind 	if (error == 0) {
   4016  1.41.2.4     rmind 		if (sizeof(int) > sizeof(register_t))
   4017  1.41.2.4     rmind 			rv = *(int *)retval;
   4018  1.41.2.4     rmind 		else
   4019  1.41.2.4     rmind 			rv = *retval;
   4020  1.41.2.4     rmind 	}
   4021  1.41.2.4     rmind 	return rv;
   4022  1.41.2.4     rmind }
   4023  1.41.2.4     rmind rsys_alias(sys___quotactl50,rump_enosys)
   4024  1.41.2.4     rmind 
   4025      1.40     pooka int rump_sys_pipe(int *);
   4026      1.40     pooka int
   4027      1.40     pooka rump_sys_pipe(int *fd)
   4028      1.40     pooka {
   4029  1.41.2.3     rmind 	register_t retval[2] = {0, 0};
   4030      1.40     pooka 	int error = 0;
   4031      1.40     pooka 
   4032  1.41.2.3     rmind 	error = rsys_syscall(SYS_pipe, NULL, 0, retval);
   4033      1.40     pooka 	if (error) {
   4034  1.41.2.3     rmind 		rsys_seterrno(error);
   4035      1.40     pooka 	} else {
   4036  1.41.2.3     rmind 		fd[0] = retval[0];
   4037  1.41.2.3     rmind 		fd[1] = retval[1];
   4038      1.40     pooka 	}
   4039      1.40     pooka 	return error ? -1 : 0;
   4040      1.40     pooka }
   4041      1.40     pooka 
   4042  1.41.2.3     rmind #ifndef RUMP_CLIENT
   4043      1.29     pooka #define	s(type)	sizeof(type)
   4044      1.29     pooka #define	n(type)	(sizeof(type)/sizeof (register_t))
   4045      1.29     pooka #define	ns(type)	n(type), s(type)
   4046      1.29     pooka 
   4047      1.29     pooka struct sysent rump_sysent[] = {
   4048  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4049  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 0 = syscall */
   4050  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4051  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 1 = exit */
   4052  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4053  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 2 = fork */
   4054      1.29     pooka 	{ ns(struct sys_read_args), 0,
   4055  1.41.2.3     rmind 	    (sy_call_t *)sys_read },		/* 3 = read */
   4056      1.29     pooka 	{ ns(struct sys_write_args), 0,
   4057  1.41.2.3     rmind 	    (sy_call_t *)sys_write },		/* 4 = write */
   4058      1.29     pooka 	{ ns(struct sys_open_args), 0,
   4059  1.41.2.3     rmind 	    (sy_call_t *)sys_open },		/* 5 = open */
   4060      1.29     pooka 	{ ns(struct sys_close_args), 0,
   4061  1.41.2.3     rmind 	    (sy_call_t *)sys_close },		/* 6 = close */
   4062      1.29     pooka 	{ 0, 0, 0,
   4063  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 7 = wait4 */
   4064      1.29     pooka 	{ 0, 0, 0,
   4065  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 8 = ocreat */
   4066      1.29     pooka 	{ ns(struct sys_link_args), 0,
   4067  1.41.2.3     rmind 	    (sy_call_t *)sys_link },		/* 9 = link */
   4068      1.29     pooka 	{ ns(struct sys_unlink_args), 0,
   4069  1.41.2.3     rmind 	    (sy_call_t *)sys_unlink },		/* 10 = unlink */
   4070  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4071  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 11 = obsolete execv */
   4072      1.29     pooka 	{ ns(struct sys_chdir_args), 0,
   4073  1.41.2.3     rmind 	    (sy_call_t *)sys_chdir },		/* 12 = chdir */
   4074      1.29     pooka 	{ ns(struct sys_fchdir_args), 0,
   4075  1.41.2.3     rmind 	    (sy_call_t *)sys_fchdir },		/* 13 = fchdir */
   4076  1.41.2.3     rmind 	{ ns(struct compat_50_sys_mknod_args), 0,
   4077  1.41.2.3     rmind 	    (sy_call_t *)compat_50_sys_mknod },	/* 14 = compat_50_mknod */
   4078      1.29     pooka 	{ ns(struct sys_chmod_args), 0,
   4079  1.41.2.3     rmind 	    (sy_call_t *)sys_chmod },		/* 15 = chmod */
   4080      1.29     pooka 	{ ns(struct sys_chown_args), 0,
   4081  1.41.2.3     rmind 	    (sy_call_t *)sys_chown },		/* 16 = chown */
   4082  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4083  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 17 = break */
   4084      1.29     pooka 	{ 0, 0, 0,
   4085  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 18 = getfsstat */
   4086      1.29     pooka 	{ 0, 0, 0,
   4087  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 19 = olseek */
   4088      1.29     pooka 	{ 0, 0, 0,
   4089  1.41.2.3     rmind 	    (sy_call_t *)sys_getpid_with_ppid },/* 20 = getpid */
   4090      1.29     pooka 	{ 0, 0, 0,
   4091  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 21 = mount */
   4092      1.29     pooka 	{ ns(struct sys_unmount_args), 0,
   4093  1.41.2.3     rmind 	    (sy_call_t *)sys_unmount },		/* 22 = unmount */
   4094  1.41.2.3     rmind 	{ ns(struct sys_setuid_args), 0,
   4095  1.41.2.3     rmind 	    (sy_call_t *)sys_setuid },		/* 23 = setuid */
   4096  1.41.2.3     rmind 	{ 0, 0, 0,
   4097  1.41.2.3     rmind 	    (sy_call_t *)sys_getuid_with_euid },/* 24 = getuid */
   4098  1.41.2.3     rmind 	{ 0, 0, 0,
   4099  1.41.2.3     rmind 	    (sy_call_t *)sys_geteuid },		/* 25 = geteuid */
   4100  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4101  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 26 = ptrace */
   4102      1.29     pooka 	{ ns(struct sys_recvmsg_args), 0,
   4103  1.41.2.3     rmind 	    (sy_call_t *)sys_recvmsg },		/* 27 = recvmsg */
   4104      1.29     pooka 	{ ns(struct sys_sendmsg_args), 0,
   4105  1.41.2.3     rmind 	    (sy_call_t *)sys_sendmsg },		/* 28 = sendmsg */
   4106      1.29     pooka 	{ ns(struct sys_recvfrom_args), 0,
   4107  1.41.2.3     rmind 	    (sy_call_t *)sys_recvfrom },	/* 29 = recvfrom */
   4108      1.29     pooka 	{ ns(struct sys_accept_args), 0,
   4109  1.41.2.3     rmind 	    (sy_call_t *)sys_accept },		/* 30 = accept */
   4110      1.29     pooka 	{ ns(struct sys_getpeername_args), 0,
   4111  1.41.2.3     rmind 	    (sy_call_t *)sys_getpeername },	/* 31 = getpeername */
   4112      1.29     pooka 	{ ns(struct sys_getsockname_args), 0,
   4113  1.41.2.3     rmind 	    (sy_call_t *)sys_getsockname },	/* 32 = getsockname */
   4114      1.34     pooka 	{ ns(struct sys_access_args), 0,
   4115  1.41.2.3     rmind 	    (sy_call_t *)sys_access },		/* 33 = access */
   4116      1.29     pooka 	{ ns(struct sys_chflags_args), 0,
   4117  1.41.2.3     rmind 	    (sy_call_t *)sys_chflags },		/* 34 = chflags */
   4118      1.34     pooka 	{ ns(struct sys_fchflags_args), 0,
   4119  1.41.2.3     rmind 	    (sy_call_t *)sys_fchflags },	/* 35 = fchflags */
   4120      1.29     pooka 	{ 0, 0, 0,
   4121  1.41.2.3     rmind 	    (sy_call_t *)sys_sync },		/* 36 = sync */
   4122  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4123  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 37 = kill */
   4124      1.29     pooka 	{ 0, 0, 0,
   4125  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 38 = stat43 */
   4126      1.29     pooka 	{ 0, 0, 0,
   4127  1.41.2.3     rmind 	    (sy_call_t *)sys_getppid },		/* 39 = getppid */
   4128      1.29     pooka 	{ 0, 0, 0,
   4129  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 40 = lstat43 */
   4130      1.34     pooka 	{ ns(struct sys_dup_args), 0,
   4131  1.41.2.3     rmind 	    (sy_call_t *)sys_dup },		/* 41 = dup */
   4132      1.29     pooka 	{ 0, 0, 0,
   4133  1.41.2.3     rmind 	    (sy_call_t *)sys_pipe },		/* 42 = pipe */
   4134      1.29     pooka 	{ 0, 0, 0,
   4135  1.41.2.3     rmind 	    (sy_call_t *)sys_getegid },		/* 43 = getegid */
   4136  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4137  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 44 = profil */
   4138  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4139  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 45 = ktrace */
   4140      1.29     pooka 	{ 0, 0, 0,
   4141  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 46 = sigaction13 */
   4142      1.29     pooka 	{ 0, 0, 0,
   4143  1.41.2.3     rmind 	    (sy_call_t *)sys_getgid_with_egid },/* 47 = getgid */
   4144      1.29     pooka 	{ 0, 0, 0,
   4145  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 48 = sigprocmask13 */
   4146  1.41.2.3     rmind 	{ ns(struct sys___getlogin_args), 0,
   4147  1.41.2.3     rmind 	    (sy_call_t *)sys___getlogin },	/* 49 = __getlogin */
   4148  1.41.2.3     rmind 	{ ns(struct sys___setlogin_args), 0,
   4149  1.41.2.3     rmind 	    (sy_call_t *)sys___setlogin },	/* 50 = __setlogin */
   4150  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4151  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 51 = acct */
   4152      1.29     pooka 	{ 0, 0, 0,
   4153  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 52 = sigpending13 */
   4154      1.29     pooka 	{ 0, 0, 0,
   4155  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 53 = sigaltstack13 */
   4156      1.29     pooka 	{ ns(struct sys_ioctl_args), 0,
   4157  1.41.2.3     rmind 	    (sy_call_t *)sys_ioctl },		/* 54 = ioctl */
   4158      1.29     pooka 	{ 0, 0, 0,
   4159  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 55 = oreboot */
   4160      1.34     pooka 	{ ns(struct sys_revoke_args), 0,
   4161  1.41.2.3     rmind 	    (sy_call_t *)sys_revoke },		/* 56 = revoke */
   4162      1.29     pooka 	{ ns(struct sys_symlink_args), 0,
   4163  1.41.2.3     rmind 	    (sy_call_t *)sys_symlink },		/* 57 = symlink */
   4164      1.29     pooka 	{ ns(struct sys_readlink_args), 0,
   4165  1.41.2.3     rmind 	    (sy_call_t *)sys_readlink },	/* 58 = readlink */
   4166  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4167  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 59 = execve */
   4168  1.41.2.3     rmind 	{ ns(struct sys_umask_args), 0,
   4169  1.41.2.3     rmind 	    (sy_call_t *)sys_umask },		/* 60 = umask */
   4170      1.34     pooka 	{ ns(struct sys_chroot_args), 0,
   4171  1.41.2.3     rmind 	    (sy_call_t *)sys_chroot },		/* 61 = chroot */
   4172      1.29     pooka 	{ 0, 0, 0,
   4173  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 62 = fstat43 */
   4174      1.29     pooka 	{ 0, 0, 0,
   4175  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 63 = ogetkerninfo */
   4176      1.29     pooka 	{ 0, 0, 0,
   4177  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 64 = ogetpagesize */
   4178      1.29     pooka 	{ 0, 0, 0,
   4179  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 65 = msync */
   4180  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4181  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 66 = vfork */
   4182  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4183  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 67 = obsolete vread */
   4184  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4185  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 68 = obsolete vwrite */
   4186  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4187  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 69 = sbrk */
   4188  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4189  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 70 = sstk */
   4190  1.41.2.3     rmind 	{ 0, 0, 0,
   4191  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 71 = ommap */
   4192  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4193  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 72 = vadvise */
   4194  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4195  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 73 = munmap */
   4196  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4197  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 74 = mprotect */
   4198  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4199  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 75 = madvise */
   4200  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4201  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 76 = obsolete vhangup */
   4202  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4203  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 77 = obsolete vlimit */
   4204  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4205  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 78 = mincore */
   4206  1.41.2.3     rmind 	{ ns(struct sys_getgroups_args), 0,
   4207  1.41.2.3     rmind 	    (sy_call_t *)sys_getgroups },	/* 79 = getgroups */
   4208  1.41.2.3     rmind 	{ ns(struct sys_setgroups_args), 0,
   4209  1.41.2.3     rmind 	    (sy_call_t *)sys_setgroups },	/* 80 = setgroups */
   4210  1.41.2.3     rmind 	{ 0, 0, 0,
   4211  1.41.2.3     rmind 	    (sy_call_t *)sys_getpgrp },		/* 81 = getpgrp */
   4212  1.41.2.3     rmind 	{ ns(struct sys_setpgid_args), 0,
   4213  1.41.2.3     rmind 	    (sy_call_t *)sys_setpgid },		/* 82 = setpgid */
   4214  1.41.2.3     rmind 	{ 0, 0, 0,
   4215  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 83 = setitimer */
   4216  1.41.2.3     rmind 	{ 0, 0, 0,
   4217  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 84 = owait */
   4218  1.41.2.3     rmind 	{ 0, 0, 0,
   4219  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 85 = oswapon */
   4220      1.29     pooka 	{ 0, 0, 0,
   4221  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 86 = getitimer */
   4222      1.29     pooka 	{ 0, 0, 0,
   4223  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 87 = ogethostname */
   4224      1.29     pooka 	{ 0, 0, 0,
   4225  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 88 = osethostname */
   4226      1.29     pooka 	{ 0, 0, 0,
   4227  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 89 = ogetdtablesize */
   4228      1.34     pooka 	{ ns(struct sys_dup2_args), 0,
   4229  1.41.2.3     rmind 	    (sy_call_t *)sys_dup2 },		/* 90 = dup2 */
   4230  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4231  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 91 = unimplemented getdopt */
   4232      1.34     pooka 	{ ns(struct sys_fcntl_args), 0,
   4233  1.41.2.3     rmind 	    (sy_call_t *)sys_fcntl },		/* 92 = fcntl */
   4234  1.41.2.3     rmind 	{ ns(struct compat_50_sys_select_args), 0,
   4235  1.41.2.3     rmind 	    (sy_call_t *)compat_50_sys_select },/* 93 = compat_50_select */
   4236  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4237  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 94 = unimplemented setdopt */
   4238      1.29     pooka 	{ ns(struct sys_fsync_args), 0,
   4239  1.41.2.3     rmind 	    (sy_call_t *)sys_fsync },		/* 95 = fsync */
   4240  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4241  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 96 = setpriority */
   4242      1.29     pooka 	{ 0, 0, 0,
   4243  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 97 = socket */
   4244      1.29     pooka 	{ ns(struct sys_connect_args), 0,
   4245  1.41.2.3     rmind 	    (sy_call_t *)sys_connect },		/* 98 = connect */
   4246      1.29     pooka 	{ 0, 0, 0,
   4247  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 99 = oaccept */
   4248  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4249  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 100 = getpriority */
   4250      1.29     pooka 	{ 0, 0, 0,
   4251  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 101 = osend */
   4252      1.29     pooka 	{ 0, 0, 0,
   4253  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 102 = orecv */
   4254      1.29     pooka 	{ 0, 0, 0,
   4255  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 103 = sigreturn13 */
   4256      1.29     pooka 	{ ns(struct sys_bind_args), 0,
   4257  1.41.2.3     rmind 	    (sy_call_t *)sys_bind },		/* 104 = bind */
   4258      1.29     pooka 	{ ns(struct sys_setsockopt_args), 0,
   4259  1.41.2.3     rmind 	    (sy_call_t *)sys_setsockopt },	/* 105 = setsockopt */
   4260      1.29     pooka 	{ ns(struct sys_listen_args), 0,
   4261  1.41.2.3     rmind 	    (sy_call_t *)sys_listen },		/* 106 = listen */
   4262  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4263  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 107 = obsolete vtimes */
   4264      1.29     pooka 	{ 0, 0, 0,
   4265  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 108 = osigvec */
   4266      1.29     pooka 	{ 0, 0, 0,
   4267  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 109 = osigblock */
   4268      1.29     pooka 	{ 0, 0, 0,
   4269  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 110 = osigsetmask */
   4270      1.29     pooka 	{ 0, 0, 0,
   4271  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 111 = sigsuspend13 */
   4272      1.29     pooka 	{ 0, 0, 0,
   4273  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 112 = osigstack */
   4274      1.29     pooka 	{ 0, 0, 0,
   4275  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 113 = orecvmsg */
   4276      1.29     pooka 	{ 0, 0, 0,
   4277  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 114 = osendmsg */
   4278  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4279  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 115 = obsolete vtrace */
   4280      1.29     pooka 	{ 0, 0, 0,
   4281  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 116 = gettimeofday */
   4282      1.29     pooka 	{ 0, 0, 0,
   4283  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 117 = getrusage */
   4284      1.29     pooka 	{ ns(struct sys_getsockopt_args), 0,
   4285  1.41.2.3     rmind 	    (sy_call_t *)sys_getsockopt },	/* 118 = getsockopt */
   4286  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4287  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 119 = obsolete resuba */
   4288      1.34     pooka 	{ ns(struct sys_readv_args), 0,
   4289  1.41.2.3     rmind 	    (sy_call_t *)sys_readv },		/* 120 = readv */
   4290      1.34     pooka 	{ ns(struct sys_writev_args), 0,
   4291  1.41.2.3     rmind 	    (sy_call_t *)sys_writev },		/* 121 = writev */
   4292      1.29     pooka 	{ 0, 0, 0,
   4293  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 122 = settimeofday */
   4294      1.34     pooka 	{ ns(struct sys_fchown_args), 0,
   4295  1.41.2.3     rmind 	    (sy_call_t *)sys_fchown },		/* 123 = fchown */
   4296      1.34     pooka 	{ ns(struct sys_fchmod_args), 0,
   4297  1.41.2.3     rmind 	    (sy_call_t *)sys_fchmod },		/* 124 = fchmod */
   4298      1.29     pooka 	{ 0, 0, 0,
   4299  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 125 = orecvfrom */
   4300  1.41.2.3     rmind 	{ ns(struct sys_setreuid_args), 0,
   4301  1.41.2.3     rmind 	    (sy_call_t *)sys_setreuid },	/* 126 = setreuid */
   4302  1.41.2.3     rmind 	{ ns(struct sys_setregid_args), 0,
   4303  1.41.2.3     rmind 	    (sy_call_t *)sys_setregid },	/* 127 = setregid */
   4304      1.29     pooka 	{ ns(struct sys_rename_args), 0,
   4305  1.41.2.3     rmind 	    (sy_call_t *)sys_rename },		/* 128 = rename */
   4306      1.29     pooka 	{ 0, 0, 0,
   4307  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 129 = otruncate */
   4308      1.29     pooka 	{ 0, 0, 0,
   4309  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 130 = oftruncate */
   4310      1.34     pooka 	{ ns(struct sys_flock_args), 0,
   4311  1.41.2.3     rmind 	    (sy_call_t *)sys_flock },		/* 131 = flock */
   4312      1.29     pooka 	{ ns(struct sys_mkfifo_args), 0,
   4313  1.41.2.3     rmind 	    (sy_call_t *)sys_mkfifo },		/* 132 = mkfifo */
   4314      1.29     pooka 	{ ns(struct sys_sendto_args), 0,
   4315  1.41.2.3     rmind 	    (sy_call_t *)sys_sendto },		/* 133 = sendto */
   4316      1.29     pooka 	{ ns(struct sys_shutdown_args), 0,
   4317  1.41.2.3     rmind 	    (sy_call_t *)sys_shutdown },	/* 134 = shutdown */
   4318      1.29     pooka 	{ ns(struct sys_socketpair_args), 0,
   4319  1.41.2.3     rmind 	    (sy_call_t *)sys_socketpair },	/* 135 = socketpair */
   4320      1.29     pooka 	{ ns(struct sys_mkdir_args), 0,
   4321  1.41.2.3     rmind 	    (sy_call_t *)sys_mkdir },		/* 136 = mkdir */
   4322      1.29     pooka 	{ ns(struct sys_rmdir_args), 0,
   4323  1.41.2.3     rmind 	    (sy_call_t *)sys_rmdir },		/* 137 = rmdir */
   4324  1.41.2.3     rmind 	{ ns(struct compat_50_sys_utimes_args), 0,
   4325  1.41.2.3     rmind 	    (sy_call_t *)compat_50_sys_utimes },/* 138 = compat_50_utimes */
   4326  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4327  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 139 = obsolete 4.2 sigreturn */
   4328      1.29     pooka 	{ 0, 0, 0,
   4329  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 140 = adjtime */
   4330      1.29     pooka 	{ 0, 0, 0,
   4331  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 141 = ogetpeername */
   4332      1.29     pooka 	{ 0, 0, 0,
   4333  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 142 = ogethostid */
   4334      1.29     pooka 	{ 0, 0, 0,
   4335  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 143 = osethostid */
   4336      1.29     pooka 	{ 0, 0, 0,
   4337  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 144 = ogetrlimit */
   4338      1.29     pooka 	{ 0, 0, 0,
   4339  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 145 = osetrlimit */
   4340      1.29     pooka 	{ 0, 0, 0,
   4341  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 146 = okillpg */
   4342      1.29     pooka 	{ 0, 0, 0,
   4343  1.41.2.3     rmind 	    (sy_call_t *)sys_setsid },		/* 147 = setsid */
   4344  1.41.2.4     rmind 	{ 0, 0, 0,
   4345  1.41.2.4     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 148 = quotactl */
   4346      1.29     pooka 	{ 0, 0, 0,
   4347  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 149 = oquota */
   4348      1.29     pooka 	{ 0, 0, 0,
   4349  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 150 = ogetsockname */
   4350  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4351  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 151 = unimplemented */
   4352  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4353  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 152 = unimplemented */
   4354  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4355  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 153 = unimplemented */
   4356  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4357  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 154 = unimplemented */
   4358      1.29     pooka 	{ ns(struct sys_nfssvc_args), 0,
   4359  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule },	/* 155 = nfssvc */
   4360      1.29     pooka 	{ 0, 0, 0,
   4361  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 156 = ogetdirentries */
   4362      1.29     pooka 	{ 0, 0, 0,
   4363  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 157 = statfs */
   4364      1.29     pooka 	{ 0, 0, 0,
   4365  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 158 = fstatfs */
   4366  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4367  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 159 = unimplemented */
   4368  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4369  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 160 = unimplemented */
   4370      1.29     pooka 	{ 0, 0, 0,
   4371  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 161 = getfh */
   4372      1.29     pooka 	{ 0, 0, 0,
   4373  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 162 = ogetdomainname */
   4374      1.29     pooka 	{ 0, 0, 0,
   4375  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 163 = osetdomainname */
   4376      1.29     pooka 	{ 0, 0, 0,
   4377  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 164 = ouname */
   4378  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4379  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 165 = sysarch */
   4380  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4381  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 166 = unimplemented */
   4382  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4383  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 167 = unimplemented */
   4384  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4385  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 168 = unimplemented */
   4386      1.29     pooka #if (defined(SYSVSEM) || !defined(_KERNEL_OPT)) && !defined(_LP64)
   4387      1.29     pooka 	{ 0, 0, 0,
   4388  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 169 = osemsys */
   4389      1.29     pooka #else
   4390  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4391  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 169 = excluded 1.0 semsys */
   4392      1.29     pooka #endif
   4393      1.29     pooka #if (defined(SYSVMSG) || !defined(_KERNEL_OPT)) && !defined(_LP64)
   4394      1.29     pooka 	{ 0, 0, 0,
   4395  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 170 = omsgsys */
   4396      1.29     pooka #else
   4397  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4398  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 170 = excluded 1.0 msgsys */
   4399      1.29     pooka #endif
   4400      1.29     pooka #if (defined(SYSVSHM) || !defined(_KERNEL_OPT)) && !defined(_LP64)
   4401      1.29     pooka 	{ 0, 0, 0,
   4402  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 171 = oshmsys */
   4403      1.29     pooka #else
   4404  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4405  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 171 = excluded 1.0 shmsys */
   4406      1.29     pooka #endif
   4407  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4408  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 172 = unimplemented */
   4409      1.29     pooka 	{ ns(struct sys_pread_args), 0,
   4410  1.41.2.3     rmind 	    (sy_call_t *)sys_pread },		/* 173 = pread */
   4411      1.29     pooka 	{ ns(struct sys_pwrite_args), 0,
   4412  1.41.2.3     rmind 	    (sy_call_t *)sys_pwrite },		/* 174 = pwrite */
   4413  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4414  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 175 = ntp_gettime */
   4415      1.29     pooka #if defined(NTP) || !defined(_KERNEL_OPT)
   4416  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4417  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 176 = ntp_adjtime */
   4418      1.29     pooka #else
   4419  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4420  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 176 = excluded ntp_adjtime */
   4421      1.29     pooka #endif
   4422  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4423  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 177 = unimplemented */
   4424  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4425  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 178 = unimplemented */
   4426  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4427  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 179 = unimplemented */
   4428  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4429  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 180 = unimplemented */
   4430  1.41.2.3     rmind 	{ ns(struct sys_setgid_args), 0,
   4431  1.41.2.3     rmind 	    (sy_call_t *)sys_setgid },		/* 181 = setgid */
   4432  1.41.2.3     rmind 	{ ns(struct sys_setegid_args), 0,
   4433  1.41.2.3     rmind 	    (sy_call_t *)sys_setegid },		/* 182 = setegid */
   4434  1.41.2.3     rmind 	{ ns(struct sys_seteuid_args), 0,
   4435  1.41.2.3     rmind 	    (sy_call_t *)sys_seteuid },		/* 183 = seteuid */
   4436  1.41.2.3     rmind 	{ 0, 0, 0,
   4437  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 184 = lfs_bmapv */
   4438  1.41.2.3     rmind 	{ 0, 0, 0,
   4439  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 185 = lfs_markv */
   4440  1.41.2.3     rmind 	{ 0, 0, 0,
   4441  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 186 = lfs_segclean */
   4442      1.29     pooka 	{ 0, 0, 0,
   4443  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 187 = lfs_segwait */
   4444      1.29     pooka 	{ 0, 0, 0,
   4445  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 188 = stat12 */
   4446      1.29     pooka 	{ 0, 0, 0,
   4447  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 189 = fstat12 */
   4448      1.29     pooka 	{ 0, 0, 0,
   4449  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 190 = lstat12 */
   4450  1.41.2.2     rmind 	{ ns(struct sys_pathconf_args), 0,
   4451  1.41.2.3     rmind 	    (sy_call_t *)sys_pathconf },	/* 191 = pathconf */
   4452  1.41.2.2     rmind 	{ ns(struct sys_fpathconf_args), 0,
   4453  1.41.2.3     rmind 	    (sy_call_t *)sys_fpathconf },	/* 192 = fpathconf */
   4454  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4455  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 193 = unimplemented */
   4456  1.41.2.1     rmind 	{ ns(struct sys_getrlimit_args), 0,
   4457  1.41.2.3     rmind 	    (sy_call_t *)sys_getrlimit },	/* 194 = getrlimit */
   4458  1.41.2.1     rmind 	{ ns(struct sys_setrlimit_args), 0,
   4459  1.41.2.3     rmind 	    (sy_call_t *)sys_setrlimit },	/* 195 = setrlimit */
   4460      1.29     pooka 	{ 0, 0, 0,
   4461  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 196 = getdirentries */
   4462  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4463  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 197 = mmap */
   4464  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4465  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 198 = __syscall */
   4466      1.34     pooka 	{ ns(struct sys_lseek_args), 0,
   4467  1.41.2.3     rmind 	    (sy_call_t *)sys_lseek },		/* 199 = lseek */
   4468      1.29     pooka 	{ ns(struct sys_truncate_args), 0,
   4469  1.41.2.3     rmind 	    (sy_call_t *)sys_truncate },	/* 200 = truncate */
   4470      1.34     pooka 	{ ns(struct sys_ftruncate_args), 0,
   4471  1.41.2.3     rmind 	    (sy_call_t *)sys_ftruncate },	/* 201 = ftruncate */
   4472      1.29     pooka 	{ ns(struct sys___sysctl_args), 0,
   4473  1.41.2.3     rmind 	    (sy_call_t *)sys___sysctl },	/* 202 = __sysctl */
   4474  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4475  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 203 = mlock */
   4476  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4477  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 204 = munlock */
   4478  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4479  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 205 = undelete */
   4480  1.41.2.3     rmind 	{ ns(struct compat_50_sys_futimes_args), 0,
   4481  1.41.2.3     rmind 	    (sy_call_t *)compat_50_sys_futimes },/* 206 = compat_50_futimes */
   4482  1.41.2.3     rmind 	{ ns(struct sys_getpgid_args), 0,
   4483  1.41.2.3     rmind 	    (sy_call_t *)sys_getpgid },		/* 207 = getpgid */
   4484      1.34     pooka 	{ ns(struct sys_reboot_args), 0,
   4485  1.41.2.3     rmind 	    (sy_call_t *)sys_reboot },		/* 208 = reboot */
   4486      1.34     pooka 	{ ns(struct sys_poll_args), 0,
   4487  1.41.2.3     rmind 	    (sy_call_t *)sys_poll },		/* 209 = poll */
   4488  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4489  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 210 = unimplemented */
   4490  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4491  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 211 = unimplemented */
   4492  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4493  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 212 = unimplemented */
   4494  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4495  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 213 = unimplemented */
   4496  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4497  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 214 = unimplemented */
   4498  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4499  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 215 = unimplemented */
   4500  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4501  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 216 = unimplemented */
   4502  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4503  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 217 = unimplemented */
   4504  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4505  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 218 = unimplemented */
   4506  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4507  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 219 = unimplemented */
   4508      1.29     pooka #if defined(SYSVSEM) || !defined(_KERNEL_OPT)
   4509      1.29     pooka 	{ 0, 0, 0,
   4510  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 220 = __semctl */
   4511  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4512  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 221 = semget */
   4513  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4514  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 222 = semop */
   4515  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4516  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 223 = semconfig */
   4517      1.29     pooka #else
   4518  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4519  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 220 = excluded compat_14_semctl */
   4520  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4521  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 221 = excluded semget */
   4522  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4523  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 222 = excluded semop */
   4524  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4525  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 223 = excluded semconfig */
   4526      1.29     pooka #endif
   4527      1.29     pooka #if defined(SYSVMSG) || !defined(_KERNEL_OPT)
   4528      1.29     pooka 	{ 0, 0, 0,
   4529  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 224 = msgctl */
   4530  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4531  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 225 = msgget */
   4532  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4533  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 226 = msgsnd */
   4534  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4535  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 227 = msgrcv */
   4536      1.29     pooka #else
   4537  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4538  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 224 = excluded compat_14_msgctl */
   4539  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4540  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 225 = excluded msgget */
   4541  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4542  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 226 = excluded msgsnd */
   4543  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4544  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 227 = excluded msgrcv */
   4545      1.29     pooka #endif
   4546      1.29     pooka #if defined(SYSVSHM) || !defined(_KERNEL_OPT)
   4547  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4548  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 228 = shmat */
   4549      1.29     pooka 	{ 0, 0, 0,
   4550  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 229 = shmctl */
   4551  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4552  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 230 = shmdt */
   4553  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4554  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 231 = shmget */
   4555      1.29     pooka #else
   4556  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4557  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 228 = excluded shmat */
   4558  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4559  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 229 = excluded compat_14_shmctl */
   4560  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4561  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 230 = excluded shmdt */
   4562  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4563  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 231 = excluded shmget */
   4564      1.29     pooka #endif
   4565      1.29     pooka 	{ 0, 0, 0,
   4566  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 232 = clock_gettime */
   4567      1.29     pooka 	{ 0, 0, 0,
   4568  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 233 = clock_settime */
   4569      1.29     pooka 	{ 0, 0, 0,
   4570  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 234 = clock_getres */
   4571  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4572  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 235 = timer_create */
   4573  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4574  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 236 = timer_delete */
   4575      1.29     pooka 	{ 0, 0, 0,
   4576  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 237 = timer_settime */
   4577      1.29     pooka 	{ 0, 0, 0,
   4578  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 238 = timer_gettime */
   4579  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4580  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 239 = timer_getoverrun */
   4581      1.29     pooka 	{ 0, 0, 0,
   4582  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 240 = nanosleep */
   4583      1.34     pooka 	{ ns(struct sys_fdatasync_args), 0,
   4584  1.41.2.3     rmind 	    (sy_call_t *)sys_fdatasync },	/* 241 = fdatasync */
   4585  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4586  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 242 = mlockall */
   4587  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4588  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 243 = munlockall */
   4589  1.41.2.3     rmind 	{ 0, 0, 0,
   4590  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 244 = __sigtimedwait */
   4591  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4592  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 245 = sigqueueinfo */
   4593      1.38     pooka 	{ ns(struct sys_modctl_args), 0,
   4594  1.41.2.3     rmind 	    (sy_call_t *)sys_modctl },		/* 246 = modctl */
   4595  1.41.2.2     rmind 	{ ns(struct sys__ksem_init_args), 0,
   4596  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule },	/* 247 = _ksem_init */
   4597  1.41.2.2     rmind 	{ ns(struct sys__ksem_open_args), 0,
   4598  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule },	/* 248 = _ksem_open */
   4599  1.41.2.2     rmind 	{ ns(struct sys__ksem_unlink_args), 0,
   4600  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule },	/* 249 = _ksem_unlink */
   4601  1.41.2.2     rmind 	{ ns(struct sys__ksem_close_args), 0,
   4602  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule },	/* 250 = _ksem_close */
   4603  1.41.2.2     rmind 	{ ns(struct sys__ksem_post_args), 0,
   4604  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule },	/* 251 = _ksem_post */
   4605  1.41.2.2     rmind 	{ ns(struct sys__ksem_wait_args), 0,
   4606  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule },	/* 252 = _ksem_wait */
   4607  1.41.2.2     rmind 	{ ns(struct sys__ksem_trywait_args), 0,
   4608  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule },	/* 253 = _ksem_trywait */
   4609  1.41.2.2     rmind 	{ ns(struct sys__ksem_getvalue_args), 0,
   4610  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule },	/* 254 = _ksem_getvalue */
   4611  1.41.2.2     rmind 	{ ns(struct sys__ksem_destroy_args), 0,
   4612  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule },	/* 255 = _ksem_destroy */
   4613  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4614  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 256 = unimplemented sys__ksem_timedwait */
   4615      1.29     pooka 	{ 0, 0, 0,
   4616  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 257 = mq_open */
   4617      1.29     pooka 	{ 0, 0, 0,
   4618  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 258 = mq_close */
   4619      1.29     pooka 	{ 0, 0, 0,
   4620  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 259 = mq_unlink */
   4621      1.29     pooka 	{ 0, 0, 0,
   4622  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 260 = mq_getattr */
   4623      1.29     pooka 	{ 0, 0, 0,
   4624  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 261 = mq_setattr */
   4625      1.29     pooka 	{ 0, 0, 0,
   4626  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 262 = mq_notify */
   4627      1.29     pooka 	{ 0, 0, 0,
   4628  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 263 = mq_send */
   4629      1.29     pooka 	{ 0, 0, 0,
   4630  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 264 = mq_receive */
   4631      1.29     pooka 	{ 0, 0, 0,
   4632  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 265 = mq_timedsend */
   4633      1.29     pooka 	{ 0, 0, 0,
   4634  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 266 = mq_timedreceive */
   4635  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4636  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 267 = unimplemented */
   4637  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4638  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 268 = unimplemented */
   4639  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4640  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 269 = unimplemented */
   4641  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4642  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 270 = __posix_rename */
   4643  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4644  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 271 = swapctl */
   4645      1.29     pooka 	{ 0, 0, 0,
   4646  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 272 = getdents */
   4647  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4648  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 273 = minherit */
   4649      1.29     pooka 	{ ns(struct sys_lchmod_args), 0,
   4650  1.41.2.3     rmind 	    (sy_call_t *)sys_lchmod },		/* 274 = lchmod */
   4651      1.29     pooka 	{ ns(struct sys_lchown_args), 0,
   4652  1.41.2.3     rmind 	    (sy_call_t *)sys_lchown },		/* 275 = lchown */
   4653  1.41.2.3     rmind 	{ ns(struct compat_50_sys_lutimes_args), 0,
   4654  1.41.2.3     rmind 	    (sy_call_t *)compat_50_sys_lutimes },/* 276 = compat_50_lutimes */
   4655  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4656  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 277 = __msync13 */
   4657  1.41.2.3     rmind 	{ 0, 0, 0,
   4658  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 278 = __stat13 */
   4659  1.41.2.3     rmind 	{ 0, 0, 0,
   4660  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 279 = __fstat13 */
   4661  1.41.2.3     rmind 	{ 0, 0, 0,
   4662  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 280 = __lstat13 */
   4663  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4664  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 281 = __sigaltstack14 */
   4665  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4666  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 282 = __vfork14 */
   4667  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4668  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 283 = __posix_chown */
   4669  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4670  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 284 = __posix_fchown */
   4671  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4672  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 285 = __posix_lchown */
   4673  1.41.2.3     rmind 	{ ns(struct sys_getsid_args), 0,
   4674  1.41.2.3     rmind 	    (sy_call_t *)sys_getsid },		/* 286 = getsid */
   4675  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4676  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 287 = __clone */
   4677  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4678  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 288 = fktrace */
   4679  1.41.2.3     rmind 	{ ns(struct sys_preadv_args), 0,
   4680  1.41.2.3     rmind 	    (sy_call_t *)sys_preadv },		/* 289 = preadv */
   4681  1.41.2.3     rmind 	{ ns(struct sys_pwritev_args), 0,
   4682  1.41.2.3     rmind 	    (sy_call_t *)sys_pwritev },		/* 290 = pwritev */
   4683  1.41.2.3     rmind 	{ 0, 0, 0,
   4684  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 291 = __sigaction14 */
   4685  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4686  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 292 = __sigpending14 */
   4687  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4688  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 293 = __sigprocmask14 */
   4689  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4690  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 294 = __sigsuspend14 */
   4691  1.41.2.3     rmind 	{ 0, 0, 0,
   4692  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 295 = __sigreturn14 */
   4693  1.41.2.3     rmind 	{ ns(struct sys___getcwd_args), 0,
   4694  1.41.2.3     rmind 	    (sy_call_t *)sys___getcwd },	/* 296 = __getcwd */
   4695      1.34     pooka 	{ ns(struct sys_fchroot_args), 0,
   4696  1.41.2.3     rmind 	    (sy_call_t *)sys_fchroot },		/* 297 = fchroot */
   4697      1.29     pooka 	{ 0, 0, 0,
   4698  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 298 = fhopen */
   4699      1.29     pooka 	{ 0, 0, 0,
   4700  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 299 = fhstat */
   4701      1.29     pooka 	{ 0, 0, 0,
   4702  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 300 = fhstatfs */
   4703      1.29     pooka #if defined(SYSVSEM) || !defined(_KERNEL_OPT)
   4704      1.29     pooka 	{ 0, 0, 0,
   4705  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 301 = ____semctl13 */
   4706      1.29     pooka #else
   4707  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4708  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 301 = excluded ____semctl13 */
   4709      1.29     pooka #endif
   4710      1.29     pooka #if defined(SYSVMSG) || !defined(_KERNEL_OPT)
   4711      1.29     pooka 	{ 0, 0, 0,
   4712  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 302 = __msgctl13 */
   4713      1.29     pooka #else
   4714  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4715  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 302 = excluded __msgctl13 */
   4716      1.29     pooka #endif
   4717      1.29     pooka #if defined(SYSVSHM) || !defined(_KERNEL_OPT)
   4718      1.29     pooka 	{ 0, 0, 0,
   4719  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 303 = __shmctl13 */
   4720      1.29     pooka #else
   4721  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4722  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 303 = excluded __shmctl13 */
   4723      1.29     pooka #endif
   4724      1.29     pooka 	{ ns(struct sys_lchflags_args), 0,
   4725  1.41.2.3     rmind 	    (sy_call_t *)sys_lchflags },	/* 304 = lchflags */
   4726      1.29     pooka 	{ 0, 0, 0,
   4727  1.41.2.3     rmind 	    (sy_call_t *)sys_issetugid },	/* 305 = issetugid */
   4728  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4729  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 306 = utrace */
   4730  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4731  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 307 = getcontext */
   4732  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4733  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 308 = setcontext */
   4734  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4735  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 309 = _lwp_create */
   4736  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4737  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 310 = _lwp_exit */
   4738  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4739  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 311 = _lwp_self */
   4740  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4741  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 312 = _lwp_wait */
   4742  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4743  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 313 = _lwp_suspend */
   4744  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4745  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 314 = _lwp_continue */
   4746  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4747  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 315 = _lwp_wakeup */
   4748  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4749  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 316 = _lwp_getprivate */
   4750  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4751  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 317 = _lwp_setprivate */
   4752  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4753  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 318 = _lwp_kill */
   4754  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4755  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 319 = _lwp_detach */
   4756  1.41.2.3     rmind 	{ 0, 0, 0,
   4757  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 320 = _lwp_park */
   4758  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4759  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 321 = _lwp_unpark */
   4760  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4761  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 322 = _lwp_unpark_all */
   4762  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4763  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 323 = _lwp_setname */
   4764  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4765  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 324 = _lwp_getname */
   4766  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4767  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 325 = _lwp_ctl */
   4768  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4769  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 326 = unimplemented */
   4770  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4771  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 327 = unimplemented */
   4772  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4773  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 328 = unimplemented */
   4774  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4775  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 329 = unimplemented */
   4776  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4777  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 330 = sa_register */
   4778  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4779  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 331 = sa_stacks */
   4780  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4781  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 332 = sa_enable */
   4782  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4783  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 333 = sa_setconcurrency */
   4784  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4785  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 334 = sa_yield */
   4786  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4787  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 335 = sa_preempt */
   4788  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4789  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 336 = obsolete sys_sa_unblockyield */
   4790  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4791  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 337 = unimplemented */
   4792  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4793  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 338 = unimplemented */
   4794  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4795  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 339 = unimplemented */
   4796  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4797  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 340 = __sigaction_sigtramp */
   4798  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4799  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 341 = pmc_get_info */
   4800  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4801  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 342 = pmc_control */
   4802  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4803  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 343 = rasctl */
   4804  1.41.2.3     rmind 	{ 0, 0, 0,
   4805  1.41.2.3     rmind 	    (sy_call_t *)sys_kqueue },		/* 344 = kqueue */
   4806  1.41.2.3     rmind 	{ ns(struct compat_50_sys_kevent_args), 0,
   4807  1.41.2.3     rmind 	    (sy_call_t *)compat_50_sys_kevent },/* 345 = compat_50_kevent */
   4808  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4809  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 346 = _sched_setparam */
   4810  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4811  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 347 = _sched_getparam */
   4812  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4813  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 348 = _sched_setaffinity */
   4814  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4815  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 349 = _sched_getaffinity */
   4816  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4817  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 350 = sched_yield */
   4818  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4819  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 351 = unimplemented */
   4820  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4821  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 352 = unimplemented */
   4822  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4823  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 353 = unimplemented */
   4824      1.34     pooka 	{ ns(struct sys_fsync_range_args), 0,
   4825  1.41.2.3     rmind 	    (sy_call_t *)sys_fsync_range },	/* 354 = fsync_range */
   4826  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4827  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 355 = uuidgen */
   4828      1.34     pooka 	{ ns(struct sys_getvfsstat_args), 0,
   4829  1.41.2.3     rmind 	    (sy_call_t *)sys_getvfsstat },	/* 356 = getvfsstat */
   4830      1.29     pooka 	{ ns(struct sys_statvfs1_args), 0,
   4831  1.41.2.3     rmind 	    (sy_call_t *)sys_statvfs1 },	/* 357 = statvfs1 */
   4832      1.34     pooka 	{ ns(struct sys_fstatvfs1_args), 0,
   4833  1.41.2.3     rmind 	    (sy_call_t *)sys_fstatvfs1 },	/* 358 = fstatvfs1 */
   4834      1.29     pooka 	{ 0, 0, 0,
   4835  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 359 = fhstatvfs1 */
   4836      1.34     pooka 	{ ns(struct sys_extattrctl_args), 0,
   4837  1.41.2.3     rmind 	    (sy_call_t *)sys_extattrctl },	/* 360 = extattrctl */
   4838      1.34     pooka 	{ ns(struct sys_extattr_set_file_args), 0,
   4839  1.41.2.3     rmind 	    (sy_call_t *)sys_extattr_set_file },/* 361 = extattr_set_file */
   4840      1.34     pooka 	{ ns(struct sys_extattr_get_file_args), 0,
   4841  1.41.2.3     rmind 	    (sy_call_t *)sys_extattr_get_file },/* 362 = extattr_get_file */
   4842      1.34     pooka 	{ ns(struct sys_extattr_delete_file_args), 0,
   4843  1.41.2.3     rmind 	    (sy_call_t *)sys_extattr_delete_file },/* 363 = extattr_delete_file */
   4844      1.34     pooka 	{ ns(struct sys_extattr_set_fd_args), 0,
   4845  1.41.2.3     rmind 	    (sy_call_t *)sys_extattr_set_fd },	/* 364 = extattr_set_fd */
   4846      1.34     pooka 	{ ns(struct sys_extattr_get_fd_args), 0,
   4847  1.41.2.3     rmind 	    (sy_call_t *)sys_extattr_get_fd },	/* 365 = extattr_get_fd */
   4848      1.34     pooka 	{ ns(struct sys_extattr_delete_fd_args), 0,
   4849  1.41.2.3     rmind 	    (sy_call_t *)sys_extattr_delete_fd },/* 366 = extattr_delete_fd */
   4850      1.34     pooka 	{ ns(struct sys_extattr_set_link_args), 0,
   4851  1.41.2.3     rmind 	    (sy_call_t *)sys_extattr_set_link },/* 367 = extattr_set_link */
   4852      1.34     pooka 	{ ns(struct sys_extattr_get_link_args), 0,
   4853  1.41.2.3     rmind 	    (sy_call_t *)sys_extattr_get_link },/* 368 = extattr_get_link */
   4854      1.34     pooka 	{ ns(struct sys_extattr_delete_link_args), 0,
   4855  1.41.2.3     rmind 	    (sy_call_t *)sys_extattr_delete_link },/* 369 = extattr_delete_link */
   4856      1.34     pooka 	{ ns(struct sys_extattr_list_fd_args), 0,
   4857  1.41.2.3     rmind 	    (sy_call_t *)sys_extattr_list_fd },	/* 370 = extattr_list_fd */
   4858      1.34     pooka 	{ ns(struct sys_extattr_list_file_args), 0,
   4859  1.41.2.3     rmind 	    (sy_call_t *)sys_extattr_list_file },/* 371 = extattr_list_file */
   4860      1.34     pooka 	{ ns(struct sys_extattr_list_link_args), 0,
   4861  1.41.2.3     rmind 	    (sy_call_t *)sys_extattr_list_link },/* 372 = extattr_list_link */
   4862  1.41.2.3     rmind 	{ ns(struct compat_50_sys_pselect_args), 0,
   4863  1.41.2.3     rmind 	    (sy_call_t *)compat_50_sys_pselect },/* 373 = compat_50_pselect */
   4864  1.41.2.3     rmind 	{ ns(struct compat_50_sys_pollts_args), 0,
   4865  1.41.2.3     rmind 	    (sy_call_t *)compat_50_sys_pollts },/* 374 = compat_50_pollts */
   4866      1.34     pooka 	{ ns(struct sys_setxattr_args), 0,
   4867  1.41.2.3     rmind 	    (sy_call_t *)sys_setxattr },	/* 375 = setxattr */
   4868      1.34     pooka 	{ ns(struct sys_lsetxattr_args), 0,
   4869  1.41.2.3     rmind 	    (sy_call_t *)sys_lsetxattr },	/* 376 = lsetxattr */
   4870      1.34     pooka 	{ ns(struct sys_fsetxattr_args), 0,
   4871  1.41.2.3     rmind 	    (sy_call_t *)sys_fsetxattr },	/* 377 = fsetxattr */
   4872      1.34     pooka 	{ ns(struct sys_getxattr_args), 0,
   4873  1.41.2.3     rmind 	    (sy_call_t *)sys_getxattr },	/* 378 = getxattr */
   4874      1.34     pooka 	{ ns(struct sys_lgetxattr_args), 0,
   4875  1.41.2.3     rmind 	    (sy_call_t *)sys_lgetxattr },	/* 379 = lgetxattr */
   4876      1.34     pooka 	{ ns(struct sys_fgetxattr_args), 0,
   4877  1.41.2.3     rmind 	    (sy_call_t *)sys_fgetxattr },	/* 380 = fgetxattr */
   4878      1.34     pooka 	{ ns(struct sys_listxattr_args), 0,
   4879  1.41.2.3     rmind 	    (sy_call_t *)sys_listxattr },	/* 381 = listxattr */
   4880      1.34     pooka 	{ ns(struct sys_llistxattr_args), 0,
   4881  1.41.2.3     rmind 	    (sy_call_t *)sys_llistxattr },	/* 382 = llistxattr */
   4882      1.34     pooka 	{ ns(struct sys_flistxattr_args), 0,
   4883  1.41.2.3     rmind 	    (sy_call_t *)sys_flistxattr },	/* 383 = flistxattr */
   4884      1.34     pooka 	{ ns(struct sys_removexattr_args), 0,
   4885  1.41.2.3     rmind 	    (sy_call_t *)sys_removexattr },	/* 384 = removexattr */
   4886      1.34     pooka 	{ ns(struct sys_lremovexattr_args), 0,
   4887  1.41.2.3     rmind 	    (sy_call_t *)sys_lremovexattr },	/* 385 = lremovexattr */
   4888      1.34     pooka 	{ ns(struct sys_fremovexattr_args), 0,
   4889  1.41.2.3     rmind 	    (sy_call_t *)sys_fremovexattr },	/* 386 = fremovexattr */
   4890  1.41.2.3     rmind 	{ ns(struct compat_50_sys___stat30_args), 0,
   4891  1.41.2.3     rmind 	    (sy_call_t *)compat_50_sys___stat30 },/* 387 = compat_50___stat30 */
   4892  1.41.2.3     rmind 	{ ns(struct compat_50_sys___fstat30_args), 0,
   4893  1.41.2.3     rmind 	    (sy_call_t *)compat_50_sys___fstat30 },/* 388 = compat_50___fstat30 */
   4894  1.41.2.3     rmind 	{ ns(struct compat_50_sys___lstat30_args), 0,
   4895  1.41.2.3     rmind 	    (sy_call_t *)compat_50_sys___lstat30 },/* 389 = compat_50___lstat30 */
   4896      1.34     pooka 	{ ns(struct sys___getdents30_args), 0,
   4897  1.41.2.3     rmind 	    (sy_call_t *)sys___getdents30 },	/* 390 = __getdents30 */
   4898  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4899  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 391 = ignored old posix_fadvise */
   4900      1.29     pooka 	{ 0, 0, 0,
   4901  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 392 = __fhstat30 */
   4902      1.29     pooka 	{ 0, 0, 0,
   4903  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 393 = __ntp_gettime30 */
   4904      1.29     pooka 	{ ns(struct sys___socket30_args), 0,
   4905  1.41.2.3     rmind 	    (sy_call_t *)sys___socket30 },	/* 394 = __socket30 */
   4906      1.29     pooka 	{ ns(struct sys___getfh30_args), 0,
   4907  1.41.2.3     rmind 	    (sy_call_t *)sys___getfh30 },	/* 395 = __getfh30 */
   4908      1.36     pooka 	{ ns(struct sys___fhopen40_args), 0,
   4909  1.41.2.3     rmind 	    (sy_call_t *)sys___fhopen40 },	/* 396 = __fhopen40 */
   4910      1.36     pooka 	{ ns(struct sys___fhstatvfs140_args), 0,
   4911  1.41.2.3     rmind 	    (sy_call_t *)sys___fhstatvfs140 },	/* 397 = __fhstatvfs140 */
   4912  1.41.2.3     rmind 	{ ns(struct compat_50_sys___fhstat40_args), 0,
   4913  1.41.2.3     rmind 	    (sy_call_t *)compat_50_sys___fhstat40 },/* 398 = compat_50___fhstat40 */
   4914      1.29     pooka 	{ 0, 0, 0,
   4915  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 399 = aio_cancel */
   4916      1.29     pooka 	{ 0, 0, 0,
   4917  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 400 = aio_error */
   4918      1.29     pooka 	{ 0, 0, 0,
   4919  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 401 = aio_fsync */
   4920      1.29     pooka 	{ 0, 0, 0,
   4921  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 402 = aio_read */
   4922      1.29     pooka 	{ 0, 0, 0,
   4923  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 403 = aio_return */
   4924      1.29     pooka 	{ 0, 0, 0,
   4925  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 404 = aio_suspend */
   4926      1.29     pooka 	{ 0, 0, 0,
   4927  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 405 = aio_write */
   4928      1.29     pooka 	{ 0, 0, 0,
   4929  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 406 = lio_listio */
   4930  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4931  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 407 = unimplemented */
   4932  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4933  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 408 = unimplemented */
   4934  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4935  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 409 = unimplemented */
   4936      1.33     pooka 	{ ns(struct sys___mount50_args), 0,
   4937  1.41.2.3     rmind 	    (sy_call_t *)sys___mount50 },	/* 410 = __mount50 */
   4938  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4939  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 411 = mremap */
   4940  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4941  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 412 = pset_create */
   4942  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4943  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 413 = pset_destroy */
   4944  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4945  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 414 = pset_assign */
   4946  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4947  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 415 = _pset_bind */
   4948  1.41.2.3     rmind 	{ ns(struct sys___posix_fadvise50_args), 0,
   4949  1.41.2.3     rmind 	    (sy_call_t *)sys___posix_fadvise50 },/* 416 = __posix_fadvise50 */
   4950      1.34     pooka 	{ ns(struct sys___select50_args), 0,
   4951  1.41.2.3     rmind 	    (sy_call_t *)sys___select50 },	/* 417 = __select50 */
   4952  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4953  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 418 = __gettimeofday50 */
   4954  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4955  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 419 = __settimeofday50 */
   4956      1.29     pooka 	{ ns(struct sys___utimes50_args), 0,
   4957  1.41.2.3     rmind 	    (sy_call_t *)sys___utimes50 },	/* 420 = __utimes50 */
   4958  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4959  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 421 = __adjtime50 */
   4960      1.29     pooka 	{ 0, 0, 0,
   4961  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 422 = __lfs_segwait50 */
   4962      1.34     pooka 	{ ns(struct sys___futimes50_args), 0,
   4963  1.41.2.3     rmind 	    (sy_call_t *)sys___futimes50 },	/* 423 = __futimes50 */
   4964      1.29     pooka 	{ ns(struct sys___lutimes50_args), 0,
   4965  1.41.2.3     rmind 	    (sy_call_t *)sys___lutimes50 },	/* 424 = __lutimes50 */
   4966  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4967  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 425 = __setitimer50 */
   4968  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4969  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 426 = __getitimer50 */
   4970  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4971  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 427 = __clock_gettime50 */
   4972  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4973  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 428 = __clock_settime50 */
   4974  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4975  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 429 = __clock_getres50 */
   4976  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4977  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 430 = __nanosleep50 */
   4978  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4979  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 431 = ____sigtimedwait50 */
   4980  1.41.2.3     rmind 	{ 0, 0, 0,
   4981  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 432 = __mq_timedsend50 */
   4982  1.41.2.3     rmind 	{ 0, 0, 0,
   4983  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 433 = __mq_timedreceive50 */
   4984  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   4985  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 434 = ___lwp_park50 */
   4986      1.32     pooka 	{ ns(struct sys___kevent50_args), 0,
   4987  1.41.2.3     rmind 	    (sy_call_t *)sys___kevent50 },	/* 435 = __kevent50 */
   4988      1.34     pooka 	{ ns(struct sys___pselect50_args), 0,
   4989  1.41.2.3     rmind 	    (sy_call_t *)sys___pselect50 },	/* 436 = __pselect50 */
   4990      1.34     pooka 	{ ns(struct sys___pollts50_args), 0,
   4991  1.41.2.3     rmind 	    (sy_call_t *)sys___pollts50 },	/* 437 = __pollts50 */
   4992      1.29     pooka 	{ 0, 0, 0,
   4993  1.41.2.3     rmind 	    (sy_call_t *)sys_nomodule }, 	/* 438 = __aio_suspend50 */
   4994      1.29     pooka 	{ ns(struct sys___stat50_args), 0,
   4995  1.41.2.3     rmind 	    (sy_call_t *)sys___stat50 },	/* 439 = __stat50 */
   4996      1.34     pooka 	{ ns(struct sys___fstat50_args), 0,
   4997  1.41.2.3     rmind 	    (sy_call_t *)sys___fstat50 },	/* 440 = __fstat50 */
   4998      1.29     pooka 	{ ns(struct sys___lstat50_args), 0,
   4999  1.41.2.3     rmind 	    (sy_call_t *)sys___lstat50 },	/* 441 = __lstat50 */
   5000      1.29     pooka #if defined(SYSVSEM) || !defined(_KERNEL_OPT)
   5001  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5002  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 442 = ____semctl50 */
   5003      1.29     pooka #else
   5004  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5005  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 442 = excluded ____semctl50 */
   5006      1.29     pooka #endif
   5007      1.29     pooka #if defined(SYSVSHM) || !defined(_KERNEL_OPT)
   5008  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5009  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 443 = __shmctl50 */
   5010      1.29     pooka #else
   5011  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5012  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 443 = excluded ____shmctl50 */
   5013      1.29     pooka #endif
   5014      1.29     pooka #if defined(SYSVMSG) || !defined(_KERNEL_OPT)
   5015  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5016  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 444 = __msgctl50 */
   5017      1.29     pooka #else
   5018  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5019  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 444 = excluded ____msgctl50 */
   5020      1.29     pooka #endif
   5021  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5022  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 445 = __getrusage50 */
   5023  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5024  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 446 = __timer_settime50 */
   5025  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5026  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 447 = __timer_gettime50 */
   5027      1.29     pooka #if defined(NTP) || !defined(_KERNEL_OPT)
   5028  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5029  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 448 = __ntp_gettime50 */
   5030      1.29     pooka #else
   5031  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5032  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 448 = excluded ___ntp_gettime50 */
   5033      1.29     pooka #endif
   5034  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5035  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys }, 	/* 449 = __wait450 */
   5036      1.29     pooka 	{ ns(struct sys___mknod50_args), 0,
   5037  1.41.2.3     rmind 	    (sy_call_t *)sys___mknod50 },	/* 450 = __mknod50 */
   5038      1.34     pooka 	{ ns(struct sys___fhstat50_args), 0,
   5039  1.41.2.3     rmind 	    (sy_call_t *)sys___fhstat50 },	/* 451 = __fhstat50 */
   5040  1.41.2.4     rmind 	{ ns(struct sys___quotactl50_args), 0,
   5041  1.41.2.4     rmind 	    (sy_call_t *)sys___quotactl50 },	/* 452 = __quotactl50 */
   5042  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5043  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 453 = filler */
   5044  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5045  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 454 = filler */
   5046  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5047  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 455 = filler */
   5048  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5049  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 456 = filler */
   5050  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5051  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 457 = filler */
   5052  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5053  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 458 = filler */
   5054  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5055  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 459 = filler */
   5056  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5057  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 460 = filler */
   5058  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5059  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 461 = filler */
   5060  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5061  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 462 = filler */
   5062  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5063  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 463 = filler */
   5064  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5065  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 464 = filler */
   5066  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5067  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 465 = filler */
   5068  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5069  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 466 = filler */
   5070  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5071  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 467 = filler */
   5072  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5073  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 468 = filler */
   5074  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5075  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 469 = filler */
   5076  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5077  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 470 = filler */
   5078  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5079  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 471 = filler */
   5080  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5081  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 472 = filler */
   5082  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5083  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 473 = filler */
   5084  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5085  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 474 = filler */
   5086  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5087  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 475 = filler */
   5088  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5089  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 476 = filler */
   5090  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5091  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 477 = filler */
   5092  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5093  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 478 = filler */
   5094  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5095  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 479 = filler */
   5096  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5097  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 480 = filler */
   5098  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5099  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 481 = filler */
   5100  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5101  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 482 = filler */
   5102  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5103  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 483 = filler */
   5104  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5105  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 484 = filler */
   5106  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5107  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 485 = filler */
   5108  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5109  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 486 = filler */
   5110  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5111  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 487 = filler */
   5112  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5113  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 488 = filler */
   5114  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5115  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 489 = filler */
   5116  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5117  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 490 = filler */
   5118  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5119  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 491 = filler */
   5120  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5121  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 492 = filler */
   5122  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5123  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 493 = filler */
   5124  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5125  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 494 = filler */
   5126  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5127  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 495 = filler */
   5128  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5129  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 496 = filler */
   5130  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5131  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 497 = filler */
   5132  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5133  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 498 = filler */
   5134  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5135  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 499 = filler */
   5136  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5137  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 500 = filler */
   5138  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5139  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 501 = filler */
   5140  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5141  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 502 = filler */
   5142  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5143  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 503 = filler */
   5144  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5145  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 504 = filler */
   5146  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5147  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 505 = filler */
   5148  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5149  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 506 = filler */
   5150  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5151  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 507 = filler */
   5152  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5153  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 508 = filler */
   5154  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5155  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 509 = filler */
   5156  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5157  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 510 = filler */
   5158  1.41.2.3     rmind 	{ 0, 0, SYCALL_NOSYS,
   5159  1.41.2.3     rmind 	    (sy_call_t *)rump_enosys },		/* 511 = filler */
   5160      1.29     pooka };
   5161      1.29     pooka CTASSERT(__arraycount(rump_sysent) == SYS_NSYSENT);
   5162  1.41.2.3     rmind #endif /* RUMP_CLIENT */
   5163