regen: getcwd
This commit is contained in:
parent
0d2a7de3b6
commit
a9f67b6a36
|
@ -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.
|
* System call protos in rump namespace.
|
||||||
*
|
*
|
||||||
* DO NOT EDIT-- this file is automatically generated.
|
* 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_
|
#ifndef _RUMP_RUMP_SYSCALLS_H_
|
||||||
|
@ -114,6 +114,7 @@ int rump_sys__ksem_destroy(intptr_t);
|
||||||
int rump_sys_lchmod(const char *, mode_t);
|
int rump_sys_lchmod(const char *, mode_t);
|
||||||
int rump_sys_lchown(const char *, uid_t, gid_t);
|
int rump_sys_lchown(const char *, uid_t, gid_t);
|
||||||
pid_t rump_sys_getsid(pid_t);
|
pid_t rump_sys_getsid(pid_t);
|
||||||
|
int rump_sys___getcwd(char *, size_t);
|
||||||
int rump_sys_fchroot(int);
|
int rump_sys_fchroot(int);
|
||||||
int rump_sys_lchflags(const char *, u_long);
|
int rump_sys_lchflags(const char *, u_long);
|
||||||
int rump_sys_issetugid(void);
|
int rump_sys_issetugid(void);
|
||||||
|
|
|
@ -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.
|
* System call vector and marshalling for rump.
|
||||||
*
|
*
|
||||||
* DO NOT EDIT-- this file is automatically generated.
|
* 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>
|
#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/types.h>
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
|
@ -2017,6 +2017,27 @@ rump_sys_getsid(pid_t pid)
|
||||||
}
|
}
|
||||||
__weak_alias(sys_getsid,rump_enosys);
|
__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);
|
||||||
int
|
int
|
||||||
rump_sys_fchroot(int fd)
|
rump_sys_fchroot(int fd)
|
||||||
|
@ -3823,8 +3844,8 @@ struct sysent rump_sysent[] = {
|
||||||
(sy_call_t *)rump_enosys }, /* 294 = unrumped */
|
(sy_call_t *)rump_enosys }, /* 294 = unrumped */
|
||||||
{ 0, 0, 0,
|
{ 0, 0, 0,
|
||||||
(sy_call_t *)sys_nomodule }, /* 295 = unrumped */
|
(sy_call_t *)sys_nomodule }, /* 295 = unrumped */
|
||||||
{ 0, 0, 0,
|
{ ns(struct sys___getcwd_args), 0,
|
||||||
(sy_call_t *)rump_enosys }, /* 296 = unrumped */
|
(sy_call_t *)sys___getcwd }, /* 296 = __getcwd */
|
||||||
{ ns(struct sys_fchroot_args), 0,
|
{ ns(struct sys_fchroot_args), 0,
|
||||||
(sy_call_t *)sys_fchroot }, /* 297 = fchroot */
|
(sy_call_t *)sys_fchroot }, /* 297 = fchroot */
|
||||||
{ 0, 0, 0,
|
{ 0, 0, 0,
|
||||||
|
|
Loading…
Reference in New Issue