Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump regen: get/setrlimit
details: https://anonhg.NetBSD.org/src/rev/a058e35f9c68
branches: trunk
changeset: 754139:a058e35f9c68
user: pooka <pooka%NetBSD.org@localhost>
date: Wed Apr 21 16:18:35 2010 +0000
description:
regen: get/setrlimit
diffstat:
sys/rump/include/rump/rump_syscalls.h | 6 ++-
sys/rump/librump/rumpkern/rump_syscalls.c | 56 +++++++++++++++++++++++++++---
2 files changed, 53 insertions(+), 9 deletions(-)
diffs (110 lines):
diff -r 93726bf19d14 -r a058e35f9c68 sys/rump/include/rump/rump_syscalls.h
--- a/sys/rump/include/rump/rump_syscalls.h Wed Apr 21 16:17:04 2010 +0000
+++ b/sys/rump/include/rump/rump_syscalls.h Wed Apr 21 16:18:35 2010 +0000
@@ -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_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);
diff -r 93726bf19d14 -r a058e35f9c68 sys/rump/librump/rumpkern/rump_syscalls.c
--- a/sys/rump/librump/rumpkern/rump_syscalls.c Wed Apr 21 16:17:04 2010 +0000
+++ b/sys/rump/librump/rumpkern/rump_syscalls.c Wed Apr 21 16:18:35 2010 +0000
@@ -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 @@
}
__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 @@
(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,
Home |
Main Index |
Thread Index |
Old Index