#include #include #include "locale_impl.h" #if (SIGHUP == 1) && (SIGINT == 2) && (SIGQUIT == 3) && (SIGILL == 4) \ && (SIGTRAP == 5) && (SIGABRT == 6) && (SIGBUS == 7) && (SIGFPE == 8) \ && (SIGKILL == 9) && (SIGUSR1 == 10) && (SIGSEGV == 11) && (SIGUSR2 == 12) \ && (SIGPIPE == 13) && (SIGALRM == 14) && (SIGTERM == 15) && (SIGSTKFLT == 16) \ && (SIGCHLD == 17) && (SIGCONT == 18) && (SIGSTOP == 19) && (SIGTSTP == 20) \ && (SIGTTIN == 21) && (SIGTTOU == 22) && (SIGURG == 23) && (SIGXCPU == 24) \ && (SIGXFSZ == 25) && (SIGVTALRM == 26) && (SIGPROF == 27) && (SIGWINCH == 28) \ && (SIGPOLL == 29) && (SIGPWR == 30) && (SIGSYS == 31) #define sigmap(x) x #else static const char map[] = { [SIGHUP] = 1, [SIGINT] = 2, [SIGQUIT] = 3, [SIGILL] = 4, [SIGTRAP] = 5, [SIGABRT] = 6, [SIGBUS] = 7, [SIGFPE] = 8, [SIGKILL] = 9, [SIGUSR1] = 10, [SIGSEGV] = 11, [SIGUSR2] = 12, [SIGPIPE] = 13, [SIGALRM] = 14, [SIGTERM] = 15, #if defined(SIGSTKFLT) [SIGSTKFLT] = 16, #elif defined(SIGEMT) [SIGEMT] = 16, #endif [SIGCHLD] = 17, [SIGCONT] = 18, [SIGSTOP] = 19, [SIGTSTP] = 20, [SIGTTIN] = 21, [SIGTTOU] = 22, [SIGURG] = 23, [SIGXCPU] = 24, [SIGXFSZ] = 25, [SIGVTALRM] = 26, [SIGPROF] = 27, [SIGWINCH] = 28, [SIGPOLL] = 29, [SIGPWR] = 30, [SIGSYS] = 31 }; #define sigmap(x) ((x)>= sizeof map ? (x) : map[(x)]) #endif static const char strings[] = "Unknown signal0円" "Hangup0円" "Interrupt0円" "Quit0円" "Illegal instruction0円" "Trace/breakpoint trap0円" "Aborted0円" "Bus error0円" "Arithmetic exception0円" "Killed0円" "User defined signal 10円" "Segmentation fault0円" "User defined signal 20円" "Broken pipe0円" "Alarm clock0円" "Terminated0円" #if defined(SIGSTKFLT) "Stack fault0円" #elif defined(SIGEMT) "Emulator trap0円" #else "Unknown signal0円" #endif "Child process status0円" "Continued0円" "Stopped (signal)0円" "Stopped0円" "Stopped (tty input)0円" "Stopped (tty output)0円" "Urgent I/O condition0円" "CPU time limit exceeded0円" "File size limit exceeded0円" "Virtual timer expired0円" "Profiling timer expired0円" "Window changed0円" "I/O possible0円" "Power failure0円" "Bad system call0円" "RT32" "0円RT330円RT340円RT350円RT360円RT370円RT380円RT390円RT40" "0円RT410円RT420円RT430円RT440円RT450円RT460円RT470円RT48" "0円RT490円RT500円RT510円RT520円RT530円RT540円RT550円RT56" "0円RT570円RT580円RT590円RT600円RT610円RT620円RT630円RT64" #if _NSIG> 65 "0円RT650円RT660円RT670円RT680円RT690円RT700円RT710円RT72" "0円RT730円RT740円RT750円RT760円RT770円RT780円RT790円RT80" "0円RT810円RT820円RT830円RT840円RT850円RT860円RT870円RT88" "0円RT890円RT900円RT910円RT920円RT930円RT940円RT950円RT96" "0円RT970円RT980円RT990円RT1000円RT1010円RT1020円RT1030円RT104" "0円RT1050円RT1060円RT1070円RT1080円RT1090円RT1100円RT1110円RT112" "0円RT1130円RT1140円RT1150円RT1160円RT1170円RT1180円RT1190円RT120" "0円RT1210円RT1220円RT1230円RT1240円RT1250円RT1260円RT1270円RT128" #endif ""; char *strsignal(int signum) { const char *s = strings; signum = sigmap(signum); if (signum - 1U>= _NSIG-1) signum = 0; for (; signum--; s++) for (; *s; s++); return (char *)LCTRANS_CUR(s); }

AltStyle によって変換されたページ (->オリジナル) /