Home | History | Annotate | Line # | Download | only in rumpkern
rump_syscalls.c revision 1.52
      1  1.31     pooka /* $NetBSD: rump_syscalls.c,v 1.52 2010/11/01 16:22:37 pooka 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.51     pooka  * created from	NetBSD: syscalls.master,v 1.238 2010/09/07 17:10:08 pooka Exp
      8   1.1     pooka  */
      9   1.1     pooka 
     10   1.1     pooka #include <sys/cdefs.h>
     11  1.31     pooka __KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.52 2010/11/01 16:22:37 pooka Exp $");
     12   1.1     pooka 
     13   1.1     pooka #include <sys/types.h>
     14   1.1     pooka #include <sys/param.h>
     15   1.1     pooka #include <sys/proc.h>
     16  1.29     pooka #include <sys/syscall.h>
     17   1.1     pooka #include <sys/syscallargs.h>
     18  1.27     pooka #include <rump/rumpuser.h>
     19  1.15     pooka #include "rump_private.h"
     20   1.1     pooka 
     21   1.1     pooka #if	BYTE_ORDER == BIG_ENDIAN
     22   1.1     pooka #define SPARG(p,k)	((p)->k.be.datum)
     23   1.1     pooka #else /* LITTLE_ENDIAN, I hope dearly */
     24   1.1     pooka #define SPARG(p,k)	((p)->k.le.datum)
     25   1.1     pooka #endif
     26   1.1     pooka 
     27  1.16     pooka int rump_enosys(void);
     28  1.16     pooka int
     29  1.31     pooka rump_enosys()
     30  1.16     pooka {
     31  1.16     pooka 
     32  1.16     pooka 	return ENOSYS;
     33  1.16     pooka }
     34  1.16     pooka 
     35  1.27     pooka ssize_t rump_sys_read(int, void *, size_t);
     36   1.1     pooka ssize_t
     37  1.27     pooka rump_sys_read(int fd, void * buf, size_t nbyte)
     38   1.1     pooka {
     39  1.39     pooka 	register_t rval[2] = {0, 0};
     40  1.27     pooka 	int error = 0;
     41  1.31     pooka 	struct sys_read_args callarg;
     42   1.1     pooka 
     43  1.31     pooka 	SPARG(&callarg, fd) = fd;
     44  1.31     pooka 	SPARG(&callarg, buf) = buf;
     45  1.31     pooka 	SPARG(&callarg, nbyte) = nbyte;
     46   1.1     pooka 
     47  1.29     pooka 	error = rump_sysproxy(SYS_read, rump_sysproxy_arg,
     48  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
     49  1.27     pooka 	if (error) {
     50  1.39     pooka 		rval[0] = -1;
     51  1.27     pooka 		rumpuser_seterrno(error);
     52  1.27     pooka 	}
     53  1.39     pooka 	return rval[0];
     54   1.1     pooka }
     55  1.15     pooka __weak_alias(sys_read,rump_enosys);
     56   1.1     pooka 
     57  1.27     pooka ssize_t rump_sys_write(int, const void *, size_t);
     58   1.1     pooka ssize_t
     59  1.27     pooka rump_sys_write(int fd, const void * buf, size_t nbyte)
     60   1.1     pooka {
     61  1.39     pooka 	register_t rval[2] = {0, 0};
     62  1.27     pooka 	int error = 0;
     63  1.31     pooka 	struct sys_write_args callarg;
     64   1.1     pooka 
     65  1.31     pooka 	SPARG(&callarg, fd) = fd;
     66  1.31     pooka 	SPARG(&callarg, buf) = buf;
     67  1.31     pooka 	SPARG(&callarg, nbyte) = nbyte;
     68   1.1     pooka 
     69  1.29     pooka 	error = rump_sysproxy(SYS_write, rump_sysproxy_arg,
     70  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
     71  1.27     pooka 	if (error) {
     72  1.39     pooka 		rval[0] = -1;
     73  1.27     pooka 		rumpuser_seterrno(error);
     74  1.27     pooka 	}
     75  1.39     pooka 	return rval[0];
     76   1.1     pooka }
     77  1.15     pooka __weak_alias(sys_write,rump_enosys);
     78   1.1     pooka 
     79  1.27     pooka int rump_sys_open(const char *, int, mode_t);
     80   1.1     pooka int
     81  1.27     pooka rump_sys_open(const char * path, int flags, mode_t mode)
     82   1.1     pooka {
     83  1.39     pooka 	register_t rval[2] = {0, 0};
     84  1.27     pooka 	int error = 0;
     85  1.31     pooka 	struct sys_open_args callarg;
     86   1.1     pooka 
     87  1.31     pooka 	SPARG(&callarg, path) = path;
     88  1.31     pooka 	SPARG(&callarg, flags) = flags;
     89  1.31     pooka 	SPARG(&callarg, mode) = mode;
     90   1.1     pooka 
     91  1.29     pooka 	error = rump_sysproxy(SYS_open, rump_sysproxy_arg,
     92  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
     93  1.27     pooka 	if (error) {
     94  1.39     pooka 		rval[0] = -1;
     95  1.27     pooka 		rumpuser_seterrno(error);
     96  1.27     pooka 	}
     97  1.39     pooka 	return rval[0];
     98   1.1     pooka }
     99  1.15     pooka __weak_alias(sys_open,rump_enosys);
    100   1.1     pooka 
    101  1.27     pooka int rump_sys_close(int);
    102   1.1     pooka int
    103  1.27     pooka rump_sys_close(int fd)
    104   1.1     pooka {
    105  1.39     pooka 	register_t rval[2] = {0, 0};
    106  1.27     pooka 	int error = 0;
    107  1.31     pooka 	struct sys_close_args callarg;
    108   1.1     pooka 
    109  1.31     pooka 	SPARG(&callarg, fd) = fd;
    110   1.1     pooka 
    111  1.29     pooka 	error = rump_sysproxy(SYS_close, rump_sysproxy_arg,
    112  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    113  1.27     pooka 	if (error) {
    114  1.39     pooka 		rval[0] = -1;
    115  1.27     pooka 		rumpuser_seterrno(error);
    116  1.27     pooka 	}
    117  1.39     pooka 	return rval[0];
    118   1.1     pooka }
    119  1.15     pooka __weak_alias(sys_close,rump_enosys);
    120   1.1     pooka 
    121  1.27     pooka int rump_sys_link(const char *, const char *);
    122   1.1     pooka int
    123  1.27     pooka rump_sys_link(const char * path, const char * link)
    124   1.1     pooka {
    125  1.39     pooka 	register_t rval[2] = {0, 0};
    126  1.27     pooka 	int error = 0;
    127  1.31     pooka 	struct sys_link_args callarg;
    128   1.1     pooka 
    129  1.31     pooka 	SPARG(&callarg, path) = path;
    130  1.31     pooka 	SPARG(&callarg, link) = link;
    131   1.1     pooka 
    132  1.29     pooka 	error = rump_sysproxy(SYS_link, rump_sysproxy_arg,
    133  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    134  1.27     pooka 	if (error) {
    135  1.39     pooka 		rval[0] = -1;
    136  1.27     pooka 		rumpuser_seterrno(error);
    137  1.27     pooka 	}
    138  1.39     pooka 	return rval[0];
    139   1.1     pooka }
    140  1.15     pooka __weak_alias(sys_link,rump_enosys);
    141   1.1     pooka 
    142  1.27     pooka int rump_sys_unlink(const char *);
    143   1.1     pooka int
    144  1.27     pooka rump_sys_unlink(const char * path)
    145   1.1     pooka {
    146  1.39     pooka 	register_t rval[2] = {0, 0};
    147  1.27     pooka 	int error = 0;
    148  1.31     pooka 	struct sys_unlink_args callarg;
    149   1.1     pooka 
    150  1.31     pooka 	SPARG(&callarg, path) = path;
    151   1.1     pooka 
    152  1.29     pooka 	error = rump_sysproxy(SYS_unlink, rump_sysproxy_arg,
    153  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    154  1.27     pooka 	if (error) {
    155  1.39     pooka 		rval[0] = -1;
    156  1.27     pooka 		rumpuser_seterrno(error);
    157  1.27     pooka 	}
    158  1.39     pooka 	return rval[0];
    159   1.1     pooka }
    160  1.15     pooka __weak_alias(sys_unlink,rump_enosys);
    161   1.1     pooka 
    162  1.27     pooka int rump_sys_chdir(const char *);
    163   1.1     pooka int
    164  1.27     pooka rump_sys_chdir(const char * path)
    165   1.1     pooka {
    166  1.39     pooka 	register_t rval[2] = {0, 0};
    167  1.27     pooka 	int error = 0;
    168  1.31     pooka 	struct sys_chdir_args callarg;
    169   1.1     pooka 
    170  1.31     pooka 	SPARG(&callarg, path) = path;
    171   1.1     pooka 
    172  1.29     pooka 	error = rump_sysproxy(SYS_chdir, rump_sysproxy_arg,
    173  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    174  1.27     pooka 	if (error) {
    175  1.39     pooka 		rval[0] = -1;
    176  1.27     pooka 		rumpuser_seterrno(error);
    177  1.27     pooka 	}
    178  1.39     pooka 	return rval[0];
    179   1.1     pooka }
    180  1.15     pooka __weak_alias(sys_chdir,rump_enosys);
    181   1.1     pooka 
    182  1.27     pooka int rump_sys_fchdir(int);
    183   1.1     pooka int
    184  1.27     pooka rump_sys_fchdir(int fd)
    185   1.1     pooka {
    186  1.39     pooka 	register_t rval[2] = {0, 0};
    187  1.27     pooka 	int error = 0;
    188  1.31     pooka 	struct sys_fchdir_args callarg;
    189   1.1     pooka 
    190  1.31     pooka 	SPARG(&callarg, fd) = fd;
    191   1.1     pooka 
    192  1.29     pooka 	error = rump_sysproxy(SYS_fchdir, rump_sysproxy_arg,
    193  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    194  1.27     pooka 	if (error) {
    195  1.39     pooka 		rval[0] = -1;
    196  1.27     pooka 		rumpuser_seterrno(error);
    197  1.27     pooka 	}
    198  1.39     pooka 	return rval[0];
    199   1.1     pooka }
    200  1.15     pooka __weak_alias(sys_fchdir,rump_enosys);
    201   1.1     pooka 
    202  1.27     pooka int rump_sys_chmod(const char *, mode_t);
    203   1.1     pooka int
    204  1.27     pooka rump_sys_chmod(const char * path, mode_t mode)
    205   1.1     pooka {
    206  1.39     pooka 	register_t rval[2] = {0, 0};
    207  1.27     pooka 	int error = 0;
    208  1.31     pooka 	struct sys_chmod_args callarg;
    209   1.1     pooka 
    210  1.31     pooka 	SPARG(&callarg, path) = path;
    211  1.31     pooka 	SPARG(&callarg, mode) = mode;
    212   1.1     pooka 
    213  1.29     pooka 	error = rump_sysproxy(SYS_chmod, rump_sysproxy_arg,
    214  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    215  1.27     pooka 	if (error) {
    216  1.39     pooka 		rval[0] = -1;
    217  1.27     pooka 		rumpuser_seterrno(error);
    218  1.27     pooka 	}
    219  1.39     pooka 	return rval[0];
    220   1.1     pooka }
    221  1.15     pooka __weak_alias(sys_chmod,rump_enosys);
    222   1.1     pooka 
    223  1.27     pooka int rump_sys_chown(const char *, uid_t, gid_t);
    224   1.1     pooka int
    225  1.27     pooka rump_sys_chown(const char * path, uid_t uid, gid_t gid)
    226   1.1     pooka {
    227  1.39     pooka 	register_t rval[2] = {0, 0};
    228  1.27     pooka 	int error = 0;
    229  1.31     pooka 	struct sys_chown_args callarg;
    230   1.1     pooka 
    231  1.31     pooka 	SPARG(&callarg, path) = path;
    232  1.31     pooka 	SPARG(&callarg, uid) = uid;
    233  1.31     pooka 	SPARG(&callarg, gid) = gid;
    234   1.1     pooka 
    235  1.29     pooka 	error = rump_sysproxy(SYS_chown, rump_sysproxy_arg,
    236  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    237  1.27     pooka 	if (error) {
    238  1.39     pooka 		rval[0] = -1;
    239  1.27     pooka 		rumpuser_seterrno(error);
    240  1.27     pooka 	}
    241  1.39     pooka 	return rval[0];
    242   1.1     pooka }
    243  1.15     pooka __weak_alias(sys_chown,rump_enosys);
    244   1.1     pooka 
    245  1.49     pooka pid_t rump_sys_getpid(void);
    246  1.49     pooka pid_t
    247  1.49     pooka rump_sys_getpid(void )
    248  1.49     pooka {
    249  1.49     pooka 	register_t rval[2] = {0, 0};
    250  1.49     pooka 	int error = 0;
    251  1.49     pooka 
    252  1.49     pooka 	error = rump_sysproxy(SYS_getpid, rump_sysproxy_arg,
    253  1.49     pooka 	    (uint8_t *)NULL, 0, rval);
    254  1.49     pooka 	if (error) {
    255  1.49     pooka 		rval[0] = -1;
    256  1.49     pooka 		rumpuser_seterrno(error);
    257  1.49     pooka 	}
    258  1.49     pooka 	return rval[0];
    259  1.49     pooka }
    260  1.49     pooka __weak_alias(sys_getpid_with_ppid,rump_enosys);
    261  1.49     pooka 
    262  1.27     pooka int rump_sys_unmount(const char *, int);
    263   1.1     pooka int
    264  1.27     pooka rump_sys_unmount(const char * path, int flags)
    265   1.1     pooka {
    266  1.39     pooka 	register_t rval[2] = {0, 0};
    267  1.27     pooka 	int error = 0;
    268  1.31     pooka 	struct sys_unmount_args callarg;
    269   1.1     pooka 
    270  1.31     pooka 	SPARG(&callarg, path) = path;
    271  1.31     pooka 	SPARG(&callarg, flags) = flags;
    272   1.1     pooka 
    273  1.29     pooka 	error = rump_sysproxy(SYS_unmount, rump_sysproxy_arg,
    274  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    275  1.27     pooka 	if (error) {
    276  1.39     pooka 		rval[0] = -1;
    277  1.27     pooka 		rumpuser_seterrno(error);
    278  1.27     pooka 	}
    279  1.39     pooka 	return rval[0];
    280   1.1     pooka }
    281  1.15     pooka __weak_alias(sys_unmount,rump_enosys);
    282   1.1     pooka 
    283  1.49     pooka int rump_sys_setuid(uid_t);
    284  1.49     pooka int
    285  1.49     pooka rump_sys_setuid(uid_t uid)
    286  1.49     pooka {
    287  1.49     pooka 	register_t rval[2] = {0, 0};
    288  1.49     pooka 	int error = 0;
    289  1.49     pooka 	struct sys_setuid_args callarg;
    290  1.49     pooka 
    291  1.49     pooka 	SPARG(&callarg, uid) = uid;
    292  1.49     pooka 
    293  1.49     pooka 	error = rump_sysproxy(SYS_setuid, rump_sysproxy_arg,
    294  1.49     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    295  1.49     pooka 	if (error) {
    296  1.49     pooka 		rval[0] = -1;
    297  1.49     pooka 		rumpuser_seterrno(error);
    298  1.49     pooka 	}
    299  1.49     pooka 	return rval[0];
    300  1.49     pooka }
    301  1.49     pooka __weak_alias(sys_setuid,rump_enosys);
    302  1.49     pooka 
    303  1.49     pooka uid_t rump_sys_getuid(void);
    304  1.49     pooka uid_t
    305  1.49     pooka rump_sys_getuid(void )
    306  1.49     pooka {
    307  1.49     pooka 	register_t rval[2] = {0, 0};
    308  1.49     pooka 	int error = 0;
    309  1.49     pooka 
    310  1.49     pooka 	error = rump_sysproxy(SYS_getuid, rump_sysproxy_arg,
    311  1.49     pooka 	    (uint8_t *)NULL, 0, rval);
    312  1.49     pooka 	if (error) {
    313  1.49     pooka 		rval[0] = -1;
    314  1.49     pooka 		rumpuser_seterrno(error);
    315  1.49     pooka 	}
    316  1.49     pooka 	return rval[0];
    317  1.49     pooka }
    318  1.49     pooka __weak_alias(sys_getuid_with_euid,rump_enosys);
    319  1.49     pooka 
    320  1.49     pooka uid_t rump_sys_geteuid(void);
    321  1.49     pooka uid_t
    322  1.49     pooka rump_sys_geteuid(void )
    323  1.49     pooka {
    324  1.49     pooka 	register_t rval[2] = {0, 0};
    325  1.49     pooka 	int error = 0;
    326  1.49     pooka 
    327  1.49     pooka 	error = rump_sysproxy(SYS_geteuid, rump_sysproxy_arg,
    328  1.49     pooka 	    (uint8_t *)NULL, 0, rval);
    329  1.49     pooka 	if (error) {
    330  1.49     pooka 		rval[0] = -1;
    331  1.49     pooka 		rumpuser_seterrno(error);
    332  1.49     pooka 	}
    333  1.49     pooka 	return rval[0];
    334  1.49     pooka }
    335  1.49     pooka __weak_alias(sys_geteuid,rump_enosys);
    336  1.49     pooka 
    337  1.28     pooka ssize_t rump_sys_recvmsg(int, struct msghdr *, int);
    338  1.28     pooka ssize_t
    339  1.28     pooka rump_sys_recvmsg(int s, struct msghdr * msg, int flags)
    340  1.28     pooka {
    341  1.39     pooka 	register_t rval[2] = {0, 0};
    342  1.28     pooka 	int error = 0;
    343  1.31     pooka 	struct sys_recvmsg_args callarg;
    344  1.28     pooka 
    345  1.31     pooka 	SPARG(&callarg, s) = s;
    346  1.31     pooka 	SPARG(&callarg, msg) = msg;
    347  1.31     pooka 	SPARG(&callarg, flags) = flags;
    348  1.28     pooka 
    349  1.29     pooka 	error = rump_sysproxy(SYS_recvmsg, rump_sysproxy_arg,
    350  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    351  1.28     pooka 	if (error) {
    352  1.39     pooka 		rval[0] = -1;
    353  1.28     pooka 		rumpuser_seterrno(error);
    354  1.28     pooka 	}
    355  1.39     pooka 	return rval[0];
    356  1.28     pooka }
    357  1.28     pooka __weak_alias(sys_recvmsg,rump_enosys);
    358  1.28     pooka 
    359  1.28     pooka ssize_t rump_sys_sendmsg(int, const struct msghdr *, int);
    360  1.28     pooka ssize_t
    361  1.28     pooka rump_sys_sendmsg(int s, const struct msghdr * msg, int flags)
    362  1.28     pooka {
    363  1.39     pooka 	register_t rval[2] = {0, 0};
    364  1.28     pooka 	int error = 0;
    365  1.31     pooka 	struct sys_sendmsg_args callarg;
    366  1.28     pooka 
    367  1.31     pooka 	SPARG(&callarg, s) = s;
    368  1.31     pooka 	SPARG(&callarg, msg) = msg;
    369  1.31     pooka 	SPARG(&callarg, flags) = flags;
    370  1.28     pooka 
    371  1.29     pooka 	error = rump_sysproxy(SYS_sendmsg, rump_sysproxy_arg,
    372  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    373  1.28     pooka 	if (error) {
    374  1.39     pooka 		rval[0] = -1;
    375  1.28     pooka 		rumpuser_seterrno(error);
    376  1.28     pooka 	}
    377  1.39     pooka 	return rval[0];
    378  1.28     pooka }
    379  1.28     pooka __weak_alias(sys_sendmsg,rump_enosys);
    380  1.28     pooka 
    381  1.28     pooka ssize_t rump_sys_recvfrom(int, void *, size_t, int, struct sockaddr *, unsigned int *);
    382  1.28     pooka ssize_t
    383  1.28     pooka rump_sys_recvfrom(int s, void * buf, size_t len, int flags, struct sockaddr * from, unsigned int * fromlenaddr)
    384  1.28     pooka {
    385  1.39     pooka 	register_t rval[2] = {0, 0};
    386  1.28     pooka 	int error = 0;
    387  1.31     pooka 	struct sys_recvfrom_args callarg;
    388  1.28     pooka 
    389  1.31     pooka 	SPARG(&callarg, s) = s;
    390  1.31     pooka 	SPARG(&callarg, buf) = buf;
    391  1.31     pooka 	SPARG(&callarg, len) = len;
    392  1.31     pooka 	SPARG(&callarg, flags) = flags;
    393  1.31     pooka 	SPARG(&callarg, from) = from;
    394  1.31     pooka 	SPARG(&callarg, fromlenaddr) = fromlenaddr;
    395  1.28     pooka 
    396  1.29     pooka 	error = rump_sysproxy(SYS_recvfrom, rump_sysproxy_arg,
    397  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    398  1.28     pooka 	if (error) {
    399  1.39     pooka 		rval[0] = -1;
    400  1.28     pooka 		rumpuser_seterrno(error);
    401  1.28     pooka 	}
    402  1.39     pooka 	return rval[0];
    403  1.28     pooka }
    404  1.28     pooka __weak_alias(sys_recvfrom,rump_enosys);
    405  1.28     pooka 
    406  1.27     pooka int rump_sys_accept(int, struct sockaddr *, unsigned int *);
    407   1.1     pooka int
    408  1.27     pooka rump_sys_accept(int s, struct sockaddr * name, unsigned int * anamelen)
    409  1.22     pooka {
    410  1.39     pooka 	register_t rval[2] = {0, 0};
    411  1.27     pooka 	int error = 0;
    412  1.31     pooka 	struct sys_accept_args callarg;
    413  1.22     pooka 
    414  1.31     pooka 	SPARG(&callarg, s) = s;
    415  1.31     pooka 	SPARG(&callarg, name) = name;
    416  1.31     pooka 	SPARG(&callarg, anamelen) = anamelen;
    417  1.22     pooka 
    418  1.29     pooka 	error = rump_sysproxy(SYS_accept, rump_sysproxy_arg,
    419  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    420  1.27     pooka 	if (error) {
    421  1.39     pooka 		rval[0] = -1;
    422  1.27     pooka 		rumpuser_seterrno(error);
    423  1.27     pooka 	}
    424  1.39     pooka 	return rval[0];
    425  1.22     pooka }
    426  1.22     pooka __weak_alias(sys_accept,rump_enosys);
    427  1.22     pooka 
    428  1.28     pooka int rump_sys_getpeername(int, struct sockaddr *, unsigned int *);
    429  1.28     pooka int
    430  1.28     pooka rump_sys_getpeername(int fdes, struct sockaddr * asa, unsigned int * alen)
    431  1.28     pooka {
    432  1.39     pooka 	register_t rval[2] = {0, 0};
    433  1.28     pooka 	int error = 0;
    434  1.31     pooka 	struct sys_getpeername_args callarg;
    435  1.28     pooka 
    436  1.31     pooka 	SPARG(&callarg, fdes) = fdes;
    437  1.31     pooka 	SPARG(&callarg, asa) = asa;
    438  1.31     pooka 	SPARG(&callarg, alen) = alen;
    439  1.28     pooka 
    440  1.29     pooka 	error = rump_sysproxy(SYS_getpeername, rump_sysproxy_arg,
    441  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    442  1.28     pooka 	if (error) {
    443  1.39     pooka 		rval[0] = -1;
    444  1.28     pooka 		rumpuser_seterrno(error);
    445  1.28     pooka 	}
    446  1.39     pooka 	return rval[0];
    447  1.28     pooka }
    448  1.28     pooka __weak_alias(sys_getpeername,rump_enosys);
    449  1.28     pooka 
    450  1.28     pooka int rump_sys_getsockname(int, struct sockaddr *, unsigned int *);
    451  1.28     pooka int
    452  1.28     pooka rump_sys_getsockname(int fdes, struct sockaddr * asa, unsigned int * alen)
    453  1.28     pooka {
    454  1.39     pooka 	register_t rval[2] = {0, 0};
    455  1.28     pooka 	int error = 0;
    456  1.31     pooka 	struct sys_getsockname_args callarg;
    457  1.28     pooka 
    458  1.31     pooka 	SPARG(&callarg, fdes) = fdes;
    459  1.31     pooka 	SPARG(&callarg, asa) = asa;
    460  1.31     pooka 	SPARG(&callarg, alen) = alen;
    461  1.28     pooka 
    462  1.29     pooka 	error = rump_sysproxy(SYS_getsockname, rump_sysproxy_arg,
    463  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    464  1.28     pooka 	if (error) {
    465  1.39     pooka 		rval[0] = -1;
    466  1.28     pooka 		rumpuser_seterrno(error);
    467  1.28     pooka 	}
    468  1.39     pooka 	return rval[0];
    469  1.28     pooka }
    470  1.28     pooka __weak_alias(sys_getsockname,rump_enosys);
    471  1.28     pooka 
    472  1.34     pooka int rump_sys_access(const char *, int);
    473  1.34     pooka int
    474  1.34     pooka rump_sys_access(const char * path, int flags)
    475  1.34     pooka {
    476  1.39     pooka 	register_t rval[2] = {0, 0};
    477  1.34     pooka 	int error = 0;
    478  1.34     pooka 	struct sys_access_args callarg;
    479  1.34     pooka 
    480  1.34     pooka 	SPARG(&callarg, path) = path;
    481  1.34     pooka 	SPARG(&callarg, flags) = flags;
    482  1.34     pooka 
    483  1.34     pooka 	error = rump_sysproxy(SYS_access, rump_sysproxy_arg,
    484  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    485  1.34     pooka 	if (error) {
    486  1.39     pooka 		rval[0] = -1;
    487  1.34     pooka 		rumpuser_seterrno(error);
    488  1.34     pooka 	}
    489  1.39     pooka 	return rval[0];
    490  1.34     pooka }
    491  1.34     pooka __weak_alias(sys_access,rump_enosys);
    492  1.34     pooka 
    493  1.27     pooka int rump_sys_chflags(const char *, u_long);
    494  1.22     pooka int
    495  1.27     pooka rump_sys_chflags(const char * path, u_long flags)
    496   1.1     pooka {
    497  1.39     pooka 	register_t rval[2] = {0, 0};
    498  1.27     pooka 	int error = 0;
    499  1.31     pooka 	struct sys_chflags_args callarg;
    500   1.1     pooka 
    501  1.31     pooka 	SPARG(&callarg, path) = path;
    502  1.31     pooka 	SPARG(&callarg, flags) = flags;
    503   1.1     pooka 
    504  1.29     pooka 	error = rump_sysproxy(SYS_chflags, rump_sysproxy_arg,
    505  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    506  1.27     pooka 	if (error) {
    507  1.39     pooka 		rval[0] = -1;
    508  1.27     pooka 		rumpuser_seterrno(error);
    509  1.27     pooka 	}
    510  1.39     pooka 	return rval[0];
    511   1.1     pooka }
    512  1.15     pooka __weak_alias(sys_chflags,rump_enosys);
    513   1.1     pooka 
    514  1.34     pooka int rump_sys_fchflags(int, u_long);
    515  1.34     pooka int
    516  1.34     pooka rump_sys_fchflags(int fd, u_long flags)
    517  1.34     pooka {
    518  1.39     pooka 	register_t rval[2] = {0, 0};
    519  1.34     pooka 	int error = 0;
    520  1.34     pooka 	struct sys_fchflags_args callarg;
    521  1.34     pooka 
    522  1.34     pooka 	SPARG(&callarg, fd) = fd;
    523  1.34     pooka 	SPARG(&callarg, flags) = flags;
    524  1.34     pooka 
    525  1.34     pooka 	error = rump_sysproxy(SYS_fchflags, rump_sysproxy_arg,
    526  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    527  1.34     pooka 	if (error) {
    528  1.39     pooka 		rval[0] = -1;
    529  1.34     pooka 		rumpuser_seterrno(error);
    530  1.34     pooka 	}
    531  1.39     pooka 	return rval[0];
    532  1.34     pooka }
    533  1.34     pooka __weak_alias(sys_fchflags,rump_enosys);
    534  1.34     pooka 
    535  1.27     pooka void rump_sys_sync(void);
    536   1.1     pooka void
    537  1.27     pooka rump_sys_sync(void )
    538   1.1     pooka {
    539  1.39     pooka 	register_t rval[2] = {0, 0};
    540  1.27     pooka 	int error = 0;
    541   1.1     pooka 
    542  1.29     pooka 	error = rump_sysproxy(SYS_sync, rump_sysproxy_arg,
    543  1.39     pooka 	    (uint8_t *)NULL, 0, rval);
    544  1.27     pooka 	if (error) {
    545  1.39     pooka 		rval[0] = -1;
    546  1.27     pooka 	}
    547   1.1     pooka }
    548  1.15     pooka __weak_alias(sys_sync,rump_enosys);
    549   1.1     pooka 
    550  1.49     pooka pid_t rump_sys_getppid(void);
    551  1.49     pooka pid_t
    552  1.49     pooka rump_sys_getppid(void )
    553  1.49     pooka {
    554  1.49     pooka 	register_t rval[2] = {0, 0};
    555  1.49     pooka 	int error = 0;
    556  1.49     pooka 
    557  1.49     pooka 	error = rump_sysproxy(SYS_getppid, rump_sysproxy_arg,
    558  1.49     pooka 	    (uint8_t *)NULL, 0, rval);
    559  1.49     pooka 	if (error) {
    560  1.49     pooka 		rval[0] = -1;
    561  1.49     pooka 		rumpuser_seterrno(error);
    562  1.49     pooka 	}
    563  1.49     pooka 	return rval[0];
    564  1.49     pooka }
    565  1.49     pooka __weak_alias(sys_getppid,rump_enosys);
    566  1.49     pooka 
    567  1.34     pooka int rump_sys_dup(int);
    568  1.34     pooka int
    569  1.34     pooka rump_sys_dup(int fd)
    570  1.34     pooka {
    571  1.39     pooka 	register_t rval[2] = {0, 0};
    572  1.34     pooka 	int error = 0;
    573  1.34     pooka 	struct sys_dup_args callarg;
    574  1.34     pooka 
    575  1.34     pooka 	SPARG(&callarg, fd) = fd;
    576  1.34     pooka 
    577  1.34     pooka 	error = rump_sysproxy(SYS_dup, rump_sysproxy_arg,
    578  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    579  1.34     pooka 	if (error) {
    580  1.39     pooka 		rval[0] = -1;
    581  1.34     pooka 		rumpuser_seterrno(error);
    582  1.34     pooka 	}
    583  1.39     pooka 	return rval[0];
    584  1.34     pooka }
    585  1.34     pooka __weak_alias(sys_dup,rump_enosys);
    586  1.34     pooka 
    587  1.49     pooka gid_t rump_sys_getegid(void);
    588  1.49     pooka gid_t
    589  1.49     pooka rump_sys_getegid(void )
    590  1.49     pooka {
    591  1.49     pooka 	register_t rval[2] = {0, 0};
    592  1.49     pooka 	int error = 0;
    593  1.49     pooka 
    594  1.49     pooka 	error = rump_sysproxy(SYS_getegid, rump_sysproxy_arg,
    595  1.49     pooka 	    (uint8_t *)NULL, 0, rval);
    596  1.49     pooka 	if (error) {
    597  1.49     pooka 		rval[0] = -1;
    598  1.49     pooka 		rumpuser_seterrno(error);
    599  1.49     pooka 	}
    600  1.49     pooka 	return rval[0];
    601  1.49     pooka }
    602  1.49     pooka __weak_alias(sys_getegid,rump_enosys);
    603  1.49     pooka 
    604  1.49     pooka gid_t rump_sys_getgid(void);
    605  1.49     pooka gid_t
    606  1.49     pooka rump_sys_getgid(void )
    607  1.49     pooka {
    608  1.49     pooka 	register_t rval[2] = {0, 0};
    609  1.49     pooka 	int error = 0;
    610  1.49     pooka 
    611  1.49     pooka 	error = rump_sysproxy(SYS_getgid, rump_sysproxy_arg,
    612  1.49     pooka 	    (uint8_t *)NULL, 0, rval);
    613  1.49     pooka 	if (error) {
    614  1.49     pooka 		rval[0] = -1;
    615  1.49     pooka 		rumpuser_seterrno(error);
    616  1.49     pooka 	}
    617  1.49     pooka 	return rval[0];
    618  1.49     pooka }
    619  1.49     pooka __weak_alias(sys_getgid_with_egid,rump_enosys);
    620  1.49     pooka 
    621  1.49     pooka int rump_sys___getlogin(char *, size_t);
    622  1.49     pooka int
    623  1.49     pooka rump_sys___getlogin(char * namebuf, size_t namelen)
    624  1.49     pooka {
    625  1.49     pooka 	register_t rval[2] = {0, 0};
    626  1.49     pooka 	int error = 0;
    627  1.49     pooka 	struct sys___getlogin_args callarg;
    628  1.49     pooka 
    629  1.49     pooka 	SPARG(&callarg, namebuf) = namebuf;
    630  1.49     pooka 	SPARG(&callarg, namelen) = namelen;
    631  1.49     pooka 
    632  1.49     pooka 	error = rump_sysproxy(SYS___getlogin, rump_sysproxy_arg,
    633  1.49     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    634  1.49     pooka 	if (error) {
    635  1.49     pooka 		rval[0] = -1;
    636  1.49     pooka 		rumpuser_seterrno(error);
    637  1.49     pooka 	}
    638  1.49     pooka 	return rval[0];
    639  1.49     pooka }
    640  1.49     pooka __weak_alias(sys___getlogin,rump_enosys);
    641  1.49     pooka 
    642  1.49     pooka int rump_sys___setlogin(const char *);
    643  1.49     pooka int
    644  1.49     pooka rump_sys___setlogin(const char * namebuf)
    645  1.49     pooka {
    646  1.49     pooka 	register_t rval[2] = {0, 0};
    647  1.49     pooka 	int error = 0;
    648  1.49     pooka 	struct sys___setlogin_args callarg;
    649  1.49     pooka 
    650  1.49     pooka 	SPARG(&callarg, namebuf) = namebuf;
    651  1.49     pooka 
    652  1.49     pooka 	error = rump_sysproxy(SYS___setlogin, rump_sysproxy_arg,
    653  1.49     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    654  1.49     pooka 	if (error) {
    655  1.49     pooka 		rval[0] = -1;
    656  1.49     pooka 		rumpuser_seterrno(error);
    657  1.49     pooka 	}
    658  1.49     pooka 	return rval[0];
    659  1.49     pooka }
    660  1.49     pooka __weak_alias(sys___setlogin,rump_enosys);
    661  1.49     pooka 
    662  1.27     pooka int rump_sys_ioctl(int, u_long, void *);
    663   1.1     pooka int
    664  1.27     pooka rump_sys_ioctl(int fd, u_long com, void * data)
    665  1.19     pooka {
    666  1.39     pooka 	register_t rval[2] = {0, 0};
    667  1.27     pooka 	int error = 0;
    668  1.31     pooka 	struct sys_ioctl_args callarg;
    669  1.19     pooka 
    670  1.31     pooka 	SPARG(&callarg, fd) = fd;
    671  1.31     pooka 	SPARG(&callarg, com) = com;
    672  1.31     pooka 	SPARG(&callarg, data) = data;
    673  1.19     pooka 
    674  1.29     pooka 	error = rump_sysproxy(SYS_ioctl, rump_sysproxy_arg,
    675  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    676  1.27     pooka 	if (error) {
    677  1.39     pooka 		rval[0] = -1;
    678  1.27     pooka 		rumpuser_seterrno(error);
    679  1.27     pooka 	}
    680  1.39     pooka 	return rval[0];
    681  1.19     pooka }
    682  1.19     pooka __weak_alias(sys_ioctl,rump_enosys);
    683  1.19     pooka 
    684  1.34     pooka int rump_sys_revoke(const char *);
    685  1.34     pooka int
    686  1.34     pooka rump_sys_revoke(const char * path)
    687  1.34     pooka {
    688  1.39     pooka 	register_t rval[2] = {0, 0};
    689  1.34     pooka 	int error = 0;
    690  1.34     pooka 	struct sys_revoke_args callarg;
    691  1.34     pooka 
    692  1.34     pooka 	SPARG(&callarg, path) = path;
    693  1.34     pooka 
    694  1.34     pooka 	error = rump_sysproxy(SYS_revoke, rump_sysproxy_arg,
    695  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    696  1.34     pooka 	if (error) {
    697  1.39     pooka 		rval[0] = -1;
    698  1.34     pooka 		rumpuser_seterrno(error);
    699  1.34     pooka 	}
    700  1.39     pooka 	return rval[0];
    701  1.34     pooka }
    702  1.34     pooka __weak_alias(sys_revoke,rump_enosys);
    703  1.34     pooka 
    704  1.27     pooka int rump_sys_symlink(const char *, const char *);
    705  1.19     pooka int
    706  1.27     pooka rump_sys_symlink(const char * path, const char * link)
    707   1.1     pooka {
    708  1.39     pooka 	register_t rval[2] = {0, 0};
    709  1.27     pooka 	int error = 0;
    710  1.31     pooka 	struct sys_symlink_args callarg;
    711   1.1     pooka 
    712  1.31     pooka 	SPARG(&callarg, path) = path;
    713  1.31     pooka 	SPARG(&callarg, link) = link;
    714   1.1     pooka 
    715  1.29     pooka 	error = rump_sysproxy(SYS_symlink, rump_sysproxy_arg,
    716  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    717  1.27     pooka 	if (error) {
    718  1.39     pooka 		rval[0] = -1;
    719  1.27     pooka 		rumpuser_seterrno(error);
    720  1.27     pooka 	}
    721  1.39     pooka 	return rval[0];
    722   1.1     pooka }
    723  1.15     pooka __weak_alias(sys_symlink,rump_enosys);
    724   1.1     pooka 
    725  1.27     pooka ssize_t rump_sys_readlink(const char *, char *, size_t);
    726   1.1     pooka ssize_t
    727  1.27     pooka rump_sys_readlink(const char * path, char * buf, size_t count)
    728   1.1     pooka {
    729  1.39     pooka 	register_t rval[2] = {0, 0};
    730  1.27     pooka 	int error = 0;
    731  1.31     pooka 	struct sys_readlink_args callarg;
    732   1.1     pooka 
    733  1.31     pooka 	SPARG(&callarg, path) = path;
    734  1.31     pooka 	SPARG(&callarg, buf) = buf;
    735  1.31     pooka 	SPARG(&callarg, count) = count;
    736   1.1     pooka 
    737  1.29     pooka 	error = rump_sysproxy(SYS_readlink, rump_sysproxy_arg,
    738  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    739  1.27     pooka 	if (error) {
    740  1.39     pooka 		rval[0] = -1;
    741  1.27     pooka 		rumpuser_seterrno(error);
    742  1.27     pooka 	}
    743  1.39     pooka 	return rval[0];
    744   1.1     pooka }
    745  1.15     pooka __weak_alias(sys_readlink,rump_enosys);
    746   1.1     pooka 
    747  1.50     pooka mode_t rump_sys_umask(mode_t);
    748  1.50     pooka mode_t
    749  1.50     pooka rump_sys_umask(mode_t newmask)
    750  1.50     pooka {
    751  1.50     pooka 	register_t rval[2] = {0, 0};
    752  1.50     pooka 	int error = 0;
    753  1.50     pooka 	struct sys_umask_args callarg;
    754  1.50     pooka 
    755  1.50     pooka 	SPARG(&callarg, newmask) = newmask;
    756  1.50     pooka 
    757  1.50     pooka 	error = rump_sysproxy(SYS_umask, rump_sysproxy_arg,
    758  1.50     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    759  1.50     pooka 	if (error) {
    760  1.50     pooka 		rval[0] = -1;
    761  1.50     pooka 		rumpuser_seterrno(error);
    762  1.50     pooka 	}
    763  1.50     pooka 	return rval[0];
    764  1.50     pooka }
    765  1.50     pooka __weak_alias(sys_umask,rump_enosys);
    766  1.50     pooka 
    767  1.34     pooka int rump_sys_chroot(const char *);
    768  1.34     pooka int
    769  1.34     pooka rump_sys_chroot(const char * path)
    770  1.34     pooka {
    771  1.39     pooka 	register_t rval[2] = {0, 0};
    772  1.34     pooka 	int error = 0;
    773  1.34     pooka 	struct sys_chroot_args callarg;
    774  1.34     pooka 
    775  1.34     pooka 	SPARG(&callarg, path) = path;
    776  1.34     pooka 
    777  1.34     pooka 	error = rump_sysproxy(SYS_chroot, rump_sysproxy_arg,
    778  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    779  1.34     pooka 	if (error) {
    780  1.39     pooka 		rval[0] = -1;
    781  1.34     pooka 		rumpuser_seterrno(error);
    782  1.34     pooka 	}
    783  1.39     pooka 	return rval[0];
    784  1.34     pooka }
    785  1.34     pooka __weak_alias(sys_chroot,rump_enosys);
    786  1.34     pooka 
    787  1.49     pooka int rump_sys_getgroups(int, gid_t *);
    788  1.49     pooka int
    789  1.49     pooka rump_sys_getgroups(int gidsetsize, gid_t * gidset)
    790  1.49     pooka {
    791  1.49     pooka 	register_t rval[2] = {0, 0};
    792  1.49     pooka 	int error = 0;
    793  1.49     pooka 	struct sys_getgroups_args callarg;
    794  1.49     pooka 
    795  1.49     pooka 	SPARG(&callarg, gidsetsize) = gidsetsize;
    796  1.49     pooka 	SPARG(&callarg, gidset) = gidset;
    797  1.49     pooka 
    798  1.49     pooka 	error = rump_sysproxy(SYS_getgroups, rump_sysproxy_arg,
    799  1.49     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    800  1.49     pooka 	if (error) {
    801  1.49     pooka 		rval[0] = -1;
    802  1.49     pooka 		rumpuser_seterrno(error);
    803  1.49     pooka 	}
    804  1.49     pooka 	return rval[0];
    805  1.49     pooka }
    806  1.49     pooka __weak_alias(sys_getgroups,rump_enosys);
    807  1.49     pooka 
    808  1.49     pooka int rump_sys_setgroups(int, const gid_t *);
    809  1.49     pooka int
    810  1.49     pooka rump_sys_setgroups(int gidsetsize, const gid_t * gidset)
    811  1.49     pooka {
    812  1.49     pooka 	register_t rval[2] = {0, 0};
    813  1.49     pooka 	int error = 0;
    814  1.49     pooka 	struct sys_setgroups_args callarg;
    815  1.49     pooka 
    816  1.49     pooka 	SPARG(&callarg, gidsetsize) = gidsetsize;
    817  1.49     pooka 	SPARG(&callarg, gidset) = gidset;
    818  1.49     pooka 
    819  1.49     pooka 	error = rump_sysproxy(SYS_setgroups, rump_sysproxy_arg,
    820  1.49     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    821  1.49     pooka 	if (error) {
    822  1.49     pooka 		rval[0] = -1;
    823  1.49     pooka 		rumpuser_seterrno(error);
    824  1.49     pooka 	}
    825  1.49     pooka 	return rval[0];
    826  1.49     pooka }
    827  1.49     pooka __weak_alias(sys_setgroups,rump_enosys);
    828  1.49     pooka 
    829  1.49     pooka int rump_sys_getpgrp(void);
    830  1.49     pooka int
    831  1.49     pooka rump_sys_getpgrp(void )
    832  1.49     pooka {
    833  1.49     pooka 	register_t rval[2] = {0, 0};
    834  1.49     pooka 	int error = 0;
    835  1.49     pooka 
    836  1.49     pooka 	error = rump_sysproxy(SYS_getpgrp, rump_sysproxy_arg,
    837  1.49     pooka 	    (uint8_t *)NULL, 0, rval);
    838  1.49     pooka 	if (error) {
    839  1.49     pooka 		rval[0] = -1;
    840  1.49     pooka 		rumpuser_seterrno(error);
    841  1.49     pooka 	}
    842  1.49     pooka 	return rval[0];
    843  1.49     pooka }
    844  1.49     pooka __weak_alias(sys_getpgrp,rump_enosys);
    845  1.49     pooka 
    846  1.49     pooka int rump_sys_setpgid(int, int);
    847  1.49     pooka int
    848  1.49     pooka rump_sys_setpgid(int pid, int pgid)
    849  1.49     pooka {
    850  1.49     pooka 	register_t rval[2] = {0, 0};
    851  1.49     pooka 	int error = 0;
    852  1.49     pooka 	struct sys_setpgid_args callarg;
    853  1.49     pooka 
    854  1.49     pooka 	SPARG(&callarg, pid) = pid;
    855  1.49     pooka 	SPARG(&callarg, pgid) = pgid;
    856  1.49     pooka 
    857  1.49     pooka 	error = rump_sysproxy(SYS_setpgid, rump_sysproxy_arg,
    858  1.49     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    859  1.49     pooka 	if (error) {
    860  1.49     pooka 		rval[0] = -1;
    861  1.49     pooka 		rumpuser_seterrno(error);
    862  1.49     pooka 	}
    863  1.49     pooka 	return rval[0];
    864  1.49     pooka }
    865  1.49     pooka __weak_alias(sys_setpgid,rump_enosys);
    866  1.49     pooka 
    867  1.34     pooka int rump_sys_dup2(int, int);
    868  1.34     pooka int
    869  1.34     pooka rump_sys_dup2(int from, int to)
    870  1.34     pooka {
    871  1.39     pooka 	register_t rval[2] = {0, 0};
    872  1.34     pooka 	int error = 0;
    873  1.34     pooka 	struct sys_dup2_args callarg;
    874  1.34     pooka 
    875  1.34     pooka 	SPARG(&callarg, from) = from;
    876  1.34     pooka 	SPARG(&callarg, to) = to;
    877  1.34     pooka 
    878  1.34     pooka 	error = rump_sysproxy(SYS_dup2, rump_sysproxy_arg,
    879  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    880  1.34     pooka 	if (error) {
    881  1.39     pooka 		rval[0] = -1;
    882  1.34     pooka 		rumpuser_seterrno(error);
    883  1.34     pooka 	}
    884  1.39     pooka 	return rval[0];
    885  1.34     pooka }
    886  1.34     pooka __weak_alias(sys_dup2,rump_enosys);
    887  1.34     pooka 
    888  1.34     pooka int rump_sys_fcntl(int, int, void *);
    889  1.34     pooka int
    890  1.34     pooka rump_sys_fcntl(int fd, int cmd, void * arg)
    891  1.34     pooka {
    892  1.39     pooka 	register_t rval[2] = {0, 0};
    893  1.34     pooka 	int error = 0;
    894  1.34     pooka 	struct sys_fcntl_args callarg;
    895  1.34     pooka 
    896  1.34     pooka 	SPARG(&callarg, fd) = fd;
    897  1.34     pooka 	SPARG(&callarg, cmd) = cmd;
    898  1.34     pooka 	SPARG(&callarg, arg) = arg;
    899  1.34     pooka 
    900  1.34     pooka 	error = rump_sysproxy(SYS_fcntl, rump_sysproxy_arg,
    901  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    902  1.34     pooka 	if (error) {
    903  1.39     pooka 		rval[0] = -1;
    904  1.34     pooka 		rumpuser_seterrno(error);
    905  1.34     pooka 	}
    906  1.39     pooka 	return rval[0];
    907  1.34     pooka }
    908  1.34     pooka __weak_alias(sys_fcntl,rump_enosys);
    909  1.34     pooka 
    910  1.27     pooka int rump_sys_fsync(int);
    911   1.1     pooka int
    912  1.27     pooka rump_sys_fsync(int fd)
    913  1.12     pooka {
    914  1.39     pooka 	register_t rval[2] = {0, 0};
    915  1.27     pooka 	int error = 0;
    916  1.31     pooka 	struct sys_fsync_args callarg;
    917  1.12     pooka 
    918  1.31     pooka 	SPARG(&callarg, fd) = fd;
    919  1.12     pooka 
    920  1.29     pooka 	error = rump_sysproxy(SYS_fsync, rump_sysproxy_arg,
    921  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    922  1.27     pooka 	if (error) {
    923  1.39     pooka 		rval[0] = -1;
    924  1.27     pooka 		rumpuser_seterrno(error);
    925  1.27     pooka 	}
    926  1.39     pooka 	return rval[0];
    927  1.12     pooka }
    928  1.15     pooka __weak_alias(sys_fsync,rump_enosys);
    929  1.12     pooka 
    930  1.27     pooka int rump_sys_connect(int, const struct sockaddr *, unsigned int);
    931  1.12     pooka int
    932  1.27     pooka rump_sys_connect(int s, const struct sockaddr * name, unsigned int namelen)
    933  1.18     pooka {
    934  1.39     pooka 	register_t rval[2] = {0, 0};
    935  1.27     pooka 	int error = 0;
    936  1.31     pooka 	struct sys_connect_args callarg;
    937  1.18     pooka 
    938  1.31     pooka 	SPARG(&callarg, s) = s;
    939  1.31     pooka 	SPARG(&callarg, name) = name;
    940  1.31     pooka 	SPARG(&callarg, namelen) = namelen;
    941  1.18     pooka 
    942  1.29     pooka 	error = rump_sysproxy(SYS_connect, rump_sysproxy_arg,
    943  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    944  1.27     pooka 	if (error) {
    945  1.39     pooka 		rval[0] = -1;
    946  1.27     pooka 		rumpuser_seterrno(error);
    947  1.27     pooka 	}
    948  1.39     pooka 	return rval[0];
    949  1.18     pooka }
    950  1.18     pooka __weak_alias(sys_connect,rump_enosys);
    951  1.18     pooka 
    952  1.27     pooka int rump_sys_bind(int, const struct sockaddr *, unsigned int);
    953  1.18     pooka int
    954  1.27     pooka rump_sys_bind(int s, const struct sockaddr * name, unsigned int namelen)
    955  1.22     pooka {
    956  1.39     pooka 	register_t rval[2] = {0, 0};
    957  1.27     pooka 	int error = 0;
    958  1.31     pooka 	struct sys_bind_args callarg;
    959  1.22     pooka 
    960  1.31     pooka 	SPARG(&callarg, s) = s;
    961  1.31     pooka 	SPARG(&callarg, name) = name;
    962  1.31     pooka 	SPARG(&callarg, namelen) = namelen;
    963  1.22     pooka 
    964  1.29     pooka 	error = rump_sysproxy(SYS_bind, rump_sysproxy_arg,
    965  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    966  1.27     pooka 	if (error) {
    967  1.39     pooka 		rval[0] = -1;
    968  1.27     pooka 		rumpuser_seterrno(error);
    969  1.27     pooka 	}
    970  1.39     pooka 	return rval[0];
    971  1.22     pooka }
    972  1.22     pooka __weak_alias(sys_bind,rump_enosys);
    973  1.22     pooka 
    974  1.27     pooka int rump_sys_setsockopt(int, int, int, const void *, unsigned int);
    975  1.22     pooka int
    976  1.27     pooka rump_sys_setsockopt(int s, int level, int name, const void * val, unsigned int valsize)
    977  1.18     pooka {
    978  1.39     pooka 	register_t rval[2] = {0, 0};
    979  1.27     pooka 	int error = 0;
    980  1.31     pooka 	struct sys_setsockopt_args callarg;
    981  1.18     pooka 
    982  1.31     pooka 	SPARG(&callarg, s) = s;
    983  1.31     pooka 	SPARG(&callarg, level) = level;
    984  1.31     pooka 	SPARG(&callarg, name) = name;
    985  1.31     pooka 	SPARG(&callarg, val) = val;
    986  1.31     pooka 	SPARG(&callarg, valsize) = valsize;
    987  1.18     pooka 
    988  1.29     pooka 	error = rump_sysproxy(SYS_setsockopt, rump_sysproxy_arg,
    989  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
    990  1.27     pooka 	if (error) {
    991  1.39     pooka 		rval[0] = -1;
    992  1.27     pooka 		rumpuser_seterrno(error);
    993  1.27     pooka 	}
    994  1.39     pooka 	return rval[0];
    995  1.18     pooka }
    996  1.18     pooka __weak_alias(sys_setsockopt,rump_enosys);
    997  1.18     pooka 
    998  1.27     pooka int rump_sys_listen(int, int);
    999  1.18     pooka int
   1000  1.27     pooka rump_sys_listen(int s, int backlog)
   1001  1.22     pooka {
   1002  1.39     pooka 	register_t rval[2] = {0, 0};
   1003  1.27     pooka 	int error = 0;
   1004  1.31     pooka 	struct sys_listen_args callarg;
   1005  1.22     pooka 
   1006  1.31     pooka 	SPARG(&callarg, s) = s;
   1007  1.31     pooka 	SPARG(&callarg, backlog) = backlog;
   1008  1.22     pooka 
   1009  1.29     pooka 	error = rump_sysproxy(SYS_listen, rump_sysproxy_arg,
   1010  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1011  1.27     pooka 	if (error) {
   1012  1.39     pooka 		rval[0] = -1;
   1013  1.27     pooka 		rumpuser_seterrno(error);
   1014  1.27     pooka 	}
   1015  1.39     pooka 	return rval[0];
   1016  1.22     pooka }
   1017  1.22     pooka __weak_alias(sys_listen,rump_enosys);
   1018  1.22     pooka 
   1019  1.27     pooka int rump_sys_getsockopt(int, int, int, void *, unsigned int *);
   1020  1.22     pooka int
   1021  1.27     pooka rump_sys_getsockopt(int s, int level, int name, void * val, unsigned int * avalsize)
   1022  1.18     pooka {
   1023  1.39     pooka 	register_t rval[2] = {0, 0};
   1024  1.27     pooka 	int error = 0;
   1025  1.31     pooka 	struct sys_getsockopt_args callarg;
   1026  1.18     pooka 
   1027  1.31     pooka 	SPARG(&callarg, s) = s;
   1028  1.31     pooka 	SPARG(&callarg, level) = level;
   1029  1.31     pooka 	SPARG(&callarg, name) = name;
   1030  1.31     pooka 	SPARG(&callarg, val) = val;
   1031  1.31     pooka 	SPARG(&callarg, avalsize) = avalsize;
   1032  1.18     pooka 
   1033  1.29     pooka 	error = rump_sysproxy(SYS_getsockopt, rump_sysproxy_arg,
   1034  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1035  1.27     pooka 	if (error) {
   1036  1.39     pooka 		rval[0] = -1;
   1037  1.27     pooka 		rumpuser_seterrno(error);
   1038  1.27     pooka 	}
   1039  1.39     pooka 	return rval[0];
   1040  1.18     pooka }
   1041  1.18     pooka __weak_alias(sys_getsockopt,rump_enosys);
   1042  1.18     pooka 
   1043  1.34     pooka ssize_t rump_sys_readv(int, const struct iovec *, int);
   1044  1.34     pooka ssize_t
   1045  1.34     pooka rump_sys_readv(int fd, const struct iovec * iovp, int iovcnt)
   1046  1.34     pooka {
   1047  1.39     pooka 	register_t rval[2] = {0, 0};
   1048  1.34     pooka 	int error = 0;
   1049  1.34     pooka 	struct sys_readv_args callarg;
   1050  1.34     pooka 
   1051  1.34     pooka 	SPARG(&callarg, fd) = fd;
   1052  1.34     pooka 	SPARG(&callarg, iovp) = iovp;
   1053  1.34     pooka 	SPARG(&callarg, iovcnt) = iovcnt;
   1054  1.34     pooka 
   1055  1.34     pooka 	error = rump_sysproxy(SYS_readv, rump_sysproxy_arg,
   1056  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1057  1.34     pooka 	if (error) {
   1058  1.39     pooka 		rval[0] = -1;
   1059  1.34     pooka 		rumpuser_seterrno(error);
   1060  1.34     pooka 	}
   1061  1.39     pooka 	return rval[0];
   1062  1.34     pooka }
   1063  1.34     pooka __weak_alias(sys_readv,rump_enosys);
   1064  1.34     pooka 
   1065  1.34     pooka ssize_t rump_sys_writev(int, const struct iovec *, int);
   1066  1.34     pooka ssize_t
   1067  1.34     pooka rump_sys_writev(int fd, const struct iovec * iovp, int iovcnt)
   1068  1.34     pooka {
   1069  1.39     pooka 	register_t rval[2] = {0, 0};
   1070  1.34     pooka 	int error = 0;
   1071  1.34     pooka 	struct sys_writev_args callarg;
   1072  1.34     pooka 
   1073  1.34     pooka 	SPARG(&callarg, fd) = fd;
   1074  1.34     pooka 	SPARG(&callarg, iovp) = iovp;
   1075  1.34     pooka 	SPARG(&callarg, iovcnt) = iovcnt;
   1076  1.34     pooka 
   1077  1.34     pooka 	error = rump_sysproxy(SYS_writev, rump_sysproxy_arg,
   1078  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1079  1.34     pooka 	if (error) {
   1080  1.39     pooka 		rval[0] = -1;
   1081  1.34     pooka 		rumpuser_seterrno(error);
   1082  1.34     pooka 	}
   1083  1.39     pooka 	return rval[0];
   1084  1.34     pooka }
   1085  1.34     pooka __weak_alias(sys_writev,rump_enosys);
   1086  1.34     pooka 
   1087  1.34     pooka int rump_sys_fchown(int, uid_t, gid_t);
   1088  1.34     pooka int
   1089  1.34     pooka rump_sys_fchown(int fd, uid_t uid, gid_t gid)
   1090  1.34     pooka {
   1091  1.39     pooka 	register_t rval[2] = {0, 0};
   1092  1.34     pooka 	int error = 0;
   1093  1.34     pooka 	struct sys_fchown_args callarg;
   1094  1.34     pooka 
   1095  1.34     pooka 	SPARG(&callarg, fd) = fd;
   1096  1.34     pooka 	SPARG(&callarg, uid) = uid;
   1097  1.34     pooka 	SPARG(&callarg, gid) = gid;
   1098  1.34     pooka 
   1099  1.34     pooka 	error = rump_sysproxy(SYS_fchown, rump_sysproxy_arg,
   1100  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1101  1.34     pooka 	if (error) {
   1102  1.39     pooka 		rval[0] = -1;
   1103  1.34     pooka 		rumpuser_seterrno(error);
   1104  1.34     pooka 	}
   1105  1.39     pooka 	return rval[0];
   1106  1.34     pooka }
   1107  1.34     pooka __weak_alias(sys_fchown,rump_enosys);
   1108  1.34     pooka 
   1109  1.34     pooka int rump_sys_fchmod(int, mode_t);
   1110  1.34     pooka int
   1111  1.34     pooka rump_sys_fchmod(int fd, mode_t mode)
   1112  1.34     pooka {
   1113  1.39     pooka 	register_t rval[2] = {0, 0};
   1114  1.34     pooka 	int error = 0;
   1115  1.34     pooka 	struct sys_fchmod_args callarg;
   1116  1.34     pooka 
   1117  1.34     pooka 	SPARG(&callarg, fd) = fd;
   1118  1.34     pooka 	SPARG(&callarg, mode) = mode;
   1119  1.34     pooka 
   1120  1.34     pooka 	error = rump_sysproxy(SYS_fchmod, rump_sysproxy_arg,
   1121  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1122  1.34     pooka 	if (error) {
   1123  1.39     pooka 		rval[0] = -1;
   1124  1.34     pooka 		rumpuser_seterrno(error);
   1125  1.34     pooka 	}
   1126  1.39     pooka 	return rval[0];
   1127  1.34     pooka }
   1128  1.34     pooka __weak_alias(sys_fchmod,rump_enosys);
   1129  1.34     pooka 
   1130  1.49     pooka int rump_sys_setreuid(uid_t, uid_t);
   1131  1.49     pooka int
   1132  1.49     pooka rump_sys_setreuid(uid_t ruid, uid_t euid)
   1133  1.49     pooka {
   1134  1.49     pooka 	register_t rval[2] = {0, 0};
   1135  1.49     pooka 	int error = 0;
   1136  1.49     pooka 	struct sys_setreuid_args callarg;
   1137  1.49     pooka 
   1138  1.49     pooka 	SPARG(&callarg, ruid) = ruid;
   1139  1.49     pooka 	SPARG(&callarg, euid) = euid;
   1140  1.49     pooka 
   1141  1.49     pooka 	error = rump_sysproxy(SYS_setreuid, rump_sysproxy_arg,
   1142  1.49     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1143  1.49     pooka 	if (error) {
   1144  1.49     pooka 		rval[0] = -1;
   1145  1.49     pooka 		rumpuser_seterrno(error);
   1146  1.49     pooka 	}
   1147  1.49     pooka 	return rval[0];
   1148  1.49     pooka }
   1149  1.49     pooka __weak_alias(sys_setreuid,rump_enosys);
   1150  1.49     pooka 
   1151  1.49     pooka int rump_sys_setregid(gid_t, gid_t);
   1152  1.49     pooka int
   1153  1.49     pooka rump_sys_setregid(gid_t rgid, gid_t egid)
   1154  1.49     pooka {
   1155  1.49     pooka 	register_t rval[2] = {0, 0};
   1156  1.49     pooka 	int error = 0;
   1157  1.49     pooka 	struct sys_setregid_args callarg;
   1158  1.49     pooka 
   1159  1.49     pooka 	SPARG(&callarg, rgid) = rgid;
   1160  1.49     pooka 	SPARG(&callarg, egid) = egid;
   1161  1.49     pooka 
   1162  1.49     pooka 	error = rump_sysproxy(SYS_setregid, rump_sysproxy_arg,
   1163  1.49     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1164  1.49     pooka 	if (error) {
   1165  1.49     pooka 		rval[0] = -1;
   1166  1.49     pooka 		rumpuser_seterrno(error);
   1167  1.49     pooka 	}
   1168  1.49     pooka 	return rval[0];
   1169  1.49     pooka }
   1170  1.49     pooka __weak_alias(sys_setregid,rump_enosys);
   1171  1.49     pooka 
   1172  1.27     pooka int rump_sys_rename(const char *, const char *);
   1173  1.18     pooka int
   1174  1.27     pooka rump_sys_rename(const char * from, const char * to)
   1175   1.1     pooka {
   1176  1.39     pooka 	register_t rval[2] = {0, 0};
   1177  1.27     pooka 	int error = 0;
   1178  1.31     pooka 	struct sys_rename_args callarg;
   1179   1.1     pooka 
   1180  1.31     pooka 	SPARG(&callarg, from) = from;
   1181  1.31     pooka 	SPARG(&callarg, to) = to;
   1182   1.1     pooka 
   1183  1.29     pooka 	error = rump_sysproxy(SYS_rename, rump_sysproxy_arg,
   1184  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1185  1.27     pooka 	if (error) {
   1186  1.39     pooka 		rval[0] = -1;
   1187  1.27     pooka 		rumpuser_seterrno(error);
   1188  1.27     pooka 	}
   1189  1.39     pooka 	return rval[0];
   1190   1.1     pooka }
   1191  1.15     pooka __weak_alias(sys_rename,rump_enosys);
   1192   1.1     pooka 
   1193  1.34     pooka int rump_sys_flock(int, int);
   1194  1.34     pooka int
   1195  1.34     pooka rump_sys_flock(int fd, int how)
   1196  1.34     pooka {
   1197  1.39     pooka 	register_t rval[2] = {0, 0};
   1198  1.34     pooka 	int error = 0;
   1199  1.34     pooka 	struct sys_flock_args callarg;
   1200  1.34     pooka 
   1201  1.34     pooka 	SPARG(&callarg, fd) = fd;
   1202  1.34     pooka 	SPARG(&callarg, how) = how;
   1203  1.34     pooka 
   1204  1.34     pooka 	error = rump_sysproxy(SYS_flock, rump_sysproxy_arg,
   1205  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1206  1.34     pooka 	if (error) {
   1207  1.39     pooka 		rval[0] = -1;
   1208  1.34     pooka 		rumpuser_seterrno(error);
   1209  1.34     pooka 	}
   1210  1.39     pooka 	return rval[0];
   1211  1.34     pooka }
   1212  1.34     pooka __weak_alias(sys_flock,rump_enosys);
   1213  1.34     pooka 
   1214  1.27     pooka int rump_sys_mkfifo(const char *, mode_t);
   1215   1.1     pooka int
   1216  1.27     pooka rump_sys_mkfifo(const char * path, mode_t mode)
   1217  1.10     pooka {
   1218  1.39     pooka 	register_t rval[2] = {0, 0};
   1219  1.27     pooka 	int error = 0;
   1220  1.31     pooka 	struct sys_mkfifo_args callarg;
   1221  1.10     pooka 
   1222  1.31     pooka 	SPARG(&callarg, path) = path;
   1223  1.31     pooka 	SPARG(&callarg, mode) = mode;
   1224  1.10     pooka 
   1225  1.29     pooka 	error = rump_sysproxy(SYS_mkfifo, rump_sysproxy_arg,
   1226  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1227  1.27     pooka 	if (error) {
   1228  1.39     pooka 		rval[0] = -1;
   1229  1.27     pooka 		rumpuser_seterrno(error);
   1230  1.27     pooka 	}
   1231  1.39     pooka 	return rval[0];
   1232  1.10     pooka }
   1233  1.15     pooka __weak_alias(sys_mkfifo,rump_enosys);
   1234  1.10     pooka 
   1235  1.28     pooka ssize_t rump_sys_sendto(int, const void *, size_t, int, const struct sockaddr *, unsigned int);
   1236  1.28     pooka ssize_t
   1237  1.28     pooka rump_sys_sendto(int s, const void * buf, size_t len, int flags, const struct sockaddr * to, unsigned int tolen)
   1238  1.28     pooka {
   1239  1.39     pooka 	register_t rval[2] = {0, 0};
   1240  1.28     pooka 	int error = 0;
   1241  1.31     pooka 	struct sys_sendto_args callarg;
   1242  1.28     pooka 
   1243  1.31     pooka 	SPARG(&callarg, s) = s;
   1244  1.31     pooka 	SPARG(&callarg, buf) = buf;
   1245  1.31     pooka 	SPARG(&callarg, len) = len;
   1246  1.31     pooka 	SPARG(&callarg, flags) = flags;
   1247  1.31     pooka 	SPARG(&callarg, to) = to;
   1248  1.31     pooka 	SPARG(&callarg, tolen) = tolen;
   1249  1.28     pooka 
   1250  1.29     pooka 	error = rump_sysproxy(SYS_sendto, rump_sysproxy_arg,
   1251  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1252  1.28     pooka 	if (error) {
   1253  1.39     pooka 		rval[0] = -1;
   1254  1.28     pooka 		rumpuser_seterrno(error);
   1255  1.28     pooka 	}
   1256  1.39     pooka 	return rval[0];
   1257  1.28     pooka }
   1258  1.28     pooka __weak_alias(sys_sendto,rump_enosys);
   1259  1.28     pooka 
   1260  1.28     pooka int rump_sys_shutdown(int, int);
   1261  1.28     pooka int
   1262  1.28     pooka rump_sys_shutdown(int s, int how)
   1263  1.28     pooka {
   1264  1.39     pooka 	register_t rval[2] = {0, 0};
   1265  1.28     pooka 	int error = 0;
   1266  1.31     pooka 	struct sys_shutdown_args callarg;
   1267  1.28     pooka 
   1268  1.31     pooka 	SPARG(&callarg, s) = s;
   1269  1.31     pooka 	SPARG(&callarg, how) = how;
   1270  1.28     pooka 
   1271  1.29     pooka 	error = rump_sysproxy(SYS_shutdown, rump_sysproxy_arg,
   1272  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1273  1.28     pooka 	if (error) {
   1274  1.39     pooka 		rval[0] = -1;
   1275  1.28     pooka 		rumpuser_seterrno(error);
   1276  1.28     pooka 	}
   1277  1.39     pooka 	return rval[0];
   1278  1.28     pooka }
   1279  1.28     pooka __weak_alias(sys_shutdown,rump_enosys);
   1280  1.28     pooka 
   1281  1.28     pooka int rump_sys_socketpair(int, int, int, int *);
   1282  1.28     pooka int
   1283  1.28     pooka rump_sys_socketpair(int domain, int type, int protocol, int * rsv)
   1284  1.28     pooka {
   1285  1.39     pooka 	register_t rval[2] = {0, 0};
   1286  1.28     pooka 	int error = 0;
   1287  1.31     pooka 	struct sys_socketpair_args callarg;
   1288  1.28     pooka 
   1289  1.31     pooka 	SPARG(&callarg, domain) = domain;
   1290  1.31     pooka 	SPARG(&callarg, type) = type;
   1291  1.31     pooka 	SPARG(&callarg, protocol) = protocol;
   1292  1.31     pooka 	SPARG(&callarg, rsv) = rsv;
   1293  1.28     pooka 
   1294  1.34     pooka 	error = rump_sysproxy(SYS_socketpair, rump_sysproxy_arg,
   1295  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1296  1.34     pooka 	if (error) {
   1297  1.39     pooka 		rval[0] = -1;
   1298  1.34     pooka 		rumpuser_seterrno(error);
   1299  1.34     pooka 	}
   1300  1.39     pooka 	return rval[0];
   1301  1.34     pooka }
   1302  1.34     pooka __weak_alias(sys_socketpair,rump_enosys);
   1303  1.34     pooka 
   1304  1.34     pooka int rump_sys_mkdir(const char *, mode_t);
   1305  1.34     pooka int
   1306  1.34     pooka rump_sys_mkdir(const char * path, mode_t mode)
   1307  1.34     pooka {
   1308  1.39     pooka 	register_t rval[2] = {0, 0};
   1309  1.34     pooka 	int error = 0;
   1310  1.34     pooka 	struct sys_mkdir_args callarg;
   1311  1.34     pooka 
   1312  1.34     pooka 	SPARG(&callarg, path) = path;
   1313  1.34     pooka 	SPARG(&callarg, mode) = mode;
   1314  1.34     pooka 
   1315  1.34     pooka 	error = rump_sysproxy(SYS_mkdir, rump_sysproxy_arg,
   1316  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1317  1.34     pooka 	if (error) {
   1318  1.39     pooka 		rval[0] = -1;
   1319  1.34     pooka 		rumpuser_seterrno(error);
   1320  1.34     pooka 	}
   1321  1.39     pooka 	return rval[0];
   1322  1.34     pooka }
   1323  1.34     pooka __weak_alias(sys_mkdir,rump_enosys);
   1324  1.34     pooka 
   1325  1.34     pooka int rump_sys_rmdir(const char *);
   1326  1.34     pooka int
   1327  1.34     pooka rump_sys_rmdir(const char * path)
   1328  1.34     pooka {
   1329  1.39     pooka 	register_t rval[2] = {0, 0};
   1330  1.34     pooka 	int error = 0;
   1331  1.34     pooka 	struct sys_rmdir_args callarg;
   1332  1.34     pooka 
   1333  1.34     pooka 	SPARG(&callarg, path) = path;
   1334  1.34     pooka 
   1335  1.34     pooka 	error = rump_sysproxy(SYS_rmdir, rump_sysproxy_arg,
   1336  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1337  1.34     pooka 	if (error) {
   1338  1.39     pooka 		rval[0] = -1;
   1339  1.34     pooka 		rumpuser_seterrno(error);
   1340  1.34     pooka 	}
   1341  1.39     pooka 	return rval[0];
   1342  1.34     pooka }
   1343  1.34     pooka __weak_alias(sys_rmdir,rump_enosys);
   1344  1.34     pooka 
   1345  1.49     pooka int rump_sys_setsid(void);
   1346  1.49     pooka int
   1347  1.49     pooka rump_sys_setsid(void )
   1348  1.49     pooka {
   1349  1.49     pooka 	register_t rval[2] = {0, 0};
   1350  1.49     pooka 	int error = 0;
   1351  1.49     pooka 
   1352  1.49     pooka 	error = rump_sysproxy(SYS_setsid, rump_sysproxy_arg,
   1353  1.49     pooka 	    (uint8_t *)NULL, 0, rval);
   1354  1.49     pooka 	if (error) {
   1355  1.49     pooka 		rval[0] = -1;
   1356  1.49     pooka 		rumpuser_seterrno(error);
   1357  1.49     pooka 	}
   1358  1.49     pooka 	return rval[0];
   1359  1.49     pooka }
   1360  1.49     pooka __weak_alias(sys_setsid,rump_enosys);
   1361  1.49     pooka 
   1362  1.34     pooka int rump_sys_nfssvc(int, void *);
   1363  1.34     pooka int
   1364  1.34     pooka rump_sys_nfssvc(int flag, void * argp)
   1365  1.34     pooka {
   1366  1.39     pooka 	register_t rval[2] = {0, 0};
   1367  1.34     pooka 	int error = 0;
   1368  1.34     pooka 	struct sys_nfssvc_args callarg;
   1369  1.34     pooka 
   1370  1.34     pooka 	SPARG(&callarg, flag) = flag;
   1371  1.34     pooka 	SPARG(&callarg, argp) = argp;
   1372  1.34     pooka 
   1373  1.34     pooka 	error = rump_sysproxy(SYS_nfssvc, rump_sysproxy_arg,
   1374  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1375  1.34     pooka 	if (error) {
   1376  1.39     pooka 		rval[0] = -1;
   1377  1.34     pooka 		rumpuser_seterrno(error);
   1378  1.34     pooka 	}
   1379  1.39     pooka 	return rval[0];
   1380  1.34     pooka }
   1381  1.34     pooka __weak_alias(sys_nfssvc,rump_enosys);
   1382  1.34     pooka 
   1383  1.35     pooka ssize_t rump_sys_pread(int, void *, size_t, off_t);
   1384  1.34     pooka ssize_t
   1385  1.35     pooka rump_sys_pread(int fd, void * buf, size_t nbyte, off_t offset)
   1386  1.34     pooka {
   1387  1.39     pooka 	register_t rval[2] = {0, 0};
   1388  1.34     pooka 	int error = 0;
   1389  1.34     pooka 	struct sys_pread_args callarg;
   1390  1.34     pooka 
   1391  1.34     pooka 	SPARG(&callarg, fd) = fd;
   1392  1.34     pooka 	SPARG(&callarg, buf) = buf;
   1393  1.34     pooka 	SPARG(&callarg, nbyte) = nbyte;
   1394  1.35     pooka 	SPARG(&callarg, PAD) = 0;
   1395  1.34     pooka 	SPARG(&callarg, offset) = offset;
   1396  1.34     pooka 
   1397  1.34     pooka 	error = rump_sysproxy(SYS_pread, rump_sysproxy_arg,
   1398  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1399  1.34     pooka 	if (error) {
   1400  1.39     pooka 		rval[0] = -1;
   1401  1.34     pooka 		rumpuser_seterrno(error);
   1402  1.34     pooka 	}
   1403  1.39     pooka 	return rval[0];
   1404  1.34     pooka }
   1405  1.34     pooka __weak_alias(sys_pread,rump_enosys);
   1406  1.34     pooka 
   1407  1.35     pooka ssize_t rump_sys_pwrite(int, const void *, size_t, off_t);
   1408  1.34     pooka ssize_t
   1409  1.35     pooka rump_sys_pwrite(int fd, const void * buf, size_t nbyte, off_t offset)
   1410  1.34     pooka {
   1411  1.39     pooka 	register_t rval[2] = {0, 0};
   1412  1.34     pooka 	int error = 0;
   1413  1.34     pooka 	struct sys_pwrite_args callarg;
   1414  1.34     pooka 
   1415  1.34     pooka 	SPARG(&callarg, fd) = fd;
   1416  1.34     pooka 	SPARG(&callarg, buf) = buf;
   1417  1.34     pooka 	SPARG(&callarg, nbyte) = nbyte;
   1418  1.35     pooka 	SPARG(&callarg, PAD) = 0;
   1419  1.34     pooka 	SPARG(&callarg, offset) = offset;
   1420  1.34     pooka 
   1421  1.34     pooka 	error = rump_sysproxy(SYS_pwrite, rump_sysproxy_arg,
   1422  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1423  1.34     pooka 	if (error) {
   1424  1.39     pooka 		rval[0] = -1;
   1425  1.34     pooka 		rumpuser_seterrno(error);
   1426  1.34     pooka 	}
   1427  1.39     pooka 	return rval[0];
   1428  1.34     pooka }
   1429  1.34     pooka __weak_alias(sys_pwrite,rump_enosys);
   1430  1.34     pooka 
   1431  1.49     pooka int rump_sys_setgid(gid_t);
   1432  1.49     pooka int
   1433  1.49     pooka rump_sys_setgid(gid_t gid)
   1434  1.49     pooka {
   1435  1.49     pooka 	register_t rval[2] = {0, 0};
   1436  1.49     pooka 	int error = 0;
   1437  1.49     pooka 	struct sys_setgid_args callarg;
   1438  1.49     pooka 
   1439  1.49     pooka 	SPARG(&callarg, gid) = gid;
   1440  1.49     pooka 
   1441  1.49     pooka 	error = rump_sysproxy(SYS_setgid, rump_sysproxy_arg,
   1442  1.49     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1443  1.49     pooka 	if (error) {
   1444  1.49     pooka 		rval[0] = -1;
   1445  1.49     pooka 		rumpuser_seterrno(error);
   1446  1.49     pooka 	}
   1447  1.49     pooka 	return rval[0];
   1448  1.49     pooka }
   1449  1.49     pooka __weak_alias(sys_setgid,rump_enosys);
   1450  1.49     pooka 
   1451  1.49     pooka int rump_sys_setegid(gid_t);
   1452  1.49     pooka int
   1453  1.49     pooka rump_sys_setegid(gid_t egid)
   1454  1.49     pooka {
   1455  1.49     pooka 	register_t rval[2] = {0, 0};
   1456  1.49     pooka 	int error = 0;
   1457  1.49     pooka 	struct sys_setegid_args callarg;
   1458  1.49     pooka 
   1459  1.49     pooka 	SPARG(&callarg, egid) = egid;
   1460  1.49     pooka 
   1461  1.49     pooka 	error = rump_sysproxy(SYS_setegid, rump_sysproxy_arg,
   1462  1.49     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1463  1.49     pooka 	if (error) {
   1464  1.49     pooka 		rval[0] = -1;
   1465  1.49     pooka 		rumpuser_seterrno(error);
   1466  1.49     pooka 	}
   1467  1.49     pooka 	return rval[0];
   1468  1.49     pooka }
   1469  1.49     pooka __weak_alias(sys_setegid,rump_enosys);
   1470  1.49     pooka 
   1471  1.49     pooka int rump_sys_seteuid(uid_t);
   1472  1.49     pooka int
   1473  1.49     pooka rump_sys_seteuid(uid_t euid)
   1474  1.49     pooka {
   1475  1.49     pooka 	register_t rval[2] = {0, 0};
   1476  1.49     pooka 	int error = 0;
   1477  1.49     pooka 	struct sys_seteuid_args callarg;
   1478  1.49     pooka 
   1479  1.49     pooka 	SPARG(&callarg, euid) = euid;
   1480  1.49     pooka 
   1481  1.49     pooka 	error = rump_sysproxy(SYS_seteuid, rump_sysproxy_arg,
   1482  1.49     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1483  1.49     pooka 	if (error) {
   1484  1.49     pooka 		rval[0] = -1;
   1485  1.49     pooka 		rumpuser_seterrno(error);
   1486  1.49     pooka 	}
   1487  1.49     pooka 	return rval[0];
   1488  1.49     pooka }
   1489  1.49     pooka __weak_alias(sys_seteuid,rump_enosys);
   1490  1.49     pooka 
   1491  1.45     njoly long rump_sys_pathconf(const char *, int);
   1492  1.45     njoly long
   1493  1.45     njoly rump_sys_pathconf(const char * path, int name)
   1494  1.45     njoly {
   1495  1.45     njoly 	register_t rval[2] = {0, 0};
   1496  1.45     njoly 	int error = 0;
   1497  1.45     njoly 	struct sys_pathconf_args callarg;
   1498  1.45     njoly 
   1499  1.45     njoly 	SPARG(&callarg, path) = path;
   1500  1.45     njoly 	SPARG(&callarg, name) = name;
   1501  1.45     njoly 
   1502  1.45     njoly 	error = rump_sysproxy(SYS_pathconf, rump_sysproxy_arg,
   1503  1.45     njoly 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1504  1.45     njoly 	if (error) {
   1505  1.45     njoly 		rval[0] = -1;
   1506  1.45     njoly 		rumpuser_seterrno(error);
   1507  1.45     njoly 	}
   1508  1.45     njoly 	return rval[0];
   1509  1.45     njoly }
   1510  1.45     njoly __weak_alias(sys_pathconf,rump_enosys);
   1511  1.45     njoly 
   1512  1.45     njoly long rump_sys_fpathconf(int, int);
   1513  1.45     njoly long
   1514  1.45     njoly rump_sys_fpathconf(int fd, int name)
   1515  1.45     njoly {
   1516  1.45     njoly 	register_t rval[2] = {0, 0};
   1517  1.45     njoly 	int error = 0;
   1518  1.45     njoly 	struct sys_fpathconf_args callarg;
   1519  1.45     njoly 
   1520  1.45     njoly 	SPARG(&callarg, fd) = fd;
   1521  1.45     njoly 	SPARG(&callarg, name) = name;
   1522  1.45     njoly 
   1523  1.45     njoly 	error = rump_sysproxy(SYS_fpathconf, rump_sysproxy_arg,
   1524  1.45     njoly 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1525  1.45     njoly 	if (error) {
   1526  1.45     njoly 		rval[0] = -1;
   1527  1.45     njoly 		rumpuser_seterrno(error);
   1528  1.45     njoly 	}
   1529  1.45     njoly 	return rval[0];
   1530  1.45     njoly }
   1531  1.45     njoly __weak_alias(sys_fpathconf,rump_enosys);
   1532  1.45     njoly 
   1533  1.42     pooka int rump_sys_getrlimit(int, struct rlimit *);
   1534  1.42     pooka int
   1535  1.42     pooka rump_sys_getrlimit(int which, struct rlimit * rlp)
   1536  1.42     pooka {
   1537  1.42     pooka 	register_t rval[2] = {0, 0};
   1538  1.42     pooka 	int error = 0;
   1539  1.42     pooka 	struct sys_getrlimit_args callarg;
   1540  1.42     pooka 
   1541  1.42     pooka 	SPARG(&callarg, which) = which;
   1542  1.42     pooka 	SPARG(&callarg, rlp) = rlp;
   1543  1.42     pooka 
   1544  1.42     pooka 	error = rump_sysproxy(SYS_getrlimit, rump_sysproxy_arg,
   1545  1.42     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1546  1.42     pooka 	if (error) {
   1547  1.42     pooka 		rval[0] = -1;
   1548  1.42     pooka 		rumpuser_seterrno(error);
   1549  1.42     pooka 	}
   1550  1.42     pooka 	return rval[0];
   1551  1.42     pooka }
   1552  1.42     pooka __weak_alias(sys_getrlimit,rump_enosys);
   1553  1.42     pooka 
   1554  1.42     pooka int rump_sys_setrlimit(int, const struct rlimit *);
   1555  1.42     pooka int
   1556  1.42     pooka rump_sys_setrlimit(int which, const struct rlimit * rlp)
   1557  1.42     pooka {
   1558  1.42     pooka 	register_t rval[2] = {0, 0};
   1559  1.42     pooka 	int error = 0;
   1560  1.42     pooka 	struct sys_setrlimit_args callarg;
   1561  1.42     pooka 
   1562  1.42     pooka 	SPARG(&callarg, which) = which;
   1563  1.42     pooka 	SPARG(&callarg, rlp) = rlp;
   1564  1.42     pooka 
   1565  1.42     pooka 	error = rump_sysproxy(SYS_setrlimit, rump_sysproxy_arg,
   1566  1.42     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1567  1.42     pooka 	if (error) {
   1568  1.42     pooka 		rval[0] = -1;
   1569  1.42     pooka 		rumpuser_seterrno(error);
   1570  1.42     pooka 	}
   1571  1.42     pooka 	return rval[0];
   1572  1.42     pooka }
   1573  1.42     pooka __weak_alias(sys_setrlimit,rump_enosys);
   1574  1.42     pooka 
   1575  1.35     pooka off_t rump_sys_lseek(int, off_t, int);
   1576  1.34     pooka off_t
   1577  1.35     pooka rump_sys_lseek(int fd, off_t offset, int whence)
   1578  1.34     pooka {
   1579  1.39     pooka 	register_t rval[2] = {0, 0};
   1580  1.34     pooka 	int error = 0;
   1581  1.34     pooka 	struct sys_lseek_args callarg;
   1582  1.34     pooka 
   1583  1.34     pooka 	SPARG(&callarg, fd) = fd;
   1584  1.35     pooka 	SPARG(&callarg, PAD) = 0;
   1585  1.34     pooka 	SPARG(&callarg, offset) = offset;
   1586  1.34     pooka 	SPARG(&callarg, whence) = whence;
   1587  1.34     pooka 
   1588  1.34     pooka 	error = rump_sysproxy(SYS_lseek, rump_sysproxy_arg,
   1589  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1590  1.34     pooka 	if (error) {
   1591  1.39     pooka 		rval[0] = -1;
   1592  1.34     pooka 		rumpuser_seterrno(error);
   1593  1.34     pooka 	}
   1594  1.39     pooka 	return rval[0];
   1595  1.34     pooka }
   1596  1.34     pooka __weak_alias(sys_lseek,rump_enosys);
   1597  1.34     pooka 
   1598  1.35     pooka int rump_sys_truncate(const char *, off_t);
   1599  1.34     pooka int
   1600  1.35     pooka rump_sys_truncate(const char * path, off_t length)
   1601  1.34     pooka {
   1602  1.39     pooka 	register_t rval[2] = {0, 0};
   1603  1.34     pooka 	int error = 0;
   1604  1.34     pooka 	struct sys_truncate_args callarg;
   1605  1.34     pooka 
   1606  1.34     pooka 	SPARG(&callarg, path) = path;
   1607  1.35     pooka 	SPARG(&callarg, PAD) = 0;
   1608  1.34     pooka 	SPARG(&callarg, length) = length;
   1609  1.34     pooka 
   1610  1.34     pooka 	error = rump_sysproxy(SYS_truncate, rump_sysproxy_arg,
   1611  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1612  1.34     pooka 	if (error) {
   1613  1.39     pooka 		rval[0] = -1;
   1614  1.34     pooka 		rumpuser_seterrno(error);
   1615  1.34     pooka 	}
   1616  1.39     pooka 	return rval[0];
   1617  1.34     pooka }
   1618  1.34     pooka __weak_alias(sys_truncate,rump_enosys);
   1619  1.34     pooka 
   1620  1.35     pooka int rump_sys_ftruncate(int, off_t);
   1621  1.34     pooka int
   1622  1.35     pooka rump_sys_ftruncate(int fd, off_t length)
   1623  1.34     pooka {
   1624  1.39     pooka 	register_t rval[2] = {0, 0};
   1625  1.34     pooka 	int error = 0;
   1626  1.34     pooka 	struct sys_ftruncate_args callarg;
   1627  1.34     pooka 
   1628  1.34     pooka 	SPARG(&callarg, fd) = fd;
   1629  1.35     pooka 	SPARG(&callarg, PAD) = 0;
   1630  1.34     pooka 	SPARG(&callarg, length) = length;
   1631  1.34     pooka 
   1632  1.34     pooka 	error = rump_sysproxy(SYS_ftruncate, rump_sysproxy_arg,
   1633  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1634  1.34     pooka 	if (error) {
   1635  1.39     pooka 		rval[0] = -1;
   1636  1.34     pooka 		rumpuser_seterrno(error);
   1637  1.34     pooka 	}
   1638  1.39     pooka 	return rval[0];
   1639  1.34     pooka }
   1640  1.34     pooka __weak_alias(sys_ftruncate,rump_enosys);
   1641  1.34     pooka 
   1642  1.34     pooka int rump_sys___sysctl(const int *, u_int, void *, size_t *, const void *, size_t);
   1643  1.34     pooka int
   1644  1.34     pooka rump_sys___sysctl(const int * name, u_int namelen, void * old, size_t * oldlenp, const void * new, size_t newlen)
   1645  1.34     pooka {
   1646  1.39     pooka 	register_t rval[2] = {0, 0};
   1647  1.34     pooka 	int error = 0;
   1648  1.34     pooka 	struct sys___sysctl_args callarg;
   1649  1.34     pooka 
   1650  1.34     pooka 	SPARG(&callarg, name) = name;
   1651  1.34     pooka 	SPARG(&callarg, namelen) = namelen;
   1652  1.34     pooka 	SPARG(&callarg, old) = old;
   1653  1.34     pooka 	SPARG(&callarg, oldlenp) = oldlenp;
   1654  1.34     pooka 	SPARG(&callarg, new) = new;
   1655  1.34     pooka 	SPARG(&callarg, newlen) = newlen;
   1656  1.34     pooka 
   1657  1.34     pooka 	error = rump_sysproxy(SYS___sysctl, rump_sysproxy_arg,
   1658  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1659  1.34     pooka 	if (error) {
   1660  1.39     pooka 		rval[0] = -1;
   1661  1.34     pooka 		rumpuser_seterrno(error);
   1662  1.34     pooka 	}
   1663  1.39     pooka 	return rval[0];
   1664  1.34     pooka }
   1665  1.34     pooka __weak_alias(sys___sysctl,rump_enosys);
   1666  1.34     pooka 
   1667  1.49     pooka pid_t rump_sys_getpgid(pid_t);
   1668  1.49     pooka pid_t
   1669  1.49     pooka rump_sys_getpgid(pid_t pid)
   1670  1.49     pooka {
   1671  1.49     pooka 	register_t rval[2] = {0, 0};
   1672  1.49     pooka 	int error = 0;
   1673  1.49     pooka 	struct sys_getpgid_args callarg;
   1674  1.49     pooka 
   1675  1.49     pooka 	SPARG(&callarg, pid) = pid;
   1676  1.49     pooka 
   1677  1.49     pooka 	error = rump_sysproxy(SYS_getpgid, rump_sysproxy_arg,
   1678  1.49     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1679  1.49     pooka 	if (error) {
   1680  1.49     pooka 		rval[0] = -1;
   1681  1.49     pooka 		rumpuser_seterrno(error);
   1682  1.49     pooka 	}
   1683  1.49     pooka 	return rval[0];
   1684  1.49     pooka }
   1685  1.49     pooka __weak_alias(sys_getpgid,rump_enosys);
   1686  1.49     pooka 
   1687  1.34     pooka int rump_sys_reboot(int, char *);
   1688  1.34     pooka int
   1689  1.34     pooka rump_sys_reboot(int opt, char * bootstr)
   1690  1.34     pooka {
   1691  1.39     pooka 	register_t rval[2] = {0, 0};
   1692  1.34     pooka 	int error = 0;
   1693  1.34     pooka 	struct sys_reboot_args callarg;
   1694  1.34     pooka 
   1695  1.34     pooka 	SPARG(&callarg, opt) = opt;
   1696  1.34     pooka 	SPARG(&callarg, bootstr) = bootstr;
   1697  1.34     pooka 
   1698  1.34     pooka 	error = rump_sysproxy(SYS_reboot, rump_sysproxy_arg,
   1699  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1700  1.34     pooka 	if (error) {
   1701  1.39     pooka 		rval[0] = -1;
   1702  1.34     pooka 		rumpuser_seterrno(error);
   1703  1.34     pooka 	}
   1704  1.39     pooka 	return rval[0];
   1705  1.34     pooka }
   1706  1.34     pooka __weak_alias(sys_reboot,rump_enosys);
   1707  1.34     pooka 
   1708  1.34     pooka int rump_sys_poll(struct pollfd *, u_int, int);
   1709  1.34     pooka int
   1710  1.34     pooka rump_sys_poll(struct pollfd * fds, u_int nfds, int timeout)
   1711  1.34     pooka {
   1712  1.39     pooka 	register_t rval[2] = {0, 0};
   1713  1.34     pooka 	int error = 0;
   1714  1.34     pooka 	struct sys_poll_args callarg;
   1715  1.34     pooka 
   1716  1.34     pooka 	SPARG(&callarg, fds) = fds;
   1717  1.34     pooka 	SPARG(&callarg, nfds) = nfds;
   1718  1.34     pooka 	SPARG(&callarg, timeout) = timeout;
   1719  1.34     pooka 
   1720  1.34     pooka 	error = rump_sysproxy(SYS_poll, rump_sysproxy_arg,
   1721  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1722  1.34     pooka 	if (error) {
   1723  1.39     pooka 		rval[0] = -1;
   1724  1.34     pooka 		rumpuser_seterrno(error);
   1725  1.34     pooka 	}
   1726  1.39     pooka 	return rval[0];
   1727  1.34     pooka }
   1728  1.34     pooka __weak_alias(sys_poll,rump_enosys);
   1729  1.34     pooka 
   1730  1.34     pooka int rump_sys_fdatasync(int);
   1731  1.34     pooka int
   1732  1.34     pooka rump_sys_fdatasync(int fd)
   1733  1.34     pooka {
   1734  1.39     pooka 	register_t rval[2] = {0, 0};
   1735  1.34     pooka 	int error = 0;
   1736  1.34     pooka 	struct sys_fdatasync_args callarg;
   1737  1.34     pooka 
   1738  1.34     pooka 	SPARG(&callarg, fd) = fd;
   1739  1.34     pooka 
   1740  1.34     pooka 	error = rump_sysproxy(SYS_fdatasync, rump_sysproxy_arg,
   1741  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1742  1.34     pooka 	if (error) {
   1743  1.39     pooka 		rval[0] = -1;
   1744  1.34     pooka 		rumpuser_seterrno(error);
   1745  1.34     pooka 	}
   1746  1.39     pooka 	return rval[0];
   1747  1.34     pooka }
   1748  1.34     pooka __weak_alias(sys_fdatasync,rump_enosys);
   1749  1.34     pooka 
   1750  1.38     pooka int rump_sys_modctl(int, void *);
   1751  1.38     pooka int
   1752  1.38     pooka rump_sys_modctl(int cmd, void * arg)
   1753  1.38     pooka {
   1754  1.39     pooka 	register_t rval[2] = {0, 0};
   1755  1.38     pooka 	int error = 0;
   1756  1.38     pooka 	struct sys_modctl_args callarg;
   1757  1.38     pooka 
   1758  1.38     pooka 	SPARG(&callarg, cmd) = cmd;
   1759  1.38     pooka 	SPARG(&callarg, arg) = arg;
   1760  1.38     pooka 
   1761  1.38     pooka 	error = rump_sysproxy(SYS_modctl, rump_sysproxy_arg,
   1762  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1763  1.38     pooka 	if (error) {
   1764  1.39     pooka 		rval[0] = -1;
   1765  1.38     pooka 		rumpuser_seterrno(error);
   1766  1.38     pooka 	}
   1767  1.39     pooka 	return rval[0];
   1768  1.38     pooka }
   1769  1.38     pooka __weak_alias(sys_modctl,rump_enosys);
   1770  1.38     pooka 
   1771  1.46     pooka int rump_sys__ksem_init(unsigned int, intptr_t *);
   1772  1.46     pooka int
   1773  1.46     pooka rump_sys__ksem_init(unsigned int value, intptr_t * idp)
   1774  1.46     pooka {
   1775  1.46     pooka 	register_t rval[2] = {0, 0};
   1776  1.46     pooka 	int error = 0;
   1777  1.46     pooka 	struct sys__ksem_init_args callarg;
   1778  1.46     pooka 
   1779  1.46     pooka 	SPARG(&callarg, value) = value;
   1780  1.46     pooka 	SPARG(&callarg, idp) = idp;
   1781  1.46     pooka 
   1782  1.46     pooka 	error = rump_sysproxy(SYS__ksem_init, rump_sysproxy_arg,
   1783  1.46     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1784  1.46     pooka 	if (error) {
   1785  1.46     pooka 		rval[0] = -1;
   1786  1.46     pooka 		rumpuser_seterrno(error);
   1787  1.46     pooka 	}
   1788  1.46     pooka 	return rval[0];
   1789  1.46     pooka }
   1790  1.46     pooka __weak_alias(sys__ksem_init,rump_enosys);
   1791  1.46     pooka 
   1792  1.46     pooka int rump_sys__ksem_open(const char *, int, mode_t, unsigned int, intptr_t *);
   1793  1.46     pooka int
   1794  1.46     pooka rump_sys__ksem_open(const char * name, int oflag, mode_t mode, unsigned int value, intptr_t * idp)
   1795  1.46     pooka {
   1796  1.46     pooka 	register_t rval[2] = {0, 0};
   1797  1.46     pooka 	int error = 0;
   1798  1.46     pooka 	struct sys__ksem_open_args callarg;
   1799  1.46     pooka 
   1800  1.46     pooka 	SPARG(&callarg, name) = name;
   1801  1.46     pooka 	SPARG(&callarg, oflag) = oflag;
   1802  1.46     pooka 	SPARG(&callarg, mode) = mode;
   1803  1.46     pooka 	SPARG(&callarg, value) = value;
   1804  1.46     pooka 	SPARG(&callarg, idp) = idp;
   1805  1.46     pooka 
   1806  1.46     pooka 	error = rump_sysproxy(SYS__ksem_open, rump_sysproxy_arg,
   1807  1.46     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1808  1.46     pooka 	if (error) {
   1809  1.46     pooka 		rval[0] = -1;
   1810  1.46     pooka 		rumpuser_seterrno(error);
   1811  1.46     pooka 	}
   1812  1.46     pooka 	return rval[0];
   1813  1.46     pooka }
   1814  1.46     pooka __weak_alias(sys__ksem_open,rump_enosys);
   1815  1.46     pooka 
   1816  1.46     pooka int rump_sys__ksem_unlink(const char *);
   1817  1.46     pooka int
   1818  1.46     pooka rump_sys__ksem_unlink(const char * name)
   1819  1.46     pooka {
   1820  1.46     pooka 	register_t rval[2] = {0, 0};
   1821  1.46     pooka 	int error = 0;
   1822  1.46     pooka 	struct sys__ksem_unlink_args callarg;
   1823  1.46     pooka 
   1824  1.46     pooka 	SPARG(&callarg, name) = name;
   1825  1.46     pooka 
   1826  1.46     pooka 	error = rump_sysproxy(SYS__ksem_unlink, rump_sysproxy_arg,
   1827  1.46     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1828  1.46     pooka 	if (error) {
   1829  1.46     pooka 		rval[0] = -1;
   1830  1.46     pooka 		rumpuser_seterrno(error);
   1831  1.46     pooka 	}
   1832  1.46     pooka 	return rval[0];
   1833  1.46     pooka }
   1834  1.46     pooka __weak_alias(sys__ksem_unlink,rump_enosys);
   1835  1.46     pooka 
   1836  1.46     pooka int rump_sys__ksem_close(intptr_t);
   1837  1.46     pooka int
   1838  1.46     pooka rump_sys__ksem_close(intptr_t id)
   1839  1.46     pooka {
   1840  1.46     pooka 	register_t rval[2] = {0, 0};
   1841  1.46     pooka 	int error = 0;
   1842  1.46     pooka 	struct sys__ksem_close_args callarg;
   1843  1.46     pooka 
   1844  1.46     pooka 	SPARG(&callarg, id) = id;
   1845  1.46     pooka 
   1846  1.46     pooka 	error = rump_sysproxy(SYS__ksem_close, rump_sysproxy_arg,
   1847  1.46     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1848  1.46     pooka 	if (error) {
   1849  1.46     pooka 		rval[0] = -1;
   1850  1.46     pooka 		rumpuser_seterrno(error);
   1851  1.46     pooka 	}
   1852  1.46     pooka 	return rval[0];
   1853  1.46     pooka }
   1854  1.46     pooka __weak_alias(sys__ksem_close,rump_enosys);
   1855  1.46     pooka 
   1856  1.46     pooka int rump_sys__ksem_post(intptr_t);
   1857  1.46     pooka int
   1858  1.46     pooka rump_sys__ksem_post(intptr_t id)
   1859  1.46     pooka {
   1860  1.46     pooka 	register_t rval[2] = {0, 0};
   1861  1.46     pooka 	int error = 0;
   1862  1.46     pooka 	struct sys__ksem_post_args callarg;
   1863  1.46     pooka 
   1864  1.46     pooka 	SPARG(&callarg, id) = id;
   1865  1.46     pooka 
   1866  1.46     pooka 	error = rump_sysproxy(SYS__ksem_post, rump_sysproxy_arg,
   1867  1.46     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1868  1.46     pooka 	if (error) {
   1869  1.46     pooka 		rval[0] = -1;
   1870  1.46     pooka 		rumpuser_seterrno(error);
   1871  1.46     pooka 	}
   1872  1.46     pooka 	return rval[0];
   1873  1.46     pooka }
   1874  1.46     pooka __weak_alias(sys__ksem_post,rump_enosys);
   1875  1.46     pooka 
   1876  1.46     pooka int rump_sys__ksem_wait(intptr_t);
   1877  1.46     pooka int
   1878  1.46     pooka rump_sys__ksem_wait(intptr_t id)
   1879  1.46     pooka {
   1880  1.46     pooka 	register_t rval[2] = {0, 0};
   1881  1.46     pooka 	int error = 0;
   1882  1.46     pooka 	struct sys__ksem_wait_args callarg;
   1883  1.46     pooka 
   1884  1.46     pooka 	SPARG(&callarg, id) = id;
   1885  1.46     pooka 
   1886  1.46     pooka 	error = rump_sysproxy(SYS__ksem_wait, rump_sysproxy_arg,
   1887  1.46     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1888  1.46     pooka 	if (error) {
   1889  1.46     pooka 		rval[0] = -1;
   1890  1.46     pooka 		rumpuser_seterrno(error);
   1891  1.46     pooka 	}
   1892  1.46     pooka 	return rval[0];
   1893  1.46     pooka }
   1894  1.46     pooka __weak_alias(sys__ksem_wait,rump_enosys);
   1895  1.46     pooka 
   1896  1.46     pooka int rump_sys__ksem_trywait(intptr_t);
   1897  1.46     pooka int
   1898  1.46     pooka rump_sys__ksem_trywait(intptr_t id)
   1899  1.46     pooka {
   1900  1.46     pooka 	register_t rval[2] = {0, 0};
   1901  1.46     pooka 	int error = 0;
   1902  1.46     pooka 	struct sys__ksem_trywait_args callarg;
   1903  1.46     pooka 
   1904  1.46     pooka 	SPARG(&callarg, id) = id;
   1905  1.46     pooka 
   1906  1.46     pooka 	error = rump_sysproxy(SYS__ksem_trywait, rump_sysproxy_arg,
   1907  1.46     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1908  1.46     pooka 	if (error) {
   1909  1.46     pooka 		rval[0] = -1;
   1910  1.46     pooka 		rumpuser_seterrno(error);
   1911  1.46     pooka 	}
   1912  1.46     pooka 	return rval[0];
   1913  1.46     pooka }
   1914  1.46     pooka __weak_alias(sys__ksem_trywait,rump_enosys);
   1915  1.46     pooka 
   1916  1.46     pooka int rump_sys__ksem_getvalue(intptr_t, unsigned int *);
   1917  1.46     pooka int
   1918  1.46     pooka rump_sys__ksem_getvalue(intptr_t id, unsigned int * value)
   1919  1.46     pooka {
   1920  1.46     pooka 	register_t rval[2] = {0, 0};
   1921  1.46     pooka 	int error = 0;
   1922  1.46     pooka 	struct sys__ksem_getvalue_args callarg;
   1923  1.46     pooka 
   1924  1.46     pooka 	SPARG(&callarg, id) = id;
   1925  1.46     pooka 	SPARG(&callarg, value) = value;
   1926  1.46     pooka 
   1927  1.46     pooka 	error = rump_sysproxy(SYS__ksem_getvalue, rump_sysproxy_arg,
   1928  1.46     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1929  1.46     pooka 	if (error) {
   1930  1.46     pooka 		rval[0] = -1;
   1931  1.46     pooka 		rumpuser_seterrno(error);
   1932  1.46     pooka 	}
   1933  1.46     pooka 	return rval[0];
   1934  1.46     pooka }
   1935  1.46     pooka __weak_alias(sys__ksem_getvalue,rump_enosys);
   1936  1.46     pooka 
   1937  1.46     pooka int rump_sys__ksem_destroy(intptr_t);
   1938  1.46     pooka int
   1939  1.46     pooka rump_sys__ksem_destroy(intptr_t id)
   1940  1.46     pooka {
   1941  1.46     pooka 	register_t rval[2] = {0, 0};
   1942  1.46     pooka 	int error = 0;
   1943  1.46     pooka 	struct sys__ksem_destroy_args callarg;
   1944  1.46     pooka 
   1945  1.46     pooka 	SPARG(&callarg, id) = id;
   1946  1.46     pooka 
   1947  1.46     pooka 	error = rump_sysproxy(SYS__ksem_destroy, rump_sysproxy_arg,
   1948  1.46     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1949  1.46     pooka 	if (error) {
   1950  1.46     pooka 		rval[0] = -1;
   1951  1.46     pooka 		rumpuser_seterrno(error);
   1952  1.46     pooka 	}
   1953  1.46     pooka 	return rval[0];
   1954  1.46     pooka }
   1955  1.46     pooka __weak_alias(sys__ksem_destroy,rump_enosys);
   1956  1.46     pooka 
   1957  1.34     pooka int rump_sys_lchmod(const char *, mode_t);
   1958  1.34     pooka int
   1959  1.34     pooka rump_sys_lchmod(const char * path, mode_t mode)
   1960  1.34     pooka {
   1961  1.39     pooka 	register_t rval[2] = {0, 0};
   1962  1.34     pooka 	int error = 0;
   1963  1.34     pooka 	struct sys_lchmod_args callarg;
   1964  1.34     pooka 
   1965  1.34     pooka 	SPARG(&callarg, path) = path;
   1966  1.34     pooka 	SPARG(&callarg, mode) = mode;
   1967  1.34     pooka 
   1968  1.34     pooka 	error = rump_sysproxy(SYS_lchmod, rump_sysproxy_arg,
   1969  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1970  1.34     pooka 	if (error) {
   1971  1.39     pooka 		rval[0] = -1;
   1972  1.34     pooka 		rumpuser_seterrno(error);
   1973  1.34     pooka 	}
   1974  1.39     pooka 	return rval[0];
   1975  1.34     pooka }
   1976  1.34     pooka __weak_alias(sys_lchmod,rump_enosys);
   1977  1.34     pooka 
   1978  1.34     pooka int rump_sys_lchown(const char *, uid_t, gid_t);
   1979  1.34     pooka int
   1980  1.34     pooka rump_sys_lchown(const char * path, uid_t uid, gid_t gid)
   1981  1.34     pooka {
   1982  1.39     pooka 	register_t rval[2] = {0, 0};
   1983  1.34     pooka 	int error = 0;
   1984  1.34     pooka 	struct sys_lchown_args callarg;
   1985  1.34     pooka 
   1986  1.34     pooka 	SPARG(&callarg, path) = path;
   1987  1.34     pooka 	SPARG(&callarg, uid) = uid;
   1988  1.34     pooka 	SPARG(&callarg, gid) = gid;
   1989  1.34     pooka 
   1990  1.34     pooka 	error = rump_sysproxy(SYS_lchown, rump_sysproxy_arg,
   1991  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   1992  1.34     pooka 	if (error) {
   1993  1.39     pooka 		rval[0] = -1;
   1994  1.34     pooka 		rumpuser_seterrno(error);
   1995  1.34     pooka 	}
   1996  1.39     pooka 	return rval[0];
   1997  1.34     pooka }
   1998  1.34     pooka __weak_alias(sys_lchown,rump_enosys);
   1999  1.34     pooka 
   2000  1.49     pooka pid_t rump_sys_getsid(pid_t);
   2001  1.49     pooka pid_t
   2002  1.49     pooka rump_sys_getsid(pid_t pid)
   2003  1.49     pooka {
   2004  1.49     pooka 	register_t rval[2] = {0, 0};
   2005  1.49     pooka 	int error = 0;
   2006  1.49     pooka 	struct sys_getsid_args callarg;
   2007  1.49     pooka 
   2008  1.49     pooka 	SPARG(&callarg, pid) = pid;
   2009  1.49     pooka 
   2010  1.49     pooka 	error = rump_sysproxy(SYS_getsid, rump_sysproxy_arg,
   2011  1.49     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2012  1.49     pooka 	if (error) {
   2013  1.49     pooka 		rval[0] = -1;
   2014  1.49     pooka 		rumpuser_seterrno(error);
   2015  1.49     pooka 	}
   2016  1.49     pooka 	return rval[0];
   2017  1.49     pooka }
   2018  1.49     pooka __weak_alias(sys_getsid,rump_enosys);
   2019  1.49     pooka 
   2020  1.51     pooka int rump_sys___getcwd(char *, size_t);
   2021  1.51     pooka int
   2022  1.51     pooka rump_sys___getcwd(char * bufp, size_t length)
   2023  1.51     pooka {
   2024  1.51     pooka 	register_t rval[2] = {0, 0};
   2025  1.51     pooka 	int error = 0;
   2026  1.51     pooka 	struct sys___getcwd_args callarg;
   2027  1.51     pooka 
   2028  1.51     pooka 	SPARG(&callarg, bufp) = bufp;
   2029  1.51     pooka 	SPARG(&callarg, length) = length;
   2030  1.51     pooka 
   2031  1.51     pooka 	error = rump_sysproxy(SYS___getcwd, rump_sysproxy_arg,
   2032  1.51     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2033  1.51     pooka 	if (error) {
   2034  1.51     pooka 		rval[0] = -1;
   2035  1.51     pooka 		rumpuser_seterrno(error);
   2036  1.51     pooka 	}
   2037  1.51     pooka 	return rval[0];
   2038  1.51     pooka }
   2039  1.51     pooka __weak_alias(sys___getcwd,rump_enosys);
   2040  1.51     pooka 
   2041  1.34     pooka int rump_sys_fchroot(int);
   2042  1.34     pooka int
   2043  1.34     pooka rump_sys_fchroot(int fd)
   2044  1.34     pooka {
   2045  1.39     pooka 	register_t rval[2] = {0, 0};
   2046  1.34     pooka 	int error = 0;
   2047  1.34     pooka 	struct sys_fchroot_args callarg;
   2048  1.34     pooka 
   2049  1.34     pooka 	SPARG(&callarg, fd) = fd;
   2050  1.34     pooka 
   2051  1.34     pooka 	error = rump_sysproxy(SYS_fchroot, rump_sysproxy_arg,
   2052  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2053  1.34     pooka 	if (error) {
   2054  1.39     pooka 		rval[0] = -1;
   2055  1.34     pooka 		rumpuser_seterrno(error);
   2056  1.34     pooka 	}
   2057  1.39     pooka 	return rval[0];
   2058  1.34     pooka }
   2059  1.34     pooka __weak_alias(sys_fchroot,rump_enosys);
   2060  1.34     pooka 
   2061  1.34     pooka int rump_sys_lchflags(const char *, u_long);
   2062  1.34     pooka int
   2063  1.34     pooka rump_sys_lchflags(const char * path, u_long flags)
   2064  1.34     pooka {
   2065  1.39     pooka 	register_t rval[2] = {0, 0};
   2066  1.34     pooka 	int error = 0;
   2067  1.34     pooka 	struct sys_lchflags_args callarg;
   2068  1.34     pooka 
   2069  1.34     pooka 	SPARG(&callarg, path) = path;
   2070  1.34     pooka 	SPARG(&callarg, flags) = flags;
   2071  1.34     pooka 
   2072  1.34     pooka 	error = rump_sysproxy(SYS_lchflags, rump_sysproxy_arg,
   2073  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2074  1.34     pooka 	if (error) {
   2075  1.39     pooka 		rval[0] = -1;
   2076  1.34     pooka 		rumpuser_seterrno(error);
   2077  1.34     pooka 	}
   2078  1.39     pooka 	return rval[0];
   2079  1.34     pooka }
   2080  1.34     pooka __weak_alias(sys_lchflags,rump_enosys);
   2081  1.34     pooka 
   2082  1.49     pooka int rump_sys_issetugid(void);
   2083  1.49     pooka int
   2084  1.49     pooka rump_sys_issetugid(void )
   2085  1.49     pooka {
   2086  1.49     pooka 	register_t rval[2] = {0, 0};
   2087  1.49     pooka 	int error = 0;
   2088  1.49     pooka 
   2089  1.49     pooka 	error = rump_sysproxy(SYS_issetugid, rump_sysproxy_arg,
   2090  1.49     pooka 	    (uint8_t *)NULL, 0, rval);
   2091  1.49     pooka 	if (error) {
   2092  1.49     pooka 		rval[0] = -1;
   2093  1.49     pooka 		rumpuser_seterrno(error);
   2094  1.49     pooka 	}
   2095  1.49     pooka 	return rval[0];
   2096  1.49     pooka }
   2097  1.49     pooka __weak_alias(sys_issetugid,rump_enosys);
   2098  1.49     pooka 
   2099  1.34     pooka int rump_sys_kqueue(void);
   2100  1.34     pooka int
   2101  1.34     pooka rump_sys_kqueue(void )
   2102  1.34     pooka {
   2103  1.39     pooka 	register_t rval[2] = {0, 0};
   2104  1.34     pooka 	int error = 0;
   2105  1.34     pooka 
   2106  1.34     pooka 	error = rump_sysproxy(SYS_kqueue, rump_sysproxy_arg,
   2107  1.39     pooka 	    (uint8_t *)NULL, 0, rval);
   2108  1.34     pooka 	if (error) {
   2109  1.39     pooka 		rval[0] = -1;
   2110  1.34     pooka 		rumpuser_seterrno(error);
   2111  1.34     pooka 	}
   2112  1.39     pooka 	return rval[0];
   2113  1.34     pooka }
   2114  1.34     pooka __weak_alias(sys_kqueue,rump_enosys);
   2115  1.34     pooka 
   2116  1.34     pooka int rump_sys_fsync_range(int, int, off_t, off_t);
   2117  1.34     pooka int
   2118  1.34     pooka rump_sys_fsync_range(int fd, int flags, off_t start, off_t length)
   2119  1.34     pooka {
   2120  1.39     pooka 	register_t rval[2] = {0, 0};
   2121  1.34     pooka 	int error = 0;
   2122  1.34     pooka 	struct sys_fsync_range_args callarg;
   2123  1.34     pooka 
   2124  1.34     pooka 	SPARG(&callarg, fd) = fd;
   2125  1.34     pooka 	SPARG(&callarg, flags) = flags;
   2126  1.34     pooka 	SPARG(&callarg, start) = start;
   2127  1.34     pooka 	SPARG(&callarg, length) = length;
   2128  1.34     pooka 
   2129  1.34     pooka 	error = rump_sysproxy(SYS_fsync_range, rump_sysproxy_arg,
   2130  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2131  1.34     pooka 	if (error) {
   2132  1.39     pooka 		rval[0] = -1;
   2133  1.34     pooka 		rumpuser_seterrno(error);
   2134  1.34     pooka 	}
   2135  1.39     pooka 	return rval[0];
   2136  1.34     pooka }
   2137  1.34     pooka __weak_alias(sys_fsync_range,rump_enosys);
   2138  1.34     pooka 
   2139  1.34     pooka int rump_sys_getvfsstat(struct statvfs *, size_t, int);
   2140  1.34     pooka int
   2141  1.34     pooka rump_sys_getvfsstat(struct statvfs * buf, size_t bufsize, int flags)
   2142  1.34     pooka {
   2143  1.39     pooka 	register_t rval[2] = {0, 0};
   2144  1.34     pooka 	int error = 0;
   2145  1.34     pooka 	struct sys_getvfsstat_args callarg;
   2146  1.34     pooka 
   2147  1.34     pooka 	SPARG(&callarg, buf) = buf;
   2148  1.34     pooka 	SPARG(&callarg, bufsize) = bufsize;
   2149  1.34     pooka 	SPARG(&callarg, flags) = flags;
   2150  1.34     pooka 
   2151  1.34     pooka 	error = rump_sysproxy(SYS_getvfsstat, rump_sysproxy_arg,
   2152  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2153  1.34     pooka 	if (error) {
   2154  1.39     pooka 		rval[0] = -1;
   2155  1.34     pooka 		rumpuser_seterrno(error);
   2156  1.34     pooka 	}
   2157  1.39     pooka 	return rval[0];
   2158  1.34     pooka }
   2159  1.34     pooka __weak_alias(sys_getvfsstat,rump_enosys);
   2160  1.34     pooka 
   2161  1.34     pooka int rump_sys_statvfs1(const char *, struct statvfs *, int);
   2162  1.34     pooka int
   2163  1.34     pooka rump_sys_statvfs1(const char * path, struct statvfs * buf, int flags)
   2164  1.34     pooka {
   2165  1.39     pooka 	register_t rval[2] = {0, 0};
   2166  1.34     pooka 	int error = 0;
   2167  1.34     pooka 	struct sys_statvfs1_args callarg;
   2168  1.34     pooka 
   2169  1.34     pooka 	SPARG(&callarg, path) = path;
   2170  1.34     pooka 	SPARG(&callarg, buf) = buf;
   2171  1.34     pooka 	SPARG(&callarg, flags) = flags;
   2172  1.34     pooka 
   2173  1.34     pooka 	error = rump_sysproxy(SYS_statvfs1, rump_sysproxy_arg,
   2174  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2175  1.34     pooka 	if (error) {
   2176  1.39     pooka 		rval[0] = -1;
   2177  1.34     pooka 		rumpuser_seterrno(error);
   2178  1.34     pooka 	}
   2179  1.39     pooka 	return rval[0];
   2180  1.34     pooka }
   2181  1.34     pooka __weak_alias(sys_statvfs1,rump_enosys);
   2182  1.34     pooka 
   2183  1.34     pooka int rump_sys_fstatvfs1(int, struct statvfs *, int);
   2184  1.34     pooka int
   2185  1.34     pooka rump_sys_fstatvfs1(int fd, struct statvfs * buf, int flags)
   2186  1.34     pooka {
   2187  1.39     pooka 	register_t rval[2] = {0, 0};
   2188  1.34     pooka 	int error = 0;
   2189  1.34     pooka 	struct sys_fstatvfs1_args callarg;
   2190  1.34     pooka 
   2191  1.34     pooka 	SPARG(&callarg, fd) = fd;
   2192  1.34     pooka 	SPARG(&callarg, buf) = buf;
   2193  1.34     pooka 	SPARG(&callarg, flags) = flags;
   2194  1.34     pooka 
   2195  1.34     pooka 	error = rump_sysproxy(SYS_fstatvfs1, rump_sysproxy_arg,
   2196  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2197  1.34     pooka 	if (error) {
   2198  1.39     pooka 		rval[0] = -1;
   2199  1.34     pooka 		rumpuser_seterrno(error);
   2200  1.34     pooka 	}
   2201  1.39     pooka 	return rval[0];
   2202  1.34     pooka }
   2203  1.34     pooka __weak_alias(sys_fstatvfs1,rump_enosys);
   2204  1.34     pooka 
   2205  1.34     pooka int rump_sys_extattrctl(const char *, int, const char *, int, const char *);
   2206  1.34     pooka int
   2207  1.34     pooka rump_sys_extattrctl(const char * path, int cmd, const char * filename, int attrnamespace, const char * attrname)
   2208  1.34     pooka {
   2209  1.39     pooka 	register_t rval[2] = {0, 0};
   2210  1.34     pooka 	int error = 0;
   2211  1.34     pooka 	struct sys_extattrctl_args callarg;
   2212  1.34     pooka 
   2213  1.34     pooka 	SPARG(&callarg, path) = path;
   2214  1.34     pooka 	SPARG(&callarg, cmd) = cmd;
   2215  1.34     pooka 	SPARG(&callarg, filename) = filename;
   2216  1.34     pooka 	SPARG(&callarg, attrnamespace) = attrnamespace;
   2217  1.34     pooka 	SPARG(&callarg, attrname) = attrname;
   2218  1.34     pooka 
   2219  1.34     pooka 	error = rump_sysproxy(SYS_extattrctl, rump_sysproxy_arg,
   2220  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2221  1.34     pooka 	if (error) {
   2222  1.39     pooka 		rval[0] = -1;
   2223  1.34     pooka 		rumpuser_seterrno(error);
   2224  1.34     pooka 	}
   2225  1.39     pooka 	return rval[0];
   2226  1.34     pooka }
   2227  1.34     pooka __weak_alias(sys_extattrctl,rump_enosys);
   2228  1.34     pooka 
   2229  1.34     pooka int rump_sys_extattr_set_file(const char *, int, const char *, const void *, size_t);
   2230  1.34     pooka int
   2231  1.34     pooka rump_sys_extattr_set_file(const char * path, int attrnamespace, const char * attrname, const void * data, size_t nbytes)
   2232  1.34     pooka {
   2233  1.39     pooka 	register_t rval[2] = {0, 0};
   2234  1.34     pooka 	int error = 0;
   2235  1.34     pooka 	struct sys_extattr_set_file_args callarg;
   2236  1.34     pooka 
   2237  1.34     pooka 	SPARG(&callarg, path) = path;
   2238  1.34     pooka 	SPARG(&callarg, attrnamespace) = attrnamespace;
   2239  1.34     pooka 	SPARG(&callarg, attrname) = attrname;
   2240  1.34     pooka 	SPARG(&callarg, data) = data;
   2241  1.34     pooka 	SPARG(&callarg, nbytes) = nbytes;
   2242  1.34     pooka 
   2243  1.34     pooka 	error = rump_sysproxy(SYS_extattr_set_file, rump_sysproxy_arg,
   2244  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2245  1.34     pooka 	if (error) {
   2246  1.39     pooka 		rval[0] = -1;
   2247  1.34     pooka 		rumpuser_seterrno(error);
   2248  1.34     pooka 	}
   2249  1.39     pooka 	return rval[0];
   2250  1.34     pooka }
   2251  1.34     pooka __weak_alias(sys_extattr_set_file,rump_enosys);
   2252  1.34     pooka 
   2253  1.34     pooka ssize_t rump_sys_extattr_get_file(const char *, int, const char *, void *, size_t);
   2254  1.34     pooka ssize_t
   2255  1.34     pooka rump_sys_extattr_get_file(const char * path, int attrnamespace, const char * attrname, void * data, size_t nbytes)
   2256  1.34     pooka {
   2257  1.39     pooka 	register_t rval[2] = {0, 0};
   2258  1.34     pooka 	int error = 0;
   2259  1.34     pooka 	struct sys_extattr_get_file_args callarg;
   2260  1.34     pooka 
   2261  1.34     pooka 	SPARG(&callarg, path) = path;
   2262  1.34     pooka 	SPARG(&callarg, attrnamespace) = attrnamespace;
   2263  1.34     pooka 	SPARG(&callarg, attrname) = attrname;
   2264  1.34     pooka 	SPARG(&callarg, data) = data;
   2265  1.34     pooka 	SPARG(&callarg, nbytes) = nbytes;
   2266  1.34     pooka 
   2267  1.34     pooka 	error = rump_sysproxy(SYS_extattr_get_file, rump_sysproxy_arg,
   2268  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2269  1.34     pooka 	if (error) {
   2270  1.39     pooka 		rval[0] = -1;
   2271  1.34     pooka 		rumpuser_seterrno(error);
   2272  1.34     pooka 	}
   2273  1.39     pooka 	return rval[0];
   2274  1.34     pooka }
   2275  1.34     pooka __weak_alias(sys_extattr_get_file,rump_enosys);
   2276  1.34     pooka 
   2277  1.34     pooka int rump_sys_extattr_delete_file(const char *, int, const char *);
   2278  1.34     pooka int
   2279  1.34     pooka rump_sys_extattr_delete_file(const char * path, int attrnamespace, const char * attrname)
   2280  1.34     pooka {
   2281  1.39     pooka 	register_t rval[2] = {0, 0};
   2282  1.34     pooka 	int error = 0;
   2283  1.34     pooka 	struct sys_extattr_delete_file_args callarg;
   2284  1.34     pooka 
   2285  1.34     pooka 	SPARG(&callarg, path) = path;
   2286  1.34     pooka 	SPARG(&callarg, attrnamespace) = attrnamespace;
   2287  1.34     pooka 	SPARG(&callarg, attrname) = attrname;
   2288  1.34     pooka 
   2289  1.34     pooka 	error = rump_sysproxy(SYS_extattr_delete_file, rump_sysproxy_arg,
   2290  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2291  1.34     pooka 	if (error) {
   2292  1.39     pooka 		rval[0] = -1;
   2293  1.34     pooka 		rumpuser_seterrno(error);
   2294  1.34     pooka 	}
   2295  1.39     pooka 	return rval[0];
   2296  1.34     pooka }
   2297  1.34     pooka __weak_alias(sys_extattr_delete_file,rump_enosys);
   2298  1.34     pooka 
   2299  1.34     pooka int rump_sys_extattr_set_fd(int, int, const char *, const void *, size_t);
   2300  1.34     pooka int
   2301  1.34     pooka rump_sys_extattr_set_fd(int fd, int attrnamespace, const char * attrname, const void * data, size_t nbytes)
   2302  1.34     pooka {
   2303  1.39     pooka 	register_t rval[2] = {0, 0};
   2304  1.34     pooka 	int error = 0;
   2305  1.34     pooka 	struct sys_extattr_set_fd_args callarg;
   2306  1.34     pooka 
   2307  1.34     pooka 	SPARG(&callarg, fd) = fd;
   2308  1.34     pooka 	SPARG(&callarg, attrnamespace) = attrnamespace;
   2309  1.34     pooka 	SPARG(&callarg, attrname) = attrname;
   2310  1.34     pooka 	SPARG(&callarg, data) = data;
   2311  1.34     pooka 	SPARG(&callarg, nbytes) = nbytes;
   2312  1.34     pooka 
   2313  1.34     pooka 	error = rump_sysproxy(SYS_extattr_set_fd, rump_sysproxy_arg,
   2314  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2315  1.34     pooka 	if (error) {
   2316  1.39     pooka 		rval[0] = -1;
   2317  1.34     pooka 		rumpuser_seterrno(error);
   2318  1.34     pooka 	}
   2319  1.39     pooka 	return rval[0];
   2320  1.34     pooka }
   2321  1.34     pooka __weak_alias(sys_extattr_set_fd,rump_enosys);
   2322  1.34     pooka 
   2323  1.34     pooka ssize_t rump_sys_extattr_get_fd(int, int, const char *, void *, size_t);
   2324  1.34     pooka ssize_t
   2325  1.34     pooka rump_sys_extattr_get_fd(int fd, int attrnamespace, const char * attrname, void * data, size_t nbytes)
   2326  1.34     pooka {
   2327  1.39     pooka 	register_t rval[2] = {0, 0};
   2328  1.34     pooka 	int error = 0;
   2329  1.34     pooka 	struct sys_extattr_get_fd_args callarg;
   2330  1.34     pooka 
   2331  1.34     pooka 	SPARG(&callarg, fd) = fd;
   2332  1.34     pooka 	SPARG(&callarg, attrnamespace) = attrnamespace;
   2333  1.34     pooka 	SPARG(&callarg, attrname) = attrname;
   2334  1.34     pooka 	SPARG(&callarg, data) = data;
   2335  1.34     pooka 	SPARG(&callarg, nbytes) = nbytes;
   2336  1.34     pooka 
   2337  1.34     pooka 	error = rump_sysproxy(SYS_extattr_get_fd, rump_sysproxy_arg,
   2338  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2339  1.34     pooka 	if (error) {
   2340  1.39     pooka 		rval[0] = -1;
   2341  1.34     pooka 		rumpuser_seterrno(error);
   2342  1.34     pooka 	}
   2343  1.39     pooka 	return rval[0];
   2344  1.34     pooka }
   2345  1.34     pooka __weak_alias(sys_extattr_get_fd,rump_enosys);
   2346  1.34     pooka 
   2347  1.34     pooka int rump_sys_extattr_delete_fd(int, int, const char *);
   2348  1.34     pooka int
   2349  1.34     pooka rump_sys_extattr_delete_fd(int fd, int attrnamespace, const char * attrname)
   2350  1.34     pooka {
   2351  1.39     pooka 	register_t rval[2] = {0, 0};
   2352  1.34     pooka 	int error = 0;
   2353  1.34     pooka 	struct sys_extattr_delete_fd_args callarg;
   2354  1.34     pooka 
   2355  1.34     pooka 	SPARG(&callarg, fd) = fd;
   2356  1.34     pooka 	SPARG(&callarg, attrnamespace) = attrnamespace;
   2357  1.34     pooka 	SPARG(&callarg, attrname) = attrname;
   2358  1.34     pooka 
   2359  1.34     pooka 	error = rump_sysproxy(SYS_extattr_delete_fd, rump_sysproxy_arg,
   2360  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2361  1.34     pooka 	if (error) {
   2362  1.39     pooka 		rval[0] = -1;
   2363  1.34     pooka 		rumpuser_seterrno(error);
   2364  1.34     pooka 	}
   2365  1.39     pooka 	return rval[0];
   2366  1.34     pooka }
   2367  1.34     pooka __weak_alias(sys_extattr_delete_fd,rump_enosys);
   2368  1.34     pooka 
   2369  1.34     pooka int rump_sys_extattr_set_link(const char *, int, const char *, const void *, size_t);
   2370  1.34     pooka int
   2371  1.34     pooka rump_sys_extattr_set_link(const char * path, int attrnamespace, const char * attrname, const void * data, size_t nbytes)
   2372  1.34     pooka {
   2373  1.39     pooka 	register_t rval[2] = {0, 0};
   2374  1.34     pooka 	int error = 0;
   2375  1.34     pooka 	struct sys_extattr_set_link_args callarg;
   2376  1.34     pooka 
   2377  1.34     pooka 	SPARG(&callarg, path) = path;
   2378  1.34     pooka 	SPARG(&callarg, attrnamespace) = attrnamespace;
   2379  1.34     pooka 	SPARG(&callarg, attrname) = attrname;
   2380  1.34     pooka 	SPARG(&callarg, data) = data;
   2381  1.34     pooka 	SPARG(&callarg, nbytes) = nbytes;
   2382  1.34     pooka 
   2383  1.34     pooka 	error = rump_sysproxy(SYS_extattr_set_link, rump_sysproxy_arg,
   2384  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2385  1.34     pooka 	if (error) {
   2386  1.39     pooka 		rval[0] = -1;
   2387  1.34     pooka 		rumpuser_seterrno(error);
   2388  1.34     pooka 	}
   2389  1.39     pooka 	return rval[0];
   2390  1.34     pooka }
   2391  1.34     pooka __weak_alias(sys_extattr_set_link,rump_enosys);
   2392  1.34     pooka 
   2393  1.34     pooka ssize_t rump_sys_extattr_get_link(const char *, int, const char *, void *, size_t);
   2394  1.34     pooka ssize_t
   2395  1.34     pooka rump_sys_extattr_get_link(const char * path, int attrnamespace, const char * attrname, void * data, size_t nbytes)
   2396  1.34     pooka {
   2397  1.39     pooka 	register_t rval[2] = {0, 0};
   2398  1.34     pooka 	int error = 0;
   2399  1.34     pooka 	struct sys_extattr_get_link_args callarg;
   2400  1.34     pooka 
   2401  1.34     pooka 	SPARG(&callarg, path) = path;
   2402  1.34     pooka 	SPARG(&callarg, attrnamespace) = attrnamespace;
   2403  1.34     pooka 	SPARG(&callarg, attrname) = attrname;
   2404  1.34     pooka 	SPARG(&callarg, data) = data;
   2405  1.34     pooka 	SPARG(&callarg, nbytes) = nbytes;
   2406  1.34     pooka 
   2407  1.34     pooka 	error = rump_sysproxy(SYS_extattr_get_link, rump_sysproxy_arg,
   2408  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2409  1.34     pooka 	if (error) {
   2410  1.39     pooka 		rval[0] = -1;
   2411  1.34     pooka 		rumpuser_seterrno(error);
   2412  1.34     pooka 	}
   2413  1.39     pooka 	return rval[0];
   2414  1.34     pooka }
   2415  1.34     pooka __weak_alias(sys_extattr_get_link,rump_enosys);
   2416  1.34     pooka 
   2417  1.34     pooka int rump_sys_extattr_delete_link(const char *, int, const char *);
   2418  1.34     pooka int
   2419  1.34     pooka rump_sys_extattr_delete_link(const char * path, int attrnamespace, const char * attrname)
   2420  1.34     pooka {
   2421  1.39     pooka 	register_t rval[2] = {0, 0};
   2422  1.34     pooka 	int error = 0;
   2423  1.34     pooka 	struct sys_extattr_delete_link_args callarg;
   2424  1.34     pooka 
   2425  1.34     pooka 	SPARG(&callarg, path) = path;
   2426  1.34     pooka 	SPARG(&callarg, attrnamespace) = attrnamespace;
   2427  1.34     pooka 	SPARG(&callarg, attrname) = attrname;
   2428  1.34     pooka 
   2429  1.34     pooka 	error = rump_sysproxy(SYS_extattr_delete_link, rump_sysproxy_arg,
   2430  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2431  1.34     pooka 	if (error) {
   2432  1.39     pooka 		rval[0] = -1;
   2433  1.34     pooka 		rumpuser_seterrno(error);
   2434  1.34     pooka 	}
   2435  1.39     pooka 	return rval[0];
   2436  1.34     pooka }
   2437  1.34     pooka __weak_alias(sys_extattr_delete_link,rump_enosys);
   2438  1.34     pooka 
   2439  1.34     pooka ssize_t rump_sys_extattr_list_fd(int, int, void *, size_t);
   2440  1.34     pooka ssize_t
   2441  1.34     pooka rump_sys_extattr_list_fd(int fd, int attrnamespace, void * data, size_t nbytes)
   2442  1.34     pooka {
   2443  1.39     pooka 	register_t rval[2] = {0, 0};
   2444  1.34     pooka 	int error = 0;
   2445  1.34     pooka 	struct sys_extattr_list_fd_args callarg;
   2446  1.34     pooka 
   2447  1.34     pooka 	SPARG(&callarg, fd) = fd;
   2448  1.34     pooka 	SPARG(&callarg, attrnamespace) = attrnamespace;
   2449  1.34     pooka 	SPARG(&callarg, data) = data;
   2450  1.34     pooka 	SPARG(&callarg, nbytes) = nbytes;
   2451  1.34     pooka 
   2452  1.34     pooka 	error = rump_sysproxy(SYS_extattr_list_fd, rump_sysproxy_arg,
   2453  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2454  1.34     pooka 	if (error) {
   2455  1.39     pooka 		rval[0] = -1;
   2456  1.34     pooka 		rumpuser_seterrno(error);
   2457  1.34     pooka 	}
   2458  1.39     pooka 	return rval[0];
   2459  1.34     pooka }
   2460  1.34     pooka __weak_alias(sys_extattr_list_fd,rump_enosys);
   2461  1.34     pooka 
   2462  1.34     pooka ssize_t rump_sys_extattr_list_file(const char *, int, void *, size_t);
   2463  1.34     pooka ssize_t
   2464  1.34     pooka rump_sys_extattr_list_file(const char * path, int attrnamespace, void * data, size_t nbytes)
   2465  1.34     pooka {
   2466  1.39     pooka 	register_t rval[2] = {0, 0};
   2467  1.34     pooka 	int error = 0;
   2468  1.34     pooka 	struct sys_extattr_list_file_args callarg;
   2469  1.34     pooka 
   2470  1.34     pooka 	SPARG(&callarg, path) = path;
   2471  1.34     pooka 	SPARG(&callarg, attrnamespace) = attrnamespace;
   2472  1.34     pooka 	SPARG(&callarg, data) = data;
   2473  1.34     pooka 	SPARG(&callarg, nbytes) = nbytes;
   2474  1.34     pooka 
   2475  1.34     pooka 	error = rump_sysproxy(SYS_extattr_list_file, rump_sysproxy_arg,
   2476  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2477  1.34     pooka 	if (error) {
   2478  1.39     pooka 		rval[0] = -1;
   2479  1.34     pooka 		rumpuser_seterrno(error);
   2480  1.34     pooka 	}
   2481  1.39     pooka 	return rval[0];
   2482  1.34     pooka }
   2483  1.34     pooka __weak_alias(sys_extattr_list_file,rump_enosys);
   2484  1.34     pooka 
   2485  1.34     pooka ssize_t rump_sys_extattr_list_link(const char *, int, void *, size_t);
   2486  1.34     pooka ssize_t
   2487  1.34     pooka rump_sys_extattr_list_link(const char * path, int attrnamespace, void * data, size_t nbytes)
   2488  1.34     pooka {
   2489  1.39     pooka 	register_t rval[2] = {0, 0};
   2490  1.34     pooka 	int error = 0;
   2491  1.34     pooka 	struct sys_extattr_list_link_args callarg;
   2492  1.34     pooka 
   2493  1.34     pooka 	SPARG(&callarg, path) = path;
   2494  1.34     pooka 	SPARG(&callarg, attrnamespace) = attrnamespace;
   2495  1.34     pooka 	SPARG(&callarg, data) = data;
   2496  1.34     pooka 	SPARG(&callarg, nbytes) = nbytes;
   2497  1.34     pooka 
   2498  1.34     pooka 	error = rump_sysproxy(SYS_extattr_list_link, rump_sysproxy_arg,
   2499  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2500  1.34     pooka 	if (error) {
   2501  1.39     pooka 		rval[0] = -1;
   2502  1.34     pooka 		rumpuser_seterrno(error);
   2503  1.34     pooka 	}
   2504  1.39     pooka 	return rval[0];
   2505  1.34     pooka }
   2506  1.34     pooka __weak_alias(sys_extattr_list_link,rump_enosys);
   2507  1.34     pooka 
   2508  1.34     pooka int rump_sys_setxattr(const char *, const char *, void *, size_t, int);
   2509  1.34     pooka int
   2510  1.34     pooka rump_sys_setxattr(const char * path, const char * name, void * value, size_t size, int flags)
   2511  1.34     pooka {
   2512  1.39     pooka 	register_t rval[2] = {0, 0};
   2513  1.34     pooka 	int error = 0;
   2514  1.34     pooka 	struct sys_setxattr_args callarg;
   2515  1.34     pooka 
   2516  1.34     pooka 	SPARG(&callarg, path) = path;
   2517  1.34     pooka 	SPARG(&callarg, name) = name;
   2518  1.34     pooka 	SPARG(&callarg, value) = value;
   2519  1.34     pooka 	SPARG(&callarg, size) = size;
   2520  1.34     pooka 	SPARG(&callarg, flags) = flags;
   2521  1.34     pooka 
   2522  1.34     pooka 	error = rump_sysproxy(SYS_setxattr, rump_sysproxy_arg,
   2523  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2524  1.28     pooka 	if (error) {
   2525  1.39     pooka 		rval[0] = -1;
   2526  1.28     pooka 		rumpuser_seterrno(error);
   2527  1.28     pooka 	}
   2528  1.39     pooka 	return rval[0];
   2529  1.28     pooka }
   2530  1.34     pooka __weak_alias(sys_setxattr,rump_enosys);
   2531  1.28     pooka 
   2532  1.34     pooka int rump_sys_lsetxattr(const char *, const char *, void *, size_t, int);
   2533  1.10     pooka int
   2534  1.34     pooka rump_sys_lsetxattr(const char * path, const char * name, void * value, size_t size, int flags)
   2535   1.1     pooka {
   2536  1.39     pooka 	register_t rval[2] = {0, 0};
   2537  1.27     pooka 	int error = 0;
   2538  1.34     pooka 	struct sys_lsetxattr_args callarg;
   2539   1.1     pooka 
   2540  1.31     pooka 	SPARG(&callarg, path) = path;
   2541  1.34     pooka 	SPARG(&callarg, name) = name;
   2542  1.34     pooka 	SPARG(&callarg, value) = value;
   2543  1.34     pooka 	SPARG(&callarg, size) = size;
   2544  1.34     pooka 	SPARG(&callarg, flags) = flags;
   2545   1.1     pooka 
   2546  1.34     pooka 	error = rump_sysproxy(SYS_lsetxattr, rump_sysproxy_arg,
   2547  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2548  1.27     pooka 	if (error) {
   2549  1.39     pooka 		rval[0] = -1;
   2550  1.27     pooka 		rumpuser_seterrno(error);
   2551  1.27     pooka 	}
   2552  1.39     pooka 	return rval[0];
   2553   1.1     pooka }
   2554  1.34     pooka __weak_alias(sys_lsetxattr,rump_enosys);
   2555   1.1     pooka 
   2556  1.34     pooka int rump_sys_fsetxattr(int, const char *, void *, size_t, int);
   2557   1.1     pooka int
   2558  1.34     pooka rump_sys_fsetxattr(int fd, const char * name, void * value, size_t size, int flags)
   2559   1.1     pooka {
   2560  1.39     pooka 	register_t rval[2] = {0, 0};
   2561  1.27     pooka 	int error = 0;
   2562  1.34     pooka 	struct sys_fsetxattr_args callarg;
   2563   1.1     pooka 
   2564  1.34     pooka 	SPARG(&callarg, fd) = fd;
   2565  1.34     pooka 	SPARG(&callarg, name) = name;
   2566  1.34     pooka 	SPARG(&callarg, value) = value;
   2567  1.34     pooka 	SPARG(&callarg, size) = size;
   2568  1.34     pooka 	SPARG(&callarg, flags) = flags;
   2569   1.1     pooka 
   2570  1.34     pooka 	error = rump_sysproxy(SYS_fsetxattr, rump_sysproxy_arg,
   2571  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2572  1.27     pooka 	if (error) {
   2573  1.39     pooka 		rval[0] = -1;
   2574  1.27     pooka 		rumpuser_seterrno(error);
   2575  1.27     pooka 	}
   2576  1.39     pooka 	return rval[0];
   2577   1.1     pooka }
   2578  1.34     pooka __weak_alias(sys_fsetxattr,rump_enosys);
   2579   1.1     pooka 
   2580  1.34     pooka int rump_sys_getxattr(const char *, const char *, void *, size_t);
   2581  1.11     pooka int
   2582  1.34     pooka rump_sys_getxattr(const char * path, const char * name, void * value, size_t size)
   2583  1.22     pooka {
   2584  1.39     pooka 	register_t rval[2] = {0, 0};
   2585  1.27     pooka 	int error = 0;
   2586  1.34     pooka 	struct sys_getxattr_args callarg;
   2587  1.22     pooka 
   2588  1.34     pooka 	SPARG(&callarg, path) = path;
   2589  1.34     pooka 	SPARG(&callarg, name) = name;
   2590  1.34     pooka 	SPARG(&callarg, value) = value;
   2591  1.34     pooka 	SPARG(&callarg, size) = size;
   2592  1.22     pooka 
   2593  1.34     pooka 	error = rump_sysproxy(SYS_getxattr, rump_sysproxy_arg,
   2594  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2595  1.27     pooka 	if (error) {
   2596  1.39     pooka 		rval[0] = -1;
   2597  1.27     pooka 		rumpuser_seterrno(error);
   2598  1.27     pooka 	}
   2599  1.39     pooka 	return rval[0];
   2600  1.22     pooka }
   2601  1.34     pooka __weak_alias(sys_getxattr,rump_enosys);
   2602  1.22     pooka 
   2603  1.34     pooka int rump_sys_lgetxattr(const char *, const char *, void *, size_t);
   2604  1.34     pooka int
   2605  1.34     pooka rump_sys_lgetxattr(const char * path, const char * name, void * value, size_t size)
   2606   1.8     pooka {
   2607  1.39     pooka 	register_t rval[2] = {0, 0};
   2608  1.27     pooka 	int error = 0;
   2609  1.34     pooka 	struct sys_lgetxattr_args callarg;
   2610   1.8     pooka 
   2611  1.34     pooka 	SPARG(&callarg, path) = path;
   2612  1.34     pooka 	SPARG(&callarg, name) = name;
   2613  1.34     pooka 	SPARG(&callarg, value) = value;
   2614  1.34     pooka 	SPARG(&callarg, size) = size;
   2615   1.8     pooka 
   2616  1.34     pooka 	error = rump_sysproxy(SYS_lgetxattr, rump_sysproxy_arg,
   2617  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2618  1.27     pooka 	if (error) {
   2619  1.39     pooka 		rval[0] = -1;
   2620  1.27     pooka 		rumpuser_seterrno(error);
   2621  1.27     pooka 	}
   2622  1.39     pooka 	return rval[0];
   2623   1.8     pooka }
   2624  1.34     pooka __weak_alias(sys_lgetxattr,rump_enosys);
   2625   1.8     pooka 
   2626  1.34     pooka int rump_sys_fgetxattr(int, const char *, void *, size_t);
   2627  1.34     pooka int
   2628  1.34     pooka rump_sys_fgetxattr(int fd, const char * name, void * value, size_t size)
   2629   1.8     pooka {
   2630  1.39     pooka 	register_t rval[2] = {0, 0};
   2631  1.27     pooka 	int error = 0;
   2632  1.34     pooka 	struct sys_fgetxattr_args callarg;
   2633   1.8     pooka 
   2634  1.31     pooka 	SPARG(&callarg, fd) = fd;
   2635  1.34     pooka 	SPARG(&callarg, name) = name;
   2636  1.34     pooka 	SPARG(&callarg, value) = value;
   2637  1.34     pooka 	SPARG(&callarg, size) = size;
   2638   1.8     pooka 
   2639  1.34     pooka 	error = rump_sysproxy(SYS_fgetxattr, rump_sysproxy_arg,
   2640  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2641  1.27     pooka 	if (error) {
   2642  1.39     pooka 		rval[0] = -1;
   2643  1.27     pooka 		rumpuser_seterrno(error);
   2644  1.27     pooka 	}
   2645  1.39     pooka 	return rval[0];
   2646   1.8     pooka }
   2647  1.34     pooka __weak_alias(sys_fgetxattr,rump_enosys);
   2648   1.8     pooka 
   2649  1.34     pooka int rump_sys_listxattr(const char *, char *, size_t);
   2650   1.1     pooka int
   2651  1.34     pooka rump_sys_listxattr(const char * path, char * list, size_t size)
   2652   1.1     pooka {
   2653  1.39     pooka 	register_t rval[2] = {0, 0};
   2654  1.27     pooka 	int error = 0;
   2655  1.34     pooka 	struct sys_listxattr_args callarg;
   2656   1.1     pooka 
   2657  1.31     pooka 	SPARG(&callarg, path) = path;
   2658  1.34     pooka 	SPARG(&callarg, list) = list;
   2659  1.34     pooka 	SPARG(&callarg, size) = size;
   2660   1.1     pooka 
   2661  1.34     pooka 	error = rump_sysproxy(SYS_listxattr, rump_sysproxy_arg,
   2662  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2663  1.27     pooka 	if (error) {
   2664  1.39     pooka 		rval[0] = -1;
   2665  1.27     pooka 		rumpuser_seterrno(error);
   2666  1.27     pooka 	}
   2667  1.39     pooka 	return rval[0];
   2668   1.1     pooka }
   2669  1.34     pooka __weak_alias(sys_listxattr,rump_enosys);
   2670   1.1     pooka 
   2671  1.34     pooka int rump_sys_llistxattr(const char *, char *, size_t);
   2672   1.1     pooka int
   2673  1.34     pooka rump_sys_llistxattr(const char * path, char * list, size_t size)
   2674  1.13     pooka {
   2675  1.39     pooka 	register_t rval[2] = {0, 0};
   2676  1.27     pooka 	int error = 0;
   2677  1.34     pooka 	struct sys_llistxattr_args callarg;
   2678  1.13     pooka 
   2679  1.34     pooka 	SPARG(&callarg, path) = path;
   2680  1.34     pooka 	SPARG(&callarg, list) = list;
   2681  1.34     pooka 	SPARG(&callarg, size) = size;
   2682  1.13     pooka 
   2683  1.34     pooka 	error = rump_sysproxy(SYS_llistxattr, rump_sysproxy_arg,
   2684  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2685  1.27     pooka 	if (error) {
   2686  1.39     pooka 		rval[0] = -1;
   2687  1.27     pooka 		rumpuser_seterrno(error);
   2688  1.27     pooka 	}
   2689  1.39     pooka 	return rval[0];
   2690  1.13     pooka }
   2691  1.34     pooka __weak_alias(sys_llistxattr,rump_enosys);
   2692  1.13     pooka 
   2693  1.34     pooka int rump_sys_flistxattr(int, char *, size_t);
   2694  1.13     pooka int
   2695  1.34     pooka rump_sys_flistxattr(int fd, char * list, size_t size)
   2696   1.1     pooka {
   2697  1.39     pooka 	register_t rval[2] = {0, 0};
   2698  1.27     pooka 	int error = 0;
   2699  1.34     pooka 	struct sys_flistxattr_args callarg;
   2700   1.1     pooka 
   2701  1.34     pooka 	SPARG(&callarg, fd) = fd;
   2702  1.34     pooka 	SPARG(&callarg, list) = list;
   2703  1.34     pooka 	SPARG(&callarg, size) = size;
   2704   1.1     pooka 
   2705  1.34     pooka 	error = rump_sysproxy(SYS_flistxattr, rump_sysproxy_arg,
   2706  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2707  1.27     pooka 	if (error) {
   2708  1.39     pooka 		rval[0] = -1;
   2709  1.27     pooka 		rumpuser_seterrno(error);
   2710  1.27     pooka 	}
   2711  1.39     pooka 	return rval[0];
   2712   1.1     pooka }
   2713  1.34     pooka __weak_alias(sys_flistxattr,rump_enosys);
   2714   1.1     pooka 
   2715  1.34     pooka int rump_sys_removexattr(const char *, const char *);
   2716   1.1     pooka int
   2717  1.34     pooka rump_sys_removexattr(const char * path, const char * name)
   2718   1.1     pooka {
   2719  1.39     pooka 	register_t rval[2] = {0, 0};
   2720  1.27     pooka 	int error = 0;
   2721  1.34     pooka 	struct sys_removexattr_args callarg;
   2722   1.1     pooka 
   2723  1.31     pooka 	SPARG(&callarg, path) = path;
   2724  1.34     pooka 	SPARG(&callarg, name) = name;
   2725   1.1     pooka 
   2726  1.34     pooka 	error = rump_sysproxy(SYS_removexattr, rump_sysproxy_arg,
   2727  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2728  1.27     pooka 	if (error) {
   2729  1.39     pooka 		rval[0] = -1;
   2730  1.27     pooka 		rumpuser_seterrno(error);
   2731  1.27     pooka 	}
   2732  1.39     pooka 	return rval[0];
   2733   1.1     pooka }
   2734  1.34     pooka __weak_alias(sys_removexattr,rump_enosys);
   2735   1.1     pooka 
   2736  1.34     pooka int rump_sys_lremovexattr(const char *, const char *);
   2737  1.10     pooka int
   2738  1.34     pooka rump_sys_lremovexattr(const char * path, const char * name)
   2739  1.11     pooka {
   2740  1.39     pooka 	register_t rval[2] = {0, 0};
   2741  1.27     pooka 	int error = 0;
   2742  1.34     pooka 	struct sys_lremovexattr_args callarg;
   2743  1.11     pooka 
   2744  1.31     pooka 	SPARG(&callarg, path) = path;
   2745  1.34     pooka 	SPARG(&callarg, name) = name;
   2746  1.11     pooka 
   2747  1.34     pooka 	error = rump_sysproxy(SYS_lremovexattr, rump_sysproxy_arg,
   2748  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2749  1.27     pooka 	if (error) {
   2750  1.39     pooka 		rval[0] = -1;
   2751  1.27     pooka 		rumpuser_seterrno(error);
   2752  1.27     pooka 	}
   2753  1.39     pooka 	return rval[0];
   2754  1.11     pooka }
   2755  1.34     pooka __weak_alias(sys_lremovexattr,rump_enosys);
   2756  1.11     pooka 
   2757  1.34     pooka int rump_sys_fremovexattr(int, const char *);
   2758  1.32     pooka int
   2759  1.34     pooka rump_sys_fremovexattr(int fd, const char * name)
   2760  1.32     pooka {
   2761  1.39     pooka 	register_t rval[2] = {0, 0};
   2762  1.32     pooka 	int error = 0;
   2763  1.34     pooka 	struct sys_fremovexattr_args callarg;
   2764  1.34     pooka 
   2765  1.34     pooka 	SPARG(&callarg, fd) = fd;
   2766  1.34     pooka 	SPARG(&callarg, name) = name;
   2767  1.32     pooka 
   2768  1.34     pooka 	error = rump_sysproxy(SYS_fremovexattr, rump_sysproxy_arg,
   2769  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2770  1.32     pooka 	if (error) {
   2771  1.39     pooka 		rval[0] = -1;
   2772  1.32     pooka 		rumpuser_seterrno(error);
   2773  1.32     pooka 	}
   2774  1.39     pooka 	return rval[0];
   2775  1.32     pooka }
   2776  1.34     pooka __weak_alias(sys_fremovexattr,rump_enosys);
   2777  1.32     pooka 
   2778  1.34     pooka int rump_sys___getdents30(int, char *, size_t);
   2779  1.11     pooka int
   2780  1.34     pooka rump_sys___getdents30(int fd, char * buf, size_t count)
   2781  1.10     pooka {
   2782  1.39     pooka 	register_t rval[2] = {0, 0};
   2783  1.27     pooka 	int error = 0;
   2784  1.34     pooka 	struct sys___getdents30_args callarg;
   2785  1.10     pooka 
   2786  1.34     pooka 	SPARG(&callarg, fd) = fd;
   2787  1.31     pooka 	SPARG(&callarg, buf) = buf;
   2788  1.34     pooka 	SPARG(&callarg, count) = count;
   2789  1.10     pooka 
   2790  1.34     pooka 	error = rump_sysproxy(SYS___getdents30, rump_sysproxy_arg,
   2791  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2792  1.27     pooka 	if (error) {
   2793  1.39     pooka 		rval[0] = -1;
   2794  1.27     pooka 		rumpuser_seterrno(error);
   2795  1.27     pooka 	}
   2796  1.39     pooka 	return rval[0];
   2797  1.23  christos }
   2798  1.34     pooka __weak_alias(sys___getdents30,rump_enosys);
   2799  1.23  christos 
   2800  1.27     pooka int rump_sys___socket30(int, int, int);
   2801  1.23  christos int
   2802  1.27     pooka rump_sys___socket30(int domain, int type, int protocol)
   2803  1.23  christos {
   2804  1.39     pooka 	register_t rval[2] = {0, 0};
   2805  1.27     pooka 	int error = 0;
   2806  1.31     pooka 	struct sys___socket30_args callarg;
   2807  1.23  christos 
   2808  1.31     pooka 	SPARG(&callarg, domain) = domain;
   2809  1.31     pooka 	SPARG(&callarg, type) = type;
   2810  1.31     pooka 	SPARG(&callarg, protocol) = protocol;
   2811  1.23  christos 
   2812  1.29     pooka 	error = rump_sysproxy(SYS___socket30, rump_sysproxy_arg,
   2813  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2814  1.27     pooka 	if (error) {
   2815  1.39     pooka 		rval[0] = -1;
   2816  1.27     pooka 		rumpuser_seterrno(error);
   2817  1.27     pooka 	}
   2818  1.39     pooka 	return rval[0];
   2819  1.23  christos }
   2820  1.23  christos __weak_alias(sys___socket30,rump_enosys);
   2821  1.23  christos 
   2822  1.27     pooka int rump_sys___getfh30(const char *, void *, size_t *);
   2823  1.23  christos int
   2824  1.27     pooka rump_sys___getfh30(const char * fname, void * fhp, size_t * fh_size)
   2825  1.23  christos {
   2826  1.39     pooka 	register_t rval[2] = {0, 0};
   2827  1.27     pooka 	int error = 0;
   2828  1.31     pooka 	struct sys___getfh30_args callarg;
   2829  1.23  christos 
   2830  1.31     pooka 	SPARG(&callarg, fname) = fname;
   2831  1.31     pooka 	SPARG(&callarg, fhp) = fhp;
   2832  1.31     pooka 	SPARG(&callarg, fh_size) = fh_size;
   2833  1.23  christos 
   2834  1.29     pooka 	error = rump_sysproxy(SYS___getfh30, rump_sysproxy_arg,
   2835  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2836  1.27     pooka 	if (error) {
   2837  1.39     pooka 		rval[0] = -1;
   2838  1.27     pooka 		rumpuser_seterrno(error);
   2839  1.27     pooka 	}
   2840  1.39     pooka 	return rval[0];
   2841  1.10     pooka }
   2842  1.23  christos __weak_alias(sys___getfh30,rump_enosys);
   2843  1.10     pooka 
   2844  1.36     pooka int rump_sys___fhopen40(const void *, size_t, int);
   2845  1.36     pooka int
   2846  1.36     pooka rump_sys___fhopen40(const void * fhp, size_t fh_size, int flags)
   2847  1.36     pooka {
   2848  1.39     pooka 	register_t rval[2] = {0, 0};
   2849  1.36     pooka 	int error = 0;
   2850  1.36     pooka 	struct sys___fhopen40_args callarg;
   2851  1.36     pooka 
   2852  1.36     pooka 	SPARG(&callarg, fhp) = fhp;
   2853  1.36     pooka 	SPARG(&callarg, fh_size) = fh_size;
   2854  1.36     pooka 	SPARG(&callarg, flags) = flags;
   2855  1.36     pooka 
   2856  1.36     pooka 	error = rump_sysproxy(SYS___fhopen40, rump_sysproxy_arg,
   2857  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2858  1.36     pooka 	if (error) {
   2859  1.39     pooka 		rval[0] = -1;
   2860  1.36     pooka 		rumpuser_seterrno(error);
   2861  1.36     pooka 	}
   2862  1.39     pooka 	return rval[0];
   2863  1.36     pooka }
   2864  1.36     pooka __weak_alias(sys___fhopen40,rump_enosys);
   2865  1.36     pooka 
   2866  1.36     pooka int rump_sys___fhstatvfs140(const void *, size_t, struct statvfs *, int);
   2867  1.36     pooka int
   2868  1.36     pooka rump_sys___fhstatvfs140(const void * fhp, size_t fh_size, struct statvfs * buf, int flags)
   2869  1.36     pooka {
   2870  1.39     pooka 	register_t rval[2] = {0, 0};
   2871  1.36     pooka 	int error = 0;
   2872  1.36     pooka 	struct sys___fhstatvfs140_args callarg;
   2873  1.36     pooka 
   2874  1.36     pooka 	SPARG(&callarg, fhp) = fhp;
   2875  1.36     pooka 	SPARG(&callarg, fh_size) = fh_size;
   2876  1.36     pooka 	SPARG(&callarg, buf) = buf;
   2877  1.36     pooka 	SPARG(&callarg, flags) = flags;
   2878  1.36     pooka 
   2879  1.36     pooka 	error = rump_sysproxy(SYS___fhstatvfs140, rump_sysproxy_arg,
   2880  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2881  1.36     pooka 	if (error) {
   2882  1.39     pooka 		rval[0] = -1;
   2883  1.36     pooka 		rumpuser_seterrno(error);
   2884  1.36     pooka 	}
   2885  1.39     pooka 	return rval[0];
   2886  1.36     pooka }
   2887  1.36     pooka __weak_alias(sys___fhstatvfs140,rump_enosys);
   2888  1.36     pooka 
   2889  1.33     pooka int rump_sys___mount50(const char *, const char *, int, void *, size_t);
   2890  1.33     pooka int
   2891  1.33     pooka rump_sys___mount50(const char * type, const char * path, int flags, void * data, size_t data_len)
   2892  1.33     pooka {
   2893  1.39     pooka 	register_t rval[2] = {0, 0};
   2894  1.33     pooka 	int error = 0;
   2895  1.33     pooka 	struct sys___mount50_args callarg;
   2896  1.33     pooka 
   2897  1.33     pooka 	SPARG(&callarg, type) = type;
   2898  1.33     pooka 	SPARG(&callarg, path) = path;
   2899  1.33     pooka 	SPARG(&callarg, flags) = flags;
   2900  1.33     pooka 	SPARG(&callarg, data) = data;
   2901  1.33     pooka 	SPARG(&callarg, data_len) = data_len;
   2902  1.33     pooka 
   2903  1.33     pooka 	error = rump_sysproxy(SYS___mount50, rump_sysproxy_arg,
   2904  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2905  1.33     pooka 	if (error) {
   2906  1.39     pooka 		rval[0] = -1;
   2907  1.33     pooka 		rumpuser_seterrno(error);
   2908  1.33     pooka 	}
   2909  1.39     pooka 	return rval[0];
   2910  1.33     pooka }
   2911  1.33     pooka __weak_alias(sys___mount50,rump_enosys);
   2912  1.33     pooka 
   2913  1.34     pooka int rump_sys___select50(int, fd_set *, fd_set *, fd_set *, struct timeval *);
   2914  1.34     pooka int
   2915  1.34     pooka rump_sys___select50(int nd, fd_set * in, fd_set * ou, fd_set * ex, struct timeval * tv)
   2916  1.34     pooka {
   2917  1.39     pooka 	register_t rval[2] = {0, 0};
   2918  1.34     pooka 	int error = 0;
   2919  1.34     pooka 	struct sys___select50_args callarg;
   2920  1.34     pooka 
   2921  1.34     pooka 	SPARG(&callarg, nd) = nd;
   2922  1.34     pooka 	SPARG(&callarg, in) = in;
   2923  1.34     pooka 	SPARG(&callarg, ou) = ou;
   2924  1.34     pooka 	SPARG(&callarg, ex) = ex;
   2925  1.34     pooka 	SPARG(&callarg, tv) = tv;
   2926  1.34     pooka 
   2927  1.34     pooka 	error = rump_sysproxy(SYS___select50, rump_sysproxy_arg,
   2928  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2929  1.34     pooka 	if (error) {
   2930  1.39     pooka 		rval[0] = -1;
   2931  1.34     pooka 		rumpuser_seterrno(error);
   2932  1.34     pooka 	}
   2933  1.39     pooka 	return rval[0];
   2934  1.34     pooka }
   2935  1.34     pooka __weak_alias(sys___select50,rump_enosys);
   2936  1.34     pooka 
   2937  1.27     pooka int rump_sys___utimes50(const char *, const struct timeval *);
   2938  1.10     pooka int
   2939  1.27     pooka rump_sys___utimes50(const char * path, const struct timeval * tptr)
   2940  1.22     pooka {
   2941  1.39     pooka 	register_t rval[2] = {0, 0};
   2942  1.27     pooka 	int error = 0;
   2943  1.31     pooka 	struct sys___utimes50_args callarg;
   2944  1.22     pooka 
   2945  1.31     pooka 	SPARG(&callarg, path) = path;
   2946  1.31     pooka 	SPARG(&callarg, tptr) = tptr;
   2947  1.22     pooka 
   2948  1.29     pooka 	error = rump_sysproxy(SYS___utimes50, rump_sysproxy_arg,
   2949  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2950  1.27     pooka 	if (error) {
   2951  1.39     pooka 		rval[0] = -1;
   2952  1.27     pooka 		rumpuser_seterrno(error);
   2953  1.27     pooka 	}
   2954  1.39     pooka 	return rval[0];
   2955  1.22     pooka }
   2956  1.23  christos __weak_alias(sys___utimes50,rump_enosys);
   2957  1.22     pooka 
   2958  1.34     pooka int rump_sys___futimes50(int, const struct timeval *);
   2959  1.34     pooka int
   2960  1.34     pooka rump_sys___futimes50(int fd, const struct timeval * tptr)
   2961  1.34     pooka {
   2962  1.39     pooka 	register_t rval[2] = {0, 0};
   2963  1.34     pooka 	int error = 0;
   2964  1.34     pooka 	struct sys___futimes50_args callarg;
   2965  1.34     pooka 
   2966  1.34     pooka 	SPARG(&callarg, fd) = fd;
   2967  1.34     pooka 	SPARG(&callarg, tptr) = tptr;
   2968  1.34     pooka 
   2969  1.34     pooka 	error = rump_sysproxy(SYS___futimes50, rump_sysproxy_arg,
   2970  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2971  1.34     pooka 	if (error) {
   2972  1.39     pooka 		rval[0] = -1;
   2973  1.34     pooka 		rumpuser_seterrno(error);
   2974  1.34     pooka 	}
   2975  1.39     pooka 	return rval[0];
   2976  1.34     pooka }
   2977  1.34     pooka __weak_alias(sys___futimes50,rump_enosys);
   2978  1.34     pooka 
   2979  1.27     pooka int rump_sys___lutimes50(const char *, const struct timeval *);
   2980  1.22     pooka int
   2981  1.27     pooka rump_sys___lutimes50(const char * path, const struct timeval * tptr)
   2982  1.10     pooka {
   2983  1.39     pooka 	register_t rval[2] = {0, 0};
   2984  1.27     pooka 	int error = 0;
   2985  1.31     pooka 	struct sys___lutimes50_args callarg;
   2986  1.10     pooka 
   2987  1.31     pooka 	SPARG(&callarg, path) = path;
   2988  1.31     pooka 	SPARG(&callarg, tptr) = tptr;
   2989  1.10     pooka 
   2990  1.29     pooka 	error = rump_sysproxy(SYS___lutimes50, rump_sysproxy_arg,
   2991  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   2992  1.27     pooka 	if (error) {
   2993  1.39     pooka 		rval[0] = -1;
   2994  1.27     pooka 		rumpuser_seterrno(error);
   2995  1.27     pooka 	}
   2996  1.39     pooka 	return rval[0];
   2997  1.10     pooka }
   2998  1.23  christos __weak_alias(sys___lutimes50,rump_enosys);
   2999  1.10     pooka 
   3000  1.32     pooka int rump_sys___kevent50(int, const struct kevent *, size_t, struct kevent *, size_t, const struct timespec *);
   3001  1.32     pooka int
   3002  1.32     pooka rump_sys___kevent50(int fd, const struct kevent * changelist, size_t nchanges, struct kevent * eventlist, size_t nevents, const struct timespec * timeout)
   3003  1.32     pooka {
   3004  1.39     pooka 	register_t rval[2] = {0, 0};
   3005  1.32     pooka 	int error = 0;
   3006  1.32     pooka 	struct sys___kevent50_args callarg;
   3007  1.32     pooka 
   3008  1.32     pooka 	SPARG(&callarg, fd) = fd;
   3009  1.32     pooka 	SPARG(&callarg, changelist) = changelist;
   3010  1.32     pooka 	SPARG(&callarg, nchanges) = nchanges;
   3011  1.32     pooka 	SPARG(&callarg, eventlist) = eventlist;
   3012  1.32     pooka 	SPARG(&callarg, nevents) = nevents;
   3013  1.32     pooka 	SPARG(&callarg, timeout) = timeout;
   3014  1.32     pooka 
   3015  1.32     pooka 	error = rump_sysproxy(SYS___kevent50, rump_sysproxy_arg,
   3016  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   3017  1.32     pooka 	if (error) {
   3018  1.39     pooka 		rval[0] = -1;
   3019  1.32     pooka 		rumpuser_seterrno(error);
   3020  1.32     pooka 	}
   3021  1.39     pooka 	return rval[0];
   3022  1.32     pooka }
   3023  1.32     pooka __weak_alias(sys___kevent50,rump_enosys);
   3024  1.32     pooka 
   3025  1.34     pooka int rump_sys___pselect50(int, fd_set *, fd_set *, fd_set *, const struct timespec *, const sigset_t *);
   3026  1.34     pooka int
   3027  1.34     pooka rump_sys___pselect50(int nd, fd_set * in, fd_set * ou, fd_set * ex, const struct timespec * ts, const sigset_t * mask)
   3028  1.34     pooka {
   3029  1.39     pooka 	register_t rval[2] = {0, 0};
   3030  1.34     pooka 	int error = 0;
   3031  1.34     pooka 	struct sys___pselect50_args callarg;
   3032  1.34     pooka 
   3033  1.34     pooka 	SPARG(&callarg, nd) = nd;
   3034  1.34     pooka 	SPARG(&callarg, in) = in;
   3035  1.34     pooka 	SPARG(&callarg, ou) = ou;
   3036  1.34     pooka 	SPARG(&callarg, ex) = ex;
   3037  1.34     pooka 	SPARG(&callarg, ts) = ts;
   3038  1.34     pooka 	SPARG(&callarg, mask) = mask;
   3039  1.34     pooka 
   3040  1.34     pooka 	error = rump_sysproxy(SYS___pselect50, rump_sysproxy_arg,
   3041  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   3042  1.34     pooka 	if (error) {
   3043  1.39     pooka 		rval[0] = -1;
   3044  1.34     pooka 		rumpuser_seterrno(error);
   3045  1.34     pooka 	}
   3046  1.39     pooka 	return rval[0];
   3047  1.34     pooka }
   3048  1.34     pooka __weak_alias(sys___pselect50,rump_enosys);
   3049  1.34     pooka 
   3050  1.34     pooka int rump_sys___pollts50(struct pollfd *, u_int, const struct timespec *, const sigset_t *);
   3051  1.34     pooka int
   3052  1.34     pooka rump_sys___pollts50(struct pollfd * fds, u_int nfds, const struct timespec * ts, const sigset_t * mask)
   3053  1.34     pooka {
   3054  1.39     pooka 	register_t rval[2] = {0, 0};
   3055  1.34     pooka 	int error = 0;
   3056  1.34     pooka 	struct sys___pollts50_args callarg;
   3057  1.34     pooka 
   3058  1.34     pooka 	SPARG(&callarg, fds) = fds;
   3059  1.34     pooka 	SPARG(&callarg, nfds) = nfds;
   3060  1.34     pooka 	SPARG(&callarg, ts) = ts;
   3061  1.34     pooka 	SPARG(&callarg, mask) = mask;
   3062  1.34     pooka 
   3063  1.34     pooka 	error = rump_sysproxy(SYS___pollts50, rump_sysproxy_arg,
   3064  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   3065  1.34     pooka 	if (error) {
   3066  1.39     pooka 		rval[0] = -1;
   3067  1.34     pooka 		rumpuser_seterrno(error);
   3068  1.34     pooka 	}
   3069  1.39     pooka 	return rval[0];
   3070  1.34     pooka }
   3071  1.34     pooka __weak_alias(sys___pollts50,rump_enosys);
   3072  1.34     pooka 
   3073  1.27     pooka int rump_sys___stat50(const char *, struct stat *);
   3074  1.10     pooka int
   3075  1.27     pooka rump_sys___stat50(const char * path, struct stat * ub)
   3076  1.10     pooka {
   3077  1.39     pooka 	register_t rval[2] = {0, 0};
   3078  1.27     pooka 	int error = 0;
   3079  1.31     pooka 	struct sys___stat50_args callarg;
   3080  1.10     pooka 
   3081  1.31     pooka 	SPARG(&callarg, path) = path;
   3082  1.31     pooka 	SPARG(&callarg, ub) = ub;
   3083  1.10     pooka 
   3084  1.29     pooka 	error = rump_sysproxy(SYS___stat50, rump_sysproxy_arg,
   3085  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   3086  1.27     pooka 	if (error) {
   3087  1.39     pooka 		rval[0] = -1;
   3088  1.27     pooka 		rumpuser_seterrno(error);
   3089  1.27     pooka 	}
   3090  1.39     pooka 	return rval[0];
   3091  1.10     pooka }
   3092  1.23  christos __weak_alias(sys___stat50,rump_enosys);
   3093  1.18     pooka 
   3094  1.34     pooka int rump_sys___fstat50(int, struct stat *);
   3095  1.34     pooka int
   3096  1.34     pooka rump_sys___fstat50(int fd, struct stat * sb)
   3097  1.34     pooka {
   3098  1.39     pooka 	register_t rval[2] = {0, 0};
   3099  1.34     pooka 	int error = 0;
   3100  1.34     pooka 	struct sys___fstat50_args callarg;
   3101  1.34     pooka 
   3102  1.34     pooka 	SPARG(&callarg, fd) = fd;
   3103  1.34     pooka 	SPARG(&callarg, sb) = sb;
   3104  1.34     pooka 
   3105  1.34     pooka 	error = rump_sysproxy(SYS___fstat50, rump_sysproxy_arg,
   3106  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   3107  1.34     pooka 	if (error) {
   3108  1.39     pooka 		rval[0] = -1;
   3109  1.34     pooka 		rumpuser_seterrno(error);
   3110  1.34     pooka 	}
   3111  1.39     pooka 	return rval[0];
   3112  1.34     pooka }
   3113  1.34     pooka __weak_alias(sys___fstat50,rump_enosys);
   3114  1.34     pooka 
   3115  1.27     pooka int rump_sys___lstat50(const char *, struct stat *);
   3116  1.18     pooka int
   3117  1.27     pooka rump_sys___lstat50(const char * path, struct stat * ub)
   3118  1.18     pooka {
   3119  1.39     pooka 	register_t rval[2] = {0, 0};
   3120  1.27     pooka 	int error = 0;
   3121  1.31     pooka 	struct sys___lstat50_args callarg;
   3122  1.18     pooka 
   3123  1.31     pooka 	SPARG(&callarg, path) = path;
   3124  1.31     pooka 	SPARG(&callarg, ub) = ub;
   3125  1.18     pooka 
   3126  1.29     pooka 	error = rump_sysproxy(SYS___lstat50, rump_sysproxy_arg,
   3127  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   3128  1.27     pooka 	if (error) {
   3129  1.39     pooka 		rval[0] = -1;
   3130  1.27     pooka 		rumpuser_seterrno(error);
   3131  1.27     pooka 	}
   3132  1.39     pooka 	return rval[0];
   3133  1.18     pooka }
   3134  1.23  christos __weak_alias(sys___lstat50,rump_enosys);
   3135  1.22     pooka 
   3136  1.27     pooka int rump_sys___mknod50(const char *, mode_t, dev_t);
   3137  1.22     pooka int
   3138  1.27     pooka rump_sys___mknod50(const char * path, mode_t mode, dev_t dev)
   3139  1.22     pooka {
   3140  1.39     pooka 	register_t rval[2] = {0, 0};
   3141  1.27     pooka 	int error = 0;
   3142  1.31     pooka 	struct sys___mknod50_args callarg;
   3143  1.22     pooka 
   3144  1.31     pooka 	SPARG(&callarg, path) = path;
   3145  1.31     pooka 	SPARG(&callarg, mode) = mode;
   3146  1.31     pooka 	SPARG(&callarg, dev) = dev;
   3147  1.22     pooka 
   3148  1.29     pooka 	error = rump_sysproxy(SYS___mknod50, rump_sysproxy_arg,
   3149  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   3150  1.27     pooka 	if (error) {
   3151  1.39     pooka 		rval[0] = -1;
   3152  1.27     pooka 		rumpuser_seterrno(error);
   3153  1.27     pooka 	}
   3154  1.39     pooka 	return rval[0];
   3155  1.22     pooka }
   3156  1.23  christos __weak_alias(sys___mknod50,rump_enosys);
   3157  1.29     pooka 
   3158  1.34     pooka int rump_sys___fhstat50(const void *, size_t, struct stat *);
   3159  1.34     pooka int
   3160  1.34     pooka rump_sys___fhstat50(const void * fhp, size_t fh_size, struct stat * sb)
   3161  1.34     pooka {
   3162  1.39     pooka 	register_t rval[2] = {0, 0};
   3163  1.34     pooka 	int error = 0;
   3164  1.34     pooka 	struct sys___fhstat50_args callarg;
   3165  1.34     pooka 
   3166  1.34     pooka 	SPARG(&callarg, fhp) = fhp;
   3167  1.34     pooka 	SPARG(&callarg, fh_size) = fh_size;
   3168  1.34     pooka 	SPARG(&callarg, sb) = sb;
   3169  1.34     pooka 
   3170  1.34     pooka 	error = rump_sysproxy(SYS___fhstat50, rump_sysproxy_arg,
   3171  1.39     pooka 	    (uint8_t *)&callarg, sizeof(callarg), rval);
   3172  1.34     pooka 	if (error) {
   3173  1.39     pooka 		rval[0] = -1;
   3174  1.34     pooka 		rumpuser_seterrno(error);
   3175  1.34     pooka 	}
   3176  1.39     pooka 	return rval[0];
   3177  1.34     pooka }
   3178  1.34     pooka __weak_alias(sys___fhstat50,rump_enosys);
   3179  1.34     pooka 
   3180  1.40     pooka int rump_sys_pipe(int *);
   3181  1.40     pooka int
   3182  1.40     pooka rump_sys_pipe(int *fd)
   3183  1.40     pooka {
   3184  1.40     pooka 	register_t rval[2] = {0, 0};
   3185  1.40     pooka 	int error = 0;
   3186  1.40     pooka 
   3187  1.40     pooka 	error = rump_sysproxy(SYS_pipe, rump_sysproxy_arg, NULL, 0, rval);
   3188  1.40     pooka 	if (error) {
   3189  1.40     pooka 		rumpuser_seterrno(error);
   3190  1.40     pooka 	} else {
   3191  1.40     pooka 		fd[0] = rval[0];
   3192  1.40     pooka 		fd[1] = rval[1];
   3193  1.40     pooka 	}
   3194  1.40     pooka 	return error ? -1 : 0;
   3195  1.40     pooka }
   3196  1.40     pooka 
   3197  1.29     pooka #define	s(type)	sizeof(type)
   3198  1.29     pooka #define	n(type)	(sizeof(type)/sizeof (register_t))
   3199  1.29     pooka #define	ns(type)	n(type), s(type)
   3200  1.29     pooka 
   3201  1.29     pooka struct sysent rump_sysent[] = {
   3202  1.29     pooka 	{ 0, 0, 0,
   3203  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 0 = unrumped */
   3204  1.29     pooka 	{ 0, 0, 0,
   3205  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 1 = unrumped */
   3206  1.29     pooka 	{ 0, 0, 0,
   3207  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 2 = unrumped */
   3208  1.29     pooka 	{ ns(struct sys_read_args), 0,
   3209  1.29     pooka 	    (sy_call_t *)sys_read },			/* 3 = read */
   3210  1.29     pooka 	{ ns(struct sys_write_args), 0,
   3211  1.29     pooka 	    (sy_call_t *)sys_write },			/* 4 = write */
   3212  1.29     pooka 	{ ns(struct sys_open_args), 0,
   3213  1.29     pooka 	    (sy_call_t *)sys_open },			/* 5 = open */
   3214  1.29     pooka 	{ ns(struct sys_close_args), 0,
   3215  1.29     pooka 	    (sy_call_t *)sys_close },			/* 6 = close */
   3216  1.29     pooka 	{ 0, 0, 0,
   3217  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 7 = unrumped */
   3218  1.29     pooka 	{ 0, 0, 0,
   3219  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 8 = unrumped */
   3220  1.29     pooka 	{ ns(struct sys_link_args), 0,
   3221  1.29     pooka 	    (sy_call_t *)sys_link },			/* 9 = link */
   3222  1.29     pooka 	{ ns(struct sys_unlink_args), 0,
   3223  1.29     pooka 	    (sy_call_t *)sys_unlink },			/* 10 = unlink */
   3224  1.29     pooka 	{ 0, 0, 0,
   3225  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 11 = obsolete execv */
   3226  1.29     pooka 	{ ns(struct sys_chdir_args), 0,
   3227  1.29     pooka 	    (sy_call_t *)sys_chdir },			/* 12 = chdir */
   3228  1.29     pooka 	{ ns(struct sys_fchdir_args), 0,
   3229  1.29     pooka 	    (sy_call_t *)sys_fchdir },			/* 13 = fchdir */
   3230  1.29     pooka 	{ 0, 0, 0,
   3231  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 14 = unrumped */
   3232  1.29     pooka 	{ ns(struct sys_chmod_args), 0,
   3233  1.29     pooka 	    (sy_call_t *)sys_chmod },			/* 15 = chmod */
   3234  1.29     pooka 	{ ns(struct sys_chown_args), 0,
   3235  1.29     pooka 	    (sy_call_t *)sys_chown },			/* 16 = chown */
   3236  1.29     pooka 	{ 0, 0, 0,
   3237  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 17 = unrumped */
   3238  1.29     pooka 	{ 0, 0, 0,
   3239  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 18 = unrumped */
   3240  1.29     pooka 	{ 0, 0, 0,
   3241  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 19 = unrumped */
   3242  1.29     pooka 	{ 0, 0, 0,
   3243  1.49     pooka 	    (sy_call_t *)sys_getpid_with_ppid },	/* 20 = getpid */
   3244  1.29     pooka 	{ 0, 0, 0,
   3245  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 21 = unrumped */
   3246  1.29     pooka 	{ ns(struct sys_unmount_args), 0,
   3247  1.29     pooka 	    (sy_call_t *)sys_unmount },			/* 22 = unmount */
   3248  1.49     pooka 	{ ns(struct sys_setuid_args), 0,
   3249  1.49     pooka 	    (sy_call_t *)sys_setuid },			/* 23 = setuid */
   3250  1.29     pooka 	{ 0, 0, 0,
   3251  1.49     pooka 	    (sy_call_t *)sys_getuid_with_euid },	/* 24 = getuid */
   3252  1.29     pooka 	{ 0, 0, 0,
   3253  1.49     pooka 	    (sy_call_t *)sys_geteuid },			/* 25 = geteuid */
   3254  1.29     pooka 	{ 0, 0, 0,
   3255  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 26 = unrumped */
   3256  1.29     pooka 	{ ns(struct sys_recvmsg_args), 0,
   3257  1.29     pooka 	    (sy_call_t *)sys_recvmsg },			/* 27 = recvmsg */
   3258  1.29     pooka 	{ ns(struct sys_sendmsg_args), 0,
   3259  1.29     pooka 	    (sy_call_t *)sys_sendmsg },			/* 28 = sendmsg */
   3260  1.29     pooka 	{ ns(struct sys_recvfrom_args), 0,
   3261  1.29     pooka 	    (sy_call_t *)sys_recvfrom },		/* 29 = recvfrom */
   3262  1.29     pooka 	{ ns(struct sys_accept_args), 0,
   3263  1.29     pooka 	    (sy_call_t *)sys_accept },			/* 30 = accept */
   3264  1.29     pooka 	{ ns(struct sys_getpeername_args), 0,
   3265  1.29     pooka 	    (sy_call_t *)sys_getpeername },		/* 31 = getpeername */
   3266  1.29     pooka 	{ ns(struct sys_getsockname_args), 0,
   3267  1.29     pooka 	    (sy_call_t *)sys_getsockname },		/* 32 = getsockname */
   3268  1.34     pooka 	{ ns(struct sys_access_args), 0,
   3269  1.34     pooka 	    (sy_call_t *)sys_access },			/* 33 = access */
   3270  1.29     pooka 	{ ns(struct sys_chflags_args), 0,
   3271  1.29     pooka 	    (sy_call_t *)sys_chflags },			/* 34 = chflags */
   3272  1.34     pooka 	{ ns(struct sys_fchflags_args), 0,
   3273  1.34     pooka 	    (sy_call_t *)sys_fchflags },		/* 35 = fchflags */
   3274  1.29     pooka 	{ 0, 0, 0,
   3275  1.29     pooka 	    (sy_call_t *)sys_sync },			/* 36 = sync */
   3276  1.29     pooka 	{ 0, 0, 0,
   3277  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 37 = unrumped */
   3278  1.29     pooka 	{ 0, 0, 0,
   3279  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 38 = unrumped */
   3280  1.29     pooka 	{ 0, 0, 0,
   3281  1.49     pooka 	    (sy_call_t *)sys_getppid },			/* 39 = getppid */
   3282  1.29     pooka 	{ 0, 0, 0,
   3283  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 40 = unrumped */
   3284  1.34     pooka 	{ ns(struct sys_dup_args), 0,
   3285  1.34     pooka 	    (sy_call_t *)sys_dup },			/* 41 = dup */
   3286  1.29     pooka 	{ 0, 0, 0,
   3287  1.40     pooka 	    (sy_call_t *)sys_pipe },			/* 42 = pipe */
   3288  1.29     pooka 	{ 0, 0, 0,
   3289  1.49     pooka 	    (sy_call_t *)sys_getegid },			/* 43 = getegid */
   3290  1.29     pooka 	{ 0, 0, 0,
   3291  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 44 = unrumped */
   3292  1.29     pooka 	{ 0, 0, 0,
   3293  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 45 = unrumped */
   3294  1.29     pooka 	{ 0, 0, 0,
   3295  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 46 = unrumped */
   3296  1.29     pooka 	{ 0, 0, 0,
   3297  1.49     pooka 	    (sy_call_t *)sys_getgid_with_egid },	/* 47 = getgid */
   3298  1.29     pooka 	{ 0, 0, 0,
   3299  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 48 = unrumped */
   3300  1.49     pooka 	{ ns(struct sys___getlogin_args), 0,
   3301  1.49     pooka 	    (sy_call_t *)sys___getlogin },		/* 49 = __getlogin */
   3302  1.49     pooka 	{ ns(struct sys___setlogin_args), 0,
   3303  1.49     pooka 	    (sy_call_t *)sys___setlogin },		/* 50 = __setlogin */
   3304  1.29     pooka 	{ 0, 0, 0,
   3305  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 51 = unrumped */
   3306  1.29     pooka 	{ 0, 0, 0,
   3307  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 52 = unrumped */
   3308  1.29     pooka 	{ 0, 0, 0,
   3309  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 53 = unrumped */
   3310  1.29     pooka 	{ ns(struct sys_ioctl_args), 0,
   3311  1.29     pooka 	    (sy_call_t *)sys_ioctl },			/* 54 = ioctl */
   3312  1.29     pooka 	{ 0, 0, 0,
   3313  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 55 = unrumped */
   3314  1.34     pooka 	{ ns(struct sys_revoke_args), 0,
   3315  1.34     pooka 	    (sy_call_t *)sys_revoke },			/* 56 = revoke */
   3316  1.29     pooka 	{ ns(struct sys_symlink_args), 0,
   3317  1.29     pooka 	    (sy_call_t *)sys_symlink },			/* 57 = symlink */
   3318  1.29     pooka 	{ ns(struct sys_readlink_args), 0,
   3319  1.29     pooka 	    (sy_call_t *)sys_readlink },		/* 58 = readlink */
   3320  1.29     pooka 	{ 0, 0, 0,
   3321  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 59 = unrumped */
   3322  1.50     pooka 	{ ns(struct sys_umask_args), 0,
   3323  1.50     pooka 	    (sy_call_t *)sys_umask },			/* 60 = umask */
   3324  1.34     pooka 	{ ns(struct sys_chroot_args), 0,
   3325  1.34     pooka 	    (sy_call_t *)sys_chroot },			/* 61 = chroot */
   3326  1.29     pooka 	{ 0, 0, 0,
   3327  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 62 = unrumped */
   3328  1.29     pooka 	{ 0, 0, 0,
   3329  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 63 = unrumped */
   3330  1.29     pooka 	{ 0, 0, 0,
   3331  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 64 = unrumped */
   3332  1.29     pooka 	{ 0, 0, 0,
   3333  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 65 = unrumped */
   3334  1.29     pooka 	{ 0, 0, 0,
   3335  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 66 = unrumped */
   3336  1.29     pooka 	{ 0, 0, 0,
   3337  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 67 = obsolete vread */
   3338  1.29     pooka 	{ 0, 0, 0,
   3339  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 68 = obsolete vwrite */
   3340  1.29     pooka 	{ 0, 0, 0,
   3341  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 69 = unrumped */
   3342  1.29     pooka 	{ 0, 0, 0,
   3343  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 70 = unrumped */
   3344  1.29     pooka 	{ 0, 0, 0,
   3345  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 71 = unrumped */
   3346  1.29     pooka 	{ 0, 0, 0,
   3347  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 72 = unrumped */
   3348  1.29     pooka 	{ 0, 0, 0,
   3349  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 73 = unrumped */
   3350  1.29     pooka 	{ 0, 0, 0,
   3351  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 74 = unrumped */
   3352  1.29     pooka 	{ 0, 0, 0,
   3353  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 75 = unrumped */
   3354  1.29     pooka 	{ 0, 0, 0,
   3355  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 76 = obsolete vhangup */
   3356  1.29     pooka 	{ 0, 0, 0,
   3357  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 77 = obsolete vlimit */
   3358  1.29     pooka 	{ 0, 0, 0,
   3359  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 78 = unrumped */
   3360  1.49     pooka 	{ ns(struct sys_getgroups_args), 0,
   3361  1.49     pooka 	    (sy_call_t *)sys_getgroups },		/* 79 = getgroups */
   3362  1.49     pooka 	{ ns(struct sys_setgroups_args), 0,
   3363  1.49     pooka 	    (sy_call_t *)sys_setgroups },		/* 80 = setgroups */
   3364  1.49     pooka 	{ 0, 0, 0,
   3365  1.49     pooka 	    (sy_call_t *)sys_getpgrp },			/* 81 = getpgrp */
   3366  1.49     pooka 	{ ns(struct sys_setpgid_args), 0,
   3367  1.49     pooka 	    (sy_call_t *)sys_setpgid },			/* 82 = setpgid */
   3368  1.29     pooka 	{ 0, 0, 0,
   3369  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 83 = unrumped */
   3370  1.29     pooka 	{ 0, 0, 0,
   3371  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 84 = unrumped */
   3372  1.29     pooka 	{ 0, 0, 0,
   3373  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 85 = unrumped */
   3374  1.29     pooka 	{ 0, 0, 0,
   3375  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 86 = unrumped */
   3376  1.29     pooka 	{ 0, 0, 0,
   3377  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 87 = unrumped */
   3378  1.29     pooka 	{ 0, 0, 0,
   3379  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 88 = unrumped */
   3380  1.29     pooka 	{ 0, 0, 0,
   3381  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 89 = unrumped */
   3382  1.34     pooka 	{ ns(struct sys_dup2_args), 0,
   3383  1.34     pooka 	    (sy_call_t *)sys_dup2 },			/* 90 = dup2 */
   3384  1.29     pooka 	{ 0, 0, 0,
   3385  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 91 = unimplemented getdopt */
   3386  1.34     pooka 	{ ns(struct sys_fcntl_args), 0,
   3387  1.34     pooka 	    (sy_call_t *)sys_fcntl },			/* 92 = fcntl */
   3388  1.29     pooka 	{ 0, 0, 0,
   3389  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 93 = unrumped */
   3390  1.29     pooka 	{ 0, 0, 0,
   3391  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 94 = unimplemented setdopt */
   3392  1.29     pooka 	{ ns(struct sys_fsync_args), 0,
   3393  1.29     pooka 	    (sy_call_t *)sys_fsync },			/* 95 = fsync */
   3394  1.29     pooka 	{ 0, 0, 0,
   3395  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 96 = unrumped */
   3396  1.29     pooka 	{ 0, 0, 0,
   3397  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 97 = unrumped */
   3398  1.29     pooka 	{ ns(struct sys_connect_args), 0,
   3399  1.29     pooka 	    (sy_call_t *)sys_connect },			/* 98 = connect */
   3400  1.29     pooka 	{ 0, 0, 0,
   3401  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 99 = unrumped */
   3402  1.29     pooka 	{ 0, 0, 0,
   3403  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 100 = unrumped */
   3404  1.29     pooka 	{ 0, 0, 0,
   3405  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 101 = unrumped */
   3406  1.29     pooka 	{ 0, 0, 0,
   3407  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 102 = unrumped */
   3408  1.29     pooka 	{ 0, 0, 0,
   3409  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 103 = unrumped */
   3410  1.29     pooka 	{ ns(struct sys_bind_args), 0,
   3411  1.29     pooka 	    (sy_call_t *)sys_bind },			/* 104 = bind */
   3412  1.29     pooka 	{ ns(struct sys_setsockopt_args), 0,
   3413  1.29     pooka 	    (sy_call_t *)sys_setsockopt },		/* 105 = setsockopt */
   3414  1.29     pooka 	{ ns(struct sys_listen_args), 0,
   3415  1.29     pooka 	    (sy_call_t *)sys_listen },			/* 106 = listen */
   3416  1.29     pooka 	{ 0, 0, 0,
   3417  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 107 = obsolete vtimes */
   3418  1.29     pooka 	{ 0, 0, 0,
   3419  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 108 = unrumped */
   3420  1.29     pooka 	{ 0, 0, 0,
   3421  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 109 = unrumped */
   3422  1.29     pooka 	{ 0, 0, 0,
   3423  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 110 = unrumped */
   3424  1.29     pooka 	{ 0, 0, 0,
   3425  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 111 = unrumped */
   3426  1.29     pooka 	{ 0, 0, 0,
   3427  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 112 = unrumped */
   3428  1.29     pooka 	{ 0, 0, 0,
   3429  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 113 = unrumped */
   3430  1.29     pooka 	{ 0, 0, 0,
   3431  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 114 = unrumped */
   3432  1.29     pooka 	{ 0, 0, 0,
   3433  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 115 = obsolete vtrace */
   3434  1.29     pooka 	{ 0, 0, 0,
   3435  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 116 = unrumped */
   3436  1.29     pooka 	{ 0, 0, 0,
   3437  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 117 = unrumped */
   3438  1.29     pooka 	{ ns(struct sys_getsockopt_args), 0,
   3439  1.29     pooka 	    (sy_call_t *)sys_getsockopt },		/* 118 = getsockopt */
   3440  1.29     pooka 	{ 0, 0, 0,
   3441  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 119 = obsolete resuba */
   3442  1.34     pooka 	{ ns(struct sys_readv_args), 0,
   3443  1.34     pooka 	    (sy_call_t *)sys_readv },			/* 120 = readv */
   3444  1.34     pooka 	{ ns(struct sys_writev_args), 0,
   3445  1.34     pooka 	    (sy_call_t *)sys_writev },			/* 121 = writev */
   3446  1.29     pooka 	{ 0, 0, 0,
   3447  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 122 = unrumped */
   3448  1.34     pooka 	{ ns(struct sys_fchown_args), 0,
   3449  1.34     pooka 	    (sy_call_t *)sys_fchown },			/* 123 = fchown */
   3450  1.34     pooka 	{ ns(struct sys_fchmod_args), 0,
   3451  1.34     pooka 	    (sy_call_t *)sys_fchmod },			/* 124 = fchmod */
   3452  1.29     pooka 	{ 0, 0, 0,
   3453  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 125 = unrumped */
   3454  1.49     pooka 	{ ns(struct sys_setreuid_args), 0,
   3455  1.49     pooka 	    (sy_call_t *)sys_setreuid },		/* 126 = setreuid */
   3456  1.49     pooka 	{ ns(struct sys_setregid_args), 0,
   3457  1.49     pooka 	    (sy_call_t *)sys_setregid },		/* 127 = setregid */
   3458  1.29     pooka 	{ ns(struct sys_rename_args), 0,
   3459  1.29     pooka 	    (sy_call_t *)sys_rename },			/* 128 = rename */
   3460  1.29     pooka 	{ 0, 0, 0,
   3461  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 129 = unrumped */
   3462  1.29     pooka 	{ 0, 0, 0,
   3463  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 130 = unrumped */
   3464  1.34     pooka 	{ ns(struct sys_flock_args), 0,
   3465  1.34     pooka 	    (sy_call_t *)sys_flock },			/* 131 = flock */
   3466  1.29     pooka 	{ ns(struct sys_mkfifo_args), 0,
   3467  1.29     pooka 	    (sy_call_t *)sys_mkfifo },			/* 132 = mkfifo */
   3468  1.29     pooka 	{ ns(struct sys_sendto_args), 0,
   3469  1.29     pooka 	    (sy_call_t *)sys_sendto },			/* 133 = sendto */
   3470  1.29     pooka 	{ ns(struct sys_shutdown_args), 0,
   3471  1.29     pooka 	    (sy_call_t *)sys_shutdown },		/* 134 = shutdown */
   3472  1.29     pooka 	{ ns(struct sys_socketpair_args), 0,
   3473  1.29     pooka 	    (sy_call_t *)sys_socketpair },		/* 135 = socketpair */
   3474  1.29     pooka 	{ ns(struct sys_mkdir_args), 0,
   3475  1.29     pooka 	    (sy_call_t *)sys_mkdir },			/* 136 = mkdir */
   3476  1.29     pooka 	{ ns(struct sys_rmdir_args), 0,
   3477  1.29     pooka 	    (sy_call_t *)sys_rmdir },			/* 137 = rmdir */
   3478  1.29     pooka 	{ 0, 0, 0,
   3479  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 138 = unrumped */
   3480  1.29     pooka 	{ 0, 0, 0,
   3481  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 139 = obsolete 4.2 sigreturn */
   3482  1.29     pooka 	{ 0, 0, 0,
   3483  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 140 = unrumped */
   3484  1.29     pooka 	{ 0, 0, 0,
   3485  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 141 = unrumped */
   3486  1.29     pooka 	{ 0, 0, 0,
   3487  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 142 = unrumped */
   3488  1.29     pooka 	{ 0, 0, 0,
   3489  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 143 = unrumped */
   3490  1.29     pooka 	{ 0, 0, 0,
   3491  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 144 = unrumped */
   3492  1.29     pooka 	{ 0, 0, 0,
   3493  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 145 = unrumped */
   3494  1.29     pooka 	{ 0, 0, 0,
   3495  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 146 = unrumped */
   3496  1.29     pooka 	{ 0, 0, 0,
   3497  1.49     pooka 	    (sy_call_t *)sys_setsid },			/* 147 = setsid */
   3498  1.29     pooka 	{ 0, 0, 0,
   3499  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 148 = unrumped */
   3500  1.29     pooka 	{ 0, 0, 0,
   3501  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 149 = unrumped */
   3502  1.29     pooka 	{ 0, 0, 0,
   3503  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 150 = unrumped */
   3504  1.29     pooka 	{ 0, 0, 0,
   3505  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 151 = unimplemented */
   3506  1.29     pooka 	{ 0, 0, 0,
   3507  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 152 = unimplemented */
   3508  1.29     pooka 	{ 0, 0, 0,
   3509  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 153 = unimplemented */
   3510  1.29     pooka 	{ 0, 0, 0,
   3511  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 154 = unimplemented */
   3512  1.29     pooka 	{ ns(struct sys_nfssvc_args), 0,
   3513  1.29     pooka 	    (sy_call_t *)sys_nomodule },		/* 155 = nfssvc */
   3514  1.29     pooka 	{ 0, 0, 0,
   3515  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 156 = unrumped */
   3516  1.29     pooka 	{ 0, 0, 0,
   3517  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 157 = unrumped */
   3518  1.29     pooka 	{ 0, 0, 0,
   3519  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 158 = unrumped */
   3520  1.29     pooka 	{ 0, 0, 0,
   3521  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 159 = unimplemented */
   3522  1.29     pooka 	{ 0, 0, 0,
   3523  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 160 = unimplemented */
   3524  1.29     pooka 	{ 0, 0, 0,
   3525  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 161 = unrumped */
   3526  1.29     pooka 	{ 0, 0, 0,
   3527  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 162 = unrumped */
   3528  1.29     pooka 	{ 0, 0, 0,
   3529  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 163 = unrumped */
   3530  1.29     pooka 	{ 0, 0, 0,
   3531  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 164 = unrumped */
   3532  1.29     pooka 	{ 0, 0, 0,
   3533  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 165 = unrumped */
   3534  1.29     pooka 	{ 0, 0, 0,
   3535  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 166 = unimplemented */
   3536  1.29     pooka 	{ 0, 0, 0,
   3537  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 167 = unimplemented */
   3538  1.29     pooka 	{ 0, 0, 0,
   3539  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 168 = unimplemented */
   3540  1.29     pooka #if (defined(SYSVSEM) || !defined(_KERNEL_OPT)) && !defined(_LP64)
   3541  1.29     pooka 	{ 0, 0, 0,
   3542  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 169 = unrumped */
   3543  1.29     pooka #else
   3544  1.29     pooka 	{ 0, 0, 0,
   3545  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 169 = excluded 1.0 semsys */
   3546  1.29     pooka #endif
   3547  1.29     pooka #if (defined(SYSVMSG) || !defined(_KERNEL_OPT)) && !defined(_LP64)
   3548  1.29     pooka 	{ 0, 0, 0,
   3549  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 170 = unrumped */
   3550  1.29     pooka #else
   3551  1.29     pooka 	{ 0, 0, 0,
   3552  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 170 = excluded 1.0 msgsys */
   3553  1.29     pooka #endif
   3554  1.29     pooka #if (defined(SYSVSHM) || !defined(_KERNEL_OPT)) && !defined(_LP64)
   3555  1.29     pooka 	{ 0, 0, 0,
   3556  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 171 = unrumped */
   3557  1.29     pooka #else
   3558  1.29     pooka 	{ 0, 0, 0,
   3559  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 171 = excluded 1.0 shmsys */
   3560  1.29     pooka #endif
   3561  1.29     pooka 	{ 0, 0, 0,
   3562  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 172 = unimplemented */
   3563  1.29     pooka 	{ ns(struct sys_pread_args), 0,
   3564  1.29     pooka 	    (sy_call_t *)sys_pread },			/* 173 = pread */
   3565  1.29     pooka 	{ ns(struct sys_pwrite_args), 0,
   3566  1.29     pooka 	    (sy_call_t *)sys_pwrite },			/* 174 = pwrite */
   3567  1.29     pooka 	{ 0, 0, 0,
   3568  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 175 = unrumped */
   3569  1.29     pooka #if defined(NTP) || !defined(_KERNEL_OPT)
   3570  1.29     pooka 	{ 0, 0, 0,
   3571  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 176 = unrumped */
   3572  1.29     pooka #else
   3573  1.29     pooka 	{ 0, 0, 0,
   3574  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 176 = excluded ntp_adjtime */
   3575  1.29     pooka #endif
   3576  1.29     pooka 	{ 0, 0, 0,
   3577  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 177 = unimplemented */
   3578  1.29     pooka 	{ 0, 0, 0,
   3579  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 178 = unimplemented */
   3580  1.29     pooka 	{ 0, 0, 0,
   3581  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 179 = unimplemented */
   3582  1.29     pooka 	{ 0, 0, 0,
   3583  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 180 = unimplemented */
   3584  1.49     pooka 	{ ns(struct sys_setgid_args), 0,
   3585  1.49     pooka 	    (sy_call_t *)sys_setgid },			/* 181 = setgid */
   3586  1.49     pooka 	{ ns(struct sys_setegid_args), 0,
   3587  1.49     pooka 	    (sy_call_t *)sys_setegid },			/* 182 = setegid */
   3588  1.49     pooka 	{ ns(struct sys_seteuid_args), 0,
   3589  1.49     pooka 	    (sy_call_t *)sys_seteuid },			/* 183 = seteuid */
   3590  1.29     pooka 	{ 0, 0, 0,
   3591  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 184 = unrumped */
   3592  1.29     pooka 	{ 0, 0, 0,
   3593  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 185 = unrumped */
   3594  1.29     pooka 	{ 0, 0, 0,
   3595  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 186 = unrumped */
   3596  1.29     pooka 	{ 0, 0, 0,
   3597  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 187 = unrumped */
   3598  1.29     pooka 	{ 0, 0, 0,
   3599  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 188 = unrumped */
   3600  1.29     pooka 	{ 0, 0, 0,
   3601  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 189 = unrumped */
   3602  1.29     pooka 	{ 0, 0, 0,
   3603  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 190 = unrumped */
   3604  1.45     njoly 	{ ns(struct sys_pathconf_args), 0,
   3605  1.45     njoly 	    (sy_call_t *)sys_pathconf },		/* 191 = pathconf */
   3606  1.45     njoly 	{ ns(struct sys_fpathconf_args), 0,
   3607  1.45     njoly 	    (sy_call_t *)sys_fpathconf },		/* 192 = fpathconf */
   3608  1.29     pooka 	{ 0, 0, 0,
   3609  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 193 = unimplemented */
   3610  1.42     pooka 	{ ns(struct sys_getrlimit_args), 0,
   3611  1.42     pooka 	    (sy_call_t *)sys_getrlimit },		/* 194 = getrlimit */
   3612  1.42     pooka 	{ ns(struct sys_setrlimit_args), 0,
   3613  1.42     pooka 	    (sy_call_t *)sys_setrlimit },		/* 195 = setrlimit */
   3614  1.29     pooka 	{ 0, 0, 0,
   3615  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 196 = unrumped */
   3616  1.29     pooka 	{ 0, 0, 0,
   3617  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 197 = unrumped */
   3618  1.29     pooka 	{ 0, 0, 0,
   3619  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 198 = unrumped */
   3620  1.34     pooka 	{ ns(struct sys_lseek_args), 0,
   3621  1.34     pooka 	    (sy_call_t *)sys_lseek },			/* 199 = lseek */
   3622  1.29     pooka 	{ ns(struct sys_truncate_args), 0,
   3623  1.29     pooka 	    (sy_call_t *)sys_truncate },		/* 200 = truncate */
   3624  1.34     pooka 	{ ns(struct sys_ftruncate_args), 0,
   3625  1.34     pooka 	    (sy_call_t *)sys_ftruncate },		/* 201 = ftruncate */
   3626  1.29     pooka 	{ ns(struct sys___sysctl_args), 0,
   3627  1.29     pooka 	    (sy_call_t *)sys___sysctl },		/* 202 = __sysctl */
   3628  1.29     pooka 	{ 0, 0, 0,
   3629  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 203 = unrumped */
   3630  1.29     pooka 	{ 0, 0, 0,
   3631  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 204 = unrumped */
   3632  1.29     pooka 	{ 0, 0, 0,
   3633  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 205 = unrumped */
   3634  1.29     pooka 	{ 0, 0, 0,
   3635  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 206 = unrumped */
   3636  1.49     pooka 	{ ns(struct sys_getpgid_args), 0,
   3637  1.49     pooka 	    (sy_call_t *)sys_getpgid },			/* 207 = getpgid */
   3638  1.34     pooka 	{ ns(struct sys_reboot_args), 0,
   3639  1.34     pooka 	    (sy_call_t *)sys_reboot },			/* 208 = reboot */
   3640  1.34     pooka 	{ ns(struct sys_poll_args), 0,
   3641  1.34     pooka 	    (sy_call_t *)sys_poll },			/* 209 = poll */
   3642  1.29     pooka 	{ 0, 0, 0,
   3643  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 210 = unimplemented */
   3644  1.29     pooka 	{ 0, 0, 0,
   3645  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 211 = unimplemented */
   3646  1.29     pooka 	{ 0, 0, 0,
   3647  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 212 = unimplemented */
   3648  1.29     pooka 	{ 0, 0, 0,
   3649  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 213 = unimplemented */
   3650  1.29     pooka 	{ 0, 0, 0,
   3651  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 214 = unimplemented */
   3652  1.29     pooka 	{ 0, 0, 0,
   3653  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 215 = unimplemented */
   3654  1.29     pooka 	{ 0, 0, 0,
   3655  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 216 = unimplemented */
   3656  1.29     pooka 	{ 0, 0, 0,
   3657  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 217 = unimplemented */
   3658  1.29     pooka 	{ 0, 0, 0,
   3659  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 218 = unimplemented */
   3660  1.29     pooka 	{ 0, 0, 0,
   3661  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 219 = unimplemented */
   3662  1.29     pooka #if defined(SYSVSEM) || !defined(_KERNEL_OPT)
   3663  1.29     pooka 	{ 0, 0, 0,
   3664  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 220 = unrumped */
   3665  1.29     pooka 	{ 0, 0, 0,
   3666  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 221 = unrumped */
   3667  1.29     pooka 	{ 0, 0, 0,
   3668  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 222 = unrumped */
   3669  1.29     pooka 	{ 0, 0, 0,
   3670  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 223 = unrumped */
   3671  1.29     pooka #else
   3672  1.29     pooka 	{ 0, 0, 0,
   3673  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 220 = excluded compat_14_semctl */
   3674  1.29     pooka 	{ 0, 0, 0,
   3675  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 221 = excluded semget */
   3676  1.29     pooka 	{ 0, 0, 0,
   3677  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 222 = excluded semop */
   3678  1.29     pooka 	{ 0, 0, 0,
   3679  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 223 = excluded semconfig */
   3680  1.29     pooka #endif
   3681  1.29     pooka #if defined(SYSVMSG) || !defined(_KERNEL_OPT)
   3682  1.29     pooka 	{ 0, 0, 0,
   3683  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 224 = unrumped */
   3684  1.29     pooka 	{ 0, 0, 0,
   3685  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 225 = unrumped */
   3686  1.29     pooka 	{ 0, 0, 0,
   3687  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 226 = unrumped */
   3688  1.29     pooka 	{ 0, 0, 0,
   3689  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 227 = unrumped */
   3690  1.29     pooka #else
   3691  1.29     pooka 	{ 0, 0, 0,
   3692  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 224 = excluded compat_14_msgctl */
   3693  1.29     pooka 	{ 0, 0, 0,
   3694  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 225 = excluded msgget */
   3695  1.29     pooka 	{ 0, 0, 0,
   3696  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 226 = excluded msgsnd */
   3697  1.29     pooka 	{ 0, 0, 0,
   3698  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 227 = excluded msgrcv */
   3699  1.29     pooka #endif
   3700  1.29     pooka #if defined(SYSVSHM) || !defined(_KERNEL_OPT)
   3701  1.29     pooka 	{ 0, 0, 0,
   3702  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 228 = unrumped */
   3703  1.29     pooka 	{ 0, 0, 0,
   3704  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 229 = unrumped */
   3705  1.29     pooka 	{ 0, 0, 0,
   3706  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 230 = unrumped */
   3707  1.29     pooka 	{ 0, 0, 0,
   3708  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 231 = unrumped */
   3709  1.29     pooka #else
   3710  1.29     pooka 	{ 0, 0, 0,
   3711  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 228 = excluded shmat */
   3712  1.29     pooka 	{ 0, 0, 0,
   3713  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 229 = excluded compat_14_shmctl */
   3714  1.29     pooka 	{ 0, 0, 0,
   3715  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 230 = excluded shmdt */
   3716  1.29     pooka 	{ 0, 0, 0,
   3717  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 231 = excluded shmget */
   3718  1.29     pooka #endif
   3719  1.29     pooka 	{ 0, 0, 0,
   3720  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 232 = unrumped */
   3721  1.29     pooka 	{ 0, 0, 0,
   3722  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 233 = unrumped */
   3723  1.29     pooka 	{ 0, 0, 0,
   3724  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 234 = unrumped */
   3725  1.29     pooka 	{ 0, 0, 0,
   3726  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 235 = unrumped */
   3727  1.29     pooka 	{ 0, 0, 0,
   3728  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 236 = unrumped */
   3729  1.29     pooka 	{ 0, 0, 0,
   3730  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 237 = unrumped */
   3731  1.29     pooka 	{ 0, 0, 0,
   3732  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 238 = unrumped */
   3733  1.29     pooka 	{ 0, 0, 0,
   3734  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 239 = unrumped */
   3735  1.29     pooka 	{ 0, 0, 0,
   3736  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 240 = unrumped */
   3737  1.34     pooka 	{ ns(struct sys_fdatasync_args), 0,
   3738  1.34     pooka 	    (sy_call_t *)sys_fdatasync },		/* 241 = fdatasync */
   3739  1.29     pooka 	{ 0, 0, 0,
   3740  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 242 = unrumped */
   3741  1.29     pooka 	{ 0, 0, 0,
   3742  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 243 = unrumped */
   3743  1.29     pooka 	{ 0, 0, 0,
   3744  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 244 = unrumped */
   3745  1.29     pooka 	{ 0, 0, 0,
   3746  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 245 = unimplemented sys_sigqueue */
   3747  1.38     pooka 	{ ns(struct sys_modctl_args), 0,
   3748  1.38     pooka 	    (sy_call_t *)sys_modctl },			/* 246 = modctl */
   3749  1.46     pooka 	{ ns(struct sys__ksem_init_args), 0,
   3750  1.46     pooka 	    (sy_call_t *)sys_nomodule },		/* 247 = _ksem_init */
   3751  1.46     pooka 	{ ns(struct sys__ksem_open_args), 0,
   3752  1.46     pooka 	    (sy_call_t *)sys_nomodule },		/* 248 = _ksem_open */
   3753  1.46     pooka 	{ ns(struct sys__ksem_unlink_args), 0,
   3754  1.46     pooka 	    (sy_call_t *)sys_nomodule },		/* 249 = _ksem_unlink */
   3755  1.46     pooka 	{ ns(struct sys__ksem_close_args), 0,
   3756  1.46     pooka 	    (sy_call_t *)sys_nomodule },		/* 250 = _ksem_close */
   3757  1.46     pooka 	{ ns(struct sys__ksem_post_args), 0,
   3758  1.46     pooka 	    (sy_call_t *)sys_nomodule },		/* 251 = _ksem_post */
   3759  1.46     pooka 	{ ns(struct sys__ksem_wait_args), 0,
   3760  1.46     pooka 	    (sy_call_t *)sys_nomodule },		/* 252 = _ksem_wait */
   3761  1.46     pooka 	{ ns(struct sys__ksem_trywait_args), 0,
   3762  1.46     pooka 	    (sy_call_t *)sys_nomodule },		/* 253 = _ksem_trywait */
   3763  1.46     pooka 	{ ns(struct sys__ksem_getvalue_args), 0,
   3764  1.46     pooka 	    (sy_call_t *)sys_nomodule },		/* 254 = _ksem_getvalue */
   3765  1.46     pooka 	{ ns(struct sys__ksem_destroy_args), 0,
   3766  1.46     pooka 	    (sy_call_t *)sys_nomodule },		/* 255 = _ksem_destroy */
   3767  1.29     pooka 	{ 0, 0, 0,
   3768  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 256 = unimplemented sys__ksem_timedwait */
   3769  1.29     pooka 	{ 0, 0, 0,
   3770  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 257 = unrumped */
   3771  1.29     pooka 	{ 0, 0, 0,
   3772  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 258 = unrumped */
   3773  1.29     pooka 	{ 0, 0, 0,
   3774  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 259 = unrumped */
   3775  1.29     pooka 	{ 0, 0, 0,
   3776  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 260 = unrumped */
   3777  1.29     pooka 	{ 0, 0, 0,
   3778  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 261 = unrumped */
   3779  1.29     pooka 	{ 0, 0, 0,
   3780  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 262 = unrumped */
   3781  1.29     pooka 	{ 0, 0, 0,
   3782  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 263 = unrumped */
   3783  1.29     pooka 	{ 0, 0, 0,
   3784  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 264 = unrumped */
   3785  1.29     pooka 	{ 0, 0, 0,
   3786  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 265 = unrumped */
   3787  1.29     pooka 	{ 0, 0, 0,
   3788  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 266 = unrumped */
   3789  1.29     pooka 	{ 0, 0, 0,
   3790  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 267 = unimplemented */
   3791  1.29     pooka 	{ 0, 0, 0,
   3792  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 268 = unimplemented */
   3793  1.29     pooka 	{ 0, 0, 0,
   3794  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 269 = unimplemented */
   3795  1.29     pooka 	{ 0, 0, 0,
   3796  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 270 = unrumped */
   3797  1.29     pooka 	{ 0, 0, 0,
   3798  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 271 = unrumped */
   3799  1.29     pooka 	{ 0, 0, 0,
   3800  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 272 = unrumped */
   3801  1.29     pooka 	{ 0, 0, 0,
   3802  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 273 = unrumped */
   3803  1.29     pooka 	{ ns(struct sys_lchmod_args), 0,
   3804  1.29     pooka 	    (sy_call_t *)sys_lchmod },			/* 274 = lchmod */
   3805  1.29     pooka 	{ ns(struct sys_lchown_args), 0,
   3806  1.29     pooka 	    (sy_call_t *)sys_lchown },			/* 275 = lchown */
   3807  1.29     pooka 	{ 0, 0, 0,
   3808  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 276 = unrumped */
   3809  1.29     pooka 	{ 0, 0, 0,
   3810  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 277 = unrumped */
   3811  1.29     pooka 	{ 0, 0, 0,
   3812  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 278 = unrumped */
   3813  1.29     pooka 	{ 0, 0, 0,
   3814  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 279 = unrumped */
   3815  1.29     pooka 	{ 0, 0, 0,
   3816  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 280 = unrumped */
   3817  1.29     pooka 	{ 0, 0, 0,
   3818  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 281 = unrumped */
   3819  1.29     pooka 	{ 0, 0, 0,
   3820  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 282 = unrumped */
   3821  1.29     pooka 	{ 0, 0, 0,
   3822  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 283 = unrumped */
   3823  1.29     pooka 	{ 0, 0, 0,
   3824  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 284 = unrumped */
   3825  1.29     pooka 	{ 0, 0, 0,
   3826  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 285 = unrumped */
   3827  1.49     pooka 	{ ns(struct sys_getsid_args), 0,
   3828  1.49     pooka 	    (sy_call_t *)sys_getsid },			/* 286 = getsid */
   3829  1.29     pooka 	{ 0, 0, 0,
   3830  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 287 = unrumped */
   3831  1.29     pooka 	{ 0, 0, 0,
   3832  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 288 = unrumped */
   3833  1.29     pooka 	{ 0, 0, 0,
   3834  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 289 = unrumped */
   3835  1.29     pooka 	{ 0, 0, 0,
   3836  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 290 = unrumped */
   3837  1.29     pooka 	{ 0, 0, 0,
   3838  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 291 = unrumped */
   3839  1.29     pooka 	{ 0, 0, 0,
   3840  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 292 = unrumped */
   3841  1.29     pooka 	{ 0, 0, 0,
   3842  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 293 = unrumped */
   3843  1.29     pooka 	{ 0, 0, 0,
   3844  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 294 = unrumped */
   3845  1.29     pooka 	{ 0, 0, 0,
   3846  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 295 = unrumped */
   3847  1.51     pooka 	{ ns(struct sys___getcwd_args), 0,
   3848  1.51     pooka 	    (sy_call_t *)sys___getcwd },		/* 296 = __getcwd */
   3849  1.34     pooka 	{ ns(struct sys_fchroot_args), 0,
   3850  1.34     pooka 	    (sy_call_t *)sys_fchroot },			/* 297 = fchroot */
   3851  1.29     pooka 	{ 0, 0, 0,
   3852  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 298 = unrumped */
   3853  1.29     pooka 	{ 0, 0, 0,
   3854  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 299 = unrumped */
   3855  1.29     pooka 	{ 0, 0, 0,
   3856  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 300 = unrumped */
   3857  1.29     pooka #if defined(SYSVSEM) || !defined(_KERNEL_OPT)
   3858  1.29     pooka 	{ 0, 0, 0,
   3859  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 301 = unrumped */
   3860  1.29     pooka #else
   3861  1.29     pooka 	{ 0, 0, 0,
   3862  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 301 = excluded ____semctl13 */
   3863  1.29     pooka #endif
   3864  1.29     pooka #if defined(SYSVMSG) || !defined(_KERNEL_OPT)
   3865  1.29     pooka 	{ 0, 0, 0,
   3866  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 302 = unrumped */
   3867  1.29     pooka #else
   3868  1.29     pooka 	{ 0, 0, 0,
   3869  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 302 = excluded __msgctl13 */
   3870  1.29     pooka #endif
   3871  1.29     pooka #if defined(SYSVSHM) || !defined(_KERNEL_OPT)
   3872  1.29     pooka 	{ 0, 0, 0,
   3873  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 303 = unrumped */
   3874  1.29     pooka #else
   3875  1.29     pooka 	{ 0, 0, 0,
   3876  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 303 = excluded __shmctl13 */
   3877  1.29     pooka #endif
   3878  1.29     pooka 	{ ns(struct sys_lchflags_args), 0,
   3879  1.29     pooka 	    (sy_call_t *)sys_lchflags },		/* 304 = lchflags */
   3880  1.29     pooka 	{ 0, 0, 0,
   3881  1.49     pooka 	    (sy_call_t *)sys_issetugid },		/* 305 = issetugid */
   3882  1.29     pooka 	{ 0, 0, 0,
   3883  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 306 = unrumped */
   3884  1.29     pooka 	{ 0, 0, 0,
   3885  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 307 = unrumped */
   3886  1.29     pooka 	{ 0, 0, 0,
   3887  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 308 = unrumped */
   3888  1.29     pooka 	{ 0, 0, 0,
   3889  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 309 = unrumped */
   3890  1.29     pooka 	{ 0, 0, 0,
   3891  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 310 = unrumped */
   3892  1.29     pooka 	{ 0, 0, 0,
   3893  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 311 = unrumped */
   3894  1.29     pooka 	{ 0, 0, 0,
   3895  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 312 = unrumped */
   3896  1.29     pooka 	{ 0, 0, 0,
   3897  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 313 = unrumped */
   3898  1.29     pooka 	{ 0, 0, 0,
   3899  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 314 = unrumped */
   3900  1.29     pooka 	{ 0, 0, 0,
   3901  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 315 = unrumped */
   3902  1.29     pooka 	{ 0, 0, 0,
   3903  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 316 = unrumped */
   3904  1.29     pooka 	{ 0, 0, 0,
   3905  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 317 = unrumped */
   3906  1.29     pooka 	{ 0, 0, 0,
   3907  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 318 = unrumped */
   3908  1.29     pooka 	{ 0, 0, 0,
   3909  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 319 = unrumped */
   3910  1.29     pooka 	{ 0, 0, 0,
   3911  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 320 = unrumped */
   3912  1.29     pooka 	{ 0, 0, 0,
   3913  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 321 = unrumped */
   3914  1.29     pooka 	{ 0, 0, 0,
   3915  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 322 = unrumped */
   3916  1.29     pooka 	{ 0, 0, 0,
   3917  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 323 = unrumped */
   3918  1.29     pooka 	{ 0, 0, 0,
   3919  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 324 = unrumped */
   3920  1.29     pooka 	{ 0, 0, 0,
   3921  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 325 = unrumped */
   3922  1.29     pooka 	{ 0, 0, 0,
   3923  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 326 = unimplemented */
   3924  1.29     pooka 	{ 0, 0, 0,
   3925  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 327 = unimplemented */
   3926  1.29     pooka 	{ 0, 0, 0,
   3927  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 328 = unimplemented */
   3928  1.29     pooka 	{ 0, 0, 0,
   3929  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 329 = unimplemented */
   3930  1.29     pooka 	{ 0, 0, 0,
   3931  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 330 = unrumped */
   3932  1.29     pooka 	{ 0, 0, 0,
   3933  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 331 = unrumped */
   3934  1.29     pooka 	{ 0, 0, 0,
   3935  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 332 = unrumped */
   3936  1.29     pooka 	{ 0, 0, 0,
   3937  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 333 = unrumped */
   3938  1.29     pooka 	{ 0, 0, 0,
   3939  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 334 = unrumped */
   3940  1.29     pooka 	{ 0, 0, 0,
   3941  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 335 = unrumped */
   3942  1.29     pooka 	{ 0, 0, 0,
   3943  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 336 = obsolete sys_sa_unblockyield */
   3944  1.29     pooka 	{ 0, 0, 0,
   3945  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 337 = unimplemented */
   3946  1.29     pooka 	{ 0, 0, 0,
   3947  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 338 = unimplemented */
   3948  1.29     pooka 	{ 0, 0, 0,
   3949  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 339 = unimplemented */
   3950  1.29     pooka 	{ 0, 0, 0,
   3951  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 340 = unrumped */
   3952  1.29     pooka 	{ 0, 0, 0,
   3953  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 341 = unrumped */
   3954  1.29     pooka 	{ 0, 0, 0,
   3955  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 342 = unrumped */
   3956  1.29     pooka 	{ 0, 0, 0,
   3957  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 343 = unrumped */
   3958  1.29     pooka 	{ 0, 0, 0,
   3959  1.32     pooka 	    (sy_call_t *)sys_kqueue },			/* 344 = kqueue */
   3960  1.29     pooka 	{ 0, 0, 0,
   3961  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 345 = unrumped */
   3962  1.29     pooka 	{ 0, 0, 0,
   3963  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 346 = unrumped */
   3964  1.29     pooka 	{ 0, 0, 0,
   3965  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 347 = unrumped */
   3966  1.29     pooka 	{ 0, 0, 0,
   3967  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 348 = unrumped */
   3968  1.29     pooka 	{ 0, 0, 0,
   3969  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 349 = unrumped */
   3970  1.29     pooka 	{ 0, 0, 0,
   3971  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 350 = unrumped */
   3972  1.29     pooka 	{ 0, 0, 0,
   3973  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 351 = unimplemented */
   3974  1.29     pooka 	{ 0, 0, 0,
   3975  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 352 = unimplemented */
   3976  1.29     pooka 	{ 0, 0, 0,
   3977  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 353 = unimplemented */
   3978  1.34     pooka 	{ ns(struct sys_fsync_range_args), 0,
   3979  1.34     pooka 	    (sy_call_t *)sys_fsync_range },		/* 354 = fsync_range */
   3980  1.29     pooka 	{ 0, 0, 0,
   3981  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 355 = unrumped */
   3982  1.34     pooka 	{ ns(struct sys_getvfsstat_args), 0,
   3983  1.34     pooka 	    (sy_call_t *)sys_getvfsstat },		/* 356 = getvfsstat */
   3984  1.29     pooka 	{ ns(struct sys_statvfs1_args), 0,
   3985  1.29     pooka 	    (sy_call_t *)sys_statvfs1 },		/* 357 = statvfs1 */
   3986  1.34     pooka 	{ ns(struct sys_fstatvfs1_args), 0,
   3987  1.34     pooka 	    (sy_call_t *)sys_fstatvfs1 },		/* 358 = fstatvfs1 */
   3988  1.29     pooka 	{ 0, 0, 0,
   3989  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 359 = unrumped */
   3990  1.34     pooka 	{ ns(struct sys_extattrctl_args), 0,
   3991  1.34     pooka 	    (sy_call_t *)sys_extattrctl },		/* 360 = extattrctl */
   3992  1.34     pooka 	{ ns(struct sys_extattr_set_file_args), 0,
   3993  1.34     pooka 	    (sy_call_t *)sys_extattr_set_file },	/* 361 = extattr_set_file */
   3994  1.34     pooka 	{ ns(struct sys_extattr_get_file_args), 0,
   3995  1.34     pooka 	    (sy_call_t *)sys_extattr_get_file },	/* 362 = extattr_get_file */
   3996  1.34     pooka 	{ ns(struct sys_extattr_delete_file_args), 0,
   3997  1.34     pooka 	    (sy_call_t *)sys_extattr_delete_file },	/* 363 = extattr_delete_file */
   3998  1.34     pooka 	{ ns(struct sys_extattr_set_fd_args), 0,
   3999  1.34     pooka 	    (sy_call_t *)sys_extattr_set_fd },		/* 364 = extattr_set_fd */
   4000  1.34     pooka 	{ ns(struct sys_extattr_get_fd_args), 0,
   4001  1.34     pooka 	    (sy_call_t *)sys_extattr_get_fd },		/* 365 = extattr_get_fd */
   4002  1.34     pooka 	{ ns(struct sys_extattr_delete_fd_args), 0,
   4003  1.34     pooka 	    (sy_call_t *)sys_extattr_delete_fd },	/* 366 = extattr_delete_fd */
   4004  1.34     pooka 	{ ns(struct sys_extattr_set_link_args), 0,
   4005  1.34     pooka 	    (sy_call_t *)sys_extattr_set_link },	/* 367 = extattr_set_link */
   4006  1.34     pooka 	{ ns(struct sys_extattr_get_link_args), 0,
   4007  1.34     pooka 	    (sy_call_t *)sys_extattr_get_link },	/* 368 = extattr_get_link */
   4008  1.34     pooka 	{ ns(struct sys_extattr_delete_link_args), 0,
   4009  1.34     pooka 	    (sy_call_t *)sys_extattr_delete_link },	/* 369 = extattr_delete_link */
   4010  1.34     pooka 	{ ns(struct sys_extattr_list_fd_args), 0,
   4011  1.34     pooka 	    (sy_call_t *)sys_extattr_list_fd },		/* 370 = extattr_list_fd */
   4012  1.34     pooka 	{ ns(struct sys_extattr_list_file_args), 0,
   4013  1.34     pooka 	    (sy_call_t *)sys_extattr_list_file },	/* 371 = extattr_list_file */
   4014  1.34     pooka 	{ ns(struct sys_extattr_list_link_args), 0,
   4015  1.34     pooka 	    (sy_call_t *)sys_extattr_list_link },	/* 372 = extattr_list_link */
   4016  1.29     pooka 	{ 0, 0, 0,
   4017  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 373 = unrumped */
   4018  1.29     pooka 	{ 0, 0, 0,
   4019  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 374 = unrumped */
   4020  1.34     pooka 	{ ns(struct sys_setxattr_args), 0,
   4021  1.34     pooka 	    (sy_call_t *)sys_setxattr },		/* 375 = setxattr */
   4022  1.34     pooka 	{ ns(struct sys_lsetxattr_args), 0,
   4023  1.34     pooka 	    (sy_call_t *)sys_lsetxattr },		/* 376 = lsetxattr */
   4024  1.34     pooka 	{ ns(struct sys_fsetxattr_args), 0,
   4025  1.34     pooka 	    (sy_call_t *)sys_fsetxattr },		/* 377 = fsetxattr */
   4026  1.34     pooka 	{ ns(struct sys_getxattr_args), 0,
   4027  1.34     pooka 	    (sy_call_t *)sys_getxattr },		/* 378 = getxattr */
   4028  1.34     pooka 	{ ns(struct sys_lgetxattr_args), 0,
   4029  1.34     pooka 	    (sy_call_t *)sys_lgetxattr },		/* 379 = lgetxattr */
   4030  1.34     pooka 	{ ns(struct sys_fgetxattr_args), 0,
   4031  1.34     pooka 	    (sy_call_t *)sys_fgetxattr },		/* 380 = fgetxattr */
   4032  1.34     pooka 	{ ns(struct sys_listxattr_args), 0,
   4033  1.34     pooka 	    (sy_call_t *)sys_listxattr },		/* 381 = listxattr */
   4034  1.34     pooka 	{ ns(struct sys_llistxattr_args), 0,
   4035  1.34     pooka 	    (sy_call_t *)sys_llistxattr },		/* 382 = llistxattr */
   4036  1.34     pooka 	{ ns(struct sys_flistxattr_args), 0,
   4037  1.34     pooka 	    (sy_call_t *)sys_flistxattr },		/* 383 = flistxattr */
   4038  1.34     pooka 	{ ns(struct sys_removexattr_args), 0,
   4039  1.34     pooka 	    (sy_call_t *)sys_removexattr },		/* 384 = removexattr */
   4040  1.34     pooka 	{ ns(struct sys_lremovexattr_args), 0,
   4041  1.34     pooka 	    (sy_call_t *)sys_lremovexattr },		/* 385 = lremovexattr */
   4042  1.34     pooka 	{ ns(struct sys_fremovexattr_args), 0,
   4043  1.34     pooka 	    (sy_call_t *)sys_fremovexattr },		/* 386 = fremovexattr */
   4044  1.29     pooka 	{ 0, 0, 0,
   4045  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 387 = unrumped */
   4046  1.29     pooka 	{ 0, 0, 0,
   4047  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 388 = unrumped */
   4048  1.29     pooka 	{ 0, 0, 0,
   4049  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 389 = unrumped */
   4050  1.34     pooka 	{ ns(struct sys___getdents30_args), 0,
   4051  1.34     pooka 	    (sy_call_t *)sys___getdents30 },		/* 390 = __getdents30 */
   4052  1.29     pooka 	{ 0, 0, 0,
   4053  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 391 = ignored old posix_fadvise */
   4054  1.29     pooka 	{ 0, 0, 0,
   4055  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 392 = unrumped */
   4056  1.29     pooka 	{ 0, 0, 0,
   4057  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 393 = unrumped */
   4058  1.29     pooka 	{ ns(struct sys___socket30_args), 0,
   4059  1.29     pooka 	    (sy_call_t *)sys___socket30 },		/* 394 = __socket30 */
   4060  1.29     pooka 	{ ns(struct sys___getfh30_args), 0,
   4061  1.29     pooka 	    (sy_call_t *)sys___getfh30 },		/* 395 = __getfh30 */
   4062  1.36     pooka 	{ ns(struct sys___fhopen40_args), 0,
   4063  1.36     pooka 	    (sy_call_t *)sys___fhopen40 },		/* 396 = __fhopen40 */
   4064  1.36     pooka 	{ ns(struct sys___fhstatvfs140_args), 0,
   4065  1.36     pooka 	    (sy_call_t *)sys___fhstatvfs140 },		/* 397 = __fhstatvfs140 */
   4066  1.29     pooka 	{ 0, 0, 0,
   4067  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 398 = unrumped */
   4068  1.29     pooka 	{ 0, 0, 0,
   4069  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 399 = unrumped */
   4070  1.29     pooka 	{ 0, 0, 0,
   4071  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 400 = unrumped */
   4072  1.29     pooka 	{ 0, 0, 0,
   4073  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 401 = unrumped */
   4074  1.29     pooka 	{ 0, 0, 0,
   4075  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 402 = unrumped */
   4076  1.29     pooka 	{ 0, 0, 0,
   4077  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 403 = unrumped */
   4078  1.29     pooka 	{ 0, 0, 0,
   4079  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 404 = unrumped */
   4080  1.29     pooka 	{ 0, 0, 0,
   4081  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 405 = unrumped */
   4082  1.29     pooka 	{ 0, 0, 0,
   4083  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 406 = unrumped */
   4084  1.29     pooka 	{ 0, 0, 0,
   4085  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 407 = unimplemented */
   4086  1.29     pooka 	{ 0, 0, 0,
   4087  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 408 = unimplemented */
   4088  1.29     pooka 	{ 0, 0, 0,
   4089  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 409 = unimplemented */
   4090  1.33     pooka 	{ ns(struct sys___mount50_args), 0,
   4091  1.33     pooka 	    (sy_call_t *)sys___mount50 },		/* 410 = __mount50 */
   4092  1.29     pooka 	{ 0, 0, 0,
   4093  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 411 = unrumped */
   4094  1.29     pooka 	{ 0, 0, 0,
   4095  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 412 = unrumped */
   4096  1.29     pooka 	{ 0, 0, 0,
   4097  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 413 = unrumped */
   4098  1.29     pooka 	{ 0, 0, 0,
   4099  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 414 = unrumped */
   4100  1.29     pooka 	{ 0, 0, 0,
   4101  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 415 = unrumped */
   4102  1.29     pooka 	{ 0, 0, 0,
   4103  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 416 = unrumped */
   4104  1.34     pooka 	{ ns(struct sys___select50_args), 0,
   4105  1.34     pooka 	    (sy_call_t *)sys___select50 },		/* 417 = __select50 */
   4106  1.29     pooka 	{ 0, 0, 0,
   4107  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 418 = unrumped */
   4108  1.29     pooka 	{ 0, 0, 0,
   4109  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 419 = unrumped */
   4110  1.29     pooka 	{ ns(struct sys___utimes50_args), 0,
   4111  1.29     pooka 	    (sy_call_t *)sys___utimes50 },		/* 420 = __utimes50 */
   4112  1.29     pooka 	{ 0, 0, 0,
   4113  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 421 = unrumped */
   4114  1.29     pooka 	{ 0, 0, 0,
   4115  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 422 = unrumped */
   4116  1.34     pooka 	{ ns(struct sys___futimes50_args), 0,
   4117  1.34     pooka 	    (sy_call_t *)sys___futimes50 },		/* 423 = __futimes50 */
   4118  1.29     pooka 	{ ns(struct sys___lutimes50_args), 0,
   4119  1.29     pooka 	    (sy_call_t *)sys___lutimes50 },		/* 424 = __lutimes50 */
   4120  1.29     pooka 	{ 0, 0, 0,
   4121  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 425 = unrumped */
   4122  1.29     pooka 	{ 0, 0, 0,
   4123  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 426 = unrumped */
   4124  1.29     pooka 	{ 0, 0, 0,
   4125  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 427 = unrumped */
   4126  1.29     pooka 	{ 0, 0, 0,
   4127  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 428 = unrumped */
   4128  1.29     pooka 	{ 0, 0, 0,
   4129  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 429 = unrumped */
   4130  1.29     pooka 	{ 0, 0, 0,
   4131  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 430 = unrumped */
   4132  1.29     pooka 	{ 0, 0, 0,
   4133  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 431 = unrumped */
   4134  1.29     pooka 	{ 0, 0, 0,
   4135  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 432 = unrumped */
   4136  1.29     pooka 	{ 0, 0, 0,
   4137  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 433 = unrumped */
   4138  1.29     pooka 	{ 0, 0, 0,
   4139  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 434 = unrumped */
   4140  1.32     pooka 	{ ns(struct sys___kevent50_args), 0,
   4141  1.32     pooka 	    (sy_call_t *)sys___kevent50 },		/* 435 = __kevent50 */
   4142  1.34     pooka 	{ ns(struct sys___pselect50_args), 0,
   4143  1.34     pooka 	    (sy_call_t *)sys___pselect50 },		/* 436 = __pselect50 */
   4144  1.34     pooka 	{ ns(struct sys___pollts50_args), 0,
   4145  1.34     pooka 	    (sy_call_t *)sys___pollts50 },		/* 437 = __pollts50 */
   4146  1.29     pooka 	{ 0, 0, 0,
   4147  1.52     pooka 	    (sy_call_t *)sys_nomodule }, 		/* 438 = unrumped */
   4148  1.29     pooka 	{ ns(struct sys___stat50_args), 0,
   4149  1.29     pooka 	    (sy_call_t *)sys___stat50 },		/* 439 = __stat50 */
   4150  1.34     pooka 	{ ns(struct sys___fstat50_args), 0,
   4151  1.34     pooka 	    (sy_call_t *)sys___fstat50 },		/* 440 = __fstat50 */
   4152  1.29     pooka 	{ ns(struct sys___lstat50_args), 0,
   4153  1.29     pooka 	    (sy_call_t *)sys___lstat50 },		/* 441 = __lstat50 */
   4154  1.29     pooka #if defined(SYSVSEM) || !defined(_KERNEL_OPT)
   4155  1.29     pooka 	{ 0, 0, 0,
   4156  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 442 = unrumped */
   4157  1.29     pooka #else
   4158  1.29     pooka 	{ 0, 0, 0,
   4159  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 442 = excluded ____semctl50 */
   4160  1.29     pooka #endif
   4161  1.29     pooka #if defined(SYSVSHM) || !defined(_KERNEL_OPT)
   4162  1.29     pooka 	{ 0, 0, 0,
   4163  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 443 = unrumped */
   4164  1.29     pooka #else
   4165  1.29     pooka 	{ 0, 0, 0,
   4166  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 443 = excluded ____shmctl50 */
   4167  1.29     pooka #endif
   4168  1.29     pooka #if defined(SYSVMSG) || !defined(_KERNEL_OPT)
   4169  1.29     pooka 	{ 0, 0, 0,
   4170  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 444 = unrumped */
   4171  1.29     pooka #else
   4172  1.29     pooka 	{ 0, 0, 0,
   4173  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 444 = excluded ____msgctl50 */
   4174  1.29     pooka #endif
   4175  1.29     pooka 	{ 0, 0, 0,
   4176  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 445 = unrumped */
   4177  1.29     pooka 	{ 0, 0, 0,
   4178  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 446 = unrumped */
   4179  1.29     pooka 	{ 0, 0, 0,
   4180  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 447 = unrumped */
   4181  1.29     pooka #if defined(NTP) || !defined(_KERNEL_OPT)
   4182  1.29     pooka 	{ 0, 0, 0,
   4183  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 448 = unrumped */
   4184  1.29     pooka #else
   4185  1.29     pooka 	{ 0, 0, 0,
   4186  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 448 = excluded ___ntp_gettime50 */
   4187  1.29     pooka #endif
   4188  1.29     pooka 	{ 0, 0, 0,
   4189  1.52     pooka 	    (sy_call_t *)rump_enosys }, 		/* 449 = unrumped */
   4190  1.29     pooka 	{ ns(struct sys___mknod50_args), 0,
   4191  1.29     pooka 	    (sy_call_t *)sys___mknod50 },		/* 450 = __mknod50 */
   4192  1.34     pooka 	{ ns(struct sys___fhstat50_args), 0,
   4193  1.34     pooka 	    (sy_call_t *)sys___fhstat50 },		/* 451 = __fhstat50 */
   4194  1.29     pooka 	{ 0, 0, 0,
   4195  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 452 = filler */
   4196  1.29     pooka 	{ 0, 0, 0,
   4197  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 453 = filler */
   4198  1.29     pooka 	{ 0, 0, 0,
   4199  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 454 = filler */
   4200  1.29     pooka 	{ 0, 0, 0,
   4201  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 455 = filler */
   4202  1.29     pooka 	{ 0, 0, 0,
   4203  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 456 = filler */
   4204  1.29     pooka 	{ 0, 0, 0,
   4205  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 457 = filler */
   4206  1.29     pooka 	{ 0, 0, 0,
   4207  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 458 = filler */
   4208  1.29     pooka 	{ 0, 0, 0,
   4209  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 459 = filler */
   4210  1.29     pooka 	{ 0, 0, 0,
   4211  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 460 = filler */
   4212  1.29     pooka 	{ 0, 0, 0,
   4213  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 461 = filler */
   4214  1.29     pooka 	{ 0, 0, 0,
   4215  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 462 = filler */
   4216  1.29     pooka 	{ 0, 0, 0,
   4217  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 463 = filler */
   4218  1.29     pooka 	{ 0, 0, 0,
   4219  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 464 = filler */
   4220  1.29     pooka 	{ 0, 0, 0,
   4221  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 465 = filler */
   4222  1.29     pooka 	{ 0, 0, 0,
   4223  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 466 = filler */
   4224  1.29     pooka 	{ 0, 0, 0,
   4225  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 467 = filler */
   4226  1.29     pooka 	{ 0, 0, 0,
   4227  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 468 = filler */
   4228  1.29     pooka 	{ 0, 0, 0,
   4229  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 469 = filler */
   4230  1.29     pooka 	{ 0, 0, 0,
   4231  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 470 = filler */
   4232  1.29     pooka 	{ 0, 0, 0,
   4233  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 471 = filler */
   4234  1.29     pooka 	{ 0, 0, 0,
   4235  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 472 = filler */
   4236  1.29     pooka 	{ 0, 0, 0,
   4237  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 473 = filler */
   4238  1.29     pooka 	{ 0, 0, 0,
   4239  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 474 = filler */
   4240  1.29     pooka 	{ 0, 0, 0,
   4241  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 475 = filler */
   4242  1.29     pooka 	{ 0, 0, 0,
   4243  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 476 = filler */
   4244  1.29     pooka 	{ 0, 0, 0,
   4245  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 477 = filler */
   4246  1.29     pooka 	{ 0, 0, 0,
   4247  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 478 = filler */
   4248  1.29     pooka 	{ 0, 0, 0,
   4249  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 479 = filler */
   4250  1.29     pooka 	{ 0, 0, 0,
   4251  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 480 = filler */
   4252  1.29     pooka 	{ 0, 0, 0,
   4253  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 481 = filler */
   4254  1.29     pooka 	{ 0, 0, 0,
   4255  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 482 = filler */
   4256  1.29     pooka 	{ 0, 0, 0,
   4257  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 483 = filler */
   4258  1.29     pooka 	{ 0, 0, 0,
   4259  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 484 = filler */
   4260  1.29     pooka 	{ 0, 0, 0,
   4261  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 485 = filler */
   4262  1.29     pooka 	{ 0, 0, 0,
   4263  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 486 = filler */
   4264  1.29     pooka 	{ 0, 0, 0,
   4265  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 487 = filler */
   4266  1.29     pooka 	{ 0, 0, 0,
   4267  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 488 = filler */
   4268  1.29     pooka 	{ 0, 0, 0,
   4269  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 489 = filler */
   4270  1.29     pooka 	{ 0, 0, 0,
   4271  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 490 = filler */
   4272  1.29     pooka 	{ 0, 0, 0,
   4273  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 491 = filler */
   4274  1.29     pooka 	{ 0, 0, 0,
   4275  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 492 = filler */
   4276  1.29     pooka 	{ 0, 0, 0,
   4277  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 493 = filler */
   4278  1.29     pooka 	{ 0, 0, 0,
   4279  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 494 = filler */
   4280  1.29     pooka 	{ 0, 0, 0,
   4281  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 495 = filler */
   4282  1.29     pooka 	{ 0, 0, 0,
   4283  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 496 = filler */
   4284  1.29     pooka 	{ 0, 0, 0,
   4285  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 497 = filler */
   4286  1.29     pooka 	{ 0, 0, 0,
   4287  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 498 = filler */
   4288  1.29     pooka 	{ 0, 0, 0,
   4289  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 499 = filler */
   4290  1.29     pooka 	{ 0, 0, 0,
   4291  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 500 = filler */
   4292  1.29     pooka 	{ 0, 0, 0,
   4293  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 501 = filler */
   4294  1.29     pooka 	{ 0, 0, 0,
   4295  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 502 = filler */
   4296  1.29     pooka 	{ 0, 0, 0,
   4297  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 503 = filler */
   4298  1.29     pooka 	{ 0, 0, 0,
   4299  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 504 = filler */
   4300  1.29     pooka 	{ 0, 0, 0,
   4301  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 505 = filler */
   4302  1.29     pooka 	{ 0, 0, 0,
   4303  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 506 = filler */
   4304  1.29     pooka 	{ 0, 0, 0,
   4305  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 507 = filler */
   4306  1.29     pooka 	{ 0, 0, 0,
   4307  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 508 = filler */
   4308  1.29     pooka 	{ 0, 0, 0,
   4309  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 509 = filler */
   4310  1.29     pooka 	{ 0, 0, 0,
   4311  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 510 = filler */
   4312  1.29     pooka 	{ 0, 0, 0,
   4313  1.29     pooka 	    (sy_call_t *)rump_enosys },			/* 511 = filler */
   4314  1.29     pooka };
   4315  1.29     pooka CTASSERT(__arraycount(rump_sysent) == SYS_NSYSENT);
   4316