summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libc/gen/siglist.c5
-rw-r--r--lib/libc/gen/signame.c5
-rw-r--r--sys/sys/signal.h7
-rw-r--r--sys/sys/signalvar.h3
4 files changed, 13 insertions, 7 deletions
diff --git a/lib/libc/gen/siglist.c b/lib/libc/gen/siglist.c
index 65c32c08b0d..c0c049cae66 100644
--- a/lib/libc/gen/siglist.c
+++ b/lib/libc/gen/siglist.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: siglist.c,v 1.4 2005/08/08 08:05:34 espie Exp $ */
+/* $OpenBSD: siglist.c,v 1.5 2009/11/27 19:47:45 guenther Exp $ */
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
@@ -63,5 +63,6 @@ const char *const _sys_siglist[NSIG] = {
"Window size changes", /* SIGWINCH */
"Information request", /* SIGINFO */
"User defined signal 1", /* SIGUSR1 */
- "User defined signal 2" /* SIGUSR2 */
+ "User defined signal 2", /* SIGUSR2 */
+ "Thread AST", /* SIGTHR */
};
diff --git a/lib/libc/gen/signame.c b/lib/libc/gen/signame.c
index 51f80e3d4ed..39841917fa9 100644
--- a/lib/libc/gen/signame.c
+++ b/lib/libc/gen/signame.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: signame.c,v 1.4 2005/08/08 08:05:34 espie Exp $ */
+/* $OpenBSD: signame.c,v 1.5 2009/11/27 19:47:45 guenther Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
* All rights reserved.
@@ -63,5 +63,6 @@ const char *const sys_signame[NSIG] = {
"WINCH", /* SIGWINCH */
"INFO", /* SIGINFO */
"USR1", /* SIGUSR1 */
- "USR2" /* SIGUSR2 */
+ "USR2", /* SIGUSR2 */
+ "THR", /* SIGTHR */
};
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))