This commit is contained in:
thorpej 1999-05-14 18:43:20 +00:00
parent e0a6808cef
commit 5f1b28961e
4 changed files with 80 additions and 21 deletions

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscall.h,v 1.9 1999/05/13 23:43:16 thorpej Exp $ */
/* $NetBSD: linux_syscall.h,v 1.10 1999/05/14 18:43:20 thorpej Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.33 1999/05/13 23:42:34 thorpej Exp
* created from NetBSD: syscalls.master,v 1.34 1999/05/14 18:43:01 thorpej Exp
*/
/* syscall: "syscall" ret: "int" args: */
@ -383,9 +383,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: "struct linux_rt_sigframe *" */
#define LINUX_SYS_rt_sigreturn 173
@ -416,4 +428,7 @@
/* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */
#define LINUX_SYS___getcwd 183
#define LINUX_SYS_MAXSYSCALL 186
/* 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.9 1999/05/13 23:43:16 thorpej Exp $ */
/* $NetBSD: linux_syscallargs.h,v 1.10 1999/05/14 18:43:20 thorpej Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.33 1999/05/13 23:42:34 thorpej Exp
* created from NetBSD: syscalls.master,v 1.34 1999/05/14 18:43:01 thorpej Exp
*/
#ifndef _LINUX_SYS__SYSCALLARGS_H_
@ -357,6 +357,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_sigreturn_args {
syscallarg(struct linux_rt_sigframe *) sfp;
};
@ -523,7 +547,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 *));
@ -534,4 +562,5 @@ int sys_pread __P((struct proc *, void *, register_t *));
int sys_pwrite __P((struct proc *, void *, register_t *));
int linux_sys_chown __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.9 1999/05/13 23:43:16 thorpej Exp $ */
/* $NetBSD: linux_syscalls.c,v 1.10 1999/05/14 18:43:20 thorpej Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.33 1999/05/13 23:42:34 thorpej Exp
* created from NetBSD: syscalls.master,v 1.34 1999/05/14 18:43:01 thorpej Exp
*/
#if defined(_KERNEL) && !defined(_LKM)
@ -187,14 +187,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 */
@ -209,4 +209,9 @@ char *linux_syscallnames[] = {
"__getcwd", /* 183 = __getcwd */
"#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.9 1999/05/13 23:43:16 thorpej Exp $ */
/* $NetBSD: linux_sysent.c,v 1.10 1999/05/14 18:43:21 thorpej Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.33 1999/05/13 23:42:34 thorpej Exp
* created from NetBSD: syscalls.master,v 1.34 1999/05/14 18:43:01 thorpej Exp
*/
#include "opt_compat_43.h"
@ -351,10 +351,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,
@ -363,10 +363,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 */
{ 1, s(struct linux_sys_rt_sigreturn_args),
@ -395,5 +395,15 @@ struct sysent linux_sysent[] = {
sys_nosys }, /* 184 = unimplemented capget */
{ 0, 0,
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 */
};