diff --git a/sys/compat/linux/arch/i386/linux_syscall.h b/sys/compat/linux/arch/i386/linux_syscall.h index 53b6eded3957..e087c7d7fe83 100644 --- a/sys/compat/linux/arch/i386/linux_syscall.h +++ b/sys/compat/linux/arch/i386/linux_syscall.h @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.28 2000/12/12 22:23:47 jdolecek Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.29 2000/12/13 21:42:21 augustss Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.49 2000/12/12 22:23:02 jdolecek Exp + * created from NetBSD: syscalls.master,v 1.50 2000/12/13 21:41:46 augustss Exp */ /* syscall: "syscall" ret: "int" args: */ @@ -314,6 +314,9 @@ /* syscall: "swapoff" ret: "int" args: "const char *" */ #define LINUX_SYS_swapoff 115 +/* syscall: "sysinfo" ret: "int" args: "struct linux_sysinfo *" */ +#define LINUX_SYS_sysinfo 116 + /* syscall: "ipc" ret: "int" args: "int" "int" "int" "int" "caddr_t" */ #define LINUX_SYS_ipc 117 diff --git a/sys/compat/linux/arch/i386/linux_syscallargs.h b/sys/compat/linux/arch/i386/linux_syscallargs.h index 6a36cf2b2403..f2b987f80ee3 100644 --- a/sys/compat/linux/arch/i386/linux_syscallargs.h +++ b/sys/compat/linux/arch/i386/linux_syscallargs.h @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.28 2000/12/12 22:23:48 jdolecek Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.29 2000/12/13 21:42:21 augustss Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.49 2000/12/12 22:23:02 jdolecek Exp + * created from NetBSD: syscalls.master,v 1.50 2000/12/13 21:41:46 augustss Exp */ #ifndef _LINUX_SYS__SYSCALLARGS_H_ @@ -299,6 +299,10 @@ struct linux_sys_swapoff_args { syscallarg(const char *) path; }; +struct linux_sys_sysinfo_args { + syscallarg(struct linux_sysinfo *) arg; +}; + struct linux_sys_ipc_args { syscallarg(int) what; syscallarg(int) a1; @@ -626,6 +630,7 @@ int linux_sys_olduname(struct proc *, void *, register_t *); int linux_sys_iopl(struct proc *, void *, register_t *); int linux_sys_wait4(struct proc *, void *, register_t *); int linux_sys_swapoff(struct proc *, void *, register_t *); +int linux_sys_sysinfo(struct proc *, void *, register_t *); int linux_sys_ipc(struct proc *, void *, register_t *); int sys_fsync(struct proc *, void *, register_t *); int linux_sys_sigreturn(struct proc *, void *, register_t *); diff --git a/sys/compat/linux/arch/i386/linux_syscalls.c b/sys/compat/linux/arch/i386/linux_syscalls.c index 0f57da6ccd7f..f6494dadbd11 100644 --- a/sys/compat/linux/arch/i386/linux_syscalls.c +++ b/sys/compat/linux/arch/i386/linux_syscalls.c @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscalls.c,v 1.29 2000/12/12 22:23:47 jdolecek Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.30 2000/12/13 21:42:21 augustss Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.49 2000/12/12 22:23:02 jdolecek Exp + * created from NetBSD: syscalls.master,v 1.50 2000/12/13 21:41:46 augustss Exp */ #if defined(_KERNEL) && !defined(_LKM) @@ -141,7 +141,7 @@ const char *const linux_syscallnames[] = { "#113 (unimplemented vm86old)", /* 113 = unimplemented vm86old */ "wait4", /* 114 = wait4 */ "swapoff", /* 115 = swapoff */ - "#116 (unimplemented sysinfo)", /* 116 = unimplemented sysinfo */ + "sysinfo", /* 116 = sysinfo */ "ipc", /* 117 = ipc */ "fsync", /* 118 = fsync */ "sigreturn", /* 119 = sigreturn */ diff --git a/sys/compat/linux/arch/i386/linux_sysent.c b/sys/compat/linux/arch/i386/linux_sysent.c index 6b5df121aec0..9afe4a0c2b54 100644 --- a/sys/compat/linux/arch/i386/linux_sysent.c +++ b/sys/compat/linux/arch/i386/linux_sysent.c @@ -1,10 +1,10 @@ -/* $NetBSD: linux_sysent.c,v 1.28 2000/12/12 22:23:47 jdolecek Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.29 2000/12/13 21:42:21 augustss Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.49 2000/12/12 22:23:02 jdolecek Exp + * created from NetBSD: syscalls.master,v 1.50 2000/12/13 21:41:46 augustss Exp */ #if defined(_KERNEL) && !defined(_LKM) @@ -257,8 +257,8 @@ struct sysent linux_sysent[] = { linux_sys_wait4 }, /* 114 = wait4 */ { 1, s(struct linux_sys_swapoff_args), linux_sys_swapoff }, /* 115 = swapoff */ - { 0, 0, - sys_nosys }, /* 116 = unimplemented sysinfo */ + { 1, s(struct linux_sys_sysinfo_args), + linux_sys_sysinfo }, /* 116 = sysinfo */ { 5, s(struct linux_sys_ipc_args), linux_sys_ipc }, /* 117 = ipc */ { 1, s(struct sys_fsync_args),