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