From 814bb999331ad4aa98d692edfa2d773c80304d15 Mon Sep 17 00:00:00 2001 From: jeff Date: Tue, 1 Apr 2003 00:34:29 +0000 Subject: - Regen for thr related system calls. --- sys/kern/init_sysent.c | 6 +++++- sys/kern/syscalls.c | 6 +++++- sys/sys/syscall.h | 8 ++++++-- sys/sys/syscall.mk | 8 ++++++-- sys/sys/sysproto.h | 25 ++++++++++++++++++++++++- 5 files changed, 46 insertions(+), 7 deletions(-) (limited to 'sys') diff --git a/sys/kern/init_sysent.c b/sys/kern/init_sysent.c index b2d2310..da044d2 100644 --- a/sys/kern/init_sysent.c +++ b/sys/kern/init_sysent.c @@ -3,7 +3,7 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/kern/syscalls.master,v 1.144 2003/02/20 08:18:15 davidxu Exp + * created from FreeBSD: src/sys/kern/syscalls.master,v 1.145 2003/03/31 23:30:41 jeff Exp */ #include "opt_compat.h" @@ -458,4 +458,8 @@ struct sysent sysent[] = { { SYF_MPSAFE | AS(__acl_delete_link_args), (sy_call_t *)__acl_delete_link }, /* 427 = __acl_delete_link */ { SYF_MPSAFE | AS(__acl_aclcheck_link_args), (sy_call_t *)__acl_aclcheck_link }, /* 428 = __acl_aclcheck_link */ { SYF_MPSAFE | AS(sigwait_args), (sy_call_t *)sigwait }, /* 429 = sigwait */ + { AS(thr_create_args), (sy_call_t *)thr_create }, /* 430 = thr_create */ + { 0, (sy_call_t *)thr_exit }, /* 431 = thr_exit */ + { AS(thr_self_args), (sy_call_t *)thr_self }, /* 432 = thr_self */ + { AS(thr_kill_args), (sy_call_t *)thr_kill }, /* 433 = thr_kill */ }; diff --git a/sys/kern/syscalls.c b/sys/kern/syscalls.c index f25ccf4..3eb0ce0 100644 --- a/sys/kern/syscalls.c +++ b/sys/kern/syscalls.c @@ -3,7 +3,7 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/kern/syscalls.master,v 1.144 2003/02/20 08:18:15 davidxu Exp + * created from FreeBSD: src/sys/kern/syscalls.master,v 1.145 2003/03/31 23:30:41 jeff Exp */ const char *syscallnames[] = { @@ -437,4 +437,8 @@ const char *syscallnames[] = { "__acl_delete_link", /* 427 = __acl_delete_link */ "__acl_aclcheck_link", /* 428 = __acl_aclcheck_link */ "sigwait", /* 429 = sigwait */ + "thr_create", /* 430 = thr_create */ + "thr_exit", /* 431 = thr_exit */ + "thr_self", /* 432 = thr_self */ + "thr_kill", /* 433 = thr_kill */ }; diff --git a/sys/sys/syscall.h b/sys/sys/syscall.h index 46cb3e0..17fcc32 100644 --- a/sys/sys/syscall.h +++ b/sys/sys/syscall.h @@ -3,7 +3,7 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/kern/syscalls.master,v 1.144 2003/02/20 08:18:15 davidxu Exp + * created from FreeBSD: src/sys/kern/syscalls.master,v 1.145 2003/03/31 23:30:41 jeff Exp */ #define SYS_syscall 0 @@ -337,4 +337,8 @@ #define SYS___acl_delete_link 427 #define SYS___acl_aclcheck_link 428 #define SYS_sigwait 429 -#define SYS_MAXSYSCALL 430 +#define SYS_thr_create 430 +#define SYS_thr_exit 431 +#define SYS_thr_self 432 +#define SYS_thr_kill 433 +#define SYS_MAXSYSCALL 434 diff --git a/sys/sys/syscall.mk b/sys/sys/syscall.mk index 9ba5b11..e993101 100644 --- a/sys/sys/syscall.mk +++ b/sys/sys/syscall.mk @@ -1,7 +1,7 @@ # FreeBSD system call names. # DO NOT EDIT-- this file is automatically generated. # $FreeBSD$ -# created from FreeBSD: src/sys/kern/syscalls.master,v 1.144 2003/02/20 08:18:15 davidxu Exp +# created from FreeBSD: src/sys/kern/syscalls.master,v 1.145 2003/03/31 23:30:41 jeff Exp MIASM = \ syscall.o \ exit.o \ @@ -282,4 +282,8 @@ MIASM = \ __acl_set_link.o \ __acl_delete_link.o \ __acl_aclcheck_link.o \ - sigwait.o + sigwait.o \ + thr_create.o \ + thr_exit.o \ + thr_self.o \ + thr_kill.o diff --git a/sys/sys/sysproto.h b/sys/sys/sysproto.h index 0892ffe..1be3270 100644 --- a/sys/sys/sysproto.h +++ b/sys/sys/sysproto.h @@ -3,7 +3,7 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/kern/syscalls.master,v 1.144 2003/02/20 08:18:15 davidxu Exp + * created from FreeBSD: src/sys/kern/syscalls.master,v 1.145 2003/03/31 23:30:41 jeff Exp */ #ifndef _SYS_SYSPROTO_H_ @@ -11,8 +11,12 @@ #include #include +#include +#include #include +#include + struct proc; struct thread; @@ -1236,6 +1240,21 @@ struct sigwait_args { char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)]; char sig_l_[PADL_(int *)]; int * sig; char sig_r_[PADR_(int *)]; }; +struct thr_create_args { + char ctx_l_[PADL_(ucontext_t *)]; ucontext_t * ctx; char ctx_r_[PADR_(ucontext_t *)]; + char id_l_[PADL_(thr_id_t *)]; thr_id_t * id; char id_r_[PADR_(thr_id_t *)]; + char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; +}; +struct thr_exit_args { + register_t dummy; +}; +struct thr_self_args { + char id_l_[PADL_(thr_id_t *)]; thr_id_t * id; char id_r_[PADR_(thr_id_t *)]; +}; +struct thr_kill_args { + char id_l_[PADL_(thr_id_t)]; thr_id_t id; char id_r_[PADR_(thr_id_t)]; + char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)]; +}; int nosys(struct thread *, struct nosys_args *); void sys_exit(struct thread *, struct sys_exit_args *); int fork(struct thread *, struct fork_args *); @@ -1515,6 +1534,10 @@ int __acl_set_link(struct thread *, struct __acl_set_link_args *); int __acl_delete_link(struct thread *, struct __acl_delete_link_args *); int __acl_aclcheck_link(struct thread *, struct __acl_aclcheck_link_args *); int sigwait(struct thread *, struct sigwait_args *); +int thr_create(struct thread *, struct thr_create_args *); +int thr_exit(struct thread *, struct thr_exit_args *); +int thr_self(struct thread *, struct thr_self_args *); +int thr_kill(struct thread *, struct thr_kill_args *); #ifdef COMPAT_43 -- cgit v1.1