openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/nss-pam-ldapd/0.9.8-r0/nss-pam-ldapd-0.9.8/nslcd/common.c
const char* signame(int signum)
{
    switch (signum)
    {
        case SIGHUP:
            return "SIGHUP"; /* Hangup detected */
        case SIGINT:
            return "SIGINT"; /* Interrupt from keyboard */
        case SIGQUIT:
            return "SIGQUIT"; /* Quit from keyboard */
        case SIGILL:
            return "SIGILL"; /* Illegal Instruction */
        case SIGABRT:
            return "SIGABRT"; /* Abort signal from abort(3) */
        case SIGFPE:
            return "SIGFPE"; /* Floating point exception */
        case SIGKILL:
            return "SIGKILL"; /* Kill signal */
        case SIGSEGV:
            return "SIGSEGV"; /* Invalid memory reference */
        case SIGPIPE:
            return "SIGPIPE"; /* Broken pipe */
        case SIGALRM:
            return "SIGALRM"; /* Timer signal from alarm(2) */
        case SIGTERM:
            return "SIGTERM"; /* Termination signal */
        case SIGUSR1:
            return "SIGUSR1"; /* User-defined signal 1 */
        case SIGUSR2:
            return "SIGUSR2"; /* User-defined signal 2 */
        case SIGCHLD:
            return "SIGCHLD"; /* Child stopped or terminated */
        case SIGCONT:
            return "SIGCONT"; /* Continue if stopped */
        case SIGSTOP:
            return "SIGSTOP"; /* Stop process */
        case SIGTSTP:
            return "SIGTSTP"; /* Stop typed at tty */
        case SIGTTIN:
            return "SIGTTIN"; /* tty input for background process */
        case SIGTTOU:
            return "SIGTTOU"; /* tty output for background process */
#ifdef SIGBUS
        case SIGBUS:
            return "SIGBUS"; /* Bus error */
#endif
#ifdef SIGPOLL
        case SIGPOLL:
            return "SIGPOLL"; /* Pollable event */
#endif
#ifdef SIGPROF
        case SIGPROF:
            return "SIGPROF"; /* Profiling timer expired */
#endif
#ifdef SIGSYS
        case SIGSYS:
            return "SIGSYS"; /* Bad argument to routine */
#endif
#ifdef SIGTRAP
        case SIGTRAP:
            return "SIGTRAP"; /* Trace/breakpoint trap */
#endif
#ifdef SIGURG
        case SIGURG:
            return "SIGURG"; /* Urgent condition on socket */
#endif
#ifdef SIGVTALRM
        case SIGVTALRM:
            return "SIGVTALRM"; /* Virtual alarm clock */
#endif
#ifdef SIGXCPU
        case SIGXCPU:
            return "SIGXCPU"; /* CPU time limit exceeded */
#endif
#ifdef SIGXFSZ
        case SIGXFSZ:
            return "SIGXFSZ"; /* File size limit exceeded */
#endif
        default:
            return "UNKNOWN";
    }
}
/* get a name of a signal with a given signal number */
get a name of a signal with a given signal number
get a name of a signal with a given signal number
const char* signame(int signum)
{
    switch (signum)
    {
        case SIGHUP:
            return "SIGHUP"; 
        case SIGINT:
            return "SIGINT"; 
        case SIGQUIT:
            return "SIGQUIT"; 
        case SIGILL:
            return "SIGILL"; 
        case SIGABRT:
            return "SIGABRT"; 
        case SIGFPE:
            return "SIGFPE"; 
        case SIGKILL:
            return "SIGKILL"; 
        case SIGSEGV:
            return "SIGSEGV"; 
        case SIGPIPE:
            return "SIGPIPE"; 
        case SIGALRM:
            return "SIGALRM"; 
        case SIGTERM:
            return "SIGTERM"; 
        case SIGUSR1:
            return "SIGUSR1"; 
        case SIGUSR2:
            return "SIGUSR2"; 
        case SIGCHLD:
            return "SIGCHLD"; 
        case SIGCONT:
            return "SIGCONT"; 
        case SIGSTOP:
            return "SIGSTOP"; 
        case SIGTSTP:
            return "SIGTSTP"; 
        case SIGTTIN:
            return "SIGTTIN"; 
        case SIGTTOU:
            return "SIGTTOU"; 
#ifdef SIGBUS
        case SIGBUS:
            return "SIGBUS"; 
#endif
#ifdef SIGPOLL
        case SIGPOLL:
            return "SIGPOLL"; 
#endif
#ifdef SIGPROF
        case SIGPROF:
            return "SIGPROF"; 
#endif
#ifdef SIGSYS
        case SIGSYS:
            return "SIGSYS"; 
#endif
#ifdef SIGTRAP
        case SIGTRAP:
            return "SIGTRAP"; 
#endif
#ifdef SIGURG
        case SIGURG:
            return "SIGURG"; 
#endif
#ifdef SIGVTALRM
        case SIGVTALRM:
            return "SIGVTALRM"; 
#endif
#ifdef SIGXCPU
        case SIGXCPU:
            return "SIGXCPU"; 
#endif
#ifdef SIGXFSZ
        case SIGXFSZ:
            return "SIGXFSZ"; 
#endif
        default:
            return "UNKNOWN";
    }
}
const char * signame ( int signum ) { switch ( signum ) { case SIGHUP : return " " ; case SIGINT : return " " ; case SIGQUIT : return " " ; case SIGILL : return " " ; case SIGABRT : return " " ; case SIGFPE : return " " ; case SIGKILL : return " " ; case SIGSEGV : return " " ; case SIGPIPE : return " " ; case SIGALRM : return " " ; case SIGTERM : return " " ; case SIGUSR1 : return " " ; case SIGUSR2 : return " " ; case SIGCHLD : return " " ; case SIGCONT : return " " ; case SIGSTOP : return " " ; case SIGTSTP : return " " ; case SIGTTIN : return " " ; case SIGTTOU : return " " ; #ifdef SIGBUS case SIGBUS : return " " ; #endif #ifdef SIGPOLL case SIGPOLL : return " " ; #endif #ifdef SIGPROF case SIGPROF : return " " ; #endif #ifdef SIGSYS case SIGSYS : return " " ; #endif #ifdef SIGTRAP case SIGTRAP : return " " ; #endif #ifdef SIGURG case SIGURG : return " " ; #endif #ifdef SIGVTALRM case SIGVTALRM : return " " ; #endif #ifdef SIGXCPU case SIGXCPU : return " " ; #endif #ifdef SIGXFSZ case SIGXFSZ : return " " ; #endif default : return " " ; } }
get a name of a signal with a given signal number
get a name of a signal with a given signal number
/* Hangup detected */ /* Interrupt from keyboard */ /* Quit from keyboard */ /* Illegal Instruction */ /* Abort signal from abort(3) */ /* Floating point exception */ /* Kill signal */ /* Invalid memory reference */ /* Broken pipe */ /* Timer signal from alarm(2) */ /* Termination signal */ /* User-defined signal 1 */ /* User-defined signal 2 */ /* Child stopped or terminated */ /* Continue if stopped */ /* Stop process */ /* Stop typed at tty */ /* tty input for background process */ /* tty output for background process */ /* Bus error */ /* Pollable event */ /* Profiling timer expired */ /* Bad argument to routine */ /* Trace/breakpoint trap */ /* Urgent condition on socket */ /* Virtual alarm clock */ /* CPU time limit exceeded */ /* File size limit exceeded */