Source-Changes-HG archive

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

[src/trunk]: src/sys Remove an element from struct emul: e_tracesig



details:   https://anonhg.NetBSD.org/src/rev/56ce8f473faa
branches:  trunk
changeset: 318837:56ce8f473faa
user:      kamil <kamil%NetBSD.org@localhost>
date:      Sun May 06 13:40:50 2018 +0000
description:
Remove an element from struct emul: e_tracesig

e_tracesig used to be implemented for Darwin compat. Nowadays the Darwin
compatiblity layer is gone and there are no other users.

This functionality isn't used where it shall be used in the existing
codebase.

If we want to emulate debugging interfaces in compat layers we would need
to implement that from scratch anyway. We would need to be bug compatible
with other OSes too.

Proposed on tech-kern@.

Welcome to NetBSD 8.99.16!

Sponsored by <The NetBSD Foundation>

diffstat:

 sys/compat/aoutm68k/aoutm68k_exec.c      |   5 ++---
 sys/compat/freebsd/freebsd_exec.c        |   5 ++---
 sys/compat/ibcs2/ibcs2_exec.c            |   5 ++---
 sys/compat/linux/common/linux_exec.c     |   5 ++---
 sys/compat/linux32/common/linux32_exec.c |   5 ++---
 sys/compat/netbsd32/netbsd32_netbsd.c    |   5 ++---
 sys/compat/osf1/osf1_exec.c              |   5 ++---
 sys/compat/sunos/sunos_exec.c            |   5 ++---
 sys/compat/sunos32/sunos32_exec.c        |   5 ++---
 sys/compat/svr4/svr4_exec.c              |   5 ++---
 sys/compat/svr4_32/svr4_32_exec.c        |   5 ++---
 sys/compat/ultrix/ultrix_misc.c          |   5 ++---
 sys/kern/kern_exec.c                     |   5 ++---
 sys/kern/kern_sig.c                      |  10 ++++------
 sys/sys/param.h                          |   4 ++--
 sys/sys/proc.h                           |   3 +--
 16 files changed, 33 insertions(+), 49 deletions(-)

diffs (truncated from 404 to 300 lines):

diff -r ce38114cf70b -r 56ce8f473faa sys/compat/aoutm68k/aoutm68k_exec.c
--- a/sys/compat/aoutm68k/aoutm68k_exec.c       Sun May 06 10:45:32 2018 +0000
+++ b/sys/compat/aoutm68k/aoutm68k_exec.c       Sun May 06 13:40:50 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aoutm68k_exec.c,v 1.28 2018/01/09 20:55:42 maya Exp $  */
+/*     $NetBSD: aoutm68k_exec.c,v 1.29 2018/05/06 13:40:50 kamil Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aoutm68k_exec.c,v 1.28 2018/01/09 20:55:42 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aoutm68k_exec.c,v 1.29 2018/05/06 13:40:50 kamil Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_syscall_debug.h"
@@ -69,7 +69,6 @@
 #endif
        .e_sendsig =            sendsig,
        .e_trapsignal =         trapsignal,
-       .e_tracesig =           NULL,
        .e_sigcode =            sigcode,
        .e_esigcode =           esigcode,
        .e_sigobject =          &emul_netbsd_aoutm68k_object,
diff -r ce38114cf70b -r 56ce8f473faa sys/compat/freebsd/freebsd_exec.c
--- a/sys/compat/freebsd/freebsd_exec.c Sun May 06 10:45:32 2018 +0000
+++ b/sys/compat/freebsd/freebsd_exec.c Sun May 06 13:40:50 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: freebsd_exec.c,v 1.40 2018/01/09 20:55:42 maya Exp $   */
+/*     $NetBSD: freebsd_exec.c,v 1.41 2018/05/06 13:40:50 kamil Exp $  */
 
 /*
  * Copyright (c) 1993, 1994 Christopher G. Demetriou
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: freebsd_exec.c,v 1.40 2018/01/09 20:55:42 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: freebsd_exec.c,v 1.41 2018/05/06 13:40:50 kamil Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_syscall_debug.h"
@@ -79,7 +79,6 @@
 #endif
        .e_sendsig =            freebsd_sendsig,
        .e_trapsignal =         trapsignal,
-       .e_tracesig =           NULL,
        .e_sigcode =            freebsd_sigcode,
        .e_esigcode =           freebsd_esigcode,
        .e_sigobject =          &emul_freebsd_object,
diff -r ce38114cf70b -r 56ce8f473faa sys/compat/ibcs2/ibcs2_exec.c
--- a/sys/compat/ibcs2/ibcs2_exec.c     Sun May 06 10:45:32 2018 +0000
+++ b/sys/compat/ibcs2/ibcs2_exec.c     Sun May 06 13:40:50 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ibcs2_exec.c,v 1.77 2018/01/09 20:55:42 maya Exp $     */
+/*     $NetBSD: ibcs2_exec.c,v 1.78 2018/05/06 13:40:51 kamil Exp $    */
 
 /*
  * Copyright (c) 1994, 1995, 1998 Scott Bartram
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ibcs2_exec.c,v 1.77 2018/01/09 20:55:42 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ibcs2_exec.c,v 1.78 2018/05/06 13:40:51 kamil Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_syscall_debug.h"
@@ -93,7 +93,6 @@
 #endif
        .e_sendsig =            ibcs2_sendsig,
        .e_trapsignal =         trapsignal,
-       .e_tracesig =           NULL,
        .e_sigcode =            ibcs2_sigcode,
        .e_esigcode =           ibcs2_esigcode,
        .e_sigobject =          &emul_ibcs2_object,
diff -r ce38114cf70b -r 56ce8f473faa sys/compat/linux/common/linux_exec.c
--- a/sys/compat/linux/common/linux_exec.c      Sun May 06 10:45:32 2018 +0000
+++ b/sys/compat/linux/common/linux_exec.c      Sun May 06 13:40:50 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_exec.c,v 1.118 2018/01/09 20:55:42 maya Exp $    */
+/*     $NetBSD: linux_exec.c,v 1.119 2018/05/06 13:40:51 kamil Exp $   */
 
 /*-
  * Copyright (c) 1994, 1995, 1998, 2000, 2007, 2008 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_exec.c,v 1.118 2018/01/09 20:55:42 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_exec.c,v 1.119 2018/05/06 13:40:51 kamil Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -92,7 +92,6 @@
        .e_syscallnames =       linux_syscallnames,
        .e_sendsig =            linux_sendsig,
        .e_trapsignal =         linux_trapsignal,
-       .e_tracesig =           NULL,
        .e_sigcode =            linux_sigcode,
        .e_esigcode =           linux_esigcode,
        .e_sigobject =          &emul_linux_object,
diff -r ce38114cf70b -r 56ce8f473faa sys/compat/linux32/common/linux32_exec.c
--- a/sys/compat/linux32/common/linux32_exec.c  Sun May 06 10:45:32 2018 +0000
+++ b/sys/compat/linux32/common/linux32_exec.c  Sun May 06 13:40:50 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux32_exec.c,v 1.22 2018/01/09 20:55:42 maya Exp $ */
+/*     $NetBSD: linux32_exec.c,v 1.23 2018/05/06 13:40:51 kamil Exp $ */
 
 /*-
  * Copyright (c) 1994-2007 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_exec.c,v 1.22 2018/01/09 20:55:42 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_exec.c,v 1.23 2018/05/06 13:40:51 kamil Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -77,7 +77,6 @@
        .e_syscallnames =       linux32_syscallnames,
        .e_sendsig =            linux32_sendsig,
        .e_trapsignal =         linux_trapsignal,
-       .e_tracesig =           NULL,
        .e_sigcode =            linux32_sigcode,
        .e_esigcode =           linux32_esigcode,
        .e_sigobject =          &emul_linux32_object,
diff -r ce38114cf70b -r 56ce8f473faa sys/compat/netbsd32/netbsd32_netbsd.c
--- a/sys/compat/netbsd32/netbsd32_netbsd.c     Sun May 06 10:45:32 2018 +0000
+++ b/sys/compat/netbsd32/netbsd32_netbsd.c     Sun May 06 13:40:50 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_netbsd.c,v 1.215 2018/03/15 00:48:13 christos Exp $   */
+/*     $NetBSD: netbsd32_netbsd.c,v 1.216 2018/05/06 13:40:51 kamil Exp $      */
 
 /*
  * Copyright (c) 1998, 2001, 2008 Matthew R. Green
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.215 2018/03/15 00:48:13 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.216 2018/05/06 13:40:51 kamil Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ddb.h"
@@ -132,7 +132,6 @@
 #endif
        .e_sendsig =            netbsd32_sendsig,
        .e_trapsignal =         trapsignal,
-       .e_tracesig =           NULL,
 #ifdef COMPAT_16
        .e_sigcode =            netbsd32_sigcode,
        .e_esigcode =           netbsd32_esigcode,
diff -r ce38114cf70b -r 56ce8f473faa sys/compat/osf1/osf1_exec.c
--- a/sys/compat/osf1/osf1_exec.c       Sun May 06 10:45:32 2018 +0000
+++ b/sys/compat/osf1/osf1_exec.c       Sun May 06 13:40:50 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: osf1_exec.c,v 1.45 2018/01/09 20:55:43 maya Exp $ */
+/* $NetBSD: osf1_exec.c,v 1.46 2018/05/06 13:40:51 kamil Exp $ */
 
 /*
  * Copyright (c) 1999 Christopher G. Demetriou.  All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: osf1_exec.c,v 1.45 2018/01/09 20:55:43 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: osf1_exec.c,v 1.46 2018/05/06 13:40:51 kamil Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_syscall_debug.h"
@@ -77,7 +77,6 @@
 #endif
        .e_sendsig =            sendsig_sigcontext,
        .e_trapsignal =         trapsignal,
-       .e_tracesig =           NULL,
        .e_sigcode =            osf1_sigcode,
        .e_esigcode =           osf1_esigcode,
        .e_sigobject =          &emul_osf1_object,
diff -r ce38114cf70b -r 56ce8f473faa sys/compat/sunos/sunos_exec.c
--- a/sys/compat/sunos/sunos_exec.c     Sun May 06 10:45:32 2018 +0000
+++ b/sys/compat/sunos/sunos_exec.c     Sun May 06 13:40:50 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sunos_exec.c,v 1.55 2018/01/09 20:55:43 maya Exp $     */
+/*     $NetBSD: sunos_exec.c,v 1.56 2018/05/06 13:40:51 kamil Exp $    */
 
 /*
  * Copyright (c) 1993 Theo de Raadt
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunos_exec.c,v 1.55 2018/01/09 20:55:43 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos_exec.c,v 1.56 2018/05/06 13:40:51 kamil Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_syscall_debug.h"
@@ -79,7 +79,6 @@
 #endif
        .e_sendsig =            sunos_sendsig,
        .e_trapsignal =         trapsignal,
-       .e_tracesig =           NULL,
        .e_sigcode =            sunos_sigcode,
        .e_esigcode =           sunos_esigcode,
        .e_sigobject =          &emul_sunos_object,
diff -r ce38114cf70b -r 56ce8f473faa sys/compat/sunos32/sunos32_exec.c
--- a/sys/compat/sunos32/sunos32_exec.c Sun May 06 10:45:32 2018 +0000
+++ b/sys/compat/sunos32/sunos32_exec.c Sun May 06 13:40:50 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sunos32_exec.c,v 1.34 2018/01/09 20:55:43 maya Exp $    */
+/*     $NetBSD: sunos32_exec.c,v 1.35 2018/05/06 13:40:51 kamil Exp $   */
 
 /*
  * Copyright (c) 2001 Matthew R. Green
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunos32_exec.c,v 1.34 2018/01/09 20:55:43 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos32_exec.c,v 1.35 2018/05/06 13:40:51 kamil Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_syscall_debug.h"
@@ -78,7 +78,6 @@
 #endif
        .e_sendsig =            sunos32_sendsig,
        .e_trapsignal =         trapsignal,
-       .e_tracesig =           NULL,
        .e_sigcode =            sunos_sigcode,
        .e_esigcode =           sunos_esigcode,
        .e_sigobject =          &emul_sunos32_object,
diff -r ce38114cf70b -r 56ce8f473faa sys/compat/svr4/svr4_exec.c
--- a/sys/compat/svr4/svr4_exec.c       Sun May 06 10:45:32 2018 +0000
+++ b/sys/compat/svr4/svr4_exec.c       Sun May 06 13:40:50 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: svr4_exec.c,v 1.67 2018/01/09 20:55:43 maya Exp $       */
+/*     $NetBSD: svr4_exec.c,v 1.68 2018/05/06 13:40:51 kamil Exp $      */
 
 /*-
  * Copyright (c) 1994, 2000 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: svr4_exec.c,v 1.67 2018/01/09 20:55:43 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: svr4_exec.c,v 1.68 2018/05/06 13:40:51 kamil Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_syscall_debug.h"
@@ -77,7 +77,6 @@
 #endif
        .e_sendsig =            svr4_sendsig,
        .e_trapsignal =         trapsignal,
-       .e_tracesig =           NULL,
        .e_sigcode =            svr4_sigcode,
        .e_esigcode =           svr4_esigcode,
        .e_sigobject =          &emul_svr4_object,
diff -r ce38114cf70b -r 56ce8f473faa sys/compat/svr4_32/svr4_32_exec.c
--- a/sys/compat/svr4_32/svr4_32_exec.c Sun May 06 10:45:32 2018 +0000
+++ b/sys/compat/svr4_32/svr4_32_exec.c Sun May 06 13:40:50 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: svr4_32_exec.c,v 1.28 2018/01/09 20:55:43 maya Exp $    */
+/*     $NetBSD: svr4_32_exec.c,v 1.29 2018/05/06 13:40:51 kamil Exp $   */
 
 /*-
  * Copyright (c) 1994, 2000 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: svr4_32_exec.c,v 1.28 2018/01/09 20:55:43 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: svr4_32_exec.c,v 1.29 2018/05/06 13:40:51 kamil Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_syscall_debug.h"
@@ -80,7 +80,6 @@
 #endif
        .e_sendsig =            svr4_32_sendsig,
        .e_trapsignal =         trapsignal,
-       .e_tracesig =           NULL,
        .e_sigcode =            svr4_32_sigcode,
        .e_esigcode =           svr4_32_esigcode,
        .e_sigobject =          &emul_svr4_32_object,
diff -r ce38114cf70b -r 56ce8f473faa sys/compat/ultrix/ultrix_misc.c
--- a/sys/compat/ultrix/ultrix_misc.c   Sun May 06 10:45:32 2018 +0000
+++ b/sys/compat/ultrix/ultrix_misc.c   Sun May 06 13:40:50 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ultrix_misc.c,v 1.123 2018/01/09 20:55:43 maya Exp $   */
+/*     $NetBSD: ultrix_misc.c,v 1.124 2018/05/06 13:40:51 kamil Exp $  */
 
 /*
  * Copyright (c) 1995, 1997 Jonathan Stone (hereinafter referred to as the author)
@@ -76,7 +76,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ultrix_misc.c,v 1.123 2018/01/09 20:55:43 maya Exp $");



Home | Main Index | Thread Index | Old Index