changeset 29970:628cd9eccd18

(sigunblock): Define.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 28 Jun 2000 11:51:19 +0000
parents 141257f69879
children 939e6ca411e9
files src/s/isc4-0.h src/s/sco5.h
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/s/isc4-0.h	Wed Jun 28 04:48:17 2000 +0000
+++ b/src/s/isc4-0.h	Wed Jun 28 11:51:19 2000 +0000
@@ -23,5 +23,8 @@
 #define sigblock(sig)					\
      (sigprocmask_set = SIGEMPTYMASK | (sig),		\
       sigprocmask (SIG_BLOCK, &sigprocmask_set, NULL))
+#define sigunblock(sig)						\
+     (sigprocmask_set = SIGFULLMASK & ~(sig),			\
+      sigprocmask (SIG_SETMASK, &sigprocmask_set, NULL))
 #endif
 #endif /* not POSIX_SIGNALS */
--- a/src/s/sco5.h	Wed Jun 28 04:48:17 2000 +0000
+++ b/src/s/sco5.h	Wed Jun 28 11:51:19 2000 +0000
@@ -135,6 +135,9 @@
 #define sigblock(sig)					\
      (sigprocmask_set = SIGEMPTYMASK | (sig),		\
       sigprocmask (SIG_BLOCK, &sigprocmask_set, NULL))
+#define sigunblock(sig)						\
+     (sigprocmask_set = SIGFULLMASK & ~(sig),			\
+      sigprocmask (SIG_SETMASK, &sigprocmask_set, NULL))
 
 #ifndef PENDING_OUTPUT_COUNT
 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base)