Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/include Making "struct sigcontext" visible on...
details: https://anonhg.NetBSD.org/src/rev/5ed8aed5addd
branches: trunk
changeset: 1024569:5ed8aed5addd
user: thorpej <thorpej%NetBSD.org@localhost>
date: Thu Oct 28 23:41:06 2021 +0000
description:
Making "struct sigcontext" visible only to _LIBC || _KERNEL is too
restrictive for sparc (it's accessed by libasan).
diffstat:
sys/arch/sparc/include/signal.h | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r cef2712e7af3 -r 5ed8aed5addd sys/arch/sparc/include/signal.h
--- a/sys/arch/sparc/include/signal.h Thu Oct 28 22:20:08 2021 +0000
+++ b/sys/arch/sparc/include/signal.h Thu Oct 28 23:41:06 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: signal.h,v 1.25 2021/10/27 01:12:23 thorpej Exp $ */
+/* $NetBSD: signal.h,v 1.26 2021/10/28 23:41:06 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -45,6 +45,8 @@
#include <sys/featuretest.h>
+#define __HAVE_STRUCT_SIGCONTEXT
+
#ifndef _LOCORE
typedef int sig_atomic_t;
#endif
@@ -79,8 +81,6 @@
};
#endif /* _KERNEL */
-#if defined(_LIBC) || defined(_KERNEL)
-#define __HAVE_STRUCT_SIGCONTEXT
struct sigcontext {
int sc_onstack; /* sigstack state to restore */
int __sc_mask13; /* signal mask to restore (old style) */
@@ -97,7 +97,6 @@
long sc_o0; /* %o0 to restore */
sigset_t sc_mask; /* signal mask to restore (new style) */
};
-#endif /* _LIBC || _KERNEL */
#else /* _LOCORE */
/* XXXXX These values don't work for _LP64 */
Home |
Main Index |
Thread Index |
Old Index