Index: usr.bin/kdump/kdump.c =================================================================== --- usr.bin/kdump/kdump.c (revision 263412) +++ usr.bin/kdump/kdump.c (working copy) @@ -1177,14 +1177,6 @@ ktrsyscall(struct ktr_syscall *ktr, u_int flags) ip++; narg--; break; - case SYS_thr_create: - print_number(ip, narg, c); - print_number(ip, narg, c); - putchar(','); - thrcreateflagsname(*ip); - ip++; - narg--; - break; case SYS_thr_kill: print_number(ip, narg, c); putchar(','); Index: lib/libc/sys/Symbol.map =================================================================== --- lib/libc/sys/Symbol.map (revision 263412) +++ lib/libc/sys/Symbol.map (working copy) @@ -293,7 +293,6 @@ FBSD_1.0 { sync; sysarch; syscall; - thr_create; thr_exit; thr_kill; thr_kill2; @@ -990,8 +989,6 @@ FBSDprivate_1.0 { __sys_sysarch; _syscall; __sys_syscall; - _thr_create; - __sys_thr_create; _thr_exit; __sys_thr_exit; _thr_kill; Index: sys/sys/thr.h =================================================================== --- sys/sys/thr.h (revision 263412) +++ sys/sys/thr.h (working copy) @@ -70,7 +70,6 @@ typedef __pid_t pid_t; #endif __BEGIN_DECLS -int thr_create(ucontext_t *ctx, long *id, int flags); int thr_new(struct thr_param *param, int param_size); int thr_self(long *id); void thr_exit(long *state); Index: sys/kern/kern_thr.c =================================================================== --- sys/kern/kern_thr.c (revision 263412) +++ sys/kern/kern_thr.c (working copy) @@ -98,21 +98,6 @@ static int create_thread(struct thread *td, mconte * System call interface. */ int -sys_thr_create(struct thread *td, struct thr_create_args *uap) - /* ucontext_t *ctx, long *id, int flags */ -{ - ucontext_t ctx; - int error; - - if ((error = copyin(uap->ctx, &ctx, sizeof(ctx)))) - return (error); - - error = create_thread(td, &ctx.uc_mcontext, NULL, NULL, - NULL, 0, NULL, uap->id, NULL, uap->flags, NULL); - return (error); -} - -int sys_thr_new(struct thread *td, struct thr_new_args *uap) /* struct thr_param * */ { Index: sys/kern/capabilities.conf =================================================================== --- sys/kern/capabilities.conf (revision 263412) +++ sys/kern/capabilities.conf (working copy) @@ -702,7 +702,6 @@ sysarch ## ## Allow thread operations operating only on current process. ## -thr_create thr_exit thr_kill Index: sys/kern/syscalls.master =================================================================== --- sys/kern/syscalls.master (revision 263412) +++ sys/kern/syscalls.master (working copy) @@ -768,8 +768,7 @@ acl_type_t type, struct acl *aclp); } 429 AUE_SIGWAIT STD { int sigwait(const sigset_t *set, \ int *sig); } -430 AUE_NULL STD { int thr_create(ucontext_t *ctx, long *id, \ - int flags); } +430 AUE_NULL UNIMPL nosys 431 AUE_NULL STD { void thr_exit(long *state); } 432 AUE_NULL STD { int thr_self(long *id); } 433 AUE_NULL STD { int thr_kill(long id, int sig); } Index: sys/compat/freebsd32/syscalls.master =================================================================== --- sys/compat/freebsd32/syscalls.master (revision 263412) +++ sys/compat/freebsd32/syscalls.master (working copy) @@ -771,7 +771,7 @@ acl_type_t type, struct acl *aclp); } 429 AUE_SIGWAIT NOPROTO { int sigwait(const sigset_t *set, \ int *sig); } -430 AUE_NULL UNIMPL thr_create; +430 AUE_NULL UNIMPL nosys 431 AUE_NULL NOPROTO { void thr_exit(long *state); } 432 AUE_NULL NOPROTO { int thr_self(long *id); } 433 AUE_NULL NOPROTO { int thr_kill(long id, int sig); }