From ffdf7a5fe8f18baa98b3d6a65d7dc91a134bbd6a Mon Sep 17 00:00:00 2001 From: christos Date: Tue, 7 Sep 1999 06:25:14 +0000 Subject: [PATCH] regen --- sys/compat/svr4/files.svr4 | 3 +- sys/compat/svr4/svr4_syscall.h | 34 ++++++++++++++- sys/compat/svr4/svr4_syscallargs.h | 68 ++++++++++++++++++++++++------ sys/compat/svr4/svr4_syscalls.c | 25 +++++------ sys/compat/svr4/svr4_sysent.c | 39 ++++++++--------- 5 files changed, 122 insertions(+), 47 deletions(-) diff --git a/sys/compat/svr4/files.svr4 b/sys/compat/svr4/files.svr4 index 0eaa12cf75d2..64027912a0d2 100644 --- a/sys/compat/svr4/files.svr4 +++ b/sys/compat/svr4/files.svr4 @@ -1,4 +1,4 @@ -# $NetBSD: files.svr4,v 1.10 1998/11/28 21:53:02 christos Exp $ +# $NetBSD: files.svr4,v 1.11 1999/09/07 06:25:14 christos Exp $ # # Config file description for machine-independent SVR4 compat code. # Included by ports that need it. @@ -12,6 +12,7 @@ file compat/svr4/svr4_fcntl.c compat_svr4 file compat/svr4/svr4_filio.c compat_svr4 file compat/svr4/svr4_ioctl.c compat_svr4 file compat/svr4/svr4_ipc.c compat_svr4 +file compat/svr4/svr4_lwp.c compat_svr4 file compat/svr4/svr4_misc.c compat_svr4 file compat/svr4/svr4_net.c compat_svr4 file compat/svr4/svr4_resource.c compat_svr4 diff --git a/sys/compat/svr4/svr4_syscall.h b/sys/compat/svr4/svr4_syscall.h index b6f1e5835054..7802fcbdc898 100644 --- a/sys/compat/svr4/svr4_syscall.h +++ b/sys/compat/svr4/svr4_syscall.h @@ -1,10 +1,10 @@ -/* $NetBSD: svr4_syscall.h,v 1.58 1999/03/22 17:30:41 sommerfe Exp $ */ +/* $NetBSD: svr4_syscall.h,v 1.59 1999/09/07 06:25:14 christos Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.43 1999/03/22 17:28:22 sommerfe Exp + * created from NetBSD: syscalls.master,v 1.44 1999/09/07 06:24:56 christos Exp */ /* syscall: "syscall" ret: "int" args: */ @@ -311,6 +311,9 @@ /* syscall: "fork1" ret: "int" args: */ #define SVR4_SYS_fork1 143 +/* syscall: "_lwp_info" ret: "int" args: "struct svr4_lwpinfo *" */ +#define SVR4_SYS__lwp_info 145 + /* syscall: "fchroot" ret: "int" args: "int" */ #define SVR4_SYS_fchroot 153 @@ -329,6 +332,33 @@ /* syscall: "setitimer" ret: "int" args: "u_int" "struct itimerval *" "struct itimerval *" */ #define SVR4_SYS_setitimer 158 +/* syscall: "_lwp_create" ret: "int" args: "svr4_ucontext_t *" "unsigned long" "svr4_lwpid_t *" */ +#define SVR4_SYS__lwp_create 159 + +/* syscall: "_lwp_exit" ret: "int" args: */ +#define SVR4_SYS__lwp_exit 160 + +/* syscall: "_lwp_suspend" ret: "int" args: "svr4_lwpid_t" */ +#define SVR4_SYS__lwp_suspend 161 + +/* syscall: "_lwp_continue" ret: "int" args: "svr4_lwpid_t" */ +#define SVR4_SYS__lwp_continue 162 + +/* syscall: "_lwp_kill" ret: "int" args: "svr4_lwpid_t" "int" */ +#define SVR4_SYS__lwp_kill 163 + +/* syscall: "_lwp_self" ret: "svr4_lwpid_t" args: */ +#define SVR4_SYS__lwp_self 164 + +/* syscall: "_lwp_getprivate" ret: "void *" args: */ +#define SVR4_SYS__lwp_getprivate 165 + +/* syscall: "_lwp_setprivate" ret: "int" args: "void *" */ +#define SVR4_SYS__lwp_setprivate 166 + +/* syscall: "_lwp_wait" ret: "int" args: "svr4_lwpid_t" "svr4_lwpid_t *" */ +#define SVR4_SYS__lwp_wait 167 + /* syscall: "pread" ret: "ssize_t" args: "int" "void *" "size_t" "svr4_off_t" */ #define SVR4_SYS_pread 173 diff --git a/sys/compat/svr4/svr4_syscallargs.h b/sys/compat/svr4/svr4_syscallargs.h index 6c99e74b52ae..81b688b221e9 100644 --- a/sys/compat/svr4/svr4_syscallargs.h +++ b/sys/compat/svr4/svr4_syscallargs.h @@ -1,10 +1,10 @@ -/* $NetBSD: svr4_syscallargs.h,v 1.56 1999/03/22 17:30:41 sommerfe Exp $ */ +/* $NetBSD: svr4_syscallargs.h,v 1.57 1999/09/07 06:25:14 christos Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.43 1999/03/22 17:28:22 sommerfe Exp + * created from NetBSD: syscalls.master,v 1.44 1999/09/07 06:24:56 christos Exp */ #ifndef _SVR4_SYS__SYSCALLARGS_H_ @@ -14,17 +14,17 @@ #undef syscallarg #endif -#define syscallarg(x) \ - union { \ - register_t pad; \ - struct { x datum; } le; \ - struct { \ - int8_t pad[ (sizeof (register_t) < sizeof (x)) \ - ? 0 \ - : sizeof (register_t) - sizeof (x)]; \ - x datum; \ - } be; \ - } +#define syscallarg(x) \ + union { \ + register_t pad; \ + struct { x datum; } le; \ + struct { \ + int8_t pad[ (sizeof (register_t) < sizeof (x)) \ + ? 0 \ + : sizeof (register_t) - sizeof (x)]; \ + x datum; \ + } be; \ + } struct svr4_sys_open_args { syscallarg(const char *) path; @@ -325,6 +325,10 @@ struct svr4_sys_systeminfo_args { syscallarg(long) len; }; +struct svr4_sys__lwp_info_args { + syscallarg(struct svr4_lwpinfo *) lwpinfo; +}; + struct svr4_sys_utimes_args { syscallarg(const char *) path; syscallarg(struct timeval *) tptr; @@ -334,6 +338,34 @@ struct svr4_sys_gettimeofday_args { syscallarg(struct timeval *) tp; }; +struct svr4_sys__lwp_create_args { + syscallarg(svr4_ucontext_t *) uc; + syscallarg(unsigned long) flags; + syscallarg(svr4_lwpid_t *) lwpid; +}; + +struct svr4_sys__lwp_suspend_args { + syscallarg(svr4_lwpid_t) lwpid; +}; + +struct svr4_sys__lwp_continue_args { + syscallarg(svr4_lwpid_t) lwpid; +}; + +struct svr4_sys__lwp_kill_args { + syscallarg(svr4_lwpid_t) lwpid; + syscallarg(int) signum; +}; + +struct svr4_sys__lwp_setprivate_args { + syscallarg(void *) buffer; +}; + +struct svr4_sys__lwp_wait_args { + syscallarg(svr4_lwpid_t) wait_for; + syscallarg(svr4_lwpid_t *) departed_lwp; +}; + struct svr4_sys_pread_args { syscallarg(int) fd; syscallarg(void *) buf; @@ -576,12 +608,22 @@ int sys_adjtime __P((struct proc *, void *, register_t *)); int svr4_sys_systeminfo __P((struct proc *, void *, register_t *)); int sys_seteuid __P((struct proc *, void *, register_t *)); int sys_fork __P((struct proc *, void *, register_t *)); +int svr4_sys__lwp_info __P((struct proc *, void *, register_t *)); int sys_fchroot __P((struct proc *, void *, register_t *)); int svr4_sys_utimes __P((struct proc *, void *, register_t *)); int svr4_sys_vhangup __P((struct proc *, void *, register_t *)); int svr4_sys_gettimeofday __P((struct proc *, void *, register_t *)); int sys_getitimer __P((struct proc *, void *, register_t *)); int sys_setitimer __P((struct proc *, void *, register_t *)); +int svr4_sys__lwp_create __P((struct proc *, void *, register_t *)); +int svr4_sys__lwp_exit __P((struct proc *, void *, register_t *)); +int svr4_sys__lwp_suspend __P((struct proc *, void *, register_t *)); +int svr4_sys__lwp_continue __P((struct proc *, void *, register_t *)); +int svr4_sys__lwp_kill __P((struct proc *, void *, register_t *)); +int svr4_sys__lwp_self __P((struct proc *, void *, register_t *)); +int svr4_sys__lwp_getprivate __P((struct proc *, void *, register_t *)); +int svr4_sys__lwp_setprivate __P((struct proc *, void *, register_t *)); +int svr4_sys__lwp_wait __P((struct proc *, void *, register_t *)); int svr4_sys_pread __P((struct proc *, void *, register_t *)); int svr4_sys_pwrite __P((struct proc *, void *, register_t *)); int svr4_sys_llseek __P((struct proc *, void *, register_t *)); diff --git a/sys/compat/svr4/svr4_syscalls.c b/sys/compat/svr4/svr4_syscalls.c index 9bebc7d5e104..6772a2266a2c 100644 --- a/sys/compat/svr4/svr4_syscalls.c +++ b/sys/compat/svr4/svr4_syscalls.c @@ -1,10 +1,10 @@ -/* $NetBSD: svr4_syscalls.c,v 1.57 1999/03/22 17:30:41 sommerfe Exp $ */ +/* $NetBSD: svr4_syscalls.c,v 1.58 1999/09/07 06:25:14 christos Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.43 1999/03/22 17:28:22 sommerfe Exp + * created from NetBSD: syscalls.master,v 1.44 1999/09/07 06:24:56 christos Exp */ #if defined(_KERNEL) && !defined(_LKM) @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -183,7 +184,7 @@ char *svr4_syscallnames[] = { "#142 (unimplemented vtrace)", /* 142 = unimplemented vtrace */ "fork1", /* 143 = fork1 */ "#144 (unimplemented sigtimedwait)", /* 144 = unimplemented sigtimedwait */ - "#145 (unimplemented lwp_info)", /* 145 = unimplemented lwp_info */ + "_lwp_info", /* 145 = _lwp_info */ "#146 (unimplemented yield)", /* 146 = unimplemented yield */ "#147 (unimplemented lwp_sema_wait)", /* 147 = unimplemented lwp_sema_wait */ "#148 (unimplemented lwp_sema_post)", /* 148 = unimplemented lwp_sema_post */ @@ -197,15 +198,15 @@ char *svr4_syscallnames[] = { "gettimeofday", /* 156 = gettimeofday */ "getitimer", /* 157 = getitimer */ "setitimer", /* 158 = setitimer */ - "#159 (unimplemented lwp_create)", /* 159 = unimplemented lwp_create */ - "#160 (unimplemented lwp_exit)", /* 160 = unimplemented lwp_exit */ - "#161 (unimplemented lwp_suspend)", /* 161 = unimplemented lwp_suspend */ - "#162 (unimplemented lwp_continue)", /* 162 = unimplemented lwp_continue */ - "#163 (unimplemented lwp_kill)", /* 163 = unimplemented lwp_kill */ - "#164 (unimplemented lwp_self)", /* 164 = unimplemented lwp_self */ - "#165 (unimplemented lwp_getprivate)", /* 165 = unimplemented lwp_getprivate */ - "#166 (unimplemented lwp_setprivate)", /* 166 = unimplemented lwp_setprivate */ - "#167 (unimplemented lwp_wait)", /* 167 = unimplemented lwp_wait */ + "_lwp_create", /* 159 = _lwp_create */ + "_lwp_exit", /* 160 = _lwp_exit */ + "_lwp_suspend", /* 161 = _lwp_suspend */ + "_lwp_continue", /* 162 = _lwp_continue */ + "_lwp_kill", /* 163 = _lwp_kill */ + "_lwp_self", /* 164 = _lwp_self */ + "_lwp_getprivate", /* 165 = _lwp_getprivate */ + "_lwp_setprivate", /* 166 = _lwp_setprivate */ + "_lwp_wait", /* 167 = _lwp_wait */ "#168 (unimplemented lwp_mutex_unlock)", /* 168 = unimplemented lwp_mutex_unlock */ "#169 (unimplemented lwp_mutex_lock)", /* 169 = unimplemented lwp_mutex_lock */ "#170 (unimplemented lwp_cond_wait)", /* 170 = unimplemented lwp_cond_wait */ diff --git a/sys/compat/svr4/svr4_sysent.c b/sys/compat/svr4/svr4_sysent.c index 8ab7ad231251..404c47831c5a 100644 --- a/sys/compat/svr4/svr4_sysent.c +++ b/sys/compat/svr4/svr4_sysent.c @@ -1,10 +1,10 @@ -/* $NetBSD: svr4_sysent.c,v 1.59 1999/03/22 17:30:41 sommerfe Exp $ */ +/* $NetBSD: svr4_sysent.c,v 1.60 1999/09/07 06:25:15 christos Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.43 1999/03/22 17:28:22 sommerfe Exp + * created from NetBSD: syscalls.master,v 1.44 1999/09/07 06:24:56 christos Exp */ #include "opt_sysv.h" @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include @@ -331,8 +332,8 @@ struct sysent svr4_sysent[] = { sys_fork }, /* 143 = fork1 */ { 0, 0, sys_nosys }, /* 144 = unimplemented sigtimedwait */ - { 0, 0, - sys_nosys }, /* 145 = unimplemented lwp_info */ + { 1, s(struct svr4_sys__lwp_info_args), + svr4_sys__lwp_info }, /* 145 = _lwp_info */ { 0, 0, sys_nosys }, /* 146 = unimplemented yield */ { 0, 0, @@ -359,24 +360,24 @@ struct sysent svr4_sysent[] = { sys_getitimer }, /* 157 = getitimer */ { 3, s(struct sys_setitimer_args), sys_setitimer }, /* 158 = setitimer */ + { 3, s(struct svr4_sys__lwp_create_args), + svr4_sys__lwp_create }, /* 159 = _lwp_create */ { 0, 0, - sys_nosys }, /* 159 = unimplemented lwp_create */ + svr4_sys__lwp_exit }, /* 160 = _lwp_exit */ + { 1, s(struct svr4_sys__lwp_suspend_args), + svr4_sys__lwp_suspend }, /* 161 = _lwp_suspend */ + { 1, s(struct svr4_sys__lwp_continue_args), + svr4_sys__lwp_continue }, /* 162 = _lwp_continue */ + { 2, s(struct svr4_sys__lwp_kill_args), + svr4_sys__lwp_kill }, /* 163 = _lwp_kill */ { 0, 0, - sys_nosys }, /* 160 = unimplemented lwp_exit */ + svr4_sys__lwp_self }, /* 164 = _lwp_self */ { 0, 0, - sys_nosys }, /* 161 = unimplemented lwp_suspend */ - { 0, 0, - sys_nosys }, /* 162 = unimplemented lwp_continue */ - { 0, 0, - sys_nosys }, /* 163 = unimplemented lwp_kill */ - { 0, 0, - sys_nosys }, /* 164 = unimplemented lwp_self */ - { 0, 0, - sys_nosys }, /* 165 = unimplemented lwp_getprivate */ - { 0, 0, - sys_nosys }, /* 166 = unimplemented lwp_setprivate */ - { 0, 0, - sys_nosys }, /* 167 = unimplemented lwp_wait */ + svr4_sys__lwp_getprivate }, /* 165 = _lwp_getprivate */ + { 1, s(struct svr4_sys__lwp_setprivate_args), + svr4_sys__lwp_setprivate }, /* 166 = _lwp_setprivate */ + { 2, s(struct svr4_sys__lwp_wait_args), + svr4_sys__lwp_wait }, /* 167 = _lwp_wait */ { 0, 0, sys_nosys }, /* 168 = unimplemented lwp_mutex_unlock */ { 0, 0,