summary refs log tree commit diff stats
path: root/bsd-user/syscall_defs.h
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2021-08-05 13:41:52 -0600
committerWarner Losh <imp@bsdimp.com>2021-09-10 14:13:06 -0600
commit790baacc63c1cb29bfc3bf0755f49ca73a348eae (patch)
tree18e7ea67e8081e13d23ff7e4cf0fca8347d5a26b /bsd-user/syscall_defs.h
parent312a0b1cbf941c37d3d3aeb1ed651613e04262b5 (diff)
downloadfocaccia-qemu-790baacc63c1cb29bfc3bf0755f49ca73a348eae.tar.gz
focaccia-qemu-790baacc63c1cb29bfc3bf0755f49ca73a348eae.zip
bsd-user: *BSD specific siginfo defintions
Add FreeBSD, NetBSD and OpenBSD values for the various signal info types
and defines to decode different signals to discover more information
about the specific signal types.

Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Acked-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Kyle Evans <kevans@FreeBSD.org>
Diffstat (limited to 'bsd-user/syscall_defs.h')
-rw-r--r--bsd-user/syscall_defs.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/bsd-user/syscall_defs.h b/bsd-user/syscall_defs.h
index 207ddeecbf..eb7d1da9b0 100644
--- a/bsd-user/syscall_defs.h
+++ b/bsd-user/syscall_defs.h
@@ -37,8 +37,6 @@
  *      @(#)signal.h    8.2 (Berkeley) 1/21/94
  */
 
-#define TARGET_NSIG     32              /* counting 0; could be 33 (mask is 1-32) */
-
 #define TARGET_SIGHUP  1       /* hangup */
 #define TARGET_SIGINT  2       /* interrupt */
 #define TARGET_SIGQUIT 3       /* quit */
@@ -72,14 +70,6 @@
 #define TARGET_SIGUSR1 30       /* user defined signal 1 */
 #define TARGET_SIGUSR2 31       /* user defined signal 2 */
 
-/*
- * Language spec says we must list exactly one parameter, even though we
- * actually supply three.  Ugh!
- */
-#define TARGET_SIG_DFL         (void (*)(int))0
-#define TARGET_SIG_IGN         (void (*)(int))1
-#define TARGET_SIG_ERR         (void (*)(int))-1
-
 #define TARGET_SA_ONSTACK       0x0001  /* take signal on signal stack */
 #define TARGET_SA_RESTART       0x0002  /* restart system on signal return */
 #define TARGET_SA_RESETHAND     0x0004  /* reset to SIG_DFL when taking signal */