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