Home
last modified time | relevance | path

Searched refs:ss (Results 1 – 25 of 128) sorted by relevance

123456

/glibc-2.36/hurd/
Dhurdsig.c79 struct hurd_sigstate *ss; in _hurd_thread_sigstate() local
81 for (ss = _hurd_sigstates; ss != NULL; ss = ss->next) in _hurd_thread_sigstate()
82 if (ss->thread == thread) in _hurd_thread_sigstate()
84 if (ss == NULL) in _hurd_thread_sigstate()
86 ss = malloc (sizeof (*ss)); in _hurd_thread_sigstate()
87 if (ss == NULL) in _hurd_thread_sigstate()
89 __spin_lock_init (&ss->critical_section_lock); in _hurd_thread_sigstate()
90 __spin_lock_init (&ss->lock); in _hurd_thread_sigstate()
91 ss->thread = thread; in _hurd_thread_sigstate()
94 __sigemptyset (&ss->blocked); in _hurd_thread_sigstate()
[all …]
Dthread-cancel.c26 extern mach_port_t _hurdsig_abort_rpcs (struct hurd_sigstate *ss,
37 struct hurd_sigstate *ss = _hurd_thread_sigstate (thread); in hurd_thread_cancel() local
42 if (! ss) in hurd_thread_cancel()
44 if (ss == _hurd_self_sigstate ()) in hurd_thread_cancel()
50 ss->cancel = 1; in hurd_thread_cancel()
54 assert (! __spin_lock_locked (&ss->critical_section_lock)); in hurd_thread_cancel()
55 __spin_lock (&ss->critical_section_lock); in hurd_thread_cancel()
56 __spin_lock (&ss->lock); in hurd_thread_cancel()
58 __spin_unlock (&ss->lock); in hurd_thread_cancel()
63 ss->cancel = 1; in hurd_thread_cancel()
[all …]
Dcatch-signal.c43 struct hurd_sigstate *const ss = _hurd_self_sigstate (); in __hurd_catch_signal() local
56 __spin_lock (&ss->lock); in __hurd_catch_signal()
57 preemptor.next = ss->preemptors; in __hurd_catch_signal()
58 ss->preemptors = &preemptor; in __hurd_catch_signal()
59 __spin_unlock (&ss->lock); in __hurd_catch_signal()
69 __spin_lock (&ss->lock); in __hurd_catch_signal()
70 assert (ss->preemptors == &preemptor); in __hurd_catch_signal()
71 ss->preemptors = preemptor.next; in __hurd_catch_signal()
72 __spin_unlock (&ss->lock); in __hurd_catch_signal()
140 struct hurd_sigstate *const ss = _hurd_self_sigstate (); in hurd_safe_memmove() local
[all …]
Dsigunwind.c36 struct hurd_sigstate *ss = _hurd_self_sigstate (); in _hurdsig_longjmp_from_handler() local
57 __spin_lock (&ss->lock); in _hurdsig_longjmp_from_handler()
60 assert (__spin_lock_locked (&ss->critical_section_lock)); in _hurdsig_longjmp_from_handler()
62 onstack = (ss->sigaltstack.ss_flags & SS_ONSTACK); in _hurdsig_longjmp_from_handler()
63 __spin_unlock (&ss->lock); in _hurdsig_longjmp_from_handler()
85 for (link = ss->active_resources; in _hurdsig_longjmp_from_handler()
115 scp->sc_mask = ss->blocked; in _hurdsig_longjmp_from_handler()
122 assert (link->thread.next == ss->active_resources); in _hurdsig_longjmp_from_handler()
123 assert (link->thread.prevp == &ss->active_resources); in _hurdsig_longjmp_from_handler()
126 ss->active_resources = link; in _hurdsig_longjmp_from_handler()
[all …]
Dcatch-exc.c38 struct hurd_sigstate *ss; in _S_catch_exception_raise() local
62 for (ss = _hurd_sigstates; ss != NULL; ss = ss->next) in _S_catch_exception_raise()
63 if (ss->thread == thread) in _S_catch_exception_raise()
66 if (ss == NULL) in _S_catch_exception_raise()
67 ss = _hurd_thread_sigstate (thread); /* Allocate a fresh one. */ in _S_catch_exception_raise()
69 if (__spin_lock_locked (&ss->lock)) in _S_catch_exception_raise()
82 __spin_unlock (&ss->critical_section_lock); in _S_catch_exception_raise()
83 ss->context = NULL; in _S_catch_exception_raise()
84 __spin_unlock (&ss->lock); in _S_catch_exception_raise()
88 _hurd_internal_post_signal (ss, signo, &d, in _S_catch_exception_raise()
Dhurd-raise.c28 _hurd_raise_signal (struct hurd_sigstate *ss, in _hurd_raise_signal() argument
33 if (ss) in _hurd_raise_signal()
34 __spin_unlock (&ss->lock); in _hurd_raise_signal()
38 if (ss == NULL) in _hurd_raise_signal()
40 ss = _hurd_self_sigstate (); in _hurd_raise_signal()
41 __spin_lock (&ss->lock); in _hurd_raise_signal()
45 __sigaddset (&ss->pending, signo); in _hurd_raise_signal()
46 ss->pending_data[signo] = *detail; in _hurd_raise_signal()
48 __spin_unlock (&ss->lock); in _hurd_raise_signal()
Dhurdmsg.c126 struct hurd_sigstate *ss = _hurd_global_sigstate; in get_int() local
127 __spin_lock (&ss->lock); in get_int()
128 *value = ss->pending; in get_int()
129 __spin_unlock (&ss->lock); in get_int()
134 struct hurd_sigstate *ss = _hurd_global_sigstate; in get_int() local
137 __spin_lock (&ss->lock); in get_int()
140 if (ss->actions[sig].sa_handler == SIG_IGN) in get_int()
142 __spin_unlock (&ss->lock); in get_int()
204 struct hurd_sigstate *ss = _hurd_global_sigstate; in set_int() local
205 __spin_lock (&ss->lock); in set_int()
[all …]
Dctty-input.c45 struct hurd_sigstate *ss = _hurd_self_sigstate (); in _hurd_ctty_input() local
48 _hurd_sigstate_lock (ss); in _hurd_ctty_input()
49 actions = _hurd_sigstate_actions (ss); in _hurd_ctty_input()
50 if (__sigismember (&ss->blocked, SIGTTIN) in _hurd_ctty_input()
54 _hurd_sigstate_unlock (ss); in _hurd_ctty_input()
71 _hurd_sigstate_lock (ss); in _hurd_ctty_input()
72 actions = _hurd_sigstate_actions (ss); in _hurd_ctty_input()
75 _hurd_sigstate_unlock (ss); in _hurd_ctty_input()
Dctty-output.c32 struct hurd_sigstate *ss = _hurd_self_sigstate (); in _hurd_ctty_output() local
42 _hurd_sigstate_lock (ss); in _hurd_ctty_output()
43 actions = _hurd_sigstate_actions (ss); in _hurd_ctty_output()
44 if (__sigismember (&ss->blocked, SIGTTOU) in _hurd_ctty_output()
49 _hurd_sigstate_unlock (ss); in _hurd_ctty_output()
76 _hurd_sigstate_lock (ss); in _hurd_ctty_output()
77 actions = _hurd_sigstate_actions (ss); in _hurd_ctty_output()
80 _hurd_sigstate_unlock (ss); in _hurd_ctty_output()
/glibc-2.36/hurd/hurd/
Dsignal.h145 extern void _hurd_sigstate_set_global_rcv (struct hurd_sigstate *ss);
151 extern void _hurd_sigstate_lock (struct hurd_sigstate *ss);
152 extern struct sigaction *_hurd_sigstate_actions (struct hurd_sigstate *ss);
153 extern sigset_t _hurd_sigstate_pending (const struct hurd_sigstate *ss);
154 extern void _hurd_sigstate_unlock (struct hurd_sigstate *ss);
210 struct hurd_sigstate *ss; in _hurd_critical_section_lock() local
218 ss = THREAD_GETMEM (THREAD_SELF, _hurd_sigstate); in _hurd_critical_section_lock()
219 if (ss == NULL) in _hurd_critical_section_lock()
227 ss = _hurd_thread_sigstate (self); in _hurd_critical_section_lock()
228 THREAD_SETMEM (THREAD_SELF, _hurd_sigstate, ss); in _hurd_critical_section_lock()
[all …]
/glibc-2.36/sysdeps/mach/hurd/
Dsigsuspend.c30 struct hurd_sigstate *ss; in __sigsuspend() local
43 ss = _hurd_self_sigstate (); in __sigsuspend()
45 _hurd_sigstate_lock (ss); in __sigsuspend()
47 oldmask = ss->blocked; in __sigsuspend()
50 ss->blocked = newmask & ~_SIG_CANT_MASK; in __sigsuspend()
53 pending = _hurd_sigstate_pending (ss) & ~ss->blocked; in __sigsuspend()
56 ss->suspended = wait; in __sigsuspend()
57 _hurd_sigstate_unlock (ss); in __sigsuspend()
72 _hurd_sigstate_lock (ss); in __sigsuspend()
73 ss->blocked = oldmask; in __sigsuspend()
[all …]
Dsigprocmask.c30 struct hurd_sigstate *ss; in __sigprocmask() local
37 ss = _hurd_self_sigstate (); in __sigprocmask()
39 _hurd_sigstate_lock (ss); in __sigprocmask()
41 old = ss->blocked; in __sigprocmask()
48 __sigorset (&ss->blocked, &ss->blocked, &new); in __sigprocmask()
52 ss->blocked &= ~new; in __sigprocmask()
56 ss->blocked = new; in __sigprocmask()
60 _hurd_sigstate_unlock (ss); in __sigprocmask()
65 ss->blocked &= ~_SIG_CANT_MASK; in __sigprocmask()
68 pending = _hurd_sigstate_pending (ss) & ~ss->blocked; in __sigprocmask()
[all …]
Dsigwait.c30 struct hurd_sigstate *ss; in __sigwait() local
41 struct hurd_sigstate *ss, in __sigwait()
55 ss->blocked = blocked; in __sigwait()
75 ss = _hurd_self_sigstate (); in __sigwait()
77 _hurd_sigstate_lock (ss); in __sigwait()
80 sigset_t pending = _hurd_sigstate_pending (ss); in __sigwait()
106 preemptor.next = ss->preemptors; in __sigwait()
107 ss->preemptors = &preemptor; in __sigwait()
110 blocked = ss->blocked; in __sigwait()
111 ss->blocked &= ~mask; in __sigwait()
[all …]
Dlibc_sigaction.c30 struct hurd_sigstate *ss; in __libc_sigaction() local
45 ss = _hurd_self_sigstate (); in __libc_sigaction()
47 __spin_lock (&ss->critical_section_lock); in __libc_sigaction()
48 _hurd_sigstate_lock (ss); in __libc_sigaction()
49 old = _hurd_sigstate_actions (ss) [sig]; in __libc_sigaction()
51 _hurd_sigstate_actions (ss) [sig] = a; in __libc_sigaction() local
56 _hurd_sigstate_unlock (ss); in __libc_sigaction()
64 _hurd_sigstate_lock (ss); in __libc_sigaction()
65 pending = _hurd_sigstate_pending (ss) & ~ss->blocked; in __libc_sigaction()
74 pending = _hurd_sigstate_pending (ss) & __sigmask (sig); in __libc_sigaction()
[all …]
Djmp-unwind.c47 struct hurd_sigstate *ss = _hurd_self_sigstate (); in _longjmp_unwind() local
52 __spin_lock (&ss->lock); in _longjmp_unwind()
53 assert (! __spin_lock_locked (&ss->critical_section_lock)); in _longjmp_unwind()
54 __spin_lock (&ss->critical_section_lock); in _longjmp_unwind()
57 while (ss->preemptors in _longjmp_unwind()
58 && _JMPBUF_UNWINDS (env[0].__jmpbuf, ss->preemptors, demangle_ptr)) in _longjmp_unwind()
59 ss->preemptors = ss->preemptors->next; in _longjmp_unwind()
61 __spin_unlock (&ss->lock); in _longjmp_unwind()
67 for (link = ss->active_resources; in _longjmp_unwind()
78 _hurd_critical_section_unlock (ss); in _longjmp_unwind()
D_Fork.c67 struct hurd_sigstate *volatile ss; in _Fork() local
69 ss = _hurd_self_sigstate (); in _Fork()
71 __spin_lock (&ss->critical_section_lock); in _Fork()
100 if (threads[i] != ss->thread) in _Fork()
138 __spin_lock (&ss->lock); in _Fork()
141 err = __proc_dostop (_hurd_ports[INIT_PORT_PROC].port, ss->thread); in _Fork()
142 __spin_unlock (&ss->lock); in _Fork()
316 else if (portnames[i] == ss->thread) in _Fork()
438 if ((err = __mach_port_deallocate (newtask, ss->thread)) in _Fork()
439 || (err = __mach_port_insert_right (newtask, ss->thread, in _Fork()
[all …]
/glibc-2.36/sysdeps/mach/hurd/htl/
Dpt-sigstate.c32 struct hurd_sigstate *ss; in __pthread_sigstate() local
39 ss = _hurd_thread_sigstate (thread->kernel_thread); in __pthread_sigstate()
40 assert (ss); in __pthread_sigstate()
42 _hurd_sigstate_lock (ss); in __pthread_sigstate()
44 old = ss->blocked; in __pthread_sigstate()
51 ss->blocked |= new; in __pthread_sigstate()
55 ss->blocked = new; in __pthread_sigstate()
59 ss->blocked &= ~new; in __pthread_sigstate()
66 ss->blocked &= ~_SIG_CANT_MASK; in __pthread_sigstate()
70 __sigemptyset (&ss->pending); in __pthread_sigstate()
[all …]
Dpt-hurd-cond-timedwait.c46 struct hurd_sigstate *ss = _hurd_self_sigstate (); in __pthread_hurd_cond_timedwait_internal() local
71 assert (ss->intr_port == MACH_PORT_NULL); /* Sanity check for signal bugs. */ in __pthread_hurd_cond_timedwait_internal()
83 __spin_lock (&ss->lock); in __pthread_hurd_cond_timedwait_internal()
85 cancel = ss->cancel; in __pthread_hurd_cond_timedwait_internal()
88 ss->cancel = 0; in __pthread_hurd_cond_timedwait_internal()
97 ss->cancel_hook = &cancel_me; in __pthread_hurd_cond_timedwait_internal()
100 __spin_unlock (&ss->lock); in __pthread_hurd_cond_timedwait_internal()
107 __spin_lock (&ss->lock); in __pthread_hurd_cond_timedwait_internal()
129 __spin_lock (&ss->lock); in __pthread_hurd_cond_timedwait_internal()
159 ss->cancel_hook = NULL; in __pthread_hurd_cond_timedwait_internal()
[all …]
/glibc-2.36/sysdeps/mach/hurd/i386/
Dsigreturn.c32 struct hurd_sigstate *ss = _hurd_self_sigstate (); in __sigreturn2() local
33 _hurd_sigstate_unlock (ss); in __sigreturn2()
60 struct hurd_sigstate *ss; in __sigreturn() local
70 ss = _hurd_self_sigstate (); in __sigreturn()
71 _hurd_sigstate_lock (ss); in __sigreturn()
79 ss->blocked = scp->sc_mask; in __sigreturn()
80 ss->intr_port = scp->sc_intr_port; in __sigreturn()
83 if (_hurd_sigstate_pending (ss) & ~ss->blocked) in __sigreturn()
89 ss->context = scp; in __sigreturn()
90 _hurd_sigstate_unlock (ss); in __sigreturn()
[all …]
Dtrampoline.c83 _hurd_setup_sighandler (struct hurd_sigstate *ss, const struct sigaction *action, in _hurd_setup_sighandler() argument
126 if (ss->context) in _hurd_setup_sighandler()
131 if (! _hurdsig_catch_memory_fault (ss->context)) in _hurd_setup_sighandler()
133 memcpy (&state->basic, &ss->context->sc_i386_thread_state, in _hurd_setup_sighandler()
135 memcpy (&state->fpu, &ss->context->sc_i386_float_state, in _hurd_setup_sighandler()
141 if (! machine_get_basic_state (ss->thread, state)) in _hurd_setup_sighandler()
169 && !(ss->sigaltstack.ss_flags & (SS_DISABLE|SS_ONSTACK))) in _hurd_setup_sighandler()
171 sigsp = ss->sigaltstack.ss_sp + ss->sigaltstack.ss_size; in _hurd_setup_sighandler()
172 ss->sigaltstack.ss_flags |= SS_ONSTACK; in _hurd_setup_sighandler()
203 stackframe->link.thread.next = ss->active_resources; in _hurd_setup_sighandler()
[all …]
/glibc-2.36/sysdeps/unix/sysv/linux/
Dtst-epoll.c54 sigset_t ss; in test_epoll_basic() local
55 TEST_COMPARE (sigprocmask (SIG_SETMASK, NULL, &ss), 0); in test_epoll_basic()
56 sigdelset (&ss, SIGUSR1); in test_epoll_basic()
85 e = epoll_wait_check (efd, &event, 1, 500, &ss); in test_epoll_basic()
104 int e = epoll_wait_check (efd, &event, 1, 500000000, &ss); in test_epoll_basic()
126 sigset_t ss; in test_epoll_large_timeout() local
127 TEST_COMPARE (sigprocmask (SIG_SETMASK, NULL, &ss), 0); in test_epoll_large_timeout()
128 sigdelset (&ss, SIGALRM); in test_epoll_large_timeout()
139 TEST_COMPARE (epoll_wait_check (efd, &event, 1, tmo, &ss), -1); in test_epoll_large_timeout()
142 TEST_COMPARE (epoll_wait_check (efd, &event, 1, -1, &ss), -1); in test_epoll_large_timeout()
[all …]
/glibc-2.36/sysdeps/pthread/
Dtst-signal5.c29 static sigset_t ss; variable
44 if (sigismember (&ss, i) && ! sigismember (&ss2, i)) in tf()
49 else if (! sigismember (&ss, i) && sigismember (&ss2, i)) in tf()
62 sigemptyset (&ss); in do_test()
63 sigaddset (&ss, SIGUSR1); in do_test()
64 if (pthread_sigmask (SIG_SETMASK, &ss, NULL) != 0) in do_test()
84 sigemptyset (&ss); in do_test()
85 sigaddset (&ss, SIGUSR2); in do_test()
86 sigaddset (&ss, SIGFPE); in do_test()
87 if (pthread_sigmask (SIG_SETMASK, &ss, NULL) != 0) in do_test()
/glibc-2.36/debug/
Dtst-longjmp_chk3.c51 stack_t ss; in do_test() local
56 ss.ss_sp = buf; in do_test()
57 ss.ss_size = sizeof (buf); in do_test()
58 ss.ss_flags = 0; in do_test()
59 if (sigaltstack (&ss, NULL) < 0) in do_test()
72 ss.ss_sp = buf + sizeof (buf) / 2; in do_test()
73 ss.ss_size = sizeof (buf) / 4; in do_test()
74 if (sigaltstack (&ss, NULL) < 0) in do_test()
/glibc-2.36/misc/
Dtst-pselect.c61 sigset_t ss; in test_pselect_basic() local
62 TEST_COMPARE (sigprocmask (SIG_SETMASK, NULL, &ss), 0); in test_pselect_basic()
63 sigdelset (&ss, SIGUSR1); in test_pselect_basic()
83 e = pselect (fds[0][0] + 1, &rfds, NULL, NULL, &to, &ss); in test_pselect_basic()
102 int e = pselect (fds[1][0] + 1, &rfds, NULL, NULL, NULL, &ss); in test_pselect_basic()
119 sigset_t ss; in test_pselect_large_timeout() local
120 TEST_COMPARE (sigprocmask (SIG_SETMASK, NULL, &ss), 0); in test_pselect_large_timeout()
121 sigdelset (&ss, SIGALRM); in test_pselect_large_timeout()
125 TEST_COMPARE (pselect (fds[0] + 1, &rfds, NULL, NULL, &ts, &ss), -1); in test_pselect_large_timeout()
/glibc-2.36/nptl/
Dtst-exec4.c32 sigset_t ss; in tf() local
33 sigemptyset (&ss); in tf()
34 sigaddset (&ss, SIGUSR2); in tf()
35 if (pthread_sigmask (SIG_BLOCK, &ss, NULL) != 0) in tf()
79 sigset_t ss; in do_test() local
80 if (pthread_sigmask (SIG_SETMASK, NULL, &ss) != 0) in do_test()
85 if (! sigismember (&ss, SIGUSR2)) in do_test()

123456