Lines Matching defs:set
29 // handler taking siginfo_t * argument, one can set sa_handler to sa_sigaction
30 // if SA_SIGINFO is set in sa_flags.
73 // Set the bit corresponding to |signal| in |set|. Return true on success
76 LIBC_INLINE constexpr bool add_signal(sigset_t &set, int signal) {
82 set.__signals[word] |= (1UL << bit);
86 // Reset the bit corresponding to |signal| in |set|. Return true on success
89 LIBC_INLINE constexpr bool delete_signal(sigset_t &set, int signal) {
95 set.__signals[word] &= ~(1UL << bit);
99 LIBC_INLINE int block_all_signals(sigset_t &set) {
102 &set, sizeof(sigset_t));
105 LIBC_INLINE int restore_signals(const sigset_t &set) {
107 &set, nullptr, sizeof(sigset_t));