/sysdeps/mach/hurd/ |
A D | sigprocmask.c | 30 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 …]
|
A D | sigsuspend.c | 30 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() 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() 74 pending = _hurd_sigstate_pending(ss) & ~ss->blocked; in __sigsuspend() [all …]
|
A D | jmp-unwind.c | 47 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()
|
A D | libc_sigaction.c | 30 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() 78 _hurd_sigstate_unlock (ss); in __libc_sigaction() [all …]
|
A D | sigwait.c | 30 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() 107 ss->preemptors = &preemptor; in __sigwait() 110 blocked = ss->blocked; in __sigwait() 111 ss->blocked &= ~mask; in __sigwait() 113 _hurd_sigstate_unlock (ss); in __sigwait() 124 _hurd_sigstate_lock (ss); in __sigwait() [all …]
|
A D | sigpending.c | 29 struct hurd_sigstate *ss; in sigpending() local 38 ss = _hurd_self_sigstate (); in sigpending() 39 _hurd_sigstate_lock (ss); in sigpending() 40 pending = _hurd_sigstate_pending (ss); in sigpending() 41 _hurd_sigstate_unlock (ss); in sigpending()
|
A D | gai_misc.h | 28 sigset_t ss; in __gai_start_notify_thread() local 29 sigemptyset (&ss); in __gai_start_notify_thread() 31 sigerr = pthread_sigmask (SIG_SETMASK, &ss, NULL); in __gai_start_notify_thread() 50 sigset_t ss; in __gai_create_helper_thread() local 52 sigfillset (&ss); in __gai_create_helper_thread() 54 sigerr = pthread_sigmask (SIG_SETMASK, &ss, &oss); in __gai_create_helper_thread()
|
A D | sigaltstack.c | 28 stack_t ss, old; in __sigaltstack() local 32 ss = *argss; in __sigaltstack() 40 && (ss.ss_flags & SS_DISABLE) in __sigaltstack() 52 s->sigaltstack = ss; in __sigaltstack()
|
/sysdeps/mach/hurd/htl/ |
A D | pt-sigstate.c | 32 struct hurd_sigstate *ss; in __pthread_sigstate() local 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() 72 pending = _hurd_sigstate_pending (ss) & ~ss->blocked; in __pthread_sigstate() [all …]
|
A D | pt-hurd-cond-timedwait.c | 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() 164 cancel |= ss->cancel; in __pthread_hurd_cond_timedwait_internal() 165 ss->cancel = 0; in __pthread_hurd_cond_timedwait_internal() [all …]
|
A D | pt-docancel.c | 51 struct hurd_sigstate *ss = _hurd_thread_sigstate (p->kernel_thread); in __pthread_do_cancel() local 53 __spin_lock (&ss->critical_section_lock); in __pthread_do_cancel() 54 __spin_lock (&ss->lock); in __pthread_do_cancel() 59 __spin_unlock (&ss->lock); in __pthread_do_cancel() 71 _hurd_critical_section_unlock (ss); in __pthread_do_cancel()
|
/sysdeps/mach/hurd/i386/ |
A D | sigreturn.c | 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() 95 _hurd_sigstate_lock (ss); in __sigreturn() [all …]
|
A D | trampoline.c | 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() 204 stackframe->link.thread.prevp = &ss->active_resources; in _hurd_setup_sighandler() [all …]
|
/sysdeps/pthread/ |
A D | tst-signal5.c | 29 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()
|
A D | tst-signal4.c | 27 sigset_t ss; in do_test() local 29 sigemptyset (&ss); in do_test() 38 int e = pthread_sigmask (r, &ss, NULL); in do_test()
|
A D | eintr.c | 48 sigset_t ss; in eintr_source() local 49 sigemptyset (&ss); in eintr_source() 50 sigaddset (&ss, the_sig); in eintr_source() 51 xpthread_sigmask (SIG_BLOCK, &ss, NULL); in eintr_source()
|
A D | tst-signal1.c | 29 static sigset_t ss; variable 36 sigdelset (&ss, SIGINT); in tf() 38 if (pthread_sigmask (SIG_SETMASK, &ss, NULL) != 0) in tf() 47 int res = sigwait (&ss, &sig); in tf() 68 sigfillset (&ss); in receiver() 70 if (pthread_sigmask (SIG_SETMASK, &ss, NULL) != 0) in receiver()
|
A D | tst-signal6.c | 74 sigset_t ss; in tf() local 75 sigemptyset (&ss); in tf() 79 if (sigaddset (&ss, sig1 + i) != 0) in tf() 84 if (pthread_sigmask (SIG_BLOCK, &ss, NULL) != 0) in tf() 157 sigset_t ss; in do_test() local 158 sigemptyset (&ss); in do_test() 160 sigaddset (&ss, sig1 + i); in do_test() 161 if (pthread_sigmask (SIG_BLOCK, &ss, NULL) != 0) in do_test()
|
/sysdeps/unix/sysv/linux/mips/ |
A D | ____longjmp_chk.c | 28 stack_t ss; \ 29 int ret = __sigaltstack (NULL, &ss); \ 31 && (!(ss.ss_flags & SS_ONSTACK) \ 32 || ((unsigned sp_type) ((sp_type) (long) ss.ss_sp \ 33 + (sp_type) ss.ss_size \ 35 < ss.ss_size))) \
|
/sysdeps/unix/sysv/linux/generic/ |
A D | ____longjmp_chk.c | 38 stack_t ss; in ____longjmp_chk() local 45 if (INTERNAL_SYSCALL_CALL (sigaltstack, NULL, &ss) != 0) in ____longjmp_chk() 50 if (ss.ss_flags == SS_ONSTACK in ____longjmp_chk() 51 && (this_frame >= ss.ss_sp && this_frame < (ss.ss_sp + ss.ss_size))) in ____longjmp_chk()
|
/sysdeps/hurd/htl/ |
A D | pt-kill.c | 31 struct hurd_sigstate *ss; in __pthread_kill() local 38 ss = _hurd_thread_sigstate (pthread->kernel_thread); in __pthread_kill() 39 assert (ss); in __pthread_kill() 48 __spin_lock (&ss->lock); in __pthread_kill() 49 return _hurd_raise_signal (ss, sig, &detail); in __pthread_kill()
|
/sysdeps/unix/sysv/linux/ |
A D | aio_misc.h | 31 sigset_t ss; in __aio_start_notify_thread() local 32 sigemptyset (&ss); in __aio_start_notify_thread() 33 INTERNAL_SYSCALL_CALL (rt_sigprocmask, SIG_SETMASK, &ss, NULL, in __aio_start_notify_thread() 52 sigset_t ss; in __aio_create_helper_thread() local 54 sigfillset (&ss); in __aio_create_helper_thread() 55 INTERNAL_SYSCALL_CALL (rt_sigprocmask, SIG_SETMASK, &ss, &oss, in __aio_create_helper_thread()
|
A D | sigstack.c | 25 sigstack (struct sigstack *ss, struct sigstack *oss) in sigstack() argument 33 if (ss != NULL) in sigstack() 36 sas.ss_sp = ss->ss_sp; in sigstack() 37 sas.ss_flags = ss->ss_onstack ? SS_ONSTACK : 0; in sigstack() 43 sas.ss_size = ss->ss_sp - NULL; in sigstack()
|
A D | tst-getpid1-internal.c | 54 sigset_t ss; in do_test() local 55 sigemptyset (&ss); in do_test() 56 sigaddset (&ss, sig); in do_test() 57 if (sigprocmask (SIG_BLOCK, &ss, NULL) != 0) in do_test() 86 if (sigwaitinfo (&ss, &si) < 0) in do_test()
|
/sysdeps/nptl/ |
A D | gai_misc.h | 82 sigset_t ss; in __gai_start_notify_thread() local 83 sigemptyset (&ss); in __gai_start_notify_thread() 85 sigerr = __pthread_sigmask (SIG_SETMASK, &ss, NULL); in __gai_start_notify_thread() 106 sigset_t ss; in __gai_create_helper_thread() local 108 sigfillset (&ss); in __gai_create_helper_thread() 110 sigerr = __pthread_sigmask (SIG_SETMASK, &ss, &oss); in __gai_create_helper_thread()
|