Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Always define SA_SIGINFO, and keep track of it in SVR4 e...
details: https://anonhg.NetBSD.org/src/rev/c41558024ec0
branches: trunk
changeset: 525526:c41558024ec0
user: manu <manu%NetBSD.org@localhost>
date: Fri Apr 12 17:37:30 2002 +0000
description:
Always define SA_SIGINFO, and keep track of it in SVR4 emulation. This is
needed for IRIX signal delivery.
Approved by Christos.
diffstat:
sys/compat/svr4/svr4_signal.c | 6 +++---
sys/sys/signal.h | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (48 lines):
diff -r 41852e1cb53f -r c41558024ec0 sys/compat/svr4/svr4_signal.c
--- a/sys/compat/svr4/svr4_signal.c Fri Apr 12 17:02:33 2002 +0000
+++ b/sys/compat/svr4/svr4_signal.c Fri Apr 12 17:37:30 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: svr4_signal.c,v 1.44 2002/03/31 22:22:49 christos Exp $ */
+/* $NetBSD: svr4_signal.c,v 1.45 2002/04/12 17:37:30 manu Exp $ */
/*-
* Copyright (c) 1994, 1998 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: svr4_signal.c,v 1.44 2002/03/31 22:22:49 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: svr4_signal.c,v 1.45 2002/04/12 17:37:30 manu Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -143,7 +143,7 @@
if ((ssa->sa_flags & SVR4_SA_RESTART) != 0)
bsa->sa_flags |= SA_RESTART;
if ((ssa->sa_flags & SVR4_SA_SIGINFO) != 0)
- DPRINTF(("svr4_to_native_sigaction: SA_SIGINFO ignored\n"));
+ bsa->sa_flags |= SA_SIGINFO;
if ((ssa->sa_flags & SVR4_SA_NODEFER) != 0)
bsa->sa_flags |= SA_NODEFER;
if ((ssa->sa_flags & SVR4_SA_NOCLDWAIT) != 0)
diff -r 41852e1cb53f -r c41558024ec0 sys/sys/signal.h
--- a/sys/sys/signal.h Fri Apr 12 17:02:33 2002 +0000
+++ b/sys/sys/signal.h Fri Apr 12 17:37:30 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: signal.h,v 1.46 2002/03/20 14:30:11 christos Exp $ */
+/* $NetBSD: signal.h,v 1.47 2002/04/12 17:37:30 manu Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1991, 1993
@@ -203,9 +203,9 @@
#define SA_RESTART 0x0002 /* restart system on signal return */
#define SA_RESETHAND 0x0004 /* reset to SIG_DFL when taking signal */
#define SA_NODEFER 0x0010 /* don't mask the signal we're delivering */
-#if defined(_KERNEL) && defined(COMPAT_LINUX)
+#if defined(_KERNEL)
#define SA_SIGINFO 0x0040
-#endif /* (_KERNEL && linux) */
+#endif /* _KERNEL */
#endif /* (!_POSIX_C_SOURCE && !_XOPEN_SOURCE) || ... */
/* Only valid for SIGCHLD. */
#define SA_NOCLDSTOP 0x0008 /* do not generate SIGCHLD on child stop */
Home |
Main Index |
Thread Index |
Old Index