Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/pgoyette-compat]: src/sys/arch/mips/mips Make netbsd32_sendsig_sigino() ...
details: https://anonhg.NetBSD.org/src/rev/cfe41ef6eb1d
branches: pgoyette-compat
changeset: 830840:cfe41ef6eb1d
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Sat Sep 29 10:22:36 2018 +0000
description:
Make netbsd32_sendsig_sigino() non-static since we need to call it from
the _md_16 code.
While here, use __func__ in a diagnostic message rather than hardcoding
the function name.
diffstat:
sys/arch/mips/mips/netbsd32_machdep.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r d8d4701bf598 -r cfe41ef6eb1d sys/arch/mips/mips/netbsd32_machdep.c
--- a/sys/arch/mips/mips/netbsd32_machdep.c Sat Sep 29 10:18:29 2018 +0000
+++ b/sys/arch/mips/mips/netbsd32_machdep.c Sat Sep 29 10:22:36 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_machdep.c,v 1.15.2.5 2018/09/29 09:45:51 pgoyette Exp $ */
+/* $NetBSD: netbsd32_machdep.c,v 1.15.2.6 2018/09/29 10:22:36 pgoyette Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.15.2.5 2018/09/29 09:45:51 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.15.2.6 2018/09/29 10:22:36 pgoyette Exp $");
#include "opt_compat_netbsd.h"
#include "opt_coredump.h"
@@ -75,7 +75,7 @@
netbsd32_vm_default_addr
#endif
-static int netbsd32_sendsig_siginfo(const ksiginfo_t *, const sigset_t *);
+int netbsd32_sendsig_siginfo(const ksiginfo_t *, const sigset_t *);
struct sigframe_siginfo32 {
siginfo32_t sf_si;
@@ -85,7 +85,7 @@
/*
* Send a signal to process.
*/
-static int
+int
netbsd32_sendsig_siginfo(const ksiginfo_t *ksi, const sigset_t *mask)
{
struct lwp * const l = curlwp;
@@ -108,7 +108,7 @@
case 0: /* handled by sendsig_sigcontext */
case 1: /* handled by sendsig_sigcontext */
default: /* unknown version */
- printf("sendsig_siginfo: bad version %d\n",
+ printf("%s: bad version %d\n", __func__,
ps->sa_sigdesc[sig].sd_vers);
sigexit(l, SIGILL);
case 2:
Home |
Main Index |
Thread Index |
Old Index