Module Name:    src
Committed By:   kamil
Date:           Mon Oct 19 14:47:01 UTC 2020

Modified Files:
        src/sys/kern: sys_ptrace.c sys_ptrace_common.c

Log Message:
Remove obsolete references to 4.4BSD papers


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/kern/sys_ptrace.c
cvs rdiff -u -r1.84 -r1.85 src/sys/kern/sys_ptrace_common.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/sys_ptrace.c
diff -u src/sys/kern/sys_ptrace.c:1.6 src/sys/kern/sys_ptrace.c:1.7
--- src/sys/kern/sys_ptrace.c:1.6	Tue Dec 24 14:50:59 2019
+++ src/sys/kern/sys_ptrace.c	Mon Oct 19 14:47:01 2020
@@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: sys_ptrace.c
 #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 @@ sys_ptrace(struct lwp *l, const struct s
         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;
-}

Index: src/sys/kern/sys_ptrace_common.c
diff -u src/sys/kern/sys_ptrace_common.c:1.84 src/sys/kern/sys_ptrace_common.c:1.85
--- src/sys/kern/sys_ptrace_common.c:1.84	Thu Oct 15 17:37:36 2020
+++ src/sys/kern/sys_ptrace_common.c	Mon Oct 19 14:47:01 2020
@@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: sys_ptrace_c
 #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 @@ process_auxv_offset(struct proc *p, stru
 	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;
-}

Reply via email to