regen: get/setrlimit
This commit is contained in:
parent
593dfe42a8
commit
70e61cdef2
@ -1,10 +1,10 @@
|
||||
/* $NetBSD: rump_syscalls.h,v 1.20 2010/03/05 09:00:26 pooka Exp $ */
|
||||
/* $NetBSD: rump_syscalls.h,v 1.21 2010/04/21 16:18:35 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* System call protos in rump namespace.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from NetBSD: syscalls.master,v 1.232 2010/03/02 19:34:26 pooka Exp
|
||||
* created from NetBSD: syscalls.master,v 1.233 2010/04/21 16:17:04 pooka Exp
|
||||
*/
|
||||
|
||||
#ifdef _RUMPKERNEL
|
||||
@ -66,6 +66,8 @@ int rump_sys_rmdir(const char *);
|
||||
int rump_sys_nfssvc(int, void *);
|
||||
ssize_t rump_sys_pread(int, void *, size_t, off_t);
|
||||
ssize_t rump_sys_pwrite(int, const void *, size_t, off_t);
|
||||
int rump_sys_getrlimit(int, struct rlimit *);
|
||||
int rump_sys_setrlimit(int, const struct rlimit *);
|
||||
off_t rump_sys_lseek(int, off_t, int);
|
||||
int rump_sys_truncate(const char *, off_t);
|
||||
int rump_sys_ftruncate(int, off_t);
|
||||
|
@ -1,14 +1,14 @@
|
||||
/* $NetBSD: rump_syscalls.c,v 1.41 2010/03/05 09:00:26 pooka Exp $ */
|
||||
/* $NetBSD: rump_syscalls.c,v 1.42 2010/04/21 16:18:35 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* System call vector and marshalling for rump.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from NetBSD: syscalls.master,v 1.232 2010/03/02 19:34:26 pooka Exp
|
||||
* created from NetBSD: syscalls.master,v 1.233 2010/04/21 16:17:04 pooka Exp
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.41 2010/03/05 09:00:26 pooka Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.42 2010/04/21 16:18:35 pooka Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
@ -1106,6 +1106,48 @@ rump_sys_pwrite(int fd, const void * buf, size_t nbyte, off_t offset)
|
||||
}
|
||||
__weak_alias(sys_pwrite,rump_enosys);
|
||||
|
||||
int rump_sys_getrlimit(int, struct rlimit *);
|
||||
int
|
||||
rump_sys_getrlimit(int which, struct rlimit * rlp)
|
||||
{
|
||||
register_t rval[2] = {0, 0};
|
||||
int error = 0;
|
||||
struct sys_getrlimit_args callarg;
|
||||
|
||||
SPARG(&callarg, which) = which;
|
||||
SPARG(&callarg, rlp) = rlp;
|
||||
|
||||
error = rump_sysproxy(SYS_getrlimit, rump_sysproxy_arg,
|
||||
(uint8_t *)&callarg, sizeof(callarg), rval);
|
||||
if (error) {
|
||||
rval[0] = -1;
|
||||
rumpuser_seterrno(error);
|
||||
}
|
||||
return rval[0];
|
||||
}
|
||||
__weak_alias(sys_getrlimit,rump_enosys);
|
||||
|
||||
int rump_sys_setrlimit(int, const struct rlimit *);
|
||||
int
|
||||
rump_sys_setrlimit(int which, const struct rlimit * rlp)
|
||||
{
|
||||
register_t rval[2] = {0, 0};
|
||||
int error = 0;
|
||||
struct sys_setrlimit_args callarg;
|
||||
|
||||
SPARG(&callarg, which) = which;
|
||||
SPARG(&callarg, rlp) = rlp;
|
||||
|
||||
error = rump_sysproxy(SYS_setrlimit, rump_sysproxy_arg,
|
||||
(uint8_t *)&callarg, sizeof(callarg), rval);
|
||||
if (error) {
|
||||
rval[0] = -1;
|
||||
rumpuser_seterrno(error);
|
||||
}
|
||||
return rval[0];
|
||||
}
|
||||
__weak_alias(sys_setrlimit,rump_enosys);
|
||||
|
||||
off_t rump_sys_lseek(int, off_t, int);
|
||||
off_t
|
||||
rump_sys_lseek(int fd, off_t offset, int whence)
|
||||
@ -2877,10 +2919,10 @@ struct sysent rump_sysent[] = {
|
||||
(sy_call_t *)rump_enosys }, /* 192 = unrumped */
|
||||
{ 0, 0, 0,
|
||||
(sy_call_t *)rump_enosys }, /* 193 = unimplemented */
|
||||
{ 0, 0, 0,
|
||||
(sy_call_t *)rump_enosys }, /* 194 = unrumped */
|
||||
{ 0, 0, 0,
|
||||
(sy_call_t *)rump_enosys }, /* 195 = unrumped */
|
||||
{ ns(struct sys_getrlimit_args), 0,
|
||||
(sy_call_t *)sys_getrlimit }, /* 194 = getrlimit */
|
||||
{ ns(struct sys_setrlimit_args), 0,
|
||||
(sy_call_t *)sys_setrlimit }, /* 195 = setrlimit */
|
||||
{ 0, 0, 0,
|
||||
(sy_call_t *)rump_enosys }, /* 196 = unrumped */
|
||||
{ 0, 0, 0,
|
||||
|
Loading…
Reference in New Issue
Block a user