From 72e901b9ff8b7b5b9c58b058f20e1e83a81eeed2 Mon Sep 17 00:00:00 2001 From: fvdl Date: Wed, 23 Aug 1995 20:19:15 +0000 Subject: [PATCH] syscalls.master changed --- sys/compat/linux/linux_syscall.h | 9 ++++++--- sys/compat/linux/linux_syscallargs.h | 18 ++++++++++++++++-- sys/compat/linux/linux_syscalls.c | 7 +++++-- sys/compat/linux/linux_sysent.c | 17 +++++++++++++---- 4 files changed, 40 insertions(+), 11 deletions(-) diff --git a/sys/compat/linux/linux_syscall.h b/sys/compat/linux/linux_syscall.h index 3266fd86c0f0..06e2cb48f288 100644 --- a/sys/compat/linux/linux_syscall.h +++ b/sys/compat/linux/linux_syscall.h @@ -2,7 +2,7 @@ * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.9 1995/08/21 03:42:12 mycroft Exp + * created from NetBSD: syscalls.master,v 1.10 1995/08/23 20:17:30 fvdl Exp */ #define LINUX_SYS_syscall 0 @@ -73,7 +73,7 @@ #define LINUX_SYS_settimeofday 79 #define LINUX_SYS_getgroups 80 #define LINUX_SYS_setgroups 81 -#define LINUX_SYS_linux_select 82 +#define LINUX_SYS_linux_oldselect 82 #define LINUX_SYS_linux_symlink 83 #define LINUX_SYS_compat_43_lstat 84 #define LINUX_SYS_linux_readlink 85 @@ -112,4 +112,7 @@ #define LINUX_SYS_fchdir 133 #define LINUX_SYS_linux_personality 136 #define LINUX_SYS_linux_llseek 140 -#define LINUX_SYS_MAXSYSCALL 141 +#define LINUX_SYS_linux_getdents 141 +#define LINUX_SYS_linux_select 142 +#define LINUX_SYS_flock 143 +#define LINUX_SYS_MAXSYSCALL 144 diff --git a/sys/compat/linux/linux_syscallargs.h b/sys/compat/linux/linux_syscallargs.h index c26a35fba8d0..85d66875c14b 100644 --- a/sys/compat/linux/linux_syscallargs.h +++ b/sys/compat/linux/linux_syscallargs.h @@ -2,7 +2,7 @@ * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.9 1995/08/21 03:42:12 mycroft Exp + * created from NetBSD: syscalls.master,v 1.10 1995/08/23 20:17:30 fvdl Exp */ #define syscallarg(x) union { x datum; register_t pad; } @@ -149,7 +149,7 @@ struct linux_sigpending_args { syscallarg(linux_sigset_t *) mask; }; -struct linux_select_args { +struct linux_oldselect_args { syscallarg(struct linux_select *) lsp; }; @@ -268,4 +268,18 @@ struct linux_llseek_args { syscallarg(int) whence; }; +struct linux_getdents_args { + syscallarg(int) fd; + syscallarg(void *) dirent; + syscallarg(unsigned) count; +}; + +struct linux_select_args { + syscallarg(int) nfds; + syscallarg(fd_set *) readfds; + syscallarg(fd_set *) writefds; + syscallarg(fd_set *) exceptfds; + syscallarg(struct timeval *) timeout; +}; + #undef syscallarg diff --git a/sys/compat/linux/linux_syscalls.c b/sys/compat/linux/linux_syscalls.c index 2c6d820e03ea..85bc44f9ff86 100644 --- a/sys/compat/linux/linux_syscalls.c +++ b/sys/compat/linux/linux_syscalls.c @@ -2,7 +2,7 @@ * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.9 1995/08/21 03:42:12 mycroft Exp + * created from NetBSD: syscalls.master,v 1.10 1995/08/23 20:17:30 fvdl Exp */ char *linux_syscallnames[] = { @@ -88,7 +88,7 @@ char *linux_syscallnames[] = { "settimeofday", /* 79 = settimeofday */ "getgroups", /* 80 = getgroups */ "setgroups", /* 81 = setgroups */ - "linux_select", /* 82 = linux_select */ + "linux_oldselect", /* 82 = linux_oldselect */ "linux_symlink", /* 83 = linux_symlink */ "compat_43_lstat", /* 84 = compat_43_lstat */ "linux_readlink", /* 85 = linux_readlink */ @@ -151,4 +151,7 @@ char *linux_syscallnames[] = { "#138 (unimplemented linux_setfsuid)", /* 138 = unimplemented linux_setfsuid */ "#139 (unimplemented linux_getfsuid)", /* 139 = unimplemented linux_getfsuid */ "linux_llseek", /* 140 = linux_llseek */ + "linux_getdents", /* 141 = linux_getdents */ + "linux_select", /* 142 = linux_select */ + "flock", /* 143 = flock */ }; diff --git a/sys/compat/linux/linux_sysent.c b/sys/compat/linux/linux_sysent.c index 005c8e3868c0..231af4e7fa3c 100644 --- a/sys/compat/linux/linux_sysent.c +++ b/sys/compat/linux/linux_sysent.c @@ -2,7 +2,7 @@ * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.9 1995/08/21 03:42:12 mycroft Exp + * created from NetBSD: syscalls.master,v 1.10 1995/08/23 20:17:30 fvdl Exp */ #include @@ -80,7 +80,7 @@ int gettimeofday(); int settimeofday(); int getgroups(); int setgroups(); -int linux_select(); +int linux_oldselect(); int linux_symlink(); int compat_43_lstat(); int linux_readlink(); @@ -122,6 +122,9 @@ int linux_getpgid(); int fchdir(); int linux_personality(); int linux_llseek(); +int linux_getdents(); +int linux_select(); +int flock(); #define s(type) sizeof(type) struct sysent linux_sysent[] = { @@ -289,8 +292,8 @@ struct sysent linux_sysent[] = { getgroups }, /* 80 = getgroups */ { 2, s(struct setgroups_args), setgroups }, /* 81 = setgroups */ - { 1, s(struct linux_select_args), - linux_select }, /* 82 = linux_select */ + { 1, s(struct linux_oldselect_args), + linux_oldselect }, /* 82 = linux_oldselect */ { 2, s(struct linux_symlink_args), linux_symlink }, /* 83 = linux_symlink */ { 2, s(struct compat_43_lstat_args), @@ -412,5 +415,11 @@ struct sysent linux_sysent[] = { nosys }, /* 139 = unimplemented linux_getfsuid */ { 5, s(struct linux_llseek_args), linux_llseek }, /* 140 = linux_llseek */ + { 3, s(struct linux_getdents_args), + linux_getdents }, /* 141 = linux_getdents */ + { 5, s(struct linux_select_args), + linux_select }, /* 142 = linux_select */ + { 2, s(struct flock_args), + flock }, /* 143 = flock */ };