search for: sys_sigabbrev

Displaying 7 results from an estimated 7 matches for "sys_sigabbrev".

2019 Jan 25
0
[klibc:update-dash] dash: Fix some cosmetic differences from upstream dash
...ode_signal(const char *string, int minsig) { - int i; + int signo; if (is_number(string)) { - i = atoi(string); - if (i >= NSIG) { + signo = atoi(string); + if (signo >= NSIG) { return -1; } - return i; + return signo; } - for ( i = minsig ; i < NSIG ; i++ ) { - if ( sys_sigabbrev[i] && - !strcasecmp(string, sys_sigabbrev[i]) ) - return i; + for (signo = minsig; signo < NSIG; signo++) { + if (sys_sigabbrev[signo] && + !strcasecmp(string, sys_sigabbrev[signo])) + return signo; } #ifdef SIGRTMIN - if ( !strncasecmp(string, "RTMIN&qu...
2020 Mar 28
0
[klibc:update-dash] dash: Fix some cosmetic differences from upstream dash
...ode_signal(const char *string, int minsig) { - int i; + int signo; if (is_number(string)) { - i = atoi(string); - if (i >= NSIG) { + signo = atoi(string); + if (signo >= NSIG) { return -1; } - return i; + return signo; } - for ( i = minsig ; i < NSIG ; i++ ) { - if ( sys_sigabbrev[i] && - !strcasecmp(string, sys_sigabbrev[i]) ) - return i; + for (signo = minsig; signo < NSIG; signo++) { + if (sys_sigabbrev[signo] && + !strcasecmp(string, sys_sigabbrev[signo])) + return signo; } #ifdef SIGRTMIN - if ( !strncasecmp(string, "RTMIN&qu...
2019 Jan 25
0
[klibc:update-dash] trap: Implement POSIX.1-2008 trap reset behaviour
...eturn -1; - } - return signo; + if (signo >= NSIG) + signo = -1; } + return signo; +} + +int decode_signal(const char *string, int minsig) +{ + int signo; + + signo = decode_signum(string); + if (signo >= 0) + return signo; + for (signo = minsig; signo < NSIG; signo++) { if (sys_sigabbrev[signo] && !strcasecmp(string, sys_sigabbrev[signo]))
2020 Mar 28
0
[klibc:update-dash] dash: trap: Implement POSIX.1-2008 trap reset behaviour
...eturn -1; - } - return signo; + if (signo >= NSIG) + signo = -1; } + return signo; +} + +int decode_signal(const char *string, int minsig) +{ + int signo; + + signo = decode_signum(string); + if (signo >= 0) + return signo; + for (signo = minsig; signo < NSIG; signo++) { if (sys_sigabbrev[signo] && !strcasecmp(string, sys_sigabbrev[signo]))
2004 Sep 05
1
Segfault in Samba
...d)... > (no debugging symbols found)...(no debugging symbols found)... > (no debugging symbols found)...(no debugging symbols found)... > (no debugging symbols found)...0x402346f8 in waitpid () from > /lib/libc.so.6 #0 0x402346f8 in waitpid () from /lib/libc.so.6 > #1 0x402bc550 in sys_sigabbrev () from /lib/libc.so.6 > #2 0x081d2d71 in smb_panic2 () > #3 0x081d2cfa in smb_panic () > #4 0x081c0878 in dbgtext () > #5 0x401b6658 in __libc_sigaction () from /lib/libc.so.6 > #6 0x401b79e8 in abort () from /lib/libc.so.6 > #7 0x401afb3f in __assert_fail () from /lib/libc...
2003 Jun 26
0
Fwd: Segfault in Samba
...bugging symbols found)... >>(no debugging symbols found)...(no debugging symbols found)... >>(no debugging symbols found)...(no debugging symbols found)... >>0x40245b89 in wait4 () from /lib/libc.so.6 >>#0 0x40245b89 in wait4 () from /lib/libc.so.6 >>#1 0x402b9000 in sys_sigabbrev () from /lib/libc.so.6 >>#2 0x401e8712 in strtold_l () from /lib/libc.so.6 >>#3 0x401e8815 in system () from /lib/libc.so.6 >>#4 0x0817da35 in smb_panic () >>#5 0x0816f256 in dbgtext () >>#6 0x401d29d8 in sigaction () from /lib/libc.so.6 >>#7 0x4021677a in...
2009 Jul 16
1
[PATCH] fix warning include/signal.h:47:5: warning: "SIGRTMAX" is not defined
...ther or not SIGRTMAX is inclusive or exclusive. POSIX seems to state that it's inclusive, however. */ +#ifdef SIGRTMAX #if SIGRTMAX >= _NSIG # undef SIGRTMAX # define SIGRTMAX (_NSIG-1) #endif +#endif __extern const char *const sys_siglist[_NSIG]; __extern const char *const sys_sigabbrev[_NSIG];