diff options
author | Oliver Kiddle <opk@zsh.org> | 2024-09-14 19:14:40 +0200 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2024-09-14 19:14:40 +0200 |
commit | 79593399c4bfa3eefb7eaa379fdc922b9c14c0df (patch) | |
tree | 6a203b3cb977cd11f09e39c2f4902de46a9e6989 /Src/signals.h | |
parent | 6b9704e2c4e4c8524137a9c15bf9b166a975f3eb (diff) | |
download | zsh-79593399c4bfa3eefb7eaa379fdc922b9c14c0df.tar.gz zsh-79593399c4bfa3eefb7eaa379fdc922b9c14c0df.zip |
53080: remove code for systems that only have the old pre-POSIX signal()
Diffstat (limited to 'Src/signals.h')
-rw-r--r-- | Src/signals.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/Src/signals.h b/Src/signals.h index 7910f6b79..a9c12679f 100644 --- a/Src/signals.h +++ b/Src/signals.h @@ -27,8 +27,6 @@ * */ -#define SIGNAL_HANDTYPE void (*)(int) - #ifndef HAVE_KILLPG # define killpg(pgrp,sig) kill(-(pgrp),sig) #endif @@ -51,20 +49,6 @@ # define SV_INTERRUPT SV_BSDSIG #endif -/* If not a POSIX machine, then we create our * - * own POSIX style signal sets functions. */ -#ifndef POSIX_SIGNALS -# define sigemptyset(s) (*(s) = 0) -# if NSIG == 32 -# define sigfillset(s) (*(s) = ~(sigset_t)0, 0) -# else -# define sigfillset(s) (*(s) = (1 << NSIG) - 1, 0) -# endif -# define sigaddset(s,n) (*(s) |= (1 << ((n) - 1)), 0) -# define sigdelset(s,n) (*(s) &= ~(1 << ((n) - 1)), 0) -# define sigismember(s,n) ((*(s) & (1 << ((n) - 1))) != 0) -#endif /* ifndef POSIX_SIGNALS */ - #define child_block() signal_block(sigchld_mask) #define child_unblock() signal_unblock(sigchld_mask) |