Home
last modified time | relevance | path

Searched refs:sig (Results 1 – 25 of 238) sorted by relevance

12345678910

/glibc-2.36/sysdeps/unix/sysv/linux/
Dsigsetops.h27 #define __sigmask(sig) \ argument
28 (1UL << (((sig) - 1) % ULONG_WIDTH))
32 __sigword (int sig) in __sigword() argument
34 return (sig - 1) / ULONG_WIDTH; in __sigword()
92 __sigismember (const sigset_t *set, int sig) in __sigismember() argument
94 unsigned long int mask = __sigmask (sig); in __sigismember()
95 unsigned long int word = __sigword (sig); in __sigismember()
100 __sigaddset (sigset_t *set, int sig) in __sigaddset() argument
102 unsigned long int mask = __sigmask (sig); in __sigaddset()
103 unsigned long int word = __sigword (sig); in __sigaddset()
[all …]
Dinternal-sigset.h82 internal_sigismember (const internal_sigset_t *set, int sig) in internal_sigismember() argument
84 unsigned long int mask = __sigmask (sig); in internal_sigismember()
85 unsigned long int word = __sigword (sig); in internal_sigismember()
90 internal_sigaddset (internal_sigset_t *set, int sig) in internal_sigaddset() argument
92 unsigned long int mask = __sigmask (sig); in internal_sigaddset()
93 unsigned long int word = __sigword (sig); in internal_sigaddset()
98 internal_sigdelset (internal_sigset_t *set, int sig) in internal_sigdelset() argument
100 unsigned long int mask = __sigmask (sig); in internal_sigdelset()
101 unsigned long int word = __sigword (sig); in internal_sigdelset()
Dtst-getpid1-internal.c33 static int sig; variable
42 if (sigqueue (getppid (), sig, sival) != 0) in f()
53 sig = SIGRTMIN; in do_test()
56 sigaddset (&ss, sig); in do_test()
92 while (si.si_signo != sig || si.si_code != SI_QUEUE); in do_test()
Dtst-getpid1.c14 static int sig; variable
23 if (sigqueue (getppid (), sig, sival) != 0) in f()
34 sig = SIGRTMIN; in do_test()
37 sigaddset (&ss, sig); in do_test()
75 while (si.si_signo != sig || si.si_code != SI_QUEUE); in do_test()
/glibc-2.36/sysdeps/ia64/
Dia64libgcc.S114 setf.sig f8 = in0
115 setf.sig f9 = in1
144 getf.sig ret0 = f10
157 setf.sig f14 = in0
158 setf.sig f9 = in1
182 setf.sig f9 = in1
191 getf.sig ret0 = f10
204 setf.sig f8 = in0
205 setf.sig f9 = in1
233 getf.sig ret0 = f10
[all …]
/glibc-2.36/rt/
Dtst-timer-sigmask.c39 for (int sig = 1; sig < NSIG; sig++) in thread_handler() local
43 if (sigismember (&ss, sig)) in thread_handler()
45 TEST_VERIFY (sig != SIGKILL && sig != SIGSTOP); in thread_handler()
46 TEST_VERIFY (!is_internal_signal (sig)); in thread_handler()
48 if (test_verbose && sigismember (&ss, sig)) in thread_handler()
49 printf ("%d, ", sig); in thread_handler()
Dlio_listio-common.c75 struct sigevent *sig) in lio_listio_internal() argument
83 if (sig == NULL) in lio_listio_internal()
86 sig = &defsigev; in lio_listio_internal()
126 __aio_notify_only (sig); in lio_listio_internal()
221 waitlist->sigev = *sig; in lio_listio_internal()
236 struct sigevent *sig) in LIO_LISTIO_OLD() argument
245 return lio_listio_internal (mode | LIO_NO_INDIVIDUAL_EVENT, list, nent, sig); in LIO_LISTIO_OLD()
256 struct sigevent *sig) in LIO_LISTIO_NEW() argument
265 return lio_listio_internal (mode, list, nent, sig); in LIO_LISTIO_NEW()
/glibc-2.36/sysdeps/generic/
Dsigsetops.h26 # define __sigmask(sig) (((__sigset_t) 1) << ((sig) - 1)) argument
56 # define __sigismember(set, sig) \ argument
58 __sigset_t __mask = __sigmask (sig); \
62 # define __sigaddset(set, sig) \ argument
64 __sigset_t __mask = __sigmask (sig); \
69 # define __sigdelset(set, sig) \ argument
71 __sigset_t __mask = __sigmask (sig); \
Dsigset-cvt-mask.h56 unsigned int sig; in sigset_get_old_mask() local
58 for (sig = 1; sig < NSIG && sig <= sizeof (mask) * 8; sig++) in sigset_get_old_mask()
59 if (__sigismember (set, sig)) in sigset_get_old_mask()
60 mask |= __sigmask (sig); in sigset_get_old_mask()
/glibc-2.36/signal/
Dsigvec.c55 static void sigvec_wrapper_handler (int sig) __THROW;
67 __sigvec (int sig, in __sigvec() argument
116 if (__sigaction (sig, n, &old) < 0) in __sigvec()
129 data = &sigvec_wrapper_data[sig]; in __sigvec()
135 if (__sigaction (sig, &wrapper, &old) < 0) in __sigvec()
153 handler = sigvec_wrapper_data[sig].sw_handler; in __sigvec()
182 sigvec_wrapper_handler (int sig) in sigvec_wrapper_handler() argument
189 data = &sigvec_wrapper_data[sig]; in sigvec_wrapper_handler()
195 (void) __sigaction (sig, &act, (struct sigaction *) NULL); in sigvec_wrapper_handler()
198 (*handler) (sig); in sigvec_wrapper_handler()
Dtst-sigset2.c25 int sig; in printSigMask() local
35 for (sig = 1; sig < NSIG; sig++) in printSigMask()
37 if (sigismember (&currMask, sig)) in printSigMask()
40 printf ("\t\t%d (%s)\n", sig, strsignal (sig)); in printSigMask()
49 handler (int sig) in handler() argument
51 printf ("Caught signal %d\n", sig); in handler()
Dsigsetops.c29 __sigismember_compat (const __sigset_t *set, int sig) in __sigismember_compat() argument
31 return __sigismember (set, sig); in __sigismember_compat()
37 __sigaddset_compat (__sigset_t *set, int sig) in __sigaddset_compat() argument
39 __sigaddset (set, sig); in __sigaddset_compat()
46 __sigdelset_compat (__sigset_t *set, int sig) in __sigdelset_compat() argument
48 __sigdelset (set, sig); in __sigdelset_compat()
Dsigaction.c25 __sigaction (int sig, const struct sigaction *act, struct sigaction *oact) in __sigaction() argument
27 if (sig <= 0 || sig >= NSIG || is_internal_signal (sig)) in __sigaction()
33 return __libc_sigaction (sig, act, oact); in __sigaction()
Dtst-sigset.c13 #define VERIFY(set, sig) \ in do_test() argument
14 TEST_VERIFY (sigismember (&set, sig) == 0); \ in do_test()
15 TEST_VERIFY (sigaddset (&set, sig) == 0); \ in do_test()
16 TEST_VERIFY (sigismember (&set, sig) != 0); \ in do_test()
17 TEST_VERIFY (sigdelset (&set, sig) == 0); \ in do_test()
18 TEST_VERIFY (sigismember (&set, sig) == 0) in do_test()
/glibc-2.36/sysdeps/posix/
Dsignal.c29 __bsd_signal (int sig, __sighandler_t handler) in __bsd_signal() argument
34 if (handler == SIG_ERR || sig < 1 || sig >= NSIG in __bsd_signal()
35 || is_internal_signal (sig)) in __bsd_signal()
43 __sigaddset (&act.sa_mask, sig); in __bsd_signal()
44 act.sa_flags = __sigismember (&_sigintr, sig) ? 0 : SA_RESTART; in __bsd_signal()
45 if (__sigaction (sig, &act, &oact) < 0) in __bsd_signal()
Dsigset.c27 sigset (int sig, __sighandler_t disp) in sigset() argument
35 if (sigaddset (&set, sig) < 0) in sigset()
45 if (__sigismember (&oset, sig)) in sigset()
49 if (__sigaction (sig, NULL, &oact) < 0) in sigset()
59 if (__sigaction (sig, &act, &oact) < 0) in sigset()
67 return __sigismember (&oset, sig) ? SIG_HOLD : oact.sa_handler; in sigset()
Dsigwait.c25 static void ignore_signal (int sig);
34 do_sigwait (const sigset_t *set, int *sig) in do_sigwait() argument
79 *sig = was_sig; in do_sigwait()
85 __sigwait (const sigset_t *set, int *sig) in __sigwait() argument
95 ignore_signal (int sig) in weak_alias()
98 was_sig = sig; in weak_alias()
Dsigintr.c27 siginterrupt (int sig, int interrupt) in siginterrupt() argument
33 if (__sigaction (sig, (struct sigaction *) NULL, &action) < 0) in siginterrupt()
38 __sigaddset (&_sigintr, sig); in siginterrupt()
43 __sigdelset (&_sigintr, sig); in siginterrupt()
47 if (__sigaction (sig, &action, (struct sigaction *) NULL) < 0) in siginterrupt()
/glibc-2.36/hurd/
Dhurdmsg.c136 int sig; in get_int() local
139 for (sig = 1; sig < NSIG; ++sig) in get_int()
140 if (ss->actions[sig].sa_handler == SIG_IGN) in get_int()
141 __sigaddset (&ign, sig); in get_int()
213 int sig; in set_int() local
216 for (sig = 1; sig < NSIG; ++sig) in set_int()
218 if (__sigismember (&ign, sig)) in set_int()
219 ss->actions[sig].sa_handler = SIG_IGN; in set_int()
220 else if (ss->actions[sig].sa_handler == SIG_IGN) in set_int()
221 ss->actions[sig].sa_handler = SIG_DFL; in set_int()
/glibc-2.36/nptl/
Dtst-pthread-attr-sigmask.c49 for (int sig = 1; sig < _NSIG; ++sig) in check_sigmask() local
50 if (sigismember (actual_mask, sig) != expected_mask[sig]) in check_sigmask()
54 context, sig, in check_sigmask()
55 masked_or_unmasked (sigismember (actual_mask, sig)), in check_sigmask()
56 masked_or_unmasked (expected_mask[sig])); in check_sigmask()
/glibc-2.36/sysdeps/mach/hurd/
Dlibc_sigaction.c27 __libc_sigaction (int sig, const struct sigaction *act, in __libc_sigaction() argument
35 && ((__sigmask (sig) & _SIG_CANT_MASK) || act->sa_handler == SIG_ERR)) in __libc_sigaction()
49 old = _hurd_sigstate_actions (ss) [sig]; in __libc_sigaction()
51 _hurd_sigstate_actions (ss) [sig] = a; in __libc_sigaction()
53 if (act != NULL && sig == SIGCHLD in __libc_sigaction()
74 pending = _hurd_sigstate_pending (ss) & __sigmask (sig); in __libc_sigaction()
/glibc-2.36/stdio-common/
Dpsignal.c28 psignal (int sig, const char *s) in psignal() argument
37 if (sig >= 0 && sig < NSIG && (desc = __sys_siglist[sig]) != NULL) in psignal()
43 if (__asprintf (&buf, _("%s%sUnknown signal %d\n"), s, colon, sig) < 0) in psignal()
Dsiglist-gen.c25 #define init_sig(sig, abbrev, desc) [sig] = desc, argument
32 #define init_sig(sig, abbrev, desc) [sig] = abbrev, argument
/glibc-2.36/resolv/
Dgetaddrinfo_a.c37 __getaddrinfo_a (int mode, struct gaicb *list[], int ent, struct sigevent *sig) in __getaddrinfo_a() argument
52 if (sig == NULL) in __getaddrinfo_a()
55 sig = &defsigev; in __getaddrinfo_a()
90 __gai_notify_only (sig, in __getaddrinfo_a()
91 sig->sigev_notify == SIGEV_SIGNAL ? getpid () : 0); in __getaddrinfo_a()
155 pid_t caller_pid = sig->sigev_notify == SIGEV_SIGNAL ? getpid () : 0; in __getaddrinfo_a()
173 waitlist->sigev = *sig; in __getaddrinfo_a()
/glibc-2.36/sysdeps/pthread/
Deintr.c30 eintr_handler (int sig) in eintr_handler() argument
32 if (sig != the_sig) in eintr_handler()
70 setup_eintr (int sig, pthread_t *thp) in setup_eintr() argument
76 if (sigaction (sig, &sa, NULL) != 0) in setup_eintr()
81 the_sig = sig; in setup_eintr()

12345678910