This commit is contained in:
bjh21 2002-02-17 22:30:22 +00:00
parent e5087cd2b4
commit d0dfca3108
4 changed files with 38 additions and 19 deletions

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscall.h,v 1.7 2002/02/15 16:47:59 christos Exp $ */
/* $NetBSD: linux_syscall.h,v 1.8 2002/02/17 22:30:24 bjh21 Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.6 2002/01/27 15:27:33 bjh21 Exp
* created from NetBSD: syscalls.master,v 1.8 2002/02/17 22:29:46 bjh21 Exp
*/
/* syscall: "nosys" ret: "int" args: */
@ -466,6 +466,9 @@
/* syscall: "vfork" ret: "int" args: */
#define LINUX_SYS_vfork 190
/* syscall: "ugetrlimit" ret: "int" args: "int" "struct rlimit *" */
#define LINUX_SYS_ugetrlimit 191
/* syscall: "mmap2" ret: "int" args: "void *" "size_t" "int" "int" "int" "off_t" */
#define LINUX_SYS_mmap2 192

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux_syscallargs.h,v 1.7 2002/02/15 16:47:59 christos Exp $ */
/* $NetBSD: linux_syscallargs.h,v 1.8 2002/02/17 22:30:25 bjh21 Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.6 2002/01/27 15:27:33 bjh21 Exp
* created from NetBSD: syscalls.master,v 1.8 2002/02/17 22:29:46 bjh21 Exp
*/
#ifndef _LINUX_SYS__SYSCALLARGS_H_
@ -185,6 +185,16 @@ struct linux_sys_sigpending_args {
syscallarg(linux_old_sigset_t *) set;
};
struct linux_sys_setrlimit_args {
syscallarg(u_int) which;
syscallarg(struct orlimit *) rlp;
};
struct linux_sys_getrlimit_args {
syscallarg(u_int) which;
syscallarg(struct orlimit *) rlp;
};
struct linux_sys_gettimeofday_args {
syscallarg(struct timeval *) tp;
syscallarg(struct timezone *) tzp;
@ -489,6 +499,11 @@ struct linux_sys_sigaltstack_args {
syscallarg(struct linux_sigaltstack *) oss;
};
struct linux_sys_ugetrlimit_args {
syscallarg(int) which;
syscallarg(struct rlimit *) rlp;
};
struct linux_sys_mmap2_args {
syscallarg(void *) addr;
syscallarg(size_t) len;
@ -600,8 +615,8 @@ int sys_setregid(struct proc *, void *, register_t *);
int linux_sys_sigsuspend(struct proc *, void *, register_t *);
int linux_sys_sigpending(struct proc *, void *, register_t *);
int compat_43_sys_sethostname(struct proc *, void *, register_t *);
int compat_43_sys_setrlimit(struct proc *, void *, register_t *);
int compat_43_sys_getrlimit(struct proc *, void *, register_t *);
int linux_sys_setrlimit(struct proc *, void *, register_t *);
int linux_sys_getrlimit(struct proc *, void *, register_t *);
int sys_getrusage(struct proc *, void *, register_t *);
int linux_sys_gettimeofday(struct proc *, void *, register_t *);
int linux_sys_settimeofday(struct proc *, void *, register_t *);
@ -691,6 +706,7 @@ int linux_sys_chown16(struct proc *, void *, register_t *);
int sys___getcwd(struct proc *, void *, register_t *);
int linux_sys_sigaltstack(struct proc *, void *, register_t *);
int sys___vfork14(struct proc *, void *, register_t *);
int linux_sys_ugetrlimit(struct proc *, void *, register_t *);
int linux_sys_mmap2(struct proc *, void *, register_t *);
int linux_sys_truncate64(struct proc *, void *, register_t *);
int sys_ftruncate(struct proc *, void *, register_t *);

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux_syscalls.c,v 1.7 2002/02/15 16:47:59 christos Exp $ */
/* $NetBSD: linux_syscalls.c,v 1.8 2002/02/17 22:30:23 bjh21 Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.6 2002/01/27 15:27:33 bjh21 Exp
* created from NetBSD: syscalls.master,v 1.8 2002/02/17 22:29:46 bjh21 Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.7 2002/02/15 16:47:59 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.8 2002/02/17 22:30:23 bjh21 Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@ -223,7 +223,7 @@ const char *const linux_syscallnames[] = {
"#188 (unimplemented getpmsg)", /* 188 = unimplemented getpmsg */
"#189 (unimplemented putpmsg)", /* 189 = unimplemented putpmsg */
"vfork", /* 190 = vfork */
"#191 (unimplemented getrlimit)", /* 191 = unimplemented getrlimit */
"ugetrlimit", /* 191 = ugetrlimit */
"mmap2", /* 192 = mmap2 */
"truncate64", /* 193 = truncate64 */
"ftruncate64", /* 194 = ftruncate64 */

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux_sysent.c,v 1.7 2002/02/15 16:47:59 christos Exp $ */
/* $NetBSD: linux_sysent.c,v 1.8 2002/02/17 22:30:22 bjh21 Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.6 2002/01/27 15:27:33 bjh21 Exp
* created from NetBSD: syscalls.master,v 1.8 2002/02/17 22:29:46 bjh21 Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.7 2002/02/15 16:47:59 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.8 2002/02/17 22:30:22 bjh21 Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_43.h"
@ -178,10 +178,10 @@ struct sysent linux_sysent[] = {
linux_sys_sigpending }, /* 73 = sigpending */
{ 2, s(struct compat_43_sys_sethostname_args), 0,
compat_43_sys_sethostname }, /* 74 = sethostname */
{ 2, s(struct compat_43_sys_setrlimit_args), 0,
compat_43_sys_setrlimit }, /* 75 = setrlimit */
{ 2, s(struct compat_43_sys_getrlimit_args), 0,
compat_43_sys_getrlimit }, /* 76 = getrlimit */
{ 2, s(struct linux_sys_setrlimit_args), 0,
linux_sys_setrlimit }, /* 75 = setrlimit */
{ 2, s(struct linux_sys_getrlimit_args), 0,
linux_sys_getrlimit }, /* 76 = getrlimit */
{ 2, s(struct sys_getrusage_args), 0,
sys_getrusage }, /* 77 = getrusage */
{ 2, s(struct linux_sys_gettimeofday_args), 0,
@ -415,8 +415,8 @@ struct sysent linux_sysent[] = {
linux_sys_nosys }, /* 189 = unimplemented putpmsg */
{ 0, 0, 0,
sys___vfork14 }, /* 190 = vfork */
{ 0, 0, 0,
linux_sys_nosys }, /* 191 = unimplemented getrlimit */
{ 2, s(struct linux_sys_ugetrlimit_args), 0,
linux_sys_ugetrlimit }, /* 191 = ugetrlimit */
{ 6, s(struct linux_sys_mmap2_args), 0,
linux_sys_mmap2 }, /* 192 = mmap2 */
{ 2, s(struct linux_sys_truncate64_args), 0,