aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2009-11-26 13:49:37 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2009-11-26 13:49:37 +0000
commit9a6ceacede66acb56531ef673b7ab2e47961738c (patch)
tree1d70aa0b7d5fbac18fcff176e116e1f9f260c88c /sys
parent5dc1529c344be90424dab94a0dba0ee29d2e4923 (diff)
downloadsrc-9a6ceacede66acb56531ef673b7ab2e47961738c.tar.gz
src-9a6ceacede66acb56531ef673b7ab2e47961738c.zip
Implement sighold, sigignore, sigpause, sigrelse, sigset functions
from SUSv4 XSI. Note that the functions are obsoleted, and only provided to ease porting from System V-like systems. Since sigpause already exists in compat with different interface, XSI sigpause is named xsi_sigpause. Reviewed by: davidxu MFC after: 3 weeks
Notes
Notes: svn path=/head/; revision=199827
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/signal.h5
-rw-r--r--sys/sys/signalvar.h2
2 files changed, 3 insertions, 4 deletions
diff --git a/sys/sys/signal.h b/sys/sys/signal.h
index 81d45a9cc425..ff2d1fcbed29 100644
--- a/sys/sys/signal.h
+++ b/sys/sys/signal.h
@@ -119,9 +119,8 @@
#define SIG_DFL ((__sighandler_t *)0)
#define SIG_IGN ((__sighandler_t *)1)
#define SIG_ERR ((__sighandler_t *)-1)
-/*
- * XXX missing SIG_HOLD.
- */
+/* #define SIG_CATCH ((__sighandler_t *)2) See signalvar.h */
+#define SIG_HOLD ((__sighandler_t *)3)
/*-
* Type of a signal handling function.
diff --git a/sys/sys/signalvar.h b/sys/sys/signalvar.h
index fd0fac3d3a4a..c9455c2b83c5 100644
--- a/sys/sys/signalvar.h
+++ b/sys/sys/signalvar.h
@@ -97,7 +97,7 @@ typedef void __osiginfohandler_t(int, osiginfo_t *, void *);
/* additional signal action values, used only temporarily/internally */
#define SIG_CATCH ((__sighandler_t *)2)
-#define SIG_HOLD ((__sighandler_t *)3)
+/* #define SIG_HOLD ((__sighandler_t *)3) See signal.h */
/*
* get signal action for process and signal; currently only for current process