Mercurial > emacs
changeset 7903:40bb379c9550
(sigblock) [USG5_4]: Define if not defined.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 15 Jun 1994 04:05:32 +0000 |
parents | 22b9aaaf0302 |
children | c2259f58ef7e |
files | src/syssignal.h |
diffstat | 1 files changed, 11 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/syssignal.h Wed Jun 15 04:01:33 1994 +0000 +++ b/src/syssignal.h Wed Jun 15 04:05:32 1994 +0000 @@ -48,15 +48,15 @@ #endif /* ! defined (__GNUC__) */ #endif -#define sigpause(SIG) sys_sigpause(SIG) -#define sigblock(SIG) sys_sigblock(SIG) -#define sigunblock(SIG) sys_sigunblock(SIG) -#define sigsetmask(SIG) sys_sigsetmask(SIG) +#define sigpause(SIG) sys_sigpause (SIG) +#define sigblock(SIG) sys_sigblock (SIG) +#define sigunblock(SIG) sys_sigunblock (SIG) +#define sigsetmask(SIG) sys_sigsetmask (SIG) #define sighold(SIG) ONLY_USED_IN_BSD_4_1 #define sigrelse(SIG) ONLY_USED_IN_BSD_4_1 /* Whether this is what all systems want or not, this is what - appears to be assumed in the source, for example data.c:arith_error() */ + appears to be assumed in the source, for example data.c:arith_error. */ typedef RETSIGTYPE (*signal_handler_t) (int); signal_handler_t sys_signal (int signal_number, signal_handler_t action); @@ -65,12 +65,16 @@ sigset_t sys_sigunblock (sigset_t new_mask); sigset_t sys_sigsetmask (sigset_t new_mask); -#define sys_sigdel(MASK,SIG) sigdelset(&MASK,SIG) +#define sys_sigdel(MASK,SIG) sigdelset (&MASK,SIG) #else /* ! defined (POSIX_SIGNALS) */ #ifdef USG5_4 -#define sigunblock(sig) (sigprocmask(SIG_SETMASK, SIGFULLMASK & ~(sig), NULL)) +#ifndef sigblock +#define sigblock(sig) (sigprocmask (SIG_BLOCK, SIGEMPTYMASK & sig, NULL)) +#endif + +#define sigunblock(sig) (sigprocmask (SIG_SETMASK, SIGFULLMASK & ~(sig), NULL)) #else #ifdef USG