Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump regen: getcwd
details: https://anonhg.NetBSD.org/src/rev/fb57f711fa1d
branches: trunk
changeset: 757608:fb57f711fa1d
user: pooka <pooka%NetBSD.org@localhost>
date: Tue Sep 07 17:10:48 2010 +0000
description:
regen: getcwd
diffstat:
sys/rump/include/rump/rump_syscalls.h | 5 +++--
sys/rump/librump/rumpkern/rump_syscalls.c | 31 ++++++++++++++++++++++++++-----
2 files changed, 29 insertions(+), 7 deletions(-)
diffs (84 lines):
diff -r 0603cc04db96 -r fb57f711fa1d sys/rump/include/rump/rump_syscalls.h
--- a/sys/rump/include/rump/rump_syscalls.h Tue Sep 07 17:10:08 2010 +0000
+++ b/sys/rump/include/rump/rump_syscalls.h Tue Sep 07 17:10:48 2010 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: rump_syscalls.h,v 1.30 2010/09/06 20:01:31 pooka Exp $ */
+/* $NetBSD: rump_syscalls.h,v 1.31 2010/09/07 17:10:48 pooka Exp $ */
/*
* System call protos in rump namespace.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.237 2010/09/06 20:00:09 pooka Exp
+ * created from NetBSD: syscalls.master,v 1.238 2010/09/07 17:10:08 pooka Exp
*/
#ifndef _RUMP_RUMP_SYSCALLS_H_
@@ -114,6 +114,7 @@
int rump_sys_lchmod(const char *, mode_t);
int rump_sys_lchown(const char *, uid_t, gid_t);
pid_t rump_sys_getsid(pid_t);
+int rump_sys___getcwd(char *, size_t);
int rump_sys_fchroot(int);
int rump_sys_lchflags(const char *, u_long);
int rump_sys_issetugid(void);
diff -r 0603cc04db96 -r fb57f711fa1d sys/rump/librump/rumpkern/rump_syscalls.c
--- a/sys/rump/librump/rumpkern/rump_syscalls.c Tue Sep 07 17:10:08 2010 +0000
+++ b/sys/rump/librump/rumpkern/rump_syscalls.c Tue Sep 07 17:10:48 2010 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: rump_syscalls.c,v 1.50 2010/09/06 20:01:31 pooka Exp $ */
+/* $NetBSD: rump_syscalls.c,v 1.51 2010/09/07 17:10:48 pooka Exp $ */
/*
* System call vector and marshalling for rump.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.237 2010/09/06 20:00:09 pooka Exp
+ * created from NetBSD: syscalls.master,v 1.238 2010/09/07 17:10:08 pooka Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.50 2010/09/06 20:01:31 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.51 2010/09/07 17:10:48 pooka Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -2017,6 +2017,27 @@
}
__weak_alias(sys_getsid,rump_enosys);
+int rump_sys___getcwd(char *, size_t);
+int
+rump_sys___getcwd(char * bufp, size_t length)
+{
+ register_t rval[2] = {0, 0};
+ int error = 0;
+ struct sys___getcwd_args callarg;
+
+ SPARG(&callarg, bufp) = bufp;
+ SPARG(&callarg, length) = length;
+
+ error = rump_sysproxy(SYS___getcwd, rump_sysproxy_arg,
+ (uint8_t *)&callarg, sizeof(callarg), rval);
+ if (error) {
+ rval[0] = -1;
+ rumpuser_seterrno(error);
+ }
+ return rval[0];
+}
+__weak_alias(sys___getcwd,rump_enosys);
+
int rump_sys_fchroot(int);
int
rump_sys_fchroot(int fd)
@@ -3823,8 +3844,8 @@
(sy_call_t *)rump_enosys }, /* 294 = unrumped */
{ 0, 0, 0,
(sy_call_t *)sys_nomodule }, /* 295 = unrumped */
- { 0, 0, 0,
- (sy_call_t *)rump_enosys }, /* 296 = unrumped */
+ { ns(struct sys___getcwd_args), 0,
+ (sy_call_t *)sys___getcwd }, /* 296 = __getcwd */
{ ns(struct sys_fchroot_args), 0,
(sy_call_t *)sys_fchroot }, /* 297 = fchroot */
{ 0, 0, 0,
Home |
Main Index |
Thread Index |
Old Index