diff options
-rw-r--r-- | sys/compat/bsdos/bsdos_syscall.h | 16 | ||||
-rw-r--r-- | sys/compat/bsdos/bsdos_syscallargs.h | 10 | ||||
-rw-r--r-- | sys/compat/bsdos/bsdos_syscalls.c | 10 | ||||
-rw-r--r-- | sys/compat/bsdos/bsdos_sysent.c | 16 | ||||
-rw-r--r-- | sys/compat/freebsd/freebsd_syscall.h | 10 | ||||
-rw-r--r-- | sys/compat/freebsd/freebsd_syscallargs.h | 10 | ||||
-rw-r--r-- | sys/compat/freebsd/freebsd_syscalls.c | 4 | ||||
-rw-r--r-- | sys/compat/freebsd/freebsd_sysent.c | 8 | ||||
-rw-r--r-- | sys/compat/netbsd/netbsd_syscall.h | 10 | ||||
-rw-r--r-- | sys/compat/netbsd/netbsd_syscallargs.h | 8 | ||||
-rw-r--r-- | sys/compat/netbsd/netbsd_syscalls.c | 4 | ||||
-rw-r--r-- | sys/compat/netbsd/netbsd_sysent.c | 4 | ||||
-rw-r--r-- | sys/kern/init_sysent.c | 22 | ||||
-rw-r--r-- | sys/kern/syscalls.c | 13 | ||||
-rw-r--r-- | sys/sys/syscall.h | 36 | ||||
-rw-r--r-- | sys/sys/syscallargs.h | 56 |
16 files changed, 135 insertions, 102 deletions
diff --git a/sys/compat/bsdos/bsdos_syscall.h b/sys/compat/bsdos/bsdos_syscall.h index 8094356c093..829a40d9620 100644 --- a/sys/compat/bsdos/bsdos_syscall.h +++ b/sys/compat/bsdos/bsdos_syscall.h @@ -1,10 +1,10 @@ -/* $OpenBSD: bsdos_syscall.h,v 1.15 2004/07/09 23:54:27 millert Exp $ */ +/* $OpenBSD: bsdos_syscall.h,v 1.16 2004/07/13 21:06:33 millert Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.14 2004/07/09 23:52:02 millert Exp + * created from OpenBSD: syscalls.master,v 1.15 2004/07/13 21:04:28 millert Exp */ /* syscall: "syscall" ret: "int" args: */ @@ -478,14 +478,14 @@ /* syscall: "lfs_segwait" ret: "int" args: "fsid_t *" "struct timeval *" */ #define BSDOS_SYS_lfs_segwait 187 -/* syscall: "stat" ret: "int" args: "char *" "struct stat *" */ -#define BSDOS_SYS_stat 188 +/* syscall: "stat35" ret: "int" args: "char *" "struct stat35 *" */ +#define BSDOS_SYS_stat35 188 -/* syscall: "fstat" ret: "int" args: "int" "struct stat *" */ -#define BSDOS_SYS_fstat 189 +/* syscall: "fstat35" ret: "int" args: "int" "struct stat35 *" */ +#define BSDOS_SYS_fstat35 189 -/* syscall: "lstat" ret: "int" args: "char *" "struct stat *" */ -#define BSDOS_SYS_lstat 190 +/* syscall: "lstat35" ret: "int" args: "char *" "struct stat35 *" */ +#define BSDOS_SYS_lstat35 190 /* syscall: "pathconf" ret: "int" args: "char *" "int" */ #define BSDOS_SYS_pathconf 191 diff --git a/sys/compat/bsdos/bsdos_syscallargs.h b/sys/compat/bsdos/bsdos_syscallargs.h index 7e5073677ea..d4b8c7ea3a1 100644 --- a/sys/compat/bsdos/bsdos_syscallargs.h +++ b/sys/compat/bsdos/bsdos_syscallargs.h @@ -1,10 +1,10 @@ -/* $OpenBSD: bsdos_syscallargs.h,v 1.16 2004/07/09 23:54:27 millert Exp $ */ +/* $OpenBSD: bsdos_syscallargs.h,v 1.17 2004/07/13 21:06:33 millert Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.14 2004/07/09 23:52:02 millert Exp + * created from OpenBSD: syscalls.master,v 1.15 2004/07/13 21:04:28 millert Exp */ #ifdef syscallarg @@ -211,9 +211,9 @@ int lfs_segclean(struct proc *, void *, register_t *); int lfs_segwait(struct proc *, void *, register_t *); #else #endif -int sys_stat(struct proc *, void *, register_t *); -int sys_fstat(struct proc *, void *, register_t *); -int sys_lstat(struct proc *, void *, register_t *); +int compat_35_sys_stat(struct proc *, void *, register_t *); +int compat_35_sys_fstat(struct proc *, void *, register_t *); +int compat_35_sys_lstat(struct proc *, void *, register_t *); int sys_pathconf(struct proc *, void *, register_t *); int sys_fpathconf(struct proc *, void *, register_t *); int sys_getrlimit(struct proc *, void *, register_t *); diff --git a/sys/compat/bsdos/bsdos_syscalls.c b/sys/compat/bsdos/bsdos_syscalls.c index ecaaf76f952..64dae238398 100644 --- a/sys/compat/bsdos/bsdos_syscalls.c +++ b/sys/compat/bsdos/bsdos_syscalls.c @@ -1,10 +1,10 @@ -/* $OpenBSD: bsdos_syscalls.c,v 1.15 2004/07/09 23:54:27 millert Exp $ */ +/* $OpenBSD: bsdos_syscalls.c,v 1.16 2004/07/13 21:06:33 millert Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.14 2004/07/09 23:52:02 millert Exp + * created from OpenBSD: syscalls.master,v 1.15 2004/07/13 21:04:28 millert Exp */ char *bsdos_syscallnames[] = { @@ -231,9 +231,9 @@ char *bsdos_syscallnames[] = { "#186 (unimplemented)", /* 186 = unimplemented */ "#187 (unimplemented)", /* 187 = unimplemented */ #endif - "stat", /* 188 = stat */ - "fstat", /* 189 = fstat */ - "lstat", /* 190 = lstat */ + "stat35", /* 188 = stat35 */ + "fstat35", /* 189 = fstat35 */ + "lstat35", /* 190 = lstat35 */ "pathconf", /* 191 = pathconf */ "fpathconf", /* 192 = fpathconf */ "#193 (unimplemented)", /* 193 = unimplemented */ diff --git a/sys/compat/bsdos/bsdos_sysent.c b/sys/compat/bsdos/bsdos_sysent.c index f04036c6359..9b121e4543a 100644 --- a/sys/compat/bsdos/bsdos_sysent.c +++ b/sys/compat/bsdos/bsdos_sysent.c @@ -1,10 +1,10 @@ -/* $OpenBSD: bsdos_sysent.c,v 1.15 2004/07/09 23:54:27 millert Exp $ */ +/* $OpenBSD: bsdos_sysent.c,v 1.16 2004/07/13 21:06:33 millert Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.14 2004/07/09 23:52:02 millert Exp + * created from OpenBSD: syscalls.master,v 1.15 2004/07/13 21:04:28 millert Exp */ #include <sys/param.h> @@ -439,12 +439,12 @@ struct sysent bsdos_sysent[] = { { 0, 0, sys_nosys }, /* 187 = unimplemented */ #endif - { 2, s(struct sys_stat_args), - sys_stat }, /* 188 = stat */ - { 2, s(struct sys_fstat_args), - sys_fstat }, /* 189 = fstat */ - { 2, s(struct sys_lstat_args), - sys_lstat }, /* 190 = lstat */ + { 2, s(struct compat_35_sys_stat_args), + compat_35_sys_stat }, /* 188 = stat35 */ + { 2, s(struct compat_35_sys_fstat_args), + compat_35_sys_fstat }, /* 189 = fstat35 */ + { 2, s(struct compat_35_sys_lstat_args), + compat_35_sys_lstat }, /* 190 = lstat35 */ { 2, s(struct sys_pathconf_args), sys_pathconf }, /* 191 = pathconf */ { 2, s(struct sys_fpathconf_args), diff --git a/sys/compat/freebsd/freebsd_syscall.h b/sys/compat/freebsd/freebsd_syscall.h index 58b82cacb28..45287d76cf5 100644 --- a/sys/compat/freebsd/freebsd_syscall.h +++ b/sys/compat/freebsd/freebsd_syscall.h @@ -1,10 +1,10 @@ -/* $OpenBSD: freebsd_syscall.h,v 1.26 2004/07/09 23:54:56 millert Exp $ */ +/* $OpenBSD: freebsd_syscall.h,v 1.27 2004/07/13 21:06:33 millert Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.25 2004/07/09 23:52:02 millert Exp + * created from OpenBSD: syscalls.master,v 1.26 2004/07/13 21:04:29 millert Exp */ /* syscall: "syscall" ret: "int" args: */ @@ -505,13 +505,13 @@ /* syscall: "lfs_segwait" ret: "int" args: "fsid_t *" "struct timeval *" */ #define FREEBSD_SYS_lfs_segwait 187 -/* syscall: "stat" ret: "int" args: "char *" "struct stat *" */ +/* syscall: "stat" ret: "int" args: "char *" "struct stat35 *" */ #define FREEBSD_SYS_stat 188 -/* syscall: "fstat" ret: "int" args: "int" "struct stat *" */ +/* syscall: "fstat" ret: "int" args: "int" "struct stat35 *" */ #define FREEBSD_SYS_fstat 189 -/* syscall: "lstat" ret: "int" args: "char *" "struct stat *" */ +/* syscall: "lstat" ret: "int" args: "char *" "struct stat35 *" */ #define FREEBSD_SYS_lstat 190 /* syscall: "pathconf" ret: "int" args: "char *" "int" */ diff --git a/sys/compat/freebsd/freebsd_syscallargs.h b/sys/compat/freebsd/freebsd_syscallargs.h index 9163eff30de..84f11ce94ef 100644 --- a/sys/compat/freebsd/freebsd_syscallargs.h +++ b/sys/compat/freebsd/freebsd_syscallargs.h @@ -1,10 +1,10 @@ -/* $OpenBSD: freebsd_syscallargs.h,v 1.28 2004/07/09 23:54:56 millert Exp $ */ +/* $OpenBSD: freebsd_syscallargs.h,v 1.29 2004/07/13 21:06:33 millert Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.25 2004/07/09 23:52:02 millert Exp + * created from OpenBSD: syscalls.master,v 1.26 2004/07/13 21:04:29 millert Exp */ #ifdef syscallarg @@ -203,12 +203,12 @@ struct freebsd_sys_rtprio_args { struct freebsd_sys_stat_args { syscallarg(char *) path; - syscallarg(struct stat *) ub; + syscallarg(struct stat35 *) ub; }; struct freebsd_sys_lstat_args { syscallarg(char *) path; - syscallarg(struct stat *) ub; + syscallarg(struct stat35 *) ub; }; struct freebsd_sys_pathconf_args { @@ -450,7 +450,7 @@ int lfs_segwait(struct proc *, void *, register_t *); #else #endif int freebsd_sys_stat(struct proc *, void *, register_t *); -int sys_fstat(struct proc *, void *, register_t *); +int compat_35_sys_fstat(struct proc *, void *, register_t *); int freebsd_sys_lstat(struct proc *, void *, register_t *); int freebsd_sys_pathconf(struct proc *, void *, register_t *); int sys_fpathconf(struct proc *, void *, register_t *); diff --git a/sys/compat/freebsd/freebsd_syscalls.c b/sys/compat/freebsd/freebsd_syscalls.c index f2573fb8727..835ba042f0b 100644 --- a/sys/compat/freebsd/freebsd_syscalls.c +++ b/sys/compat/freebsd/freebsd_syscalls.c @@ -1,10 +1,10 @@ -/* $OpenBSD: freebsd_syscalls.c,v 1.26 2004/07/09 23:54:56 millert Exp $ */ +/* $OpenBSD: freebsd_syscalls.c,v 1.27 2004/07/13 21:06:33 millert Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.25 2004/07/09 23:52:02 millert Exp + * created from OpenBSD: syscalls.master,v 1.26 2004/07/13 21:04:29 millert Exp */ char *freebsd_syscallnames[] = { diff --git a/sys/compat/freebsd/freebsd_sysent.c b/sys/compat/freebsd/freebsd_sysent.c index 9cb349c7619..689eedf0265 100644 --- a/sys/compat/freebsd/freebsd_sysent.c +++ b/sys/compat/freebsd/freebsd_sysent.c @@ -1,10 +1,10 @@ -/* $OpenBSD: freebsd_sysent.c,v 1.27 2004/07/09 23:54:56 millert Exp $ */ +/* $OpenBSD: freebsd_sysent.c,v 1.28 2004/07/13 21:06:33 millert Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.25 2004/07/09 23:52:02 millert Exp + * created from OpenBSD: syscalls.master,v 1.26 2004/07/13 21:04:29 millert Exp */ #include <sys/param.h> @@ -453,8 +453,8 @@ struct sysent freebsd_sysent[] = { #endif { 2, s(struct freebsd_sys_stat_args), freebsd_sys_stat }, /* 188 = stat */ - { 2, s(struct sys_fstat_args), - sys_fstat }, /* 189 = fstat */ + { 2, s(struct compat_35_sys_fstat_args), + compat_35_sys_fstat }, /* 189 = fstat */ { 2, s(struct freebsd_sys_lstat_args), freebsd_sys_lstat }, /* 190 = lstat */ { 2, s(struct freebsd_sys_pathconf_args), diff --git a/sys/compat/netbsd/netbsd_syscall.h b/sys/compat/netbsd/netbsd_syscall.h index 0261a9d17b7..ef35366847d 100644 --- a/sys/compat/netbsd/netbsd_syscall.h +++ b/sys/compat/netbsd/netbsd_syscall.h @@ -1,10 +1,10 @@ -/* $OpenBSD: netbsd_syscall.h,v 1.24 2004/07/09 23:56:17 millert Exp $ */ +/* $OpenBSD: netbsd_syscall.h,v 1.25 2004/07/13 21:06:33 millert Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from; OpenBSD: syscalls.master,v 1.23 2004/07/09 23:52:02 millert Exp + * created from; OpenBSD: syscalls.master,v 1.24 2004/07/13 21:04:29 millert Exp */ /* syscall: "syscall" ret: "int" args: "int" "..." */ @@ -502,13 +502,13 @@ /* syscall: "lfs_segwait" ret: "int" args: "fsid_t *" "struct timeval *" */ #define NETBSD_SYS_lfs_segwait 187 -/* syscall: "stat" ret: "int" args: "char *" "struct stat *" */ +/* syscall: "stat" ret: "int" args: "char *" "struct stat35 *" */ #define NETBSD_SYS_stat 188 -/* syscall: "fstat" ret: "int" args: "int" "struct stat12 *" */ +/* syscall: "fstat" ret: "int" args: "int" "struct stat35 *" */ #define NETBSD_SYS_fstat 189 -/* syscall: "lstat" ret: "int" args: "char *" "struct stat *" */ +/* syscall: "lstat" ret: "int" args: "char *" "struct stat35 *" */ #define NETBSD_SYS_lstat 190 /* syscall: "pathconf" ret: "long" args: "char *" "int" */ diff --git a/sys/compat/netbsd/netbsd_syscallargs.h b/sys/compat/netbsd/netbsd_syscallargs.h index e4bd9ccb9ca..5817c70b150 100644 --- a/sys/compat/netbsd/netbsd_syscallargs.h +++ b/sys/compat/netbsd/netbsd_syscallargs.h @@ -1,10 +1,10 @@ -/* $OpenBSD: netbsd_syscallargs.h,v 1.25 2004/07/09 23:56:17 millert Exp $ */ +/* $OpenBSD: netbsd_syscallargs.h,v 1.26 2004/07/13 21:06:33 millert Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from; OpenBSD: syscalls.master,v 1.23 2004/07/09 23:52:02 millert Exp + * created from; OpenBSD: syscalls.master,v 1.24 2004/07/13 21:04:29 millert Exp */ #ifdef syscallarg @@ -140,12 +140,12 @@ struct netbsd_sys_rmdir_args { struct netbsd_sys_stat_args { syscallarg(char *) path; - syscallarg(struct stat *) ub; + syscallarg(struct stat35 *) ub; }; struct netbsd_sys_lstat_args { syscallarg(char *) path; - syscallarg(struct stat *) ub; + syscallarg(struct stat35 *) ub; }; struct netbsd_sys_pathconf_args { diff --git a/sys/compat/netbsd/netbsd_syscalls.c b/sys/compat/netbsd/netbsd_syscalls.c index fe753ee3152..a914c12f66b 100644 --- a/sys/compat/netbsd/netbsd_syscalls.c +++ b/sys/compat/netbsd/netbsd_syscalls.c @@ -1,10 +1,10 @@ -/* $OpenBSD: netbsd_syscalls.c,v 1.24 2004/07/09 23:56:17 millert Exp $ */ +/* $OpenBSD: netbsd_syscalls.c,v 1.25 2004/07/13 21:06:33 millert Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from; OpenBSD: syscalls.master,v 1.23 2004/07/09 23:52:02 millert Exp + * created from; OpenBSD: syscalls.master,v 1.24 2004/07/13 21:04:29 millert Exp */ char *netbsd_syscallnames[] = { diff --git a/sys/compat/netbsd/netbsd_sysent.c b/sys/compat/netbsd/netbsd_sysent.c index abbe225b394..64bba9cdc8a 100644 --- a/sys/compat/netbsd/netbsd_sysent.c +++ b/sys/compat/netbsd/netbsd_sysent.c @@ -1,10 +1,10 @@ -/* $OpenBSD: netbsd_sysent.c,v 1.24 2004/07/09 23:56:17 millert Exp $ */ +/* $OpenBSD: netbsd_sysent.c,v 1.25 2004/07/13 21:06:33 millert Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from; OpenBSD: syscalls.master,v 1.23 2004/07/09 23:52:02 millert Exp + * created from; OpenBSD: syscalls.master,v 1.24 2004/07/13 21:04:29 millert Exp */ #include <sys/param.h> diff --git a/sys/kern/init_sysent.c b/sys/kern/init_sysent.c index 7b906913465..c30dc405696 100644 --- a/sys/kern/init_sysent.c +++ b/sys/kern/init_sysent.c @@ -1,10 +1,10 @@ -/* $OpenBSD: init_sysent.c,v 1.80 2004/07/09 23:54:00 millert Exp $ */ +/* $OpenBSD: init_sysent.c,v 1.81 2004/07/13 21:06:33 millert Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from; OpenBSD: syscalls.master,v 1.71 2004/07/09 23:52:02 millert Exp + * created from; OpenBSD: syscalls.master,v 1.72 2004/07/13 21:04:29 millert Exp */ #include <sys/param.h> @@ -477,12 +477,12 @@ struct sysent sysent[] = { { 0, 0, sys_nosys }, /* 187 = unimplemented */ #endif - { 2, s(struct sys_stat_args), - sys_stat }, /* 188 = stat */ - { 2, s(struct sys_fstat_args), - sys_fstat }, /* 189 = fstat */ - { 2, s(struct sys_lstat_args), - sys_lstat }, /* 190 = lstat */ + { 2, s(struct compat_35_sys_stat_args), + compat_35(sys_stat) }, /* 188 = compat_35 stat35 */ + { 2, s(struct compat_35_sys_fstat_args), + compat_35(sys_fstat) }, /* 189 = compat_35 fstat35 */ + { 2, s(struct compat_35_sys_lstat_args), + compat_35(sys_lstat) }, /* 190 = compat_35 lstat35 */ { 2, s(struct sys_pathconf_args), sys_pathconf }, /* 191 = pathconf */ { 2, s(struct sys_fpathconf_args), @@ -781,5 +781,11 @@ struct sysent sysent[] = { { 0, 0, sys_nosys }, /* 290 = unimplemented semop */ #endif + { 2, s(struct sys_stat_args), + sys_stat }, /* 291 = stat */ + { 2, s(struct sys_fstat_args), + sys_fstat }, /* 292 = fstat */ + { 2, s(struct sys_lstat_args), + sys_lstat }, /* 293 = lstat */ }; diff --git a/sys/kern/syscalls.c b/sys/kern/syscalls.c index 3fd4f758b1b..9a586fd7191 100644 --- a/sys/kern/syscalls.c +++ b/sys/kern/syscalls.c @@ -1,10 +1,10 @@ -/* $OpenBSD: syscalls.c,v 1.81 2004/07/09 23:54:00 millert Exp $ */ +/* $OpenBSD: syscalls.c,v 1.82 2004/07/13 21:06:33 millert Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from; OpenBSD: syscalls.master,v 1.71 2004/07/09 23:52:02 millert Exp + * created from; OpenBSD: syscalls.master,v 1.72 2004/07/13 21:04:29 millert Exp */ char *syscallnames[] = { @@ -231,9 +231,9 @@ char *syscallnames[] = { "#186 (unimplemented)", /* 186 = unimplemented */ "#187 (unimplemented)", /* 187 = unimplemented */ #endif - "stat", /* 188 = stat */ - "fstat", /* 189 = fstat */ - "lstat", /* 190 = lstat */ + "compat_35_stat35", /* 188 = compat_35 stat35 */ + "compat_35_fstat35", /* 189 = compat_35 fstat35 */ + "compat_35_lstat35", /* 190 = compat_35 lstat35 */ "pathconf", /* 191 = pathconf */ "fpathconf", /* 192 = fpathconf */ "swapctl", /* 193 = swapctl */ @@ -398,4 +398,7 @@ char *syscallnames[] = { #else "#290 (unimplemented semop)", /* 290 = unimplemented semop */ #endif + "stat", /* 291 = stat */ + "fstat", /* 292 = fstat */ + "lstat", /* 293 = lstat */ }; diff --git a/sys/sys/syscall.h b/sys/sys/syscall.h index 73bb4d6ea64..108bc9d37ec 100644 --- a/sys/sys/syscall.h +++ b/sys/sys/syscall.h @@ -1,10 +1,10 @@ -/* $OpenBSD: syscall.h,v 1.79 2004/07/09 23:53:59 millert Exp $ */ +/* $OpenBSD: syscall.h,v 1.80 2004/07/13 21:06:33 millert Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from; OpenBSD: syscalls.master,v 1.71 2004/07/09 23:52:02 millert Exp + * created from; OpenBSD: syscalls.master,v 1.72 2004/07/13 21:04:29 millert Exp */ /* syscall: "syscall" ret: "int" args: "int" "..." */ @@ -46,10 +46,10 @@ /* syscall: "fchdir" ret: "int" args: "int" */ #define SYS_fchdir 13 -/* syscall: "mknod" ret: "int" args: "const char *" "int" "dev_t" */ +/* syscall: "mknod" ret: "int" args: "const char *" "mode_t" "dev_t" */ #define SYS_mknod 14 -/* syscall: "chmod" ret: "int" args: "const char *" "int" */ +/* syscall: "chmod" ret: "int" args: "const char *" "mode_t" */ #define SYS_chmod 15 /* syscall: "chown" ret: "int" args: "const char *" "uid_t" "gid_t" */ @@ -180,7 +180,7 @@ /* syscall: "execve" ret: "int" args: "const char *" "char *const *" "char *const *" */ #define SYS_execve 59 -/* syscall: "umask" ret: "int" args: "int" */ +/* syscall: "umask" ret: "mode_t" args: "mode_t" */ #define SYS_umask 60 /* syscall: "chroot" ret: "int" args: "const char *" */ @@ -333,7 +333,7 @@ /* syscall: "fchown" ret: "int" args: "int" "uid_t" "gid_t" */ #define SYS_fchown 123 -/* syscall: "fchmod" ret: "int" args: "int" "int" */ +/* syscall: "fchmod" ret: "int" args: "int" "mode_t" */ #define SYS_fchmod 124 /* 125 is compat_43 orecvfrom */ @@ -354,7 +354,7 @@ /* syscall: "flock" ret: "int" args: "int" "int" */ #define SYS_flock 131 -/* syscall: "mkfifo" ret: "int" args: "const char *" "int" */ +/* syscall: "mkfifo" ret: "int" args: "const char *" "mode_t" */ #define SYS_mkfifo 132 /* syscall: "sendto" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "const struct sockaddr *" "socklen_t" */ @@ -366,7 +366,7 @@ /* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */ #define SYS_socketpair 135 -/* syscall: "mkdir" ret: "int" args: "const char *" "int" */ +/* syscall: "mkdir" ret: "int" args: "const char *" "mode_t" */ #define SYS_mkdir 136 /* syscall: "rmdir" ret: "int" args: "const char *" */ @@ -455,14 +455,11 @@ /* syscall: "lfs_segwait" ret: "int" args: "fsid_t *" "struct timeval *" */ #define SYS_lfs_segwait 187 -/* syscall: "stat" ret: "int" args: "const char *" "struct stat *" */ -#define SYS_stat 188 + /* 188 is compat_35 stat35 */ -/* syscall: "fstat" ret: "int" args: "int" "struct stat *" */ -#define SYS_fstat 189 + /* 189 is compat_35 fstat35 */ -/* syscall: "lstat" ret: "int" args: "const char *" "struct stat *" */ -#define SYS_lstat 190 + /* 190 is compat_35 lstat35 */ /* syscall: "pathconf" ret: "long" args: "const char *" "int" */ #define SYS_pathconf 191 @@ -680,4 +677,13 @@ /* syscall: "semop" ret: "int" args: "int" "struct sembuf *" "size_t" */ #define SYS_semop 290 -#define SYS_MAXSYSCALL 291 +/* syscall: "stat" ret: "int" args: "const char *" "struct stat *" */ +#define SYS_stat 291 + +/* syscall: "fstat" ret: "int" args: "int" "struct stat *" */ +#define SYS_fstat 292 + +/* syscall: "lstat" ret: "int" args: "const char *" "struct stat *" */ +#define SYS_lstat 293 + +#define SYS_MAXSYSCALL 294 diff --git a/sys/sys/syscallargs.h b/sys/sys/syscallargs.h index a3ee8a9e447..7c0e1d33ff9 100644 --- a/sys/sys/syscallargs.h +++ b/sys/sys/syscallargs.h @@ -1,10 +1,10 @@ -/* $OpenBSD: syscallargs.h,v 1.81 2004/07/09 23:54:00 millert Exp $ */ +/* $OpenBSD: syscallargs.h,v 1.82 2004/07/13 21:06:33 millert Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from; OpenBSD: syscalls.master,v 1.71 2004/07/09 23:52:02 millert Exp + * created from; OpenBSD: syscalls.master,v 1.72 2004/07/13 21:04:29 millert Exp */ #ifdef syscallarg @@ -42,7 +42,7 @@ struct sys_write_args { struct sys_open_args { syscallarg(const char *) path; syscallarg(int) flags; - syscallarg(int) mode; + syscallarg(mode_t) mode; }; struct sys_close_args { @@ -58,7 +58,7 @@ struct sys_wait4_args { struct compat_43_sys_creat_args { syscallarg(const char *) path; - syscallarg(int) mode; + syscallarg(mode_t) mode; }; struct sys_link_args { @@ -80,13 +80,13 @@ struct sys_fchdir_args { struct sys_mknod_args { syscallarg(const char *) path; - syscallarg(int) mode; + syscallarg(mode_t) mode; syscallarg(dev_t) dev; }; struct sys_chmod_args { syscallarg(const char *) path; - syscallarg(int) mode; + syscallarg(mode_t) mode; }; struct sys_chown_args { @@ -282,7 +282,7 @@ struct sys_execve_args { }; struct sys_umask_args { - syscallarg(int) newmask; + syscallarg(mode_t) newmask; }; struct sys_chroot_args { @@ -557,7 +557,7 @@ struct sys_fchown_args { struct sys_fchmod_args { syscallarg(int) fd; - syscallarg(int) mode; + syscallarg(mode_t) mode; }; struct compat_43_sys_recvfrom_args { @@ -601,7 +601,7 @@ struct sys_flock_args { struct sys_mkfifo_args { syscallarg(const char *) path; - syscallarg(int) mode; + syscallarg(mode_t) mode; }; struct sys_sendto_args { @@ -627,7 +627,7 @@ struct sys_socketpair_args { struct sys_mkdir_args { syscallarg(const char *) path; - syscallarg(int) mode; + syscallarg(mode_t) mode; }; struct sys_rmdir_args { @@ -802,19 +802,19 @@ struct lfs_segwait_args { syscallarg(struct timeval *) tv; }; -struct sys_stat_args { +struct compat_35_sys_stat_args { syscallarg(const char *) path; - syscallarg(struct stat *) ub; + syscallarg(struct stat35 *) ub; }; -struct sys_fstat_args { +struct compat_35_sys_fstat_args { syscallarg(int) fd; - syscallarg(struct stat *) sb; + syscallarg(struct stat35 *) sb; }; -struct sys_lstat_args { +struct compat_35_sys_lstat_args { syscallarg(const char *) path; - syscallarg(struct stat *) ub; + syscallarg(struct stat35 *) ub; }; struct sys_pathconf_args { @@ -1234,6 +1234,21 @@ struct sys_semop_args { syscallarg(size_t) nsops; }; +struct sys_stat_args { + syscallarg(const char *) path; + syscallarg(struct stat *) ub; +}; + +struct sys_fstat_args { + syscallarg(int) fd; + syscallarg(struct stat *) sb; +}; + +struct sys_lstat_args { + syscallarg(const char *) path; + syscallarg(struct stat *) ub; +}; + /* * System call prototypes. */ @@ -1422,9 +1437,9 @@ int lfs_segclean(struct proc *, void *, register_t *); int lfs_segwait(struct proc *, void *, register_t *); #else #endif -int sys_stat(struct proc *, void *, register_t *); -int sys_fstat(struct proc *, void *, register_t *); -int sys_lstat(struct proc *, void *, register_t *); +int compat_35_sys_stat(struct proc *, void *, register_t *); +int compat_35_sys_fstat(struct proc *, void *, register_t *); +int compat_35_sys_lstat(struct proc *, void *, register_t *); int sys_pathconf(struct proc *, void *, register_t *); int sys_fpathconf(struct proc *, void *, register_t *); int sys_swapctl(struct proc *, void *, register_t *); @@ -1537,3 +1552,6 @@ int sys_shmget(struct proc *, void *, register_t *); int sys_semop(struct proc *, void *, register_t *); #else #endif +int sys_stat(struct proc *, void *, register_t *); +int sys_fstat(struct proc *, void *, register_t *); +int sys_lstat(struct proc *, void *, register_t *); |