Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Make killproc really public, and while we are there, constify.
details: https://anonhg.NetBSD.org/src/rev/2b3d089168bd
branches: trunk
changeset: 534513:2b3d089168bd
user: manu <manu%NetBSD.org@localhost>
date: Sun Jul 28 22:18:51 2002 +0000
description:
Make killproc really public, and while we are there, constify.
diffstat:
share/man/man9/signal.9 | 6 +++---
sys/kern/kern_sig.c | 7 +++----
sys/sys/signalvar.h | 3 ++-
3 files changed, 8 insertions(+), 8 deletions(-)
diffs (79 lines):
diff -r 83ccc8f03f69 -r 2b3d089168bd share/man/man9/signal.9
--- a/share/man/man9/signal.9 Sun Jul 28 22:16:47 2002 +0000
+++ b/share/man/man9/signal.9 Sun Jul 28 22:18:51 2002 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: signal.9,v 1.2 2002/07/09 14:05:29 wiz Exp $
+.\" $NetBSD: signal.9,v 1.3 2002/07/28 22:18:52 manu Exp $
.\"
.\" Copyright (c) 1996, 2002 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -104,7 +104,7 @@
.Ft void
.Fn postsig "int signum"
.Ft void
-.Fn killproc "struct proc *p" "char *why"
+.Fn killproc "struct proc *p" "const char *why"
.Ft void
.Fn sigexit "struct proc *p" "int signum"
.Ft int
@@ -347,7 +347,7 @@
a registered handler, the process exits using
.Fn sigexit ,
dumping a core image if necessary.
-.It void Fn killproc "struct proc *p" "char *why"
+.It void Fn killproc "struct proc *p" "const char *why"
.Pp
This function sends a SIGKILL signal to the specified process. The
message provided by
diff -r 83ccc8f03f69 -r 2b3d089168bd sys/kern/kern_sig.c
--- a/sys/kern/kern_sig.c Sun Jul 28 22:16:47 2002 +0000
+++ b/sys/kern/kern_sig.c Sun Jul 28 22:18:51 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_sig.c,v 1.121 2002/07/04 23:32:14 thorpej Exp $ */
+/* $NetBSD: kern_sig.c,v 1.122 2002/07/28 22:18:51 manu Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1991, 1993
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_sig.c,v 1.121 2002/07/04 23:32:14 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_sig.c,v 1.122 2002/07/28 22:18:51 manu Exp $");
#include "opt_ktrace.h"
#include "opt_compat_sunos.h"
@@ -81,7 +81,6 @@
#include <uvm/uvm_extern.h>
static void proc_stop(struct proc *p);
-void killproc(struct proc *, char *);
static int build_corename(struct proc *, char [MAXPATHLEN]);
sigset_t contsigmask, stopsigmask, sigcantmask;
@@ -1307,7 +1306,7 @@
* Kill the current process for stated reason.
*/
void
-killproc(struct proc *p, char *why)
+killproc(struct proc *p, const char *why)
{
log(LOG_ERR, "pid %d was killed: %s\n", p->p_pid, why);
diff -r 83ccc8f03f69 -r 2b3d089168bd sys/sys/signalvar.h
--- a/sys/sys/signalvar.h Sun Jul 28 22:16:47 2002 +0000
+++ b/sys/sys/signalvar.h Sun Jul 28 22:18:51 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: signalvar.h,v 1.33 2002/07/04 23:32:15 thorpej Exp $ */
+/* $NetBSD: signalvar.h,v 1.34 2002/07/28 22:18:51 manu Exp $ */
/*
* Copyright (c) 1991, 1993
@@ -218,6 +218,7 @@
void siginit __P((struct proc *p));
void trapsignal __P((struct proc *p, int sig, u_long code));
void sigexit __P((struct proc *, int));
+void killproc __P((struct proc *, const char *));
void setsigvec __P((struct proc *, int, struct sigaction *));
int killpg1 __P((struct proc *, int, int, int));
Home |
Main Index |
Thread Index |
Old Index