| 2771 | } |
| 2772 | |
| 2773 | static const char *strsignal(int sig) |
| 2774 | { |
| 2775 | switch (sig) |
| 2776 | { |
| 2777 | case SIGHUP: return "Hangup"; |
| 2778 | case SIGINT: return "Interrupt"; |
| 2779 | case SIGQUIT: return "Quit"; |
| 2780 | case SIGILL: return "Illegal instruction"; |
| 2781 | case SIGABRT: return "Aborted"; |
| 2782 | case SIGFPE: return "Floating point exception"; |
| 2783 | case SIGKILL: return "Killed"; |
| 2784 | case SIGSEGV: return "Segmentation fault"; |
| 2785 | case SIGPIPE: return "Broken pipe"; |
| 2786 | case SIGALRM: return "Alarm clock"; |
| 2787 | case SIGTERM: return "Terminated"; |
| 2788 | case SIGUSR1: return "User defined signal 1"; |
| 2789 | case SIGUSR2: return "User defined signal 2"; |
| 2790 | case SIGCHLD: return "Child exited"; |
| 2791 | case SIGCONT: return "Continued"; |
| 2792 | case SIGSTOP: return "Stopped (signal)"; |
| 2793 | case SIGBUS: return "Bus error"; |
| 2794 | case SIGPOLL: return "I/O possible"; |
| 2795 | case SIGSYS: return "Bad system call"; |
| 2796 | case SIGTRAP: return "Trace/breakpoint trap"; |
| 2797 | case SIGURG: return "Urgent I/O condition"; |
| 2798 | default: return "Unknown signal"; |
| 2799 | } |
| 2800 | } |
| 2801 | |
| 2802 | /****************************************************************************/ |
| 2803 | /* ATOI */ |
no outgoing calls
no test coverage detected