constify siginfo/trapsignal
This commit is contained in:
parent
963c94e78e
commit
ecfb034cb3
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: frame.h,v 1.22 2003/09/23 11:33:50 cl Exp $ */
|
||||
/* $NetBSD: frame.h,v 1.23 2003/09/25 22:04:17 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1990, 1993
|
||||
|
@ -252,7 +252,7 @@ extern struct fpframe m68k_cached_fpu_idle_frame;
|
|||
void *getframe(struct lwp *, int, int *);
|
||||
void buildcontext(struct lwp *, void *, void *);
|
||||
#ifdef COMPAT_16
|
||||
void sendsig_sigcontext(ksiginfo_t *, sigset_t *);
|
||||
void sendsig_sigcontext(const ksiginfo_t *, const sigset_t *);
|
||||
#endif
|
||||
|
||||
#endif /* _KERNEL */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: compat_16_machdep.c,v 1.1 2003/09/22 14:18:39 cl Exp $ */
|
||||
/* $NetBSD: compat_16_machdep.c,v 1.2 2003/09/25 22:04:17 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1990, 1993
|
||||
|
@ -75,7 +75,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: compat_16_machdep.c,v 1.1 2003/09/22 14:18:39 cl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: compat_16_machdep.c,v 1.2 2003/09/25 22:04:17 christos Exp $");
|
||||
|
||||
#include "opt_compat_netbsd.h"
|
||||
|
||||
|
@ -118,7 +118,7 @@ extern int sigpid;
|
|||
* Send an interrupt to process.
|
||||
*/
|
||||
void
|
||||
sendsig_sigcontext(ksiginfo_t *ksi, sigset_t *mask)
|
||||
sendsig_sigcontext(const ksiginfo_t *ksi, const sigset_t *mask)
|
||||
{
|
||||
struct lwp *l = curlwp;
|
||||
struct proc *p = l->l_proc;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: linux_trap.c,v 1.4 2003/09/22 14:36:42 cl Exp $ */
|
||||
/* $NetBSD: linux_trap.c,v 1.5 2003/09/25 22:04:17 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -37,7 +37,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_trap.c,v 1.4 2003/09/22 14:36:42 cl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_trap.c,v 1.5 2003/09/25 22:04:17 christos Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -51,6 +51,6 @@ __KERNEL_RCSID(0, "$NetBSD: linux_trap.c,v 1.4 2003/09/22 14:36:42 cl Exp $");
|
|||
#include <compat/linux/common/linux_exec.h>
|
||||
|
||||
void
|
||||
linux_trapsignal(struct lwp *l, ksiginfo_t *ksi) {
|
||||
linux_trapsignal(struct lwp *l, const ksiginfo_t *ksi) {
|
||||
trapsignal(l, ksi);
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sig_machdep.c,v 1.22 2003/09/22 14:18:42 cl Exp $ */
|
||||
/* $NetBSD: sig_machdep.c,v 1.23 2003/09/25 22:04:17 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1990, 1993
|
||||
|
@ -75,7 +75,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: sig_machdep.c,v 1.22 2003/09/22 14:18:42 cl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: sig_machdep.c,v 1.23 2003/09/25 22:04:17 christos Exp $");
|
||||
|
||||
#include "opt_compat_netbsd.h"
|
||||
|
||||
|
@ -173,7 +173,7 @@ buildcontext(struct lwp *l, void *catcher, void *fp)
|
|||
}
|
||||
|
||||
static void
|
||||
sendsig_siginfo(ksiginfo_t *ksi, sigset_t *mask)
|
||||
sendsig_siginfo(const ksiginfo_t *ksi, const sigset_t *mask)
|
||||
{
|
||||
struct lwp *l = curlwp;
|
||||
struct proc *p = l->l_proc;
|
||||
|
@ -227,7 +227,7 @@ sendsig_siginfo(ksiginfo_t *ksi, sigset_t *mask)
|
|||
}
|
||||
|
||||
void
|
||||
sendsig(ksiginfo_t *ksi, sigset_t *mask)
|
||||
sendsig(const ksiginfo_t *ksi, const sigset_t *mask)
|
||||
{
|
||||
#ifdef COMPAT_16
|
||||
if (curproc->p_sigacts->sa_sigdesc[ksi->ksi_signo].sd_vers < 2)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sunos_machdep.c,v 1.25 2003/09/22 14:34:57 cl Exp $ */
|
||||
/* $NetBSD: sunos_machdep.c,v 1.26 2003/09/25 22:04:17 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
|
||||
|
@ -77,7 +77,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: sunos_machdep.c,v 1.25 2003/09/22 14:34:57 cl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: sunos_machdep.c,v 1.26 2003/09/25 22:04:17 christos Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -132,7 +132,7 @@ struct sunos_sigframe {
|
|||
* SIG_DFL for "dangerous" signals.
|
||||
*/
|
||||
void
|
||||
sunos_sendsig(ksiginfo_t *ksi, sigset_t *mask)
|
||||
sunos_sendsig(const ksiginfo_t *ksi, const sigset_t *mask)
|
||||
{
|
||||
u_long code = ksi->ksi_trap;
|
||||
int sig = ksi->ksi_signo;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: svr4_machdep.c,v 1.13 2003/09/22 14:47:35 cl Exp $ */
|
||||
/* $NetBSD: svr4_machdep.c,v 1.14 2003/09/25 22:04:17 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
|
@ -37,7 +37,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: svr4_machdep.c,v 1.13 2003/09/22 14:47:35 cl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: svr4_machdep.c,v 1.14 2003/09/25 22:04:17 christos Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -248,7 +248,7 @@ svr4_getsiginfo(sip, sig, code, addr)
|
|||
}
|
||||
|
||||
void
|
||||
svr4_sendsig(ksiginfo_t *ksi, sigset_t *mask)
|
||||
svr4_sendsig(const ksiginfo_t *ksi, const sigset_t *mask)
|
||||
{
|
||||
u_long code = ksi->ksi_trap;
|
||||
int sig = ksi->ksi_signo;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sig_machdep.c,v 1.14 2003/09/25 21:59:55 matt Exp $ */
|
||||
/* $NetBSD: sig_machdep.c,v 1.15 2003/09/25 22:04:17 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
||||
|
@ -32,7 +32,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: sig_machdep.c,v 1.14 2003/09/25 21:59:55 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: sig_machdep.c,v 1.15 2003/09/25 22:04:17 christos Exp $");
|
||||
|
||||
#include "opt_compat_netbsd.h"
|
||||
#include "opt_ppcarch.h"
|
||||
|
@ -53,7 +53,7 @@ __KERNEL_RCSID(0, "$NetBSD: sig_machdep.c,v 1.14 2003/09/25 21:59:55 matt Exp $"
|
|||
* Send a signal to process.
|
||||
*/
|
||||
void
|
||||
sendsig(ksiginfo_t *ksi, sigset_t *mask)
|
||||
sendsig(const ksiginfo_t *ksi, const sigset_t *mask)
|
||||
{
|
||||
struct lwp * const l = curlwp;
|
||||
struct proc * const p = l->l_proc;
|
||||
|
|
Loading…
Reference in New Issue