Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Remove _lwp_gettid(2) system call. This problem is...



details:   https://anonhg.NetBSD.org/src/rev/ea93f2fac9de
branches:  trunk
changeset: 1009395:ea93f2fac9de
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Apr 22 21:22:21 2020 +0000

description:
Remove _lwp_gettid(2) system call.  This problem is going to be solved
another way.  (Note: this call was never exposed in libc, so we can just
recycle the syscall number.)

diffstat:

 sys/compat/netbsd32/syscalls.master |   4 ++--
 sys/kern/sys_lwp.c                  |  12 ++----------
 sys/kern/syscalls.master            |   6 +++---
 3 files changed, 7 insertions(+), 15 deletions(-)

diffs (71 lines):

diff -r 294a01bc7802 -r ea93f2fac9de sys/compat/netbsd32/syscalls.master
--- a/sys/compat/netbsd32/syscalls.master       Wed Apr 22 19:32:11 2020 +0000
+++ b/sys/compat/netbsd32/syscalls.master       Wed Apr 22 21:22:21 2020 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.134 2020/04/04 20:20:12 thorpej Exp $
+       $NetBSD: syscalls.master,v 1.135 2020/04/22 21:22:21 thorpej Exp $
 
 ;      from: NetBSD: syscalls.master,v 1.81 1998/07/05 08:49:50 jonathan Exp
 ;      @(#)syscalls.master     8.2 (Berkeley) 1/13/94
@@ -747,7 +747,7 @@
                                netbsd32_charp name, netbsd32_size_t len); }
 325    STD             { int|netbsd32||_lwp_ctl(int features, \
                                netbsd32_pointer_t address); }
-326    NOARGS          { lwptid_t|sys||_lwp_gettid(void); }
+326    UNIMPL
 327    UNIMPL
 328    UNIMPL
 329    UNIMPL
diff -r 294a01bc7802 -r ea93f2fac9de sys/kern/sys_lwp.c
--- a/sys/kern/sys_lwp.c        Wed Apr 22 19:32:11 2020 +0000
+++ b/sys/kern/sys_lwp.c        Wed Apr 22 21:22:21 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sys_lwp.c,v 1.77 2020/04/19 20:35:29 ad Exp $  */
+/*     $NetBSD: sys_lwp.c,v 1.78 2020/04/22 21:22:21 thorpej Exp $     */
 
 /*-
  * Copyright (c) 2001, 2006, 2007, 2008, 2019, 2020 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_lwp.c,v 1.77 2020/04/19 20:35:29 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_lwp.c,v 1.78 2020/04/22 21:22:21 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -175,14 +175,6 @@
 }
 
 int
-sys__lwp_gettid(struct lwp *l, const void *v, register_t *retval)
-{
-
-       *retval = lwp_gettid();
-       return 0;
-}
-
-int
 sys__lwp_getprivate(struct lwp *l, const void *v, register_t *retval)
 {
 
diff -r 294a01bc7802 -r ea93f2fac9de sys/kern/syscalls.master
--- a/sys/kern/syscalls.master  Wed Apr 22 19:32:11 2020 +0000
+++ b/sys/kern/syscalls.master  Wed Apr 22 21:22:21 2020 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.301 2020/04/12 22:06:17 christos Exp $
+       $NetBSD: syscalls.master,v 1.302 2020/04/22 21:22:21 thorpej Exp $
 
 ;      @(#)syscalls.master     8.2 (Berkeley) 1/13/94
 
@@ -661,8 +661,8 @@
                                char *name, size_t len); }
 325    STD             { int|sys||_lwp_ctl(int features, \
                                struct lwpctl **address); }
-326    STD             { lwptid_t|sys||_lwp_gettid(void); }
-; Syscalls 327-339 reserved for LWP syscalls.
+; Syscalls 326-339 reserved for LWP syscalls.
+326    UNIMPL
 327    UNIMPL
 328    UNIMPL
 329    UNIMPL



Home | Main Index | Thread Index | Old Index