diff options
| author | christos <christos@NetBSD.org> | 2002-03-22 15:11:23 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2002-03-22 15:11:23 +0000 |
| commit | 92945f57feb4645a3d3ab30bb2267415f7fd69ea (patch) | |
| tree | c8fe2910f98fc81c9578458a2f8681f7e3684a25 /sys/compat/linux | |
| parent | 22111899d09510c6d046fc7d139d3860c4a3db4d (diff) | |
regen
Diffstat (limited to 'sys/compat/linux')
| -rw-r--r-- | sys/compat/linux/arch/i386/linux_syscall.h | 13 | ||||
| -rw-r--r-- | sys/compat/linux/arch/i386/linux_syscallargs.h | 30 | ||||
| -rw-r--r-- | sys/compat/linux/arch/i386/linux_syscalls.c | 11 | ||||
| -rw-r--r-- | sys/compat/linux/arch/i386/linux_sysent.c | 19 |
4 files changed, 41 insertions, 32 deletions
diff --git a/sys/compat/linux/arch/i386/linux_syscall.h b/sys/compat/linux/arch/i386/linux_syscall.h index 1c62d671538..54b3ccdb18d 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.42 2002/02/15 16:50:58 christos Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.43 2002/03/22 15:11:23 christos Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.61 2002/02/15 16:48:00 christos Exp + * created from NetBSD: syscalls.master,v 1.62 2002/03/22 15:10:38 christos Exp */ /* syscall: "syscall" ret: "int" args: */ @@ -338,7 +338,7 @@ /* syscall: "modify_ldt" ret: "int" args: "int" "void *" "size_t" */ #define LINUX_SYS_modify_ldt 123 -/* syscall: "mprotect" ret: "int" args: "caddr_t" "int" "int" */ +/* syscall: "mprotect" ret: "int" args: "const void *" "unsigned long" "int" */ #define LINUX_SYS_mprotect 125 /* syscall: "sigprocmask" ret: "int" args: "int" "const linux_old_sigset_t *" "linux_old_sigset_t *" */ @@ -482,8 +482,8 @@ /* syscall: "ugetrlimit" ret: "int" args: "int" "struct orlimit *" */ #define LINUX_SYS_ugetrlimit 191 -/* syscall: "mmap2" ret: "off_t" args: "void *" "size_t" "int" "int" "int" "off_t" */ -#define LINUX_SYS_mmap2 192 +/* syscall: "mmap" ret: "linux_off_t" args: "unsigned long" "size_t" "int" "int" "int" "linux_off_t" */ +#define LINUX_SYS_mmap 192 /* syscall: "truncate64" ret: "int" args: "const char *" "off_t" */ #define LINUX_SYS_truncate64 193 @@ -557,5 +557,8 @@ /* syscall: "getfsuid" ret: "int" args: */ #define LINUX_SYS_getfsuid 216 +/* syscall: "fcntl64" ret: "int" args: "int" "int" "void *" */ +#define LINUX_SYS_fcntl64 221 + #define LINUX_SYS_MAXSYSCALL 222 #define LINUX_SYS_NSYSENT 256 diff --git a/sys/compat/linux/arch/i386/linux_syscallargs.h b/sys/compat/linux/arch/i386/linux_syscallargs.h index ab48e9604eb..0b6fbd1fcb2 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.42 2002/02/15 16:50:58 christos Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.43 2002/03/22 15:11:23 christos Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.61 2002/02/15 16:48:00 christos Exp + * created from NetBSD: syscalls.master,v 1.62 2002/03/22 15:10:38 christos Exp */ #ifndef _LINUX_SYS__SYSCALLARGS_H_ @@ -371,6 +371,12 @@ struct linux_sys_modify_ldt_args { syscallarg(size_t) bytecount; }; +struct linux_sys_mprotect_args { + syscallarg(const void *) start; + syscallarg(unsigned long) len; + syscallarg(int) prot; +}; + struct linux_sys_sigprocmask_args { syscallarg(int) how; syscallarg(const linux_old_sigset_t *) set; @@ -532,15 +538,6 @@ struct linux_sys_ugetrlimit_args { syscallarg(struct orlimit *) rlp; }; -struct linux_sys_mmap2_args { - syscallarg(void *) addr; - syscallarg(size_t) len; - syscallarg(int) prot; - syscallarg(int) flags; - syscallarg(int) fd; - syscallarg(off_t) offset; -}; - struct linux_sys_truncate64_args { syscallarg(const char *) path; syscallarg(off_t) length; @@ -601,6 +598,12 @@ struct linux_sys_setfsuid_args { syscallarg(uid_t) uid; }; +struct linux_sys_fcntl64_args { + syscallarg(int) fd; + syscallarg(int) cmd; + syscallarg(void *) arg; +}; + /* * System call prototypes. */ @@ -712,7 +715,7 @@ int linux_sys_clone(struct proc *, void *, register_t *); int linux_sys_setdomainname(struct proc *, void *, register_t *); int linux_sys_uname(struct proc *, void *, register_t *); int linux_sys_modify_ldt(struct proc *, void *, register_t *); -int sys_mprotect(struct proc *, void *, register_t *); +int linux_sys_mprotect(struct proc *, void *, register_t *); int linux_sys_sigprocmask(struct proc *, void *, register_t *); int linux_sys_getpgid(struct proc *, void *, register_t *); int sys_fchdir(struct proc *, void *, register_t *); @@ -760,7 +763,7 @@ 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_mmap(struct proc *, void *, register_t *); int linux_sys_truncate64(struct proc *, void *, register_t *); int sys_ftruncate(struct proc *, void *, register_t *); int linux_sys_stat64(struct proc *, void *, register_t *); @@ -785,4 +788,5 @@ int sys_setuid(struct proc *, void *, register_t *); int sys_setgid(struct proc *, void *, register_t *); int linux_sys_setfsuid(struct proc *, void *, register_t *); int linux_sys_getfsuid(struct proc *, void *, register_t *); +int linux_sys_fcntl64(struct proc *, void *, register_t *); #endif /* _LINUX_SYS__SYSCALLARGS_H_ */ diff --git a/sys/compat/linux/arch/i386/linux_syscalls.c b/sys/compat/linux/arch/i386/linux_syscalls.c index a72743b9160..4d113f785c9 100644 --- a/sys/compat/linux/arch/i386/linux_syscalls.c +++ b/sys/compat/linux/arch/i386/linux_syscalls.c @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.43 2002/02/15 16:50:58 christos Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.44 2002/03/22 15:11:23 christos Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.61 2002/02/15 16:48:00 christos Exp + * created from NetBSD: syscalls.master,v 1.62 2002/03/22 15:10:38 christos Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.43 2002/02/15 16:50:58 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.44 2002/03/22 15:11:23 christos Exp $"); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) @@ -21,6 +21,7 @@ __KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.43 2002/02/15 16:50:58 christos #include <sys/mount.h> #include <sys/syscallargs.h> #include <compat/linux/common/linux_types.h> +#include <compat/linux/common/linux_mmap.h> #include <compat/linux/common/linux_signal.h> #include <compat/linux/common/linux_siginfo.h> #include <compat/linux/common/linux_machdep.h> @@ -220,7 +221,7 @@ const char *const linux_syscallnames[] = { "#189 (unimplemented putpmsg)", /* 189 = unimplemented putpmsg */ "__vfork14", /* 190 = __vfork14 */ "ugetrlimit", /* 191 = ugetrlimit */ - "mmap2", /* 192 = mmap2 */ + "mmap", /* 192 = mmap */ "truncate64", /* 193 = truncate64 */ "linux_ftruncate64", /* 194 = linux_ftruncate64 */ "stat64", /* 195 = stat64 */ @@ -249,5 +250,5 @@ const char *const linux_syscallnames[] = { "#218 (unimplemented mincore)", /* 218 = unimplemented mincore */ "#219 (unimplemented madvise)", /* 219 = unimplemented madvise */ "#220 (unimplemented getdents64)", /* 220 = unimplemented getdents64 */ - "#221 (unimplemented fcntl64)", /* 221 = unimplemented fcntl64 */ + "fcntl64", /* 221 = fcntl64 */ }; diff --git a/sys/compat/linux/arch/i386/linux_sysent.c b/sys/compat/linux/arch/i386/linux_sysent.c index e520b36f252..e3a1958173b 100644 --- a/sys/compat/linux/arch/i386/linux_sysent.c +++ b/sys/compat/linux/arch/i386/linux_sysent.c @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.42 2002/02/15 16:50:58 christos Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.43 2002/03/22 15:11:23 christos Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.61 2002/02/15 16:48:00 christos Exp + * created from NetBSD: syscalls.master,v 1.62 2002/03/22 15:10:38 christos Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.42 2002/02/15 16:50:58 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.43 2002/03/22 15:11:23 christos Exp $"); #if defined(_KERNEL_OPT) #include "opt_compat_43.h" @@ -20,6 +20,7 @@ __KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.42 2002/02/15 16:50:58 christos E #include <sys/mount.h> #include <sys/syscallargs.h> #include <compat/linux/common/linux_types.h> +#include <compat/linux/common/linux_mmap.h> #include <compat/linux/common/linux_signal.h> #include <compat/linux/common/linux_siginfo.h> #include <compat/linux/common/linux_machdep.h> @@ -278,8 +279,8 @@ struct sysent linux_sysent[] = { linux_sys_modify_ldt }, /* 123 = modify_ldt */ { 0, 0, 0, linux_sys_nosys }, /* 124 = unimplemented adjtimex */ - { 3, s(struct sys_mprotect_args), 0, - sys_mprotect }, /* 125 = mprotect */ + { 3, s(struct linux_sys_mprotect_args), 0, + linux_sys_mprotect }, /* 125 = mprotect */ { 3, s(struct linux_sys_sigprocmask_args), 0, linux_sys_sigprocmask }, /* 126 = sigprocmask */ { 0, 0, 0, @@ -412,8 +413,8 @@ struct sysent linux_sysent[] = { sys___vfork14 }, /* 190 = __vfork14 */ { 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 */ + { 6, s(struct linux_sys_mmap_args), 0, + linux_sys_mmap }, /* 192 = mmap */ { 2, s(struct linux_sys_truncate64_args), 0, linux_sys_truncate64 }, /* 193 = truncate64 */ { 2, s(struct sys_ftruncate_args), 0, @@ -470,8 +471,8 @@ struct sysent linux_sysent[] = { linux_sys_nosys }, /* 219 = unimplemented madvise */ { 0, 0, 0, linux_sys_nosys }, /* 220 = unimplemented getdents64 */ - { 0, 0, 0, - linux_sys_nosys }, /* 221 = unimplemented fcntl64 */ + { 3, s(struct linux_sys_fcntl64_args), 0, + linux_sys_fcntl64 }, /* 221 = fcntl64 */ { 0, 0, 0, linux_sys_nosys }, /* 222 = filler */ { 0, 0, 0, |
