regen: kevent and kqueue
This commit is contained in:
parent
ddf9eb29c5
commit
9f7fb39b1d
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rump_syscalls.h,v 1.9 2009/02/20 17:57:46 pooka Exp $ */
|
||||
/* $NetBSD: rump_syscalls.h,v 1.10 2009/03/18 17:52:19 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* System call protos in rump namespace.
|
||||
@ -54,11 +54,13 @@ int rump_sys___sysctl(const int *, u_int, void *, size_t *, const void *, size_t
|
||||
int rump_sys_lchmod(const char *, mode_t);
|
||||
int rump_sys_lchown(const char *, uid_t, gid_t);
|
||||
int rump_sys_lchflags(const char *, u_long);
|
||||
int rump_sys_kqueue(void);
|
||||
int rump_sys_statvfs1(const char *, struct statvfs *, int);
|
||||
int rump_sys_socket(int, int, int) __RENAME(rump_sys___socket30);
|
||||
int rump_sys_getfh(const char *, void *, size_t *) __RENAME(rump_sys___getfh30);
|
||||
int rump_sys_utimes(const char *, const struct timeval *) __RENAME(rump_sys___utimes50);
|
||||
int rump_sys_lutimes(const char *, const struct timeval *) __RENAME(rump_sys___lutimes50);
|
||||
int rump_sys_kevent(int, const struct kevent *, size_t, struct kevent *, size_t, const struct timespec *) __RENAME(rump_sys___kevent50);
|
||||
int rump_sys_stat(const char *, struct stat *) __RENAME(rump_sys___stat50);
|
||||
int rump_sys_lstat(const char *, struct stat *) __RENAME(rump_sys___lstat50);
|
||||
int rump_sys_mknod(const char *, mode_t, dev_t) __RENAME(rump_sys___mknod50);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rump_syscalls.c,v 1.31 2009/03/18 17:30:25 pooka Exp $ */
|
||||
/* $NetBSD: rump_syscalls.c,v 1.32 2009/03/18 17:52:19 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* System call vector and marshalling for rump.
|
||||
@ -8,7 +8,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.31 2009/03/18 17:30:25 pooka Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.32 2009/03/18 17:52:19 pooka Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
@ -964,6 +964,23 @@ rump_sys_lchflags(const char * path, u_long flags)
|
||||
}
|
||||
__weak_alias(sys_lchflags,rump_enosys);
|
||||
|
||||
int rump_sys_kqueue(void);
|
||||
int
|
||||
rump_sys_kqueue(void )
|
||||
{
|
||||
register_t retval = 0;
|
||||
int error = 0;
|
||||
|
||||
error = rump_sysproxy(SYS_kqueue, rump_sysproxy_arg,
|
||||
(uint8_t *)NULL, 0, &retval);
|
||||
if (error) {
|
||||
retval = -1;
|
||||
rumpuser_seterrno(error);
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
__weak_alias(sys_kqueue,rump_enosys);
|
||||
|
||||
int rump_sys_statvfs1(const char *, struct statvfs *, int);
|
||||
int
|
||||
rump_sys_statvfs1(const char * path, struct statvfs * buf, int flags)
|
||||
@ -1072,6 +1089,31 @@ rump_sys___lutimes50(const char * path, const struct timeval * tptr)
|
||||
}
|
||||
__weak_alias(sys___lutimes50,rump_enosys);
|
||||
|
||||
int rump_sys___kevent50(int, const struct kevent *, size_t, struct kevent *, size_t, const struct timespec *);
|
||||
int
|
||||
rump_sys___kevent50(int fd, const struct kevent * changelist, size_t nchanges, struct kevent * eventlist, size_t nevents, const struct timespec * timeout)
|
||||
{
|
||||
register_t retval = 0;
|
||||
int error = 0;
|
||||
struct sys___kevent50_args callarg;
|
||||
|
||||
SPARG(&callarg, fd) = fd;
|
||||
SPARG(&callarg, changelist) = changelist;
|
||||
SPARG(&callarg, nchanges) = nchanges;
|
||||
SPARG(&callarg, eventlist) = eventlist;
|
||||
SPARG(&callarg, nevents) = nevents;
|
||||
SPARG(&callarg, timeout) = timeout;
|
||||
|
||||
error = rump_sysproxy(SYS___kevent50, rump_sysproxy_arg,
|
||||
(uint8_t *)&callarg, sizeof(callarg), &retval);
|
||||
if (error) {
|
||||
retval = -1;
|
||||
rumpuser_seterrno(error);
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
__weak_alias(sys___kevent50,rump_enosys);
|
||||
|
||||
int rump_sys___stat50(const char *, struct stat *);
|
||||
int
|
||||
rump_sys___stat50(const char * path, struct stat * ub)
|
||||
@ -1909,7 +1951,7 @@ struct sysent rump_sysent[] = {
|
||||
{ 0, 0, 0,
|
||||
(sy_call_t *)rump_enosys }, /* 343 = unrumped */
|
||||
{ 0, 0, 0,
|
||||
(sy_call_t *)rump_enosys }, /* 344 = unrumped */
|
||||
(sy_call_t *)sys_kqueue }, /* 344 = kqueue */
|
||||
{ 0, 0, 0,
|
||||
(sy_call_t *)rump_enosys }, /* 345 = unrumped */
|
||||
{ 0, 0, 0,
|
||||
@ -2095,8 +2137,8 @@ struct sysent rump_sysent[] = {
|
||||
(sy_call_t *)rump_enosys }, /* 433 = unrumped */
|
||||
{ 0, 0, 0,
|
||||
(sy_call_t *)rump_enosys }, /* 434 = unrumped */
|
||||
{ 0, 0, 0,
|
||||
(sy_call_t *)rump_enosys }, /* 435 = unrumped */
|
||||
{ ns(struct sys___kevent50_args), 0,
|
||||
(sy_call_t *)sys___kevent50 }, /* 435 = __kevent50 */
|
||||
{ 0, 0, 0,
|
||||
(sy_call_t *)rump_enosys }, /* 436 = unrumped */
|
||||
{ 0, 0, 0,
|
||||
|
Loading…
Reference in New Issue
Block a user