This commit is contained in:
thorpej 1999-05-14 18:44:15 +00:00
parent a03622b33f
commit dd623ce325
4 changed files with 77 additions and 21 deletions

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscall.h,v 1.6 1999/05/13 23:43:16 thorpej Exp $ */
/* $NetBSD: linux_syscall.h,v 1.7 1999/05/14 18:44:15 thorpej Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.6 1999/05/13 23:42:34 thorpej Exp
* created from NetBSD: syscalls.master,v 1.7 1999/05/14 18:43:58 thorpej Exp
*/
/* syscall: "syscall" ret: "int" args: */
@ -369,9 +369,21 @@
/* syscall: "mremap" ret: "void *" args: "void *" "size_t" "size_t" "u_long" */
#define LINUX_SYS_mremap 163
/* syscall: "setresuid" ret: "int" args: "uid_t" "uid_t" "uid_t" */
#define LINUX_SYS_setresuid 164
/* syscall: "getresuid" ret: "int" args: "uid_t *" "uid_t *" "uid_t *" */
#define LINUX_SYS_getresuid 165
/* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */
#define LINUX_SYS_poll 168
/* syscall: "setresgid" ret: "int" args: "gid_t" "gid_t" "gid_t" */
#define LINUX_SYS_setresgid 170
/* syscall: "getresgid" ret: "int" args: "gid_t *" "gid_t *" "gid_t *" */
#define LINUX_SYS_getresgid 171
/* syscall: "rt_sigreturn" ret: "int" args: */
#define LINUX_SYS_rt_sigreturn 173
@ -402,4 +414,7 @@
/* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */
#define LINUX_SYS___getcwd 183
#define LINUX_SYS_MAXSYSCALL 187
/* syscall: "__vfork14" ret: "int" args: */
#define LINUX_SYS___vfork14 190
#define LINUX_SYS_MAXSYSCALL 191

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscallargs.h,v 1.6 1999/05/13 23:43:16 thorpej Exp $ */
/* $NetBSD: linux_syscallargs.h,v 1.7 1999/05/14 18:44:15 thorpej Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.6 1999/05/13 23:42:34 thorpej Exp
* created from NetBSD: syscalls.master,v 1.7 1999/05/14 18:43:58 thorpej Exp
*/
#ifndef _LINUX_SYS__SYSCALLARGS_H_
@ -332,6 +332,30 @@ struct linux_sys_mremap_args {
syscallarg(u_long) flags;
};
struct linux_sys_setresuid_args {
syscallarg(uid_t) ruid;
syscallarg(uid_t) euid;
syscallarg(uid_t) suid;
};
struct linux_sys_getresuid_args {
syscallarg(uid_t *) ruid;
syscallarg(uid_t *) euid;
syscallarg(uid_t *) suid;
};
struct linux_sys_setresgid_args {
syscallarg(gid_t) rgid;
syscallarg(gid_t) egid;
syscallarg(gid_t) sgid;
};
struct linux_sys_getresgid_args {
syscallarg(gid_t *) rgid;
syscallarg(gid_t *) egid;
syscallarg(gid_t *) sgid;
};
struct linux_sys_rt_sigaction_args {
syscallarg(int) signum;
syscallarg(const struct linux_sigaction *) nsa;
@ -507,7 +531,11 @@ int sys_mlock __P((struct proc *, void *, register_t *));
int sys_munlock __P((struct proc *, void *, register_t *));
int sys_nanosleep __P((struct proc *, void *, register_t *));
int linux_sys_mremap __P((struct proc *, void *, register_t *));
int linux_sys_setresuid __P((struct proc *, void *, register_t *));
int linux_sys_getresuid __P((struct proc *, void *, register_t *));
int sys_poll __P((struct proc *, void *, register_t *));
int linux_sys_setresgid __P((struct proc *, void *, register_t *));
int linux_sys_getresgid __P((struct proc *, void *, register_t *));
int linux_sys_rt_sigreturn __P((struct proc *, void *, register_t *));
int linux_sys_rt_sigaction __P((struct proc *, void *, register_t *));
int linux_sys_rt_sigprocmask __P((struct proc *, void *, register_t *));
@ -518,4 +546,5 @@ int sys_pread __P((struct proc *, void *, register_t *));
int sys_pwrite __P((struct proc *, void *, register_t *));
int linux_sys_lchown __P((struct proc *, void *, register_t *));
int sys___getcwd __P((struct proc *, void *, register_t *));
int sys___vfork14 __P((struct proc *, void *, register_t *));
#endif /* _LINUX_SYS__SYSCALLARGS_H_ */

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscalls.c,v 1.6 1999/05/13 23:43:16 thorpej Exp $ */
/* $NetBSD: linux_syscalls.c,v 1.7 1999/05/14 18:44:15 thorpej Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.6 1999/05/13 23:42:34 thorpej Exp
* created from NetBSD: syscalls.master,v 1.7 1999/05/14 18:43:58 thorpej Exp
*/
#if defined(_KERNEL) && !defined(_LKM)
@ -214,14 +214,14 @@ char *linux_syscallnames[] = {
"#161 (unimplemented sched_rr_get_interval)", /* 161 = unimplemented sched_rr_get_interval */
"nanosleep", /* 162 = nanosleep */
"mremap", /* 163 = mremap */
"#164 (unimplemented setresuid)", /* 164 = unimplemented setresuid */
"#165 (unimplemented getresuid)", /* 165 = unimplemented getresuid */
"setresuid", /* 164 = setresuid */
"getresuid", /* 165 = getresuid */
"#166 (unimplemented vm86)", /* 166 = unimplemented vm86 */
"#167 (unimplemented query_module)", /* 167 = unimplemented query_module */
"poll", /* 168 = poll */
"#169 (unimplemented nfsservctl)", /* 169 = unimplemented nfsservctl */
"#170 (unimplemented setresgid)", /* 170 = unimplemented setresgid */
"#171 (unimplemented setresgid)", /* 171 = unimplemented setresgid */
"setresgid", /* 170 = setresgid */
"getresgid", /* 171 = getresgid */
"#172 (unimplemented prctl)", /* 172 = unimplemented prctl */
"rt_sigreturn", /* 173 = rt_sigreturn */
"rt_sigaction", /* 174 = rt_sigaction */
@ -237,4 +237,8 @@ char *linux_syscallnames[] = {
"#184 (unimplemented capget)", /* 184 = unimplemented capget */
"#185 (unimplemented capset)", /* 185 = unimplemented capset */
"#186 (unimplemented sigaltstack)", /* 186 = unimplemented sigaltstack */
"#187 (unimplemented sendfile)", /* 187 = unimplemented sendfile */
"#188 (unimplemented getpmsg)", /* 188 = unimplemented getpmsg */
"#189 (unimplemented putpmsg)", /* 189 = unimplemented putpmsg */
"__vfork14", /* 190 = __vfork14 */
};

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_sysent.c,v 1.6 1999/05/13 23:43:16 thorpej Exp $ */
/* $NetBSD: linux_sysent.c,v 1.7 1999/05/14 18:44:15 thorpej Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.6 1999/05/13 23:42:34 thorpej Exp
* created from NetBSD: syscalls.master,v 1.7 1999/05/14 18:43:58 thorpej Exp
*/
#include "opt_compat_netbsd.h"
@ -386,10 +386,10 @@ struct sysent linux_sysent[] = {
sys_nanosleep }, /* 162 = nanosleep */
{ 4, s(struct linux_sys_mremap_args),
linux_sys_mremap }, /* 163 = mremap */
{ 0, 0,
sys_nosys }, /* 164 = unimplemented setresuid */
{ 0, 0,
sys_nosys }, /* 165 = unimplemented getresuid */
{ 3, s(struct linux_sys_setresuid_args),
linux_sys_setresuid }, /* 164 = setresuid */
{ 3, s(struct linux_sys_getresuid_args),
linux_sys_getresuid }, /* 165 = getresuid */
{ 0, 0,
sys_nosys }, /* 166 = unimplemented vm86 */
{ 0, 0,
@ -398,10 +398,10 @@ struct sysent linux_sysent[] = {
sys_poll }, /* 168 = poll */
{ 0, 0,
sys_nosys }, /* 169 = unimplemented nfsservctl */
{ 0, 0,
sys_nosys }, /* 170 = unimplemented setresgid */
{ 0, 0,
sys_nosys }, /* 171 = unimplemented setresgid */
{ 3, s(struct linux_sys_setresgid_args),
linux_sys_setresgid }, /* 170 = setresgid */
{ 3, s(struct linux_sys_getresgid_args),
linux_sys_getresgid }, /* 171 = getresgid */
{ 0, 0,
sys_nosys }, /* 172 = unimplemented prctl */
{ 0, 0,
@ -432,5 +432,13 @@ struct sysent linux_sysent[] = {
sys_nosys }, /* 185 = unimplemented capset */
{ 0, 0,
sys_nosys }, /* 186 = unimplemented sigaltstack */
{ 0, 0,
sys_nosys }, /* 187 = unimplemented sendfile */
{ 0, 0,
sys_nosys }, /* 188 = unimplemented getpmsg */
{ 0, 0,
sys_nosys }, /* 189 = unimplemented putpmsg */
{ 0, 0,
sys___vfork14 }, /* 190 = __vfork14 */
};