os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/generic/tclPosixStr.c
Update contrib.
4 * This file contains procedures that generate strings
5 * corresponding to various POSIX-related codes, such
6 * as errno and signals.
8 * Copyright (c) 1991-1994 The Regents of the University of California.
9 * Copyright (c) 1994-1996 Sun Microsystems, Inc.
10 * Portions Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiaries. All rights reserved.
12 * See the file "license.terms" for information on usage and redistribution
13 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
15 * RCS: @(#) $Id: tclPosixStr.c,v 1.9 2002/05/27 10:14:21 dkf Exp $
22 *----------------------------------------------------------------------
26 * Return a textual identifier for the current errno value.
29 * This procedure returns a machine-readable textual identifier
30 * that corresponds to the current errno value (e.g. "EPERM").
31 * The identifier is the same as the #define name in errno.h.
36 *----------------------------------------------------------------------
44 case E2BIG: return "E2BIG";
47 case EACCES: return "EACCES";
50 case EADDRINUSE: return "EADDRINUSE";
53 case EADDRNOTAVAIL: return "EADDRNOTAVAIL";
56 case EADV: return "EADV";
59 case EAFNOSUPPORT: return "EAFNOSUPPORT";
62 case EAGAIN: return "EAGAIN";
65 case EALIGN: return "EALIGN";
67 #if defined(EALREADY) && (!defined(EBUSY) || (EALREADY != EBUSY ))
68 case EALREADY: return "EALREADY";
71 case EBADE: return "EBADE";
74 case EBADF: return "EBADF";
77 case EBADFD: return "EBADFD";
80 case EBADMSG: return "EBADMSG";
83 case EBADR: return "EBADR";
86 case EBADRPC: return "EBADRPC";
89 case EBADRQC: return "EBADRQC";
92 case EBADSLT: return "EBADSLT";
95 case EBFONT: return "EBFONT";
98 case EBUSY: return "EBUSY";
101 case ECHILD: return "ECHILD";
104 case ECHRNG: return "ECHRNG";
107 case ECOMM: return "ECOMM";
110 case ECONNABORTED: return "ECONNABORTED";
113 case ECONNREFUSED: return "ECONNREFUSED";
116 case ECONNRESET: return "ECONNRESET";
118 #if defined(EDEADLK) && (!defined(EWOULDBLOCK) || (EDEADLK != EWOULDBLOCK))
119 case EDEADLK: return "EDEADLK";
121 #if defined(EDEADLOCK) && (!defined(EDEADLK) || (EDEADLOCK != EDEADLK))
122 case EDEADLOCK: return "EDEADLOCK";
125 case EDESTADDRREQ: return "EDESTADDRREQ";
128 case EDIRTY: return "EDIRTY";
131 case EDOM: return "EDOM";
134 case EDOTDOT: return "EDOTDOT";
137 case EDQUOT: return "EDQUOT";
140 case EDUPPKG: return "EDUPPKG";
143 case EEXIST: return "EEXIST";
146 case EFAULT: return "EFAULT";
149 case EFBIG: return "EFBIG";
152 case EHOSTDOWN: return "EHOSTDOWN";
155 case EHOSTUNREACH: return "EHOSTUNREACH";
157 #if defined(EIDRM) && (!defined(EINPROGRESS) || (EIDRM != EINPROGRESS))
158 case EIDRM: return "EIDRM";
161 case EINIT: return "EINIT";
164 case EINPROGRESS: return "EINPROGRESS";
167 case EINTR: return "EINTR";
170 case EINVAL: return "EINVAL";
173 case EIO: return "EIO";
176 case EISCONN: return "EISCONN";
179 case EISDIR: return "EISDIR";
182 case EISNAM: return "EISNAM";
185 case ELBIN: return "ELBIN";
188 case EL2HLT: return "EL2HLT";
191 case EL2NSYNC: return "EL2NSYNC";
194 case EL3HLT: return "EL3HLT";
197 case EL3RST: return "EL3RST";
200 case ELIBACC: return "ELIBACC";
203 case ELIBBAD: return "ELIBBAD";
206 case ELIBEXEC: return "ELIBEXEC";
209 case ELIBMAX: return "ELIBMAX";
212 case ELIBSCN: return "ELIBSCN";
215 case ELNRNG: return "ELNRNG";
217 #if defined(ELOOP) && (!defined(ENOENT) || (ELOOP != ENOENT))
218 case ELOOP: return "ELOOP";
221 case EMFILE: return "EMFILE";
224 case EMLINK: return "EMLINK";
227 case EMSGSIZE: return "EMSGSIZE";
230 case EMULTIHOP: return "EMULTIHOP";
233 case ENAMETOOLONG: return "ENAMETOOLONG";
236 case ENAVAIL: return "ENAVAIL";
239 case ENET: return "ENET";
242 case ENETDOWN: return "ENETDOWN";
245 case ENETRESET: return "ENETRESET";
248 case ENETUNREACH: return "ENETUNREACH";
251 case ENFILE: return "ENFILE";
254 case ENOANO: return "ENOANO";
256 #if defined(ENOBUFS) && (!defined(ENOSR) || (ENOBUFS != ENOSR))
257 case ENOBUFS: return "ENOBUFS";
260 case ENOCSI: return "ENOCSI";
262 #if defined(ENODATA) && (!defined(ECONNREFUSED) || (ENODATA != ECONNREFUSED))
263 case ENODATA: return "ENODATA";
266 case ENODEV: return "ENODEV";
269 case ENOENT: return "ENOENT";
272 case ENOEXEC: return "ENOEXEC";
275 case ENOLCK: return "ENOLCK";
278 case ENOLINK: return "ENOLINK";
281 case ENOMEM: return "ENOMEM";
284 case ENOMSG: return "ENOMSG";
287 case ENONET: return "ENONET";
290 case ENOPKG: return "ENOPKG";
293 case ENOPROTOOPT: return "ENOPROTOOPT";
296 case ENOSPC: return "ENOSPC";
298 #if defined(ENOSR) && (!defined(ENAMETOOLONG) || (ENAMETOOLONG != ENOSR))
299 case ENOSR: return "ENOSR";
301 #if defined(ENOSTR) && (!defined(ENOTTY) || (ENOTTY != ENOSTR))
302 case ENOSTR: return "ENOSTR";
305 case ENOSYM: return "ENOSYM";
308 case ENOSYS: return "ENOSYS";
311 case ENOTBLK: return "ENOTBLK";
314 case ENOTCONN: return "ENOTCONN";
317 case ENOTDIR: return "ENOTDIR";
319 #if defined(ENOTEMPTY) && (!defined(EEXIST) || (ENOTEMPTY != EEXIST))
320 case ENOTEMPTY: return "ENOTEMPTY";
323 case ENOTNAM: return "ENOTNAM";
326 case ENOTSOCK: return "ENOTSOCK";
329 case ENOTSUP: return "ENOTSUP";
332 case ENOTTY: return "ENOTTY";
335 case ENOTUNIQ: return "ENOTUNIQ";
338 case ENXIO: return "ENXIO";
340 #if defined(EOPNOTSUPP) && (!defined(ENOTSUP) || (ENOTSUP != EOPNOTSUPP))
341 case EOPNOTSUPP: return "EOPNOTSUPP";
343 #if defined(EOVERFLOW) && ( !defined(EFBIG) || (EOVERFLOW != EFBIG) ) && ( !defined(EINVAL) || (EOVERFLOW != EINVAL) )
344 case EOVERFLOW: return "EOVERFLOW";
347 case EPERM: return "EPERM";
349 #if defined(EPFNOSUPPORT) && (!defined(ENOLCK) || (ENOLCK != EPFNOSUPPORT))
350 case EPFNOSUPPORT: return "EPFNOSUPPORT";
353 case EPIPE: return "EPIPE";
356 case EPROCLIM: return "EPROCLIM";
359 case EPROCUNAVAIL: return "EPROCUNAVAIL";
362 case EPROGMISMATCH: return "EPROGMISMATCH";
365 case EPROGUNAVAIL: return "EPROGUNAVAIL";
368 case EPROTO: return "EPROTO";
370 #ifdef EPROTONOSUPPORT
371 case EPROTONOSUPPORT: return "EPROTONOSUPPORT";
374 case EPROTOTYPE: return "EPROTOTYPE";
377 case ERANGE: return "ERANGE";
379 #if defined(EREFUSED) && (!defined(ECONNREFUSED) || (EREFUSED != ECONNREFUSED))
380 case EREFUSED: return "EREFUSED";
383 case EREMCHG: return "EREMCHG";
386 case EREMDEV: return "EREMDEV";
389 case EREMOTE: return "EREMOTE";
392 case EREMOTEIO: return "EREMOTEIO";
394 #ifdef EREMOTERELEASE
395 case EREMOTERELEASE: return "EREMOTERELEASE";
398 case EROFS: return "EROFS";
401 case ERPCMISMATCH: return "ERPCMISMATCH";
404 case ERREMOTE: return "ERREMOTE";
407 case ESHUTDOWN: return "ESHUTDOWN";
409 #ifdef ESOCKTNOSUPPORT
410 case ESOCKTNOSUPPORT: return "ESOCKTNOSUPPORT";
413 case ESPIPE: return "ESPIPE";
416 case ESRCH: return "ESRCH";
419 case ESRMNT: return "ESRMNT";
422 case ESTALE: return "ESTALE";
425 case ESUCCESS: return "ESUCCESS";
427 #if defined(ETIME) && (!defined(ELOOP) || (ETIME != ELOOP))
428 case ETIME: return "ETIME";
430 #if defined(ETIMEDOUT) && (!defined(ENOSTR) || (ETIMEDOUT != ENOSTR))
431 case ETIMEDOUT: return "ETIMEDOUT";
434 case ETOOMANYREFS: return "ETOOMANYREFS";
437 case ETXTBSY: return "ETXTBSY";
440 case EUCLEAN: return "EUCLEAN";
443 case EUNATCH: return "EUNATCH";
446 case EUSERS: return "EUSERS";
449 case EVERSION: return "EVERSION";
451 #if defined(EWOULDBLOCK) && (!defined(EAGAIN) || (EWOULDBLOCK != EAGAIN))
452 case EWOULDBLOCK: return "EWOULDBLOCK";
455 case EXDEV: return "EXDEV";
458 case EXFULL: return "EXFULL";
461 return "unknown error";
465 *----------------------------------------------------------------------
469 * Return a human-readable message corresponding to a given
473 * The return value is the standard POSIX error message for
474 * errno. This procedure is used instead of strerror because
475 * strerror returns slightly different values on different
476 * machines (e.g. different capitalizations), which cause
477 * problems for things such as regression tests. This procedure
478 * provides messages for most standard errors, then it calls
479 * strerror for things it doesn't understand.
484 *----------------------------------------------------------------------
487 EXPORT_C CONST char *
489 int err; /* Error number (such as in errno variable). */
493 case E2BIG: return "argument list too long";
496 case EACCES: return "permission denied";
499 case EADDRINUSE: return "address already in use";
502 case EADDRNOTAVAIL: return "can't assign requested address";
505 case EADV: return "advertise error";
508 case EAFNOSUPPORT: return "address family not supported by protocol family";
511 case EAGAIN: return "resource temporarily unavailable";
514 case EALIGN: return "EALIGN";
516 #if defined(EALREADY) && (!defined(EBUSY) || (EALREADY != EBUSY ))
517 case EALREADY: return "operation already in progress";
520 case EBADE: return "bad exchange descriptor";
523 case EBADF: return "bad file number";
526 case EBADFD: return "file descriptor in bad state";
529 case EBADMSG: return "not a data message";
532 case EBADR: return "bad request descriptor";
535 case EBADRPC: return "RPC structure is bad";
538 case EBADRQC: return "bad request code";
541 case EBADSLT: return "invalid slot";
544 case EBFONT: return "bad font file format";
547 case EBUSY: return "file busy";
550 case ECHILD: return "no children";
553 case ECHRNG: return "channel number out of range";
556 case ECOMM: return "communication error on send";
559 case ECONNABORTED: return "software caused connection abort";
562 case ECONNREFUSED: return "connection refused";
565 case ECONNRESET: return "connection reset by peer";
567 #if defined(EDEADLK) && (!defined(EWOULDBLOCK) || (EDEADLK != EWOULDBLOCK))
568 case EDEADLK: return "resource deadlock avoided";
570 #if defined(EDEADLOCK) && (!defined(EDEADLK) || (EDEADLOCK != EDEADLK))
571 case EDEADLOCK: return "resource deadlock avoided";
574 case EDESTADDRREQ: return "destination address required";
577 case EDIRTY: return "mounting a dirty fs w/o force";
580 case EDOM: return "math argument out of range";
583 case EDOTDOT: return "cross mount point";
586 case EDQUOT: return "disk quota exceeded";
589 case EDUPPKG: return "duplicate package name";
592 case EEXIST: return "file already exists";
595 case EFAULT: return "bad address in system call argument";
598 case EFBIG: return "file too large";
601 case EHOSTDOWN: return "host is down";
604 case EHOSTUNREACH: return "host is unreachable";
606 #if defined(EIDRM) && (!defined(EINPROGRESS) || (EIDRM != EINPROGRESS))
607 case EIDRM: return "identifier removed";
610 case EINIT: return "initialization error";
613 case EINPROGRESS: return "operation now in progress";
616 case EINTR: return "interrupted system call";
619 case EINVAL: return "invalid argument";
622 case EIO: return "I/O error";
625 case EISCONN: return "socket is already connected";
628 case EISDIR: return "illegal operation on a directory";
631 case EISNAM: return "is a name file";
634 case ELBIN: return "ELBIN";
637 case EL2HLT: return "level 2 halted";
640 case EL2NSYNC: return "level 2 not synchronized";
643 case EL3HLT: return "level 3 halted";
646 case EL3RST: return "level 3 reset";
649 case ELIBACC: return "can not access a needed shared library";
652 case ELIBBAD: return "accessing a corrupted shared library";
655 case ELIBEXEC: return "can not exec a shared library directly";
659 "attempting to link in more shared libraries than system limit";
662 case ELIBSCN: return ".lib section in a.out corrupted";
665 case ELNRNG: return "link number out of range";
667 #if defined(ELOOP) && (!defined(ENOENT) || (ELOOP != ENOENT))
668 case ELOOP: return "too many levels of symbolic links";
671 case EMFILE: return "too many open files";
674 case EMLINK: return "too many links";
677 case EMSGSIZE: return "message too long";
680 case EMULTIHOP: return "multihop attempted";
683 case ENAMETOOLONG: return "file name too long";
686 case ENAVAIL: return "not available";
689 case ENET: return "ENET";
692 case ENETDOWN: return "network is down";
695 case ENETRESET: return "network dropped connection on reset";
698 case ENETUNREACH: return "network is unreachable";
701 case ENFILE: return "file table overflow";
704 case ENOANO: return "anode table overflow";
706 #if defined(ENOBUFS) && (!defined(ENOSR) || (ENOBUFS != ENOSR))
707 case ENOBUFS: return "no buffer space available";
710 case ENOCSI: return "no CSI structure available";
712 #if defined(ENODATA) && (!defined(ECONNREFUSED) || (ENODATA != ECONNREFUSED))
713 case ENODATA: return "no data available";
716 case ENODEV: return "no such device";
719 case ENOENT: return "no such file or directory";
722 case ENOEXEC: return "exec format error";
725 case ENOLCK: return "no locks available";
728 case ENOLINK: return "link has be severed";
731 case ENOMEM: return "not enough memory";
734 case ENOMSG: return "no message of desired type";
737 case ENONET: return "machine is not on the network";
740 case ENOPKG: return "package not installed";
743 case ENOPROTOOPT: return "bad protocol option";
746 case ENOSPC: return "no space left on device";
748 #if defined(ENOSR) && (!defined(ENAMETOOLONG) || (ENAMETOOLONG != ENOSR))
749 case ENOSR: return "out of stream resources";
751 #if defined(ENOSTR) && (!defined(ENOTTY) || (ENOTTY != ENOSTR))
752 case ENOSTR: return "not a stream device";
755 case ENOSYM: return "unresolved symbol name";
758 case ENOSYS: return "function not implemented";
761 case ENOTBLK: return "block device required";
764 case ENOTCONN: return "socket is not connected";
767 case ENOTDIR: return "not a directory";
769 #if defined(ENOTEMPTY) && (!defined(EEXIST) || (ENOTEMPTY != EEXIST))
770 case ENOTEMPTY: return "directory not empty";
773 case ENOTNAM: return "not a name file";
776 case ENOTSOCK: return "socket operation on non-socket";
779 case ENOTSUP: return "operation not supported";
782 case ENOTTY: return "inappropriate device for ioctl";
785 case ENOTUNIQ: return "name not unique on network";
788 case ENXIO: return "no such device or address";
790 #if defined(EOPNOTSUPP) && (!defined(ENOTSUP) || (ENOTSUP != EOPNOTSUPP))
791 case EOPNOTSUPP: return "operation not supported on socket";
793 #if defined(EOVERFLOW) && ( !defined(EFBIG) || (EOVERFLOW != EFBIG) ) && ( !defined(EINVAL) || (EOVERFLOW != EINVAL) )
794 case EOVERFLOW: return "file too big";
797 case EPERM: return "not owner";
799 #if defined(EPFNOSUPPORT) && (!defined(ENOLCK) || (ENOLCK != EPFNOSUPPORT))
800 case EPFNOSUPPORT: return "protocol family not supported";
803 case EPIPE: return "broken pipe";
806 case EPROCLIM: return "too many processes";
809 case EPROCUNAVAIL: return "bad procedure for program";
812 case EPROGMISMATCH: return "program version wrong";
815 case EPROGUNAVAIL: return "RPC program not available";
818 case EPROTO: return "protocol error";
820 #ifdef EPROTONOSUPPORT
821 case EPROTONOSUPPORT: return "protocol not suppored";
824 case EPROTOTYPE: return "protocol wrong type for socket";
827 case ERANGE: return "math result unrepresentable";
829 #if defined(EREFUSED) && (!defined(ECONNREFUSED) || (EREFUSED != ECONNREFUSED))
830 case EREFUSED: return "EREFUSED";
833 case EREMCHG: return "remote address changed";
836 case EREMDEV: return "remote device";
839 case EREMOTE: return "pathname hit remote file system";
842 case EREMOTEIO: return "remote i/o error";
844 #ifdef EREMOTERELEASE
845 case EREMOTERELEASE: return "EREMOTERELEASE";
848 case EROFS: return "read-only file system";
851 case ERPCMISMATCH: return "RPC version is wrong";
854 case ERREMOTE: return "object is remote";
857 case ESHUTDOWN: return "can't send afer socket shutdown";
859 #ifdef ESOCKTNOSUPPORT
860 case ESOCKTNOSUPPORT: return "socket type not supported";
863 case ESPIPE: return "invalid seek";
866 case ESRCH: return "no such process";
869 case ESRMNT: return "srmount error";
872 case ESTALE: return "stale remote file handle";
875 case ESUCCESS: return "Error 0";
877 #if defined(ETIME) && (!defined(ELOOP) || (ETIME != ELOOP))
878 case ETIME: return "timer expired";
880 #if defined(ETIMEDOUT) && (!defined(ENOSTR) || (ETIMEDOUT != ENOSTR))
881 case ETIMEDOUT: return "connection timed out";
884 case ETOOMANYREFS: return "too many references: can't splice";
887 case ETXTBSY: return "text file or pseudo-device busy";
890 case EUCLEAN: return "structure needs cleaning";
893 case EUNATCH: return "protocol driver not attached";
896 case EUSERS: return "too many users";
899 case EVERSION: return "version mismatch";
901 #if defined(EWOULDBLOCK) && (!defined(EAGAIN) || (EWOULDBLOCK != EAGAIN))
902 case EWOULDBLOCK: return "operation would block";
905 case EXDEV: return "cross-domain link";
908 case EXFULL: return "message tables full";
912 return "unknown POSIX error";
914 return strerror(errno);
920 *----------------------------------------------------------------------
924 * Return a textual identifier for a signal number.
927 * This procedure returns a machine-readable textual identifier
928 * that corresponds to sig. The identifier is the same as the
929 * #define name in signal.h.
934 *----------------------------------------------------------------------
937 EXPORT_C CONST char *
939 int sig; /* Number of signal. */
943 case SIGABRT: return "SIGABRT";
946 case SIGALRM: return "SIGALRM";
949 case SIGBUS: return "SIGBUS";
952 case SIGCHLD: return "SIGCHLD";
954 #if defined(SIGCLD) && (!defined(SIGCHLD) || (SIGCLD != SIGCHLD))
955 case SIGCLD: return "SIGCLD";
958 case SIGCONT: return "SIGCONT";
960 #if defined(SIGEMT) && (!defined(SIGXCPU) || (SIGEMT != SIGXCPU))
961 case SIGEMT: return "SIGEMT";
964 case SIGFPE: return "SIGFPE";
967 case SIGHUP: return "SIGHUP";
970 case SIGILL: return "SIGILL";
973 case SIGINT: return "SIGINT";
976 case SIGIO: return "SIGIO";
978 #if defined(SIGIOT) && (!defined(SIGABRT) || (SIGIOT != SIGABRT))
979 case SIGIOT: return "SIGIOT";
982 case SIGKILL: return "SIGKILL";
984 #if defined(SIGLOST) && (!defined(SIGIOT) || (SIGLOST != SIGIOT)) && (!defined(SIGURG) || (SIGLOST != SIGURG)) && (!defined(SIGPROF) || (SIGLOST != SIGPROF)) && (!defined(SIGIO) || (SIGLOST != SIGIO))
985 case SIGLOST: return "SIGLOST";
988 case SIGPIPE: return "SIGPIPE";
990 #if defined(SIGPOLL) && (!defined(SIGIO) || (SIGPOLL != SIGIO))
991 case SIGPOLL: return "SIGPOLL";
994 case SIGPROF: return "SIGPROF";
996 #if defined(SIGPWR) && (!defined(SIGXFSZ) || (SIGPWR != SIGXFSZ)) && (!defined(SIGLOST) || (SIGPWR != SIGLOST))
997 case SIGPWR: return "SIGPWR";
1000 case SIGQUIT: return "SIGQUIT";
1003 case SIGSEGV: return "SIGSEGV";
1006 case SIGSTOP: return "SIGSTOP";
1009 case SIGSYS: return "SIGSYS";
1012 case SIGTERM: return "SIGTERM";
1015 case SIGTRAP: return "SIGTRAP";
1018 case SIGTSTP: return "SIGTSTP";
1021 case SIGTTIN: return "SIGTTIN";
1024 case SIGTTOU: return "SIGTTOU";
1026 #if defined(SIGURG) && (!defined(SIGIO) || (SIGURG != SIGIO))
1027 case SIGURG: return "SIGURG";
1029 #if defined(SIGUSR1) && (!defined(SIGIO) || (SIGUSR1 != SIGIO))
1030 case SIGUSR1: return "SIGUSR1";
1032 #if defined(SIGUSR2) && (!defined(SIGURG) || (SIGUSR2 != SIGURG))
1033 case SIGUSR2: return "SIGUSR2";
1036 case SIGVTALRM: return "SIGVTALRM";
1039 case SIGWINCH: return "SIGWINCH";
1042 case SIGXCPU: return "SIGXCPU";
1045 case SIGXFSZ: return "SIGXFSZ";
1048 return "unknown signal";
1052 *----------------------------------------------------------------------
1056 * Return a human-readable message describing a signal.
1059 * This procedure returns a string describing sig that should
1060 * make sense to a human. It may not be easy for a machine
1066 *----------------------------------------------------------------------
1069 EXPORT_C CONST char *
1071 int sig; /* Number of signal. */
1075 case SIGABRT: return "SIGABRT";
1078 case SIGALRM: return "alarm clock";
1081 case SIGBUS: return "bus error";
1084 case SIGCHLD: return "child status changed";
1086 #if defined(SIGCLD) && (!defined(SIGCHLD) || (SIGCLD != SIGCHLD))
1087 case SIGCLD: return "child status changed";
1090 case SIGCONT: return "continue after stop";
1092 #if defined(SIGEMT) && (!defined(SIGXCPU) || (SIGEMT != SIGXCPU))
1093 case SIGEMT: return "EMT instruction";
1096 case SIGFPE: return "floating-point exception";
1099 case SIGHUP: return "hangup";
1102 case SIGILL: return "illegal instruction";
1105 case SIGINT: return "interrupt";
1108 case SIGIO: return "input/output possible on file";
1110 #if defined(SIGIOT) && (!defined(SIGABRT) || (SIGABRT != SIGIOT))
1111 case SIGIOT: return "IOT instruction";
1114 case SIGKILL: return "kill signal";
1116 #if defined(SIGLOST) && (!defined(SIGIOT) || (SIGLOST != SIGIOT)) && (!defined(SIGURG) || (SIGLOST != SIGURG)) && (!defined(SIGPROF) || (SIGLOST != SIGPROF)) && (!defined(SIGIO) || (SIGLOST != SIGIO))
1117 case SIGLOST: return "resource lost";
1120 case SIGPIPE: return "write on pipe with no readers";
1122 #if defined(SIGPOLL) && (!defined(SIGIO) || (SIGPOLL != SIGIO))
1123 case SIGPOLL: return "input/output possible on file";
1126 case SIGPROF: return "profiling alarm";
1128 #if defined(SIGPWR) && (!defined(SIGXFSZ) || (SIGPWR != SIGXFSZ)) && (!defined(SIGLOST) || (SIGPWR != SIGLOST))
1129 case SIGPWR: return "power-fail restart";
1132 case SIGQUIT: return "quit signal";
1135 case SIGSEGV: return "segmentation violation";
1138 case SIGSTOP: return "stop";
1141 case SIGSYS: return "bad argument to system call";
1144 case SIGTERM: return "software termination signal";
1147 case SIGTRAP: return "trace trap";
1150 case SIGTSTP: return "stop signal from tty";
1153 case SIGTTIN: return "background tty read";
1156 case SIGTTOU: return "background tty write";
1158 #if defined(SIGURG) && (!defined(SIGIO) || (SIGURG != SIGIO))
1159 case SIGURG: return "urgent I/O condition";
1161 #if defined(SIGUSR1) && (!defined(SIGIO) || (SIGUSR1 != SIGIO))
1162 case SIGUSR1: return "user-defined signal 1";
1164 #if defined(SIGUSR2) && (!defined(SIGURG) || (SIGUSR2 != SIGURG))
1165 case SIGUSR2: return "user-defined signal 2";
1168 case SIGVTALRM: return "virtual time alarm";
1171 case SIGWINCH: return "window changed";
1174 case SIGXCPU: return "exceeded CPU time limit";
1177 case SIGXFSZ: return "exceeded file size limit";
1180 return "unknown signal";