MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sigonstack

Function sigonstack

freebsd/kern/kern_sig.c:633–647  ·  view source on GitHub ↗

* Returns 1 (true) if altstack is configured for the thread, and the * passed stack bottom address falls into the altstack range. Handles * the 43 compat special case where the alt stack size is zero. */

Source from the content-addressed store, hash-verified

631 * the 43 compat special case where the alt stack size is zero.
632 */
633int
634sigonstack(size_t sp)
635{
636 struct thread *td;
637
638 td = curthread;
639 if ((td->td_pflags & TDP_ALTSTACK) == 0)
640 return (0);
641#if defined(COMPAT_43)
642 if (SV_PROC_FLAG(td->td_proc, SV_AOUT) && td->td_sigstk.ss_size == 0)
643 return ((td->td_sigstk.ss_flags & SS_ONSTACK) != 0);
644#endif
645 return (sp >= (size_t)td->td_sigstk.ss_sp &&
646 sp < td->td_sigstk.ss_size + (size_t)td->td_sigstk.ss_sp);
647}
648
649static __inline int
650sigprop(int sig)

Callers 15

osendsigFunction · 0.85
freebsd4_sendsigFunction · 0.85
sendsigFunction · 0.85
get_mcontextFunction · 0.85
linux_rt_sendsigFunction · 0.85
linux_sendsigFunction · 0.85
sendsigFunction · 0.85
get_mcontextFunction · 0.85
freebsd32_sendsigFunction · 0.85
sendsigFunction · 0.85
get_mcontextFunction · 0.85
ia32_get_mcontextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected