1 /* Name of system error code.
2 Copyright (C) 2020 Free Software Foundation, Inc.
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <https://www.gnu.org/licenses/>. */
17 /* Written by Bruno Haible <bruno@clisp.org>, 2020. */
27 strerrorname_np (int errnum
)
31 /* Error codes specified by ISO C. */
32 case EDOM
: return "EDOM";
33 case EILSEQ
: return "EILSEQ";
34 case ERANGE
: return "ERANGE";
36 /* Error codes specified by POSIX.
37 <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/errno.h.html> */
39 case E2BIG
: return "E2BIG";
42 case EACCES
: return "EACCES";
44 #if defined EADDRINUSE
45 case EADDRINUSE
: return "EADDRINUSE";
47 #if defined EADDRNOTAVAIL
48 case EADDRNOTAVAIL
: return "EADDRNOTAVAIL";
50 #if defined EAFNOSUPPORT
51 case EAFNOSUPPORT
: return "EAFNOSUPPORT";
54 case EAGAIN
: return "EAGAIN";
57 case EALREADY
: return "EALREADY";
60 case EBADF
: return "EBADF";
63 case EBADMSG
: return "EBADMSG";
66 case EBUSY
: return "EBUSY";
69 case ECANCELED
: return "ECANCELED";
72 case ECHILD
: return "ECHILD";
74 #if defined ECONNABORTED
75 case ECONNABORTED
: return "ECONNABORTED";
77 #if defined ECONNREFUSED
78 case ECONNREFUSED
: return "ECONNREFUSED";
80 #if defined ECONNRESET
81 case ECONNRESET
: return "ECONNRESET";
84 case EDEADLK
: return "EDEADLK";
86 #if defined EDESTADDRREQ
87 case EDESTADDRREQ
: return "EDESTADDRREQ";
90 case EDQUOT
: return "EDQUOT";
93 case EEXIST
: return "EEXIST";
96 case EFAULT
: return "EFAULT";
99 case EFBIG
: return "EFBIG";
101 #if defined EHOSTUNREACH
102 case EHOSTUNREACH
: return "EHOSTUNREACH";
105 case EIDRM
: return "EIDRM";
107 #if defined EINPROGRESS
108 case EINPROGRESS
: return "EINPROGRESS";
111 case EINTR
: return "EINTR";
114 case EINVAL
: return "EINVAL";
117 case EIO
: return "EIO";
120 case EISCONN
: return "EISCONN";
123 case EISDIR
: return "EISDIR";
126 case ELOOP
: return "ELOOP";
129 case EMFILE
: return "EMFILE";
132 case EMLINK
: return "EMLINK";
135 case EMSGSIZE
: return "EMSGSIZE";
137 #if defined EMULTIHOP
138 case EMULTIHOP
: return "EMULTIHOP";
140 #if defined ENAMETOOLONG
141 case ENAMETOOLONG
: return "ENAMETOOLONG";
144 case ENETDOWN
: return "ENETDOWN";
146 #if defined ENETRESET
147 case ENETRESET
: return "ENETRESET";
149 #if defined ENETUNREACH
150 case ENETUNREACH
: return "ENETUNREACH";
153 case ENFILE
: return "ENFILE";
156 case ENOBUFS
: return "ENOBUFS";
159 case ENODATA
: return "ENODATA";
162 case ENODEV
: return "ENODEV";
165 case ENOENT
: return "ENOENT";
168 case ENOEXEC
: return "ENOEXEC";
171 case ENOLCK
: return "ENOLCK";
174 case ENOLINK
: return "ENOLINK";
177 case ENOMEM
: return "ENOMEM";
180 case ENOMSG
: return "ENOMSG";
182 #if defined ENOPROTOOPT
183 case ENOPROTOOPT
: return "ENOPROTOOPT";
186 case ENOSPC
: return "ENOSPC";
189 case ENOSR
: return "ENOSR";
192 case ENOSTR
: return "ENOSTR";
195 case ENOSYS
: return "ENOSYS";
198 case ENOTCONN
: return "ENOTCONN";
201 case ENOTDIR
: return "ENOTDIR";
203 #if defined ENOTEMPTY && ENOTEMPTY != EEXIST
204 case ENOTEMPTY
: return "ENOTEMPTY";
206 #if defined ENOTRECOVERABLE
207 case ENOTRECOVERABLE
: return "ENOTRECOVERABLE";
210 case ENOTSOCK
: return "ENOTSOCK";
212 #if defined ENOTSUP && ENOTSUP != EOPNOTSUPP
213 case ENOTSUP
: return "ENOTSUP";
216 case ENOTTY
: return "ENOTTY";
219 case ENXIO
: return "ENXIO";
221 #if defined EOPNOTSUPP
222 case EOPNOTSUPP
: return "EOPNOTSUPP";
224 #if defined EOVERFLOW
225 case EOVERFLOW
: return "EOVERFLOW";
227 #if defined EOWNERDEAD
228 case EOWNERDEAD
: return "EOWNERDEAD";
231 case EPERM
: return "EPERM";
234 case EPIPE
: return "EPIPE";
237 case EPROTO
: return "EPROTO";
239 #if defined EPROTONOSUPPORT
240 case EPROTONOSUPPORT
: return "EPROTONOSUPPORT";
242 #if defined EPROTOTYPE
243 case EPROTOTYPE
: return "EPROTOTYPE";
246 case EROFS
: return "EROFS";
249 case ESPIPE
: return "ESPIPE";
252 case ESRCH
: return "ESRCH";
255 case ESTALE
: return "ESTALE";
258 case ETIME
: return "ETIME";
260 #if defined ETIMEDOUT
261 case ETIMEDOUT
: return "ETIMEDOUT";
264 case ETXTBSY
: return "ETXTBSY";
266 #if defined EWOULDBLOCK && EWOULDBLOCK != EAGAIN
267 case EWOULDBLOCK
: return "EWOULDBLOCK";
270 case EXDEV
: return "EXDEV";
273 /* Other error codes on other systems. */
276 case EADI
: return "EADI";
278 /* Linux, HP-UX, IRIX, Solaris, Cygwin */
280 case EADV
: return "EADV";
284 case EAIO
: return "EAIO";
286 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, Minix */
288 case EAUTH
: return "EAUTH";
291 #if defined EBACKGROUND
292 case EBACKGROUND
: return "EBACKGROUND";
296 case EBADARCH
: return "EBADARCH";
300 case EBADCALL
: return "EBADCALL";
304 case EBADCPU
: return "EBADCPU";
306 /* Linux, IRIX, Solaris, Cygwin */
308 case EBADE
: return "EBADE";
312 case EBADEPT
: return "EBADEPT";
316 case EBADEXEC
: return "EBADEXEC";
318 /* Linux, IRIX, Solaris, Cygwin */
320 case EBADFD
: return "EBADFD";
324 case EBADFILT
: return "EBADFILT";
327 #if defined EBADIOCTL
328 case EBADIOCTL
: return "EBADIOCTL";
331 #if defined EBADMACHO
332 case EBADMACHO
: return "EBADMACHO";
336 case EBADMODE
: return "EBADMODE";
338 /* Linux, IRIX, Solaris, Cygwin */
340 case EBADR
: return "EBADR";
343 #if defined EBADREQUEST
344 case EBADREQUEST
: return "EBADREQUEST";
346 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, OSF/1, Minix */
348 case EBADRPC
: return "EBADRPC";
350 /* Linux, IRIX, Solaris, Cygwin */
352 case EBADRQC
: return "EBADRQC";
355 #if defined EBADRSPEC
356 case EBADRSPEC
: return "EBADRSPEC";
358 /* Linux, IRIX, Solaris, Cygwin */
360 case EBADSLT
: return "EBADSLT";
363 #if defined EBADTSPEC
364 case EBADTSPEC
: return "EBADTSPEC";
368 case EBADVER
: return "EBADVER";
372 case EBDHDL
: return "EBDHDL";
374 /* Linux, IRIX, Solaris, Cygwin */
376 case EBFONT
: return "EBFONT";
380 case EBUFSIZE
: return "EBUFSIZE";
383 #if defined ECALLDENIED
384 case ECALLDENIED
: return "ECALLDENIED";
387 #if defined ECANTEXTENT
388 case ECANTEXTENT
: return "ECANTEXTENT";
392 case ECAPMODE
: return "ECAPMODE";
395 #if defined ECASECLASH
396 case ECASECLASH
: return "ECASECLASH";
399 #if defined ECELLDOWN
400 case ECELLDOWN
: return "ECELLDOWN";
402 /* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin */
404 case ECHRNG
: return "ECHRNG";
408 case ECKPT
: return "ECKPT";
411 #if defined ECLOCKCPU
412 case ECLOCKCPU
: return "ECLOCKCPU";
415 #if defined ECLONEME && ECLONEME != ERESTART
416 case ECLONEME
: return "ECLONEME";
418 /* Linux, HP-UX, IRIX, Solaris, Cygwin */
420 case ECOMM
: return "ECOMM";
424 case ECONFIG
: return "ECONFIG";
427 #if defined ECONTROLLER
428 case ECONTROLLER
: return "ECONTROLLER";
432 case ECORRUPT
: return "ECORRUPT";
436 case ED
: return "ED";
440 case EDEADEPT
: return "EDEADEPT";
442 /* IRIX, Solaris, Cygwin */
443 #if defined EDEADLOCK && EDEADLOCK != EDEADLK
444 case EDEADLOCK
: return "EDEADLOCK";
447 #if defined EDEADSRCDST
448 case EDEADSRCDST
: return "EDEADSRCDST";
452 case EDELAY
: return "EDELAY";
455 #if defined EDESTROYED
456 case EDESTROYED
: return "EDESTROYED";
460 case EDEVERR
: return "EDEVERR";
464 case EDIED
: return "EDIED";
467 #if defined EDIRCORRUPTED
468 case EDIRCORRUPTED
: return "EDIRCORRUPTED";
471 #if defined EDIRIOCTL
472 case EDIRIOCTL
: return "EDIRIOCTL";
476 case EDIRTY
: return "EDIRTY";
479 #if defined EDISJOINT
480 case EDISJOINT
: return "EDISJOINT";
484 case EDIST
: return "EDIST";
487 #if defined EDONTREPLY
488 case EDONTREPLY
: return "EDONTREPLY";
492 case EDOOFUS
: return "EDOOFUS";
494 /* Linux, HP-UX, Cygwin */
496 case EDOTDOT
: return "EDOTDOT";
500 case EDUPPKG
: return "EDUPPKG";
503 #if defined ED_ALREADY_OPEN
504 case ED_ALREADY_OPEN
: return "ED_ALREADY_OPEN";
507 #if defined ED_DEVICE_DOWN
508 case ED_DEVICE_DOWN
: return "ED_DEVICE_DOWN";
511 #if defined ED_INVALID_OPERATION
512 case ED_INVALID_OPERATION
:return "ED_INVALID_OPERATION";
515 #if defined ED_INVALID_RECNUM
516 case ED_INVALID_RECNUM
:return "ED_INVALID_RECNUM";
519 #if defined ED_INVALID_SIZE
520 case ED_INVALID_SIZE
: return "ED_INVALID_SIZE";
523 #if defined ED_IO_ERROR
524 case ED_IO_ERROR
: return "ED_IO_ERROR";
527 #if defined ED_NO_MEMORY
528 case ED_NO_MEMORY
: return "ED_NO_MEMORY";
531 #if defined ED_NO_SUCH_DEVICE
532 case ED_NO_SUCH_DEVICE
:return "ED_NO_SUCH_DEVICE";
535 #if defined ED_READ_ONLY
536 case ED_READ_ONLY
: return "ED_READ_ONLY";
539 #if defined ED_WOULD_BLOCK
540 case ED_WOULD_BLOCK
: return "ED_WOULD_BLOCK";
544 case EEMPTY
: return "EEMPTY";
548 case EEMULATE
: return "EEMULATE";
551 #if defined EENDOFMINOR
552 case EENDOFMINOR
: return "EENDOFMINOR";
555 #if defined EENQUEUED
556 case EENQUEUED
: return "EENQUEUED";
560 case EFAIL
: return "EFAIL";
564 case EFORMAT
: return "EFORMAT";
568 case EFPOS
: return "EFPOS";
571 #if defined EFSCORRUPTED
572 case EFSCORRUPTED
: return "EFSCORRUPTED";
574 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, OSF/1, Minix, Cygwin */
576 case EFTYPE
: return "EFTYPE";
580 case EGENERIC
: return "EGENERIC";
583 #if defined EGRATUITOUS
584 case EGRATUITOUS
: return "EGRATUITOUS";
587 #if defined EGREGIOUS
588 case EGREGIOUS
: return "EGREGIOUS";
591 #if defined EGROUPLOOP
592 case EGROUPLOOP
: return "EGROUPLOOP";
594 /* Linux, Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, OSF/1, Solaris, Minix, Haiku, Cygwin */
595 #if defined EHOSTDOWN
596 case EHOSTDOWN
: return "EHOSTDOWN";
599 #if defined EHWPOISON
600 case EHWPOISON
: return "EHWPOISON";
604 case EIEIO
: return "EIEIO";
608 case EINIT
: return "EINIT";
612 case EINPROG
: return "EINPROG";
615 #if defined EINVALMODE
616 case EINVALMODE
: return "EINVALMODE";
619 #if defined EINVALSTATE
620 case EINVALSTATE
: return "EINVALSTATE";
623 #if defined EINVALTIME
624 case EINVALTIME
: return "EINVALTIME";
628 case EIORESID
: return "EIORESID";
632 case EIPSEC
: return "EIPSEC";
636 case EISNAM
: return "EISNAM";
640 case EJOINED
: return "EJOINED";
643 #if defined EJUSTRETURN
644 case EJUSTRETURN
: return "EJUSTRETURN";
647 #if defined EKERN_ABORTED
648 case EKERN_ABORTED
: return "EKERN_ABORTED";
651 #if defined EKERN_FAILURE
652 case EKERN_FAILURE
: return "EKERN_FAILURE";
655 #if defined EKERN_INTERRUPTED
656 case EKERN_INTERRUPTED
:return "EKERN_INTERRUPTED";
659 #if defined EKERN_INVALID_ADDRESS
660 case EKERN_INVALID_ADDRESS
:return "EKERN_INVALID_ADDRESS";
663 #if defined EKERN_INVALID_ARGUMENT
664 case EKERN_INVALID_ARGUMENT
:return "EKERN_INVALID_ARGUMENT";
667 #if defined EKERN_INVALID_CAPABILITY
668 case EKERN_INVALID_CAPABILITY
:return "EKERN_INVALID_CAPABILITY";
671 #if defined EKERN_INVALID_HOST
672 case EKERN_INVALID_HOST
:return "EKERN_INVALID_HOST";
675 #if defined EKERN_INVALID_NAME
676 case EKERN_INVALID_NAME
:return "EKERN_INVALID_NAME";
679 #if defined EKERN_INVALID_RIGHT
680 case EKERN_INVALID_RIGHT
:return "EKERN_INVALID_RIGHT";
683 #if defined EKERN_INVALID_TASK
684 case EKERN_INVALID_TASK
:return "EKERN_INVALID_TASK";
687 #if defined EKERN_INVALID_VALUE
688 case EKERN_INVALID_VALUE
:return "EKERN_INVALID_VALUE";
691 #if defined EKERN_MEMORY_ERROR
692 case EKERN_MEMORY_ERROR
:return "EKERN_MEMORY_ERROR";
695 #if defined EKERN_MEMORY_FAILURE
696 case EKERN_MEMORY_FAILURE
:return "EKERN_MEMORY_FAILURE";
699 #if defined EKERN_MEMORY_PRESENT
700 case EKERN_MEMORY_PRESENT
:return "EKERN_MEMORY_PRESENT";
703 #if defined EKERN_NAME_EXISTS
704 case EKERN_NAME_EXISTS
:return "EKERN_NAME_EXISTS";
707 #if defined EKERN_NOT_IN_SET
708 case EKERN_NOT_IN_SET
:return "EKERN_NOT_IN_SET";
711 #if defined EKERN_NOT_RECEIVER
712 case EKERN_NOT_RECEIVER
:return "EKERN_NOT_RECEIVER";
715 #if defined EKERN_NO_ACCESS
716 case EKERN_NO_ACCESS
: return "EKERN_NO_ACCESS";
719 #if defined EKERN_NO_SPACE
720 case EKERN_NO_SPACE
: return "EKERN_NO_SPACE";
723 #if defined EKERN_PROTECTION_FAILURE
724 case EKERN_PROTECTION_FAILURE
:return "EKERN_PROTECTION_FAILURE";
727 #if defined EKERN_RESOURCE_SHORTAGE
728 case EKERN_RESOURCE_SHORTAGE
:return "EKERN_RESOURCE_SHORTAGE";
731 #if defined EKERN_RIGHT_EXISTS
732 case EKERN_RIGHT_EXISTS
:return "EKERN_RIGHT_EXISTS";
735 #if defined EKERN_TERMINATED
736 case EKERN_TERMINATED
:return "EKERN_TERMINATED";
739 #if defined EKERN_TIMEDOUT
740 case EKERN_TIMEDOUT
: return "EKERN_TIMEDOUT";
743 #if defined EKERN_UREFS_OVERFLOW
744 case EKERN_UREFS_OVERFLOW
:return "EKERN_UREFS_OVERFLOW";
747 #if defined EKERN_WRITE_PROTECTION_FAILURE
748 case EKERN_WRITE_PROTECTION_FAILURE
:return "EKERN_WRITE_PROTECTION_FAILURE";
751 #if defined EKEYEXPIRED
752 case EKEYEXPIRED
: return "EKEYEXPIRED";
755 #if defined EKEYREJECTED
756 case EKEYREJECTED
: return "EKEYREJECTED";
759 #if defined EKEYREVOKED
760 case EKEYREVOKED
: return "EKEYREVOKED";
762 /* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin */
764 case EL2HLT
: return "EL2HLT";
766 /* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin */
768 case EL2NSYNC
: return "EL2NSYNC";
770 /* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin */
772 case EL3HLT
: return "EL3HLT";
774 /* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin */
776 case EL3RST
: return "EL3RST";
778 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, Minix */
779 #if defined ELAST && 0
780 case ELAST
: return "ELAST";
784 case ELBIN
: return "ELBIN";
786 /* Linux, IRIX, Solaris, Cygwin */
788 case ELIBACC
: return "ELIBACC";
790 /* Linux, IRIX, Solaris, Cygwin */
792 case ELIBBAD
: return "ELIBBAD";
794 /* Linux, IRIX, Solaris, Cygwin */
796 case ELIBEXEC
: return "ELIBEXEC";
798 /* Linux, IRIX, Solaris, Cygwin */
800 case ELIBMAX
: return "ELIBMAX";
802 /* Linux, IRIX, Solaris, Cygwin */
804 case ELIBSCN
: return "ELIBSCN";
806 /* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin */
808 case ELNRNG
: return "ELNRNG";
812 case ELOCKED
: return "ELOCKED";
815 #if defined ELOCKUNMAPPED
816 case ELOCKUNMAPPED
: return "ELOCKUNMAPPED";
819 #if defined ELOGINLIM
820 case ELOGINLIM
: return "ELOGINLIM";
823 #if defined EMACH_RCV_BODY_ERROR
824 case EMACH_RCV_BODY_ERROR
:return "EMACH_RCV_BODY_ERROR";
827 #if defined EMACH_RCV_HEADER_ERROR
828 case EMACH_RCV_HEADER_ERROR
:return "EMACH_RCV_HEADER_ERROR";
831 #if defined EMACH_RCV_INTERRUPTED
832 case EMACH_RCV_INTERRUPTED
:return "EMACH_RCV_INTERRUPTED";
835 #if defined EMACH_RCV_INVALID_DATA
836 case EMACH_RCV_INVALID_DATA
:return "EMACH_RCV_INVALID_DATA";
839 #if defined EMACH_RCV_INVALID_NAME
840 case EMACH_RCV_INVALID_NAME
:return "EMACH_RCV_INVALID_NAME";
843 #if defined EMACH_RCV_INVALID_NOTIFY
844 case EMACH_RCV_INVALID_NOTIFY
:return "EMACH_RCV_INVALID_NOTIFY";
847 #if defined EMACH_RCV_IN_PROGRESS
848 case EMACH_RCV_IN_PROGRESS
:return "EMACH_RCV_IN_PROGRESS";
851 #if defined EMACH_RCV_IN_SET
852 case EMACH_RCV_IN_SET
:return "EMACH_RCV_IN_SET";
855 #if defined EMACH_RCV_PORT_CHANGED
856 case EMACH_RCV_PORT_CHANGED
:return "EMACH_RCV_PORT_CHANGED";
859 #if defined EMACH_RCV_PORT_DIED
860 case EMACH_RCV_PORT_DIED
:return "EMACH_RCV_PORT_DIED";
863 #if defined EMACH_RCV_TIMED_OUT
864 case EMACH_RCV_TIMED_OUT
:return "EMACH_RCV_TIMED_OUT";
867 #if defined EMACH_RCV_TOO_LARGE
868 case EMACH_RCV_TOO_LARGE
:return "EMACH_RCV_TOO_LARGE";
871 #if defined EMACH_SEND_INTERRUPTED
872 case EMACH_SEND_INTERRUPTED
:return "EMACH_SEND_INTERRUPTED";
875 #if defined EMACH_SEND_INVALID_DATA
876 case EMACH_SEND_INVALID_DATA
:return "EMACH_SEND_INVALID_DATA";
879 #if defined EMACH_SEND_INVALID_DEST
880 case EMACH_SEND_INVALID_DEST
:return "EMACH_SEND_INVALID_DEST";
883 #if defined EMACH_SEND_INVALID_HEADER
884 case EMACH_SEND_INVALID_HEADER
:return "EMACH_SEND_INVALID_HEADER";
887 #if defined EMACH_SEND_INVALID_MEMORY
888 case EMACH_SEND_INVALID_MEMORY
:return "EMACH_SEND_INVALID_MEMORY";
891 #if defined EMACH_SEND_INVALID_NOTIFY
892 case EMACH_SEND_INVALID_NOTIFY
:return "EMACH_SEND_INVALID_NOTIFY";
895 #if defined EMACH_SEND_INVALID_REPLY
896 case EMACH_SEND_INVALID_REPLY
:return "EMACH_SEND_INVALID_REPLY";
899 #if defined EMACH_SEND_INVALID_RIGHT
900 case EMACH_SEND_INVALID_RIGHT
:return "EMACH_SEND_INVALID_RIGHT";
903 #if defined EMACH_SEND_INVALID_TYPE
904 case EMACH_SEND_INVALID_TYPE
:return "EMACH_SEND_INVALID_TYPE";
907 #if defined EMACH_SEND_IN_PROGRESS
908 case EMACH_SEND_IN_PROGRESS
:return "EMACH_SEND_IN_PROGRESS";
911 #if defined EMACH_SEND_MSG_TOO_SMALL
912 case EMACH_SEND_MSG_TOO_SMALL
:return "EMACH_SEND_MSG_TOO_SMALL";
915 #if defined EMACH_SEND_NOTIFY_IN_PROGRESS
916 case EMACH_SEND_NOTIFY_IN_PROGRESS
:return "EMACH_SEND_NOTIFY_IN_PROGRESS";
919 #if defined EMACH_SEND_NO_BUFFER
920 case EMACH_SEND_NO_BUFFER
:return "EMACH_SEND_NO_BUFFER";
923 #if defined EMACH_SEND_NO_NOTIFY
924 case EMACH_SEND_NO_NOTIFY
:return "EMACH_SEND_NO_NOTIFY";
927 #if defined EMACH_SEND_TIMED_OUT
928 case EMACH_SEND_TIMED_OUT
:return "EMACH_SEND_TIMED_OUT";
931 #if defined EMACH_SEND_WILL_NOTIFY
932 case EMACH_SEND_WILL_NOTIFY
:return "EMACH_SEND_WILL_NOTIFY";
936 case EMEDIA
: return "EMEDIA";
939 #if defined EMEDIUMTYPE
940 case EMEDIUMTYPE
: return "EMEDIUMTYPE";
943 #if defined EMEMRETRY
944 case EMEMRETRY
: return "EMEMRETRY";
947 #if defined EMIGRATED
948 case EMIGRATED
: return "EMIGRATED";
951 #if defined EMIGRATING
952 case EMIGRATING
: return "EMIGRATING";
955 #if defined EMIG_ARRAY_TOO_LARGE
956 case EMIG_ARRAY_TOO_LARGE
:return "EMIG_ARRAY_TOO_LARGE";
959 #if defined EMIG_BAD_ARGUMENTS
960 case EMIG_BAD_ARGUMENTS
:return "EMIG_BAD_ARGUMENTS";
963 #if defined EMIG_BAD_ID
964 case EMIG_BAD_ID
: return "EMIG_BAD_ID";
967 #if defined EMIG_DESTROY_REQUEST
968 case EMIG_DESTROY_REQUEST
:return "EMIG_DESTROY_REQUEST";
971 #if defined EMIG_EXCEPTION
972 case EMIG_EXCEPTION
: return "EMIG_EXCEPTION";
975 #if defined EMIG_NO_REPLY
976 case EMIG_NO_REPLY
: return "EMIG_NO_REPLY";
979 #if defined EMIG_REMOTE_ERROR
980 case EMIG_REMOTE_ERROR
:return "EMIG_REMOTE_ERROR";
983 #if defined EMIG_REPLY_MISMATCH
984 case EMIG_REPLY_MISMATCH
:return "EMIG_REPLY_MISMATCH";
987 #if defined EMIG_SERVER_DIED
988 case EMIG_SERVER_DIED
:return "EMIG_SERVER_DIED";
991 #if defined EMIG_TYPE_ERROR
992 case EMIG_TYPE_ERROR
: return "EMIG_TYPE_ERROR";
996 case EMTIMERS
: return "EMTIMERS";
1000 case EMUSTRUN
: return "EMUSTRUN";
1004 case ENAVAIL
: return "ENAVAIL";
1006 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, Minix */
1007 #if defined ENEEDAUTH
1008 case ENEEDAUTH
: return "ENEEDAUTH";
1011 #if defined ENFSREMOTE
1012 case ENFSREMOTE
: return "ENFSREMOTE";
1016 case ENMFILE
: return "ENMFILE";
1018 /* Linux, IRIX, Solaris, Cygwin */
1020 case ENOANO
: return "ENOANO";
1023 #if defined ENOATTACH
1024 case ENOATTACH
: return "ENOATTACH";
1026 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, IRIX, Minix */
1028 case ENOATTR
: return "ENOATTR";
1032 case ENOBWD
: return "ENOBWD";
1035 #if defined ENOCOFFEE
1036 case ENOCOFFEE
: return "ENOCOFFEE";
1040 case ENOCONN
: return "ENOCONN";
1043 #if defined ENOCONNECT
1044 case ENOCONNECT
: return "ENOCONNECT";
1046 /* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin */
1048 case ENOCSI
: return "ENOCSI";
1051 #if defined ENOEXIST
1052 case ENOEXIST
: return "ENOEXIST";
1055 #if defined ENOINTRGROUP
1056 case ENOINTRGROUP
: return "ENOINTRGROUP";
1059 #if defined ENOIOCTL
1060 case ENOIOCTL
: return "ENOIOCTL";
1064 case ENOKEY
: return "ENOKEY";
1067 #if defined ENOLIMFILE
1068 case ENOLIMFILE
: return "ENOLIMFILE";
1072 case ENOLOAD
: return "ENOLOAD";
1075 #if defined ENOLOGIN
1076 case ENOLOGIN
: return "ENOLOGIN";
1079 #if defined ENOMATCH
1080 case ENOMATCH
: return "ENOMATCH";
1082 /* Linux, OpenBSD, Cygwin */
1083 #if defined ENOMEDIUM
1084 case ENOMEDIUM
: return "ENOMEDIUM";
1087 #if defined ENOMESSAGE
1088 case ENOMESSAGE
: return "ENOMESSAGE";
1090 /* Linux, HP-UX, IRIX, Solaris, Cygwin */
1092 case ENONET
: return "ENONET";
1094 /* Linux, HP-UX, IRIX, OSF/1, Solaris, Cygwin */
1096 case ENOPKG
: return "ENOPKG";
1099 #if defined ENOPOLICY
1100 case ENOPOLICY
: return "ENOPOLICY";
1104 case ENOPROC
: return "ENOPROC";
1108 case ENOREG
: return "ENOREG";
1111 #if defined ENOSERVICE
1112 case ENOSERVICE
: return "ENOSERVICE";
1115 #if defined ENOSHARE
1116 case ENOSHARE
: return "ENOSHARE";
1120 case ENOSYM
: return "ENOSYM";
1123 #if defined ENOTACTIVE
1124 case ENOTACTIVE
: return "ENOTACTIVE";
1126 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, OSF/1, Solaris, Minix, Cygwin */
1128 case ENOTBLK
: return "ENOTBLK";
1131 #if defined ENOTCAPABLE
1132 case ENOTCAPABLE
: return "ENOTCAPABLE";
1135 #if defined ENOTCONTROLLER
1136 case ENOTCONTROLLER
: return "ENOTCONTROLLER";
1139 #if defined ENOTENQUEUED
1140 case ENOTENQUEUED
: return "ENOTENQUEUED";
1143 #if defined ENOTJOINED
1144 case ENOTJOINED
: return "ENOTJOINED";
1148 case ENOTNAM
: return "ENOTNAM";
1151 #if defined ENOTREADY
1152 case ENOTREADY
: return "ENOTREADY";
1155 #if defined ENOTRUST
1156 case ENOTRUST
: return "ENOTRUST";
1159 #if defined ENOTSTOPPED
1160 case ENOTSTOPPED
: return "ENOTSTOPPED";
1162 /* Linux, IRIX, Solaris, Cygwin */
1163 #if defined ENOTUNIQ
1164 case ENOTUNIQ
: return "ENOTUNIQ";
1168 case ENOUNLD
: return "ENOUNLD";
1171 #if defined ENOUNREG
1172 case ENOUNREG
: return "ENOUNREG";
1176 case ENOURG
: return "ENOURG";
1178 /* native Windows */
1180 case EOTHER
: return "EOTHER";
1183 #if defined EPACKSIZE
1184 case EPACKSIZE
: return "EPACKSIZE";
1186 /* Linux, Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, OSF/1, Solaris, Minix, Haiku, Cygwin */
1187 #if defined EPFNOSUPPORT
1188 case EPFNOSUPPORT
: return "EPFNOSUPPORT";
1190 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, IRIX, OSF/1, Minix, Cygwin */
1191 #if defined EPROCLIM
1192 case EPROCLIM
: return "EPROCLIM";
1194 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, OSF/1, Minix */
1195 #if defined EPROCUNAVAIL
1196 case EPROCUNAVAIL
: return "EPROCUNAVAIL";
1198 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, OSF/1, Minix */
1199 #if defined EPROGMISMATCH
1200 case EPROGMISMATCH
: return "EPROGMISMATCH";
1202 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, OSF/1, Minix */
1203 #if defined EPROGUNAVAIL
1204 case EPROGUNAVAIL
: return "EPROGUNAVAIL";
1208 case EPWROFF
: return "EPWROFF";
1212 case EQFULL
: return "EQFULL";
1216 case ERELOC
: return "ERELOC";
1219 #if defined ERELOCATED
1220 case ERELOCATED
: return "ERELOCATED";
1223 #if defined ERELOOKUP
1224 case ERELOOKUP
: return "ERELOOKUP";
1226 /* Linux, IRIX, Solaris, Cygwin */
1228 case EREMCHG
: return "EREMCHG";
1232 case EREMDEV
: return "EREMDEV";
1234 /* Linux, Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, OSF/1, Solaris, Minix, Haiku, Cygwin */
1236 case EREMOTE
: return "EREMOTE";
1239 #if defined EREMOTEIO
1240 case EREMOTEIO
: return "EREMOTEIO";
1243 #if defined EREMOTERELEASE
1244 case EREMOTERELEASE
: return "EREMOTERELEASE";
1246 /* Linux, FreeBSD, AIX, IRIX, OSF/1, Solaris, Minix */
1247 #if defined ERESTART
1248 case ERESTART
: return "ERESTART";
1252 case ERFKILL
: return "ERFKILL";
1254 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, OSF/1, Minix */
1255 #if defined ERPCMISMATCH
1256 case ERPCMISMATCH
: return "ERPCMISMATCH";
1260 case ESAD
: return "ESAD";
1263 #if defined ESHLIBVERS
1264 case ESHLIBVERS
: return "ESHLIBVERS";
1266 /* Linux, Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, OSF/1, Solaris, Minix, Haiku, Cygwin */
1267 #if defined ESHUTDOWN
1268 case ESHUTDOWN
: return "ESHUTDOWN";
1271 #if defined ESIGPARM
1272 case ESIGPARM
: return "ESIGPARM";
1274 /* Linux, Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, OSF/1, Solaris, Minix, Cygwin */
1275 #if defined ESOCKTNOSUPPORT
1276 case ESOCKTNOSUPPORT
: return "ESOCKTNOSUPPORT";
1280 case ESOFT
: return "ESOFT";
1282 /* Linux, HP-UX, IRIX, Solaris, Cygwin */
1284 case ESRMNT
: return "ESRMNT";
1286 /* Linux, IRIX, Solaris, Cygwin */
1287 #if defined ESTRPIPE
1288 case ESTRPIPE
: return "ESTRPIPE";
1291 #if defined ESUCCESS
1292 case ESUCCESS
: return "ESUCCESS";
1295 #if defined ESYSERROR
1296 case ESYSERROR
: return "ESYSERROR";
1298 /* Linux, Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, OSF/1, Solaris, Minix, Cygwin */
1299 #if defined ETOOMANYREFS
1300 case ETOOMANYREFS
: return "ETOOMANYREFS";
1303 #if defined ETRAPDENIED
1304 case ETRAPDENIED
: return "ETRAPDENIED";
1308 case EUCLEAN
: return "EUCLEAN";
1310 /* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin */
1312 case EUNATCH
: return "EUNATCH";
1316 case EURG
: return "EURG";
1318 /* Linux, Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, OSF/1, Solaris, Minix, Cygwin */
1320 case EUSERS
: return "EUSERS";
1323 #if defined EVERSION
1324 case EVERSION
: return "EVERSION";
1327 #if defined EWRONGFS
1328 case EWRONGFS
: return "EWRONGFS";
1331 #if defined EWRPROTECT
1332 case EWRPROTECT
: return "EWRPROTECT";
1334 /* Linux, IRIX, Solaris, Cygwin */
1336 case EXFULL
: return "EXFULL";