From ee325de1bb1e6e66b8bbfecc829ab4ee7e4a2575 Mon Sep 17 00:00:00 2001 From: cgd Date: Thu, 29 Apr 1999 02:11:51 +0000 Subject: [PATCH] regen for syscalls.master --- sys/compat/osf1/osf1_syscall.h | 13 +++++++++++-- sys/compat/osf1/osf1_syscallargs.h | 20 +++++++++++++++++--- sys/compat/osf1/osf1_syscalls.c | 10 +++++----- sys/compat/osf1/osf1_sysent.c | 20 ++++++++++---------- 4 files changed, 43 insertions(+), 20 deletions(-) diff --git a/sys/compat/osf1/osf1_syscall.h b/sys/compat/osf1/osf1_syscall.h index fe99d7d0ccde..60a2aa41c509 100644 --- a/sys/compat/osf1/osf1_syscall.h +++ b/sys/compat/osf1/osf1_syscall.h @@ -1,10 +1,10 @@ -/* $NetBSD: osf1_syscall.h,v 1.25 1999/04/28 05:10:38 cgd Exp $ */ +/* $NetBSD: osf1_syscall.h,v 1.26 1999/04/29 02:11:51 cgd Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.19 1999/04/28 05:09:47 cgd Exp + * created from NetBSD: syscalls.master,v 1.20 1999/04/29 02:10:07 cgd Exp */ /* syscall: "syscall" ret: "int" args: */ @@ -155,6 +155,9 @@ /* syscall: "munmap" ret: "int" args: "caddr_t" "size_t" */ #define OSF1_SYS_munmap 73 +/* syscall: "mprotect" ret: "int" args: "void *" "size_t" "int" */ +#define OSF1_SYS_mprotect 74 + /* syscall: "madvise" ret: "int" args: "void *" "size_t" "int" */ #define OSF1_SYS_madvise 75 @@ -286,6 +289,9 @@ #define OSF1_SYS_utimes 138 /* 139 is obsolete 4.2 sigreturn */ +/* syscall: "getpeername" ret: "int" args: "int" "caddr_t" "int *" */ +#define OSF1_SYS_getpeername 141 + /* syscall: "gethostid" ret: "int32_t" args: */ #define OSF1_SYS_gethostid 142 @@ -304,6 +310,9 @@ /* syscall: "quota" ret: "int" args: */ #define OSF1_SYS_quota 149 +/* syscall: "getsockname" ret: "int" args: "int" "caddr_t" "int *" */ +#define OSF1_SYS_getsockname 150 + /* syscall: "sigaction" ret: "int" args: "int" "struct osf1_sigaction *" "struct osf1_sigaction *" */ #define OSF1_SYS_sigaction 156 diff --git a/sys/compat/osf1/osf1_syscallargs.h b/sys/compat/osf1/osf1_syscallargs.h index 08e7b4f225bc..7dcd70ad0592 100644 --- a/sys/compat/osf1/osf1_syscallargs.h +++ b/sys/compat/osf1/osf1_syscallargs.h @@ -1,10 +1,10 @@ -/* $NetBSD: osf1_syscallargs.h,v 1.25 1999/04/28 05:10:38 cgd Exp $ */ +/* $NetBSD: osf1_syscallargs.h,v 1.26 1999/04/29 02:11:51 cgd Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.19 1999/04/28 05:09:47 cgd Exp + * created from NetBSD: syscalls.master,v 1.20 1999/04/29 02:10:07 cgd Exp */ #ifndef _OSF1_SYS__SYSCALLARGS_H_ @@ -60,6 +60,11 @@ struct osf1_sys_setuid_args { syscallarg(uid_t) uid; }; +struct osf1_sys_access_args { + syscallarg(const char *) path; + syscallarg(int) flags; +}; + struct osf1_sys_open_args { syscallarg(const char *) path; syscallarg(int) flags; @@ -101,6 +106,12 @@ struct osf1_sys_mmap_args { syscallarg(off_t) pos; }; +struct osf1_sys_mprotect_args { + syscallarg(void *) addr; + syscallarg(size_t) len; + syscallarg(int) prot; +}; + struct osf1_sys_madvise_args { syscallarg(void *) addr; syscallarg(size_t) len; @@ -263,7 +274,7 @@ int osf1_sys_mount __P((struct proc *, void *, register_t *)); int osf1_sys_unmount __P((struct proc *, void *, register_t *)); int osf1_sys_setuid __P((struct proc *, void *, register_t *)); int sys_getuid __P((struct proc *, void *, register_t *)); -int sys_access __P((struct proc *, void *, register_t *)); +int osf1_sys_access __P((struct proc *, void *, register_t *)); int sys_sync __P((struct proc *, void *, register_t *)); int sys_kill __P((struct proc *, void *, register_t *)); int sys_setpgid __P((struct proc *, void *, register_t *)); @@ -290,6 +301,7 @@ int osf1_sys_stat __P((struct proc *, void *, register_t *)); int osf1_sys_lstat __P((struct proc *, void *, register_t *)); int osf1_sys_mmap __P((struct proc *, void *, register_t *)); int sys_munmap __P((struct proc *, void *, register_t *)); +int osf1_sys_mprotect __P((struct proc *, void *, register_t *)); int osf1_sys_madvise __P((struct proc *, void *, register_t *)); int sys_getgroups __P((struct proc *, void *, register_t *)); int sys_setgroups __P((struct proc *, void *, register_t *)); @@ -333,12 +345,14 @@ int sys_shutdown __P((struct proc *, void *, register_t *)); int sys_mkdir __P((struct proc *, void *, register_t *)); int sys_rmdir __P((struct proc *, void *, register_t *)); int osf1_sys_utimes __P((struct proc *, void *, register_t *)); +int compat_43_sys_getpeername __P((struct proc *, void *, register_t *)); int compat_43_sys_gethostid __P((struct proc *, void *, register_t *)); int compat_43_sys_sethostid __P((struct proc *, void *, register_t *)); int osf1_sys_getrlimit __P((struct proc *, void *, register_t *)); int osf1_sys_setrlimit __P((struct proc *, void *, register_t *)); int sys_setsid __P((struct proc *, void *, register_t *)); int compat_43_sys_quota __P((struct proc *, void *, register_t *)); +int compat_43_sys_getsockname __P((struct proc *, void *, register_t *)); int osf1_sys_sigaction __P((struct proc *, void *, register_t *)); int compat_43_sys_getdirentries __P((struct proc *, void *, register_t *)); int osf1_sys_statfs __P((struct proc *, void *, register_t *)); diff --git a/sys/compat/osf1/osf1_syscalls.c b/sys/compat/osf1/osf1_syscalls.c index 847fd6482e96..61e9488d3a03 100644 --- a/sys/compat/osf1/osf1_syscalls.c +++ b/sys/compat/osf1/osf1_syscalls.c @@ -1,10 +1,10 @@ -/* $NetBSD: osf1_syscalls.c,v 1.23 1999/04/28 05:10:38 cgd Exp $ */ +/* $NetBSD: osf1_syscalls.c,v 1.24 1999/04/29 02:11:52 cgd Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.19 1999/04/28 05:09:47 cgd Exp + * created from NetBSD: syscalls.master,v 1.20 1999/04/29 02:10:07 cgd Exp */ #if defined(_KERNEL) && !defined(_LKM) @@ -93,7 +93,7 @@ char *osf1_syscallnames[] = { "mmap", /* 71 = mmap */ "#72 (unimplemented ovadvise)", /* 72 = unimplemented ovadvise */ "munmap", /* 73 = munmap */ - "#74 (unimplemented mprotect)", /* 74 = unimplemented mprotect */ + "mprotect", /* 74 = mprotect */ "madvise", /* 75 = madvise */ "#76 (unimplemented old vhangup)", /* 76 = unimplemented old vhangup */ "#77 (unimplemented kmodcall)", /* 77 = unimplemented kmodcall */ @@ -160,7 +160,7 @@ char *osf1_syscallnames[] = { "utimes", /* 138 = utimes */ "#139 (obsolete 4.2 sigreturn)", /* 139 = obsolete 4.2 sigreturn */ "#140 (unimplemented adjtime)", /* 140 = unimplemented adjtime */ - "#141 (unimplemented old getpeername)", /* 141 = unimplemented old getpeername */ + "getpeername", /* 141 = getpeername */ "gethostid", /* 142 = gethostid */ "sethostid", /* 143 = sethostid */ "getrlimit", /* 144 = getrlimit */ @@ -169,7 +169,7 @@ char *osf1_syscallnames[] = { "setsid", /* 147 = setsid */ "#148 (unimplemented quotactl)", /* 148 = unimplemented quotactl */ "quota", /* 149 = quota */ - "#150 (unimplemented old getsockname)", /* 150 = unimplemented old getsockname */ + "getsockname", /* 150 = getsockname */ "#151 (unimplemented pread)", /* 151 = unimplemented pread */ "#152 (unimplemented pwrite)", /* 152 = unimplemented pwrite */ "#153 (unimplemented pid_block)", /* 153 = unimplemented pid_block */ diff --git a/sys/compat/osf1/osf1_sysent.c b/sys/compat/osf1/osf1_sysent.c index 46bb79309e25..1836cd2c4ec0 100644 --- a/sys/compat/osf1/osf1_sysent.c +++ b/sys/compat/osf1/osf1_sysent.c @@ -1,10 +1,10 @@ -/* $NetBSD: osf1_sysent.c,v 1.25 1999/04/28 05:10:39 cgd Exp $ */ +/* $NetBSD: osf1_sysent.c,v 1.26 1999/04/29 02:11:52 cgd Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.19 1999/04/28 05:09:47 cgd Exp + * created from NetBSD: syscalls.master,v 1.20 1999/04/29 02:10:07 cgd Exp */ #include "opt_compat_43.h" @@ -85,8 +85,8 @@ struct sysent osf1_sysent[] = { sys_nosys }, /* 31 = unimplemented getpeername */ { 0, 0, sys_nosys }, /* 32 = unimplemented getsockname */ - { 2, s(struct sys_access_args), - sys_access }, /* 33 = access */ + { 2, s(struct osf1_sys_access_args), + osf1_sys_access }, /* 33 = access */ { 0, 0, sys_nosys }, /* 34 = unimplemented chflags */ { 0, 0, @@ -167,8 +167,8 @@ struct sysent osf1_sysent[] = { sys_nosys }, /* 72 = unimplemented ovadvise */ { 2, s(struct sys_munmap_args), sys_munmap }, /* 73 = munmap */ - { 0, 0, - sys_nosys }, /* 74 = unimplemented mprotect */ + { 3, s(struct osf1_sys_mprotect_args), + osf1_sys_mprotect }, /* 74 = mprotect */ { 3, s(struct osf1_sys_madvise_args), osf1_sys_madvise }, /* 75 = madvise */ { 0, 0, @@ -301,8 +301,8 @@ struct sysent osf1_sysent[] = { sys_nosys }, /* 139 = obsolete 4.2 sigreturn */ { 0, 0, sys_nosys }, /* 140 = unimplemented adjtime */ - { 0, 0, - sys_nosys }, /* 141 = unimplemented old getpeername */ + { 3, s(struct compat_43_sys_getpeername_args), + compat_43_sys_getpeername }, /* 141 = getpeername */ { 0, 0, compat_43_sys_gethostid }, /* 142 = gethostid */ { 1, s(struct compat_43_sys_sethostid_args), @@ -319,8 +319,8 @@ struct sysent osf1_sysent[] = { sys_nosys }, /* 148 = unimplemented quotactl */ { 0, 0, compat_43_sys_quota }, /* 149 = quota */ - { 0, 0, - sys_nosys }, /* 150 = unimplemented old getsockname */ + { 3, s(struct compat_43_sys_getsockname_args), + compat_43_sys_getsockname }, /* 150 = getsockname */ { 0, 0, sys_nosys }, /* 151 = unimplemented pread */ { 0, 0,