From 0b81c940772a855ac39f2049829df754303ebd3b Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Wed, 28 Jun 2000 11:51:19 +0000 Subject: [PATCH] (sigunblock): Define. --- src/s/isc4-0.h | 3 +++ src/s/sco5.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/s/isc4-0.h b/src/s/isc4-0.h index 53d0c07aea5..ccd6cb0627f 100644 --- a/src/s/isc4-0.h +++ b/src/s/isc4-0.h @@ -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 */ diff --git a/src/s/sco5.h b/src/s/sco5.h index 89168b2068e..863f303f7a7 100644 --- a/src/s/sco5.h +++ b/src/s/sco5.h @@ -135,6 +135,9 @@ Boston, MA 02111-1307, USA. */ #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) -- 2.39.2