Lines Matching refs:sig
33 unsigned long sig = _sig - 1; in sigaddset() local
35 set->sig[0] |= 1UL << sig; in sigaddset()
37 set->sig[sig / _NSIG_BPW] |= 1UL << (sig % _NSIG_BPW); in sigaddset()
42 unsigned long sig = _sig - 1; in sigdelset() local
44 set->sig[0] &= ~(1UL << sig); in sigdelset()
46 set->sig[sig / _NSIG_BPW] &= ~(1UL << (sig % _NSIG_BPW)); in sigdelset()
51 unsigned long sig = _sig - 1; in sigismember() local
53 return 1 & (set->sig[0] >> sig); in sigismember()
55 return 1 & (set->sig[sig / _NSIG_BPW] >> (sig % _NSIG_BPW)); in sigismember()
63 #define sigmask(sig) (1UL << ((sig) - 1)) argument
77 a0 = a->sig[4*i+0]; a1 = a->sig[4*i+1]; \
78 a2 = a->sig[4*i+2]; a3 = a->sig[4*i+3]; \
79 b0 = b->sig[4*i+0]; b1 = b->sig[4*i+1]; \
80 b2 = b->sig[4*i+2]; b3 = b->sig[4*i+3]; \
81 r->sig[4*i+0] = op(a0, b0); \
82 r->sig[4*i+1] = op(a1, b1); \
83 r->sig[4*i+2] = op(a2, b2); \
84 r->sig[4*i+3] = op(a3, b3); \
88 a0 = a->sig[4*i+0]; a1 = a->sig[4*i+1]; a2 = a->sig[4*i+2]; \
89 b0 = b->sig[4*i+0]; b1 = b->sig[4*i+1]; b2 = b->sig[4*i+2]; \
90 r->sig[4*i+0] = op(a0, b0); \
91 r->sig[4*i+1] = op(a1, b1); \
92 r->sig[4*i+2] = op(a2, b2); \
95 a0 = a->sig[4*i+0]; a1 = a->sig[4*i+1]; \
96 b0 = b->sig[4*i+0]; b1 = b->sig[4*i+1]; \
97 r->sig[4*i+0] = op(a0, b0); \
98 r->sig[4*i+1] = op(a1, b1); \
101 a0 = a->sig[4*i+0]; b0 = b->sig[4*i+0]; \
102 r->sig[4*i+0] = op(a0, b0); \
127 set->sig[4*i+0] = op(set->sig[4*i+0]); \ in _SIG_SET_BINOP()
128 set->sig[4*i+1] = op(set->sig[4*i+1]); \ in _SIG_SET_BINOP()
129 set->sig[4*i+2] = op(set->sig[4*i+2]); \ in _SIG_SET_BINOP()
130 set->sig[4*i+3] = op(set->sig[4*i+3]); \ in _SIG_SET_BINOP()
133 case 3: set->sig[4*i+2] = op(set->sig[4*i+2]); \ in _SIG_SET_BINOP()
134 case 2: set->sig[4*i+1] = op(set->sig[4*i+1]); \ in _SIG_SET_BINOP()
135 case 1: set->sig[4*i+0] = op(set->sig[4*i+0]); \ in _SIG_SET_BINOP()
151 case 2: set->sig[1] = 0;
152 case 1: set->sig[0] = 0;
163 case 2: set->sig[1] = (unsigned long)-1; in sigfillset()
164 case 1: set->sig[0] = (unsigned long)-1; in sigfillset()
175 set->sig[0] |= mask; in sigaddsetmask()
180 set->sig[0] &= ~mask; in sigdelsetmask()
185 return (set->sig[0] & mask) != 0; in sigtestsetmask()
190 set->sig[0] = mask; in siginitset()
193 memset(&set->sig[1], 0, sizeof(long)*(_NSIG_WORDS-1)); in siginitset()
195 case 2: set->sig[1] = 0; in siginitset()
202 set->sig[0] = ~mask; in siginitsetinv()
205 memset(&set->sig[1], -1, sizeof(long)*(_NSIG_WORDS-1)); in siginitsetinv()
207 case 2: set->sig[1] = (unsigned long)-1; in siginitsetinv()
214 static inline void init_sigpending(struct sigpending *sig) in init_sigpending() argument
216 sigemptyset(&sig->signal); in init_sigpending()
217 sig->head = NULL; in init_sigpending()
218 sig->tail = &sig->head; in init_sigpending()