Lines Matching refs:si
266 bool signal_has_si_addr(const siginfo_t* si) { in signal_has_si_addr() argument
268 if (si->si_code == SI_USER || si->si_code == SI_QUEUE || si->si_code == SI_TKILL) { in signal_has_si_addr()
272 switch (si->si_signo) { in signal_has_si_addr()
279 return si->si_code != SEGV_MTEAERR; in signal_has_si_addr()
285 bool signal_has_sender(const siginfo_t* si, pid_t caller_pid) { in signal_has_sender() argument
286 return SI_FROMUSER(si) && (si->si_pid != 0) && (si->si_pid != caller_pid); in signal_has_sender()
289 void get_signal_sender(char* buf, size_t n, const siginfo_t* si) { in get_signal_sender() argument
290 snprintf(buf, n, " from pid %d, uid %d", si->si_pid, si->si_uid); in get_signal_sender()
293 const char* get_signame(const siginfo_t* si) { in get_signame() argument
294 switch (si->si_signo) { in get_signame()
310 const char* get_sigcode(const siginfo_t* si) { in get_sigcode() argument
312 switch (si->si_signo) { in get_sigcode()
314 switch (si->si_code) { in get_sigcode()
333 switch (si->si_code) { in get_sigcode()
343 switch (si->si_code) { in get_sigcode()
370 switch (si->si_code) { in get_sigcode()
389 switch (si->si_code) { in get_sigcode()
397 switch (si->si_code) { in get_sigcode()
407 if ((si->si_code & 0xff) == SIGTRAP) { in get_sigcode()
408 switch ((si->si_code >> 8) & 0xff) { in get_sigcode()
431 switch (si->si_code) { in get_sigcode()