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