summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPhilip Guenthe <guenther@cvs.openbsd.org>2009-11-27 19:47:46 +0000
committerPhilip Guenthe <guenther@cvs.openbsd.org>2009-11-27 19:47:46 +0000
commit7fd2c499074a7f0b6adb702b617d57e09581d5f5 (patch)
tree9915d7ff61ab18a16b4016fceea22b8a18f45340 /sys
parent1a35791f7ddc3e9de92e3c8c0e0f009aef9276d8 (diff)
Add a signal for librthread to use for interthread ASTs for cancelation
and suspension. "get it in" deraadt@, tedu@, cheers by others
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/signal.h7
-rw-r--r--sys/sys/signalvar.h3
2 files changed, 7 insertions, 3 deletions
diff --git a/sys/sys/signal.h b/sys/sys/signal.h
index 7b01c019459..e2eeb1a4052 100644
--- a/sys/sys/signal.h
+++ b/sys/sys/signal.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: signal.h,v 1.19 2006/01/08 14:20:16 millert Exp $ */
+/* $OpenBSD: signal.h,v 1.20 2009/11/27 19:47:45 guenther Exp $ */
/* $NetBSD: signal.h,v 1.21 1996/02/09 18:25:32 christos Exp $ */
/*
@@ -43,7 +43,7 @@
#include <sys/cdefs.h>
#include <machine/signal.h> /* sigcontext; codes for SIGILL, SIGFPE */
-#define _NSIG 32 /* counting 0; could be 33 (mask is 1-32) */
+#define _NSIG 33 /* counting 0 (mask is 1-32) */
#if __BSD_VISIBLE
#define NSIG _NSIG
@@ -87,6 +87,9 @@
#endif
#define SIGUSR1 30 /* user defined signal 1 */
#define SIGUSR2 31 /* user defined signal 2 */
+#if __BSD_VISIBLE
+#define SIGTHR 32 /* thread library AST */
+#endif
/*
* Language spec says we must list exactly one parameter, even though we
diff --git a/sys/sys/signalvar.h b/sys/sys/signalvar.h
index 0e9b0423344..5fa4ef65704 100644
--- a/sys/sys/signalvar.h
+++ b/sys/sys/signalvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: signalvar.h,v 1.17 2008/12/16 07:57:28 guenther Exp $ */
+/* $OpenBSD: signalvar.h,v 1.18 2009/11/27 19:47:45 guenther Exp $ */
/* $NetBSD: signalvar.h,v 1.17 1996/04/22 01:23:31 christos Exp $ */
/*
@@ -138,6 +138,7 @@ int sigprop[NSIG + 1] = {
SA_IGNORE, /* SIGINFO */
SA_KILL, /* SIGUSR1 */
SA_KILL, /* SIGUSR2 */
+ SA_IGNORE, /* SIGTHR */
};
#define contsigmask (sigmask(SIGCONT))