Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Remove obsolete references to 4.4BSD papers



details:   https://anonhg.NetBSD.org/src/rev/6ebdd3588d36
branches:  trunk
changeset: 956033:6ebdd3588d36
user:      kamil <kamil%NetBSD.org@localhost>
date:      Mon Oct 19 14:47:01 2020 +0000

description:
Remove obsolete references to 4.4BSD papers

diffstat:

 sys/kern/sys_ptrace.c        |  38 ++------------------------------------
 sys/kern/sys_ptrace_common.c |  37 ++-----------------------------------
 2 files changed, 4 insertions(+), 71 deletions(-)

diffs (129 lines):

diff -r 7d44383d2683 -r 6ebdd3588d36 sys/kern/sys_ptrace.c
--- a/sys/kern/sys_ptrace.c     Mon Oct 19 13:44:25 2020 +0000
+++ b/sys/kern/sys_ptrace.c     Mon Oct 19 14:47:01 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sys_ptrace.c,v 1.6 2019/12/24 14:50:59 kamil Exp $     */
+/*     $NetBSD: sys_ptrace.c,v 1.7 2020/10/19 14:47:01 kamil Exp $     */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -106,19 +106,9 @@
  *     from: @(#)sys_process.c 8.1 (Berkeley) 6/10/93
  */
 
-/*
- * References:
- *     (1) Bach's "The Design of the UNIX Operating System",
- *     (2) sys/miscfs/procfs from UCB's 4.4BSD-Lite distribution,
- *     (3) the "4.4BSD Programmer's Reference Manual" published
- *             by USENIX and O'Reilly & Associates.
- * The 4.4BSD PRM does a reasonably good job of documenting what the various
- * ptrace() requests should actually do, and its text is quoted several times
- * in this file.
- */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_ptrace.c,v 1.6 2019/12/24 14:50:59 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_ptrace.c,v 1.7 2020/10/19 14:47:01 kamil Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ptrace.h"
@@ -139,7 +129,6 @@
 #include <sys/syscallargs.h>
 #include <sys/syscallvar.h>
 #include <sys/syscall.h>
-#include <sys/module.h>
 
 #include <uvm/uvm_extern.h>
 
@@ -225,26 +214,3 @@
         return do_ptrace(&native_ptm, l, SCARG(uap, req), SCARG(uap, pid),
             SCARG(uap, addr), SCARG(uap, data), retval);
 }
-
-#define        DEPS    "ptrace_common"  
-
-MODULE(MODULE_CLASS_EXEC, ptrace, DEPS);
- 
-static int
-ptrace_modcmd(modcmd_t cmd, void *arg)
-{
-       int error;
- 
-       switch (cmd) {
-       case MODULE_CMD_INIT: 
-               error = syscall_establish(&emul_netbsd, ptrace_syscalls);
-               break;
-       case MODULE_CMD_FINI:
-               error = syscall_disestablish(&emul_netbsd, ptrace_syscalls);
-               break;
-       default:
-               error = ENOTTY;
-               break;
-       }
-       return error;
-}
diff -r 7d44383d2683 -r 6ebdd3588d36 sys/kern/sys_ptrace_common.c
--- a/sys/kern/sys_ptrace_common.c      Mon Oct 19 13:44:25 2020 +0000
+++ b/sys/kern/sys_ptrace_common.c      Mon Oct 19 14:47:01 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sys_ptrace_common.c,v 1.84 2020/10/15 17:37:36 mgorny Exp $    */
+/*     $NetBSD: sys_ptrace_common.c,v 1.85 2020/10/19 14:47:01 kamil Exp $     */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -106,19 +106,9 @@
  *     from: @(#)sys_process.c 8.1 (Berkeley) 6/10/93
  */
 
-/*
- * References:
- *     (1) Bach's "The Design of the UNIX Operating System",
- *     (2) sys/miscfs/procfs from UCB's 4.4BSD-Lite distribution,
- *     (3) the "4.4BSD Programmer's Reference Manual" published
- *             by USENIX and O'Reilly & Associates.
- * The 4.4BSD PRM does a reasonably good job of documenting what the various
- * ptrace() requests should actually do, and its text is quoted several times
- * in this file.
- */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_ptrace_common.c,v 1.84 2020/10/15 17:37:36 mgorny Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_ptrace_common.c,v 1.85 2020/10/19 14:47:01 kamil Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ptrace.h"
@@ -145,7 +135,6 @@
 #include <sys/kauth.h>
 #include <sys/mount.h>
 #include <sys/syscallargs.h>
-#include <sys/module.h>
 #include <sys/condvar.h>
 #include <sys/mutex.h>
 #include <sys/compat_stub.h>
@@ -1796,25 +1785,3 @@
        return 0;
 }
 #endif /* PTRACE */
-
-MODULE(MODULE_CLASS_EXEC, ptrace_common, NULL);
- 
-static int
-ptrace_common_modcmd(modcmd_t cmd, void *arg)
-{
-        int error;
- 
-        switch (cmd) {
-        case MODULE_CMD_INIT:
-                error = ptrace_init();
-                break;
-        case MODULE_CMD_FINI:
-                error = ptrace_fini();
-                break;
-        default:
-               ptrace_hooks();
-                error = ENOTTY;
-                break;
-        }
-        return error;
-}



Home | Main Index | Thread Index | Old Index