Commit 094d2b0e authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(sigblock, sigunblock) [USG5_4]: Set

sigprocmask_set, and pass a pointer to it to sigprocmask.
parent 6a9f1263
......@@ -78,11 +78,17 @@ sigset_t sys_sigsetmask P_ ((sigset_t new_mask));
#else /* ! defined (POSIX_SIGNALS) */
#ifdef USG5_4
extern SIGMASKTYPE sigprocmask_set;
#ifndef sigblock
#define sigblock(sig) (sigprocmask (SIG_BLOCK, SIGEMPTYMASK | sig, NULL))
#define sigblock(sig) \
(sigprocmask_set = SIGEMPTYMASK | (sig), \
sigprocmask (SIG_BLOCK, &sigprocmask_set, NULL))
#endif
#define sigunblock(sig) (sigprocmask (SIG_SETMASK, SIGFULLMASK & ~(sig), NULL))
#define sigunblock(sig) \
(sigprocmask_set = SIGFULLMASK & ~(sig), \
sigprocmask (SIG_SETMASK, &sigprocmask_set, NULL))
#else
#ifdef USG
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment