1 /* Test of strerrorname_np() function.
3 Copyright (C) 2020-2024 Free Software Foundation, Inc.
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3, or (at your option)
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, see <https://www.gnu.org/licenses/>. */
23 #include "signature.h"
24 SIGNATURE_CHECK (strerrorname_np
, const char *, (int));
33 /* Error codes specified by ISO C. */
34 ASSERT (strcmp (strerrorname_np (EDOM
), "EDOM") == 0);
35 ASSERT (strcmp (strerrorname_np (EILSEQ
), "EILSEQ") == 0);
36 ASSERT (strcmp (strerrorname_np (ERANGE
), "ERANGE") == 0);
38 /* Error codes specified by POSIX.
39 <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/errno.h.html> */
41 ASSERT (strcmp (strerrorname_np (E2BIG
), "E2BIG") == 0);
44 ASSERT (strcmp (strerrorname_np (EACCES
), "EACCES") == 0);
46 #if defined EADDRINUSE
47 ASSERT (strcmp (strerrorname_np (EADDRINUSE
), "EADDRINUSE") == 0);
49 #if defined EADDRNOTAVAIL
50 ASSERT (strcmp (strerrorname_np (EADDRNOTAVAIL
), "EADDRNOTAVAIL") == 0);
52 #if defined EAFNOSUPPORT
53 ASSERT (strcmp (strerrorname_np (EAFNOSUPPORT
), "EAFNOSUPPORT") == 0);
56 ASSERT (strcmp (strerrorname_np (EAGAIN
), "EAGAIN") == 0);
59 ASSERT (strcmp (strerrorname_np (EALREADY
), "EALREADY") == 0);
62 ASSERT (strcmp (strerrorname_np (EBADF
), "EBADF") == 0);
65 ASSERT (strcmp (strerrorname_np (EBADMSG
), "EBADMSG") == 0);
68 ASSERT (strcmp (strerrorname_np (EBUSY
), "EBUSY") == 0);
71 ASSERT (strcmp (strerrorname_np (ECANCELED
), "ECANCELED") == 0);
74 ASSERT (strcmp (strerrorname_np (ECHILD
), "ECHILD") == 0);
76 #if defined ECONNABORTED
77 ASSERT (strcmp (strerrorname_np (ECONNABORTED
), "ECONNABORTED") == 0);
79 #if defined ECONNREFUSED
80 ASSERT (strcmp (strerrorname_np (ECONNREFUSED
), "ECONNREFUSED") == 0);
82 #if defined ECONNRESET
83 ASSERT (strcmp (strerrorname_np (ECONNRESET
), "ECONNRESET") == 0);
86 ASSERT (strcmp (strerrorname_np (EDEADLK
), "EDEADLK") == 0);
88 #if defined EDESTADDRREQ
89 ASSERT (strcmp (strerrorname_np (EDESTADDRREQ
), "EDESTADDRREQ") == 0);
92 ASSERT (strcmp (strerrorname_np (EDQUOT
), "EDQUOT") == 0);
95 ASSERT (strcmp (strerrorname_np (EEXIST
), "EEXIST") == 0);
98 ASSERT (strcmp (strerrorname_np (EFAULT
), "EFAULT") == 0);
101 ASSERT (strcmp (strerrorname_np (EFBIG
), "EFBIG") == 0);
103 #if defined EHOSTUNREACH
104 ASSERT (strcmp (strerrorname_np (EHOSTUNREACH
), "EHOSTUNREACH") == 0);
107 ASSERT (strcmp (strerrorname_np (EIDRM
), "EIDRM") == 0);
109 #if defined EINPROGRESS
110 ASSERT (strcmp (strerrorname_np (EINPROGRESS
), "EINPROGRESS") == 0);
113 ASSERT (strcmp (strerrorname_np (EINTR
), "EINTR") == 0);
116 ASSERT (strcmp (strerrorname_np (EINVAL
), "EINVAL") == 0);
119 ASSERT (strcmp (strerrorname_np (EIO
), "EIO") == 0);
122 ASSERT (strcmp (strerrorname_np (EISCONN
), "EISCONN") == 0);
125 ASSERT (strcmp (strerrorname_np (EISDIR
), "EISDIR") == 0);
128 ASSERT (strcmp (strerrorname_np (ELOOP
), "ELOOP") == 0);
131 ASSERT (strcmp (strerrorname_np (EMFILE
), "EMFILE") == 0);
134 ASSERT (strcmp (strerrorname_np (EMLINK
), "EMLINK") == 0);
137 ASSERT (strcmp (strerrorname_np (EMSGSIZE
), "EMSGSIZE") == 0);
139 #if defined EMULTIHOP
140 ASSERT (strcmp (strerrorname_np (EMULTIHOP
), "EMULTIHOP") == 0);
142 #if defined ENAMETOOLONG
143 ASSERT (strcmp (strerrorname_np (ENAMETOOLONG
), "ENAMETOOLONG") == 0);
146 ASSERT (strcmp (strerrorname_np (ENETDOWN
), "ENETDOWN") == 0);
148 #if defined ENETRESET
149 ASSERT (strcmp (strerrorname_np (ENETRESET
), "ENETRESET") == 0);
151 #if defined ENETUNREACH
152 ASSERT (strcmp (strerrorname_np (ENETUNREACH
), "ENETUNREACH") == 0);
155 ASSERT (strcmp (strerrorname_np (ENFILE
), "ENFILE") == 0);
158 ASSERT (strcmp (strerrorname_np (ENOBUFS
), "ENOBUFS") == 0);
161 ASSERT (strcmp (strerrorname_np (ENODATA
), "ENODATA") == 0);
164 ASSERT (strcmp (strerrorname_np (ENODEV
), "ENODEV") == 0);
167 ASSERT (strcmp (strerrorname_np (ENOENT
), "ENOENT") == 0);
170 ASSERT (strcmp (strerrorname_np (ENOEXEC
), "ENOEXEC") == 0);
173 ASSERT (strcmp (strerrorname_np (ENOLCK
), "ENOLCK") == 0);
176 ASSERT (strcmp (strerrorname_np (ENOLINK
), "ENOLINK") == 0);
179 ASSERT (strcmp (strerrorname_np (ENOMEM
), "ENOMEM") == 0);
182 ASSERT (strcmp (strerrorname_np (ENOMSG
), "ENOMSG") == 0);
184 #if defined ENOPROTOOPT
185 ASSERT (strcmp (strerrorname_np (ENOPROTOOPT
), "ENOPROTOOPT") == 0);
188 ASSERT (strcmp (strerrorname_np (ENOSPC
), "ENOSPC") == 0);
191 ASSERT (strcmp (strerrorname_np (ENOSR
), "ENOSR") == 0);
194 ASSERT (strcmp (strerrorname_np (ENOSTR
), "ENOSTR") == 0);
197 ASSERT (strcmp (strerrorname_np (ENOSYS
), "ENOSYS") == 0);
200 ASSERT (strcmp (strerrorname_np (ENOTCONN
), "ENOTCONN") == 0);
203 ASSERT (strcmp (strerrorname_np (ENOTDIR
), "ENOTDIR") == 0);
205 #if defined ENOTEMPTY && ENOTEMPTY != EEXIST
206 ASSERT (strcmp (strerrorname_np (ENOTEMPTY
), "ENOTEMPTY") == 0);
208 #if defined ENOTRECOVERABLE
209 ASSERT (strcmp (strerrorname_np (ENOTRECOVERABLE
), "ENOTRECOVERABLE") == 0);
212 ASSERT (strcmp (strerrorname_np (ENOTSOCK
), "ENOTSOCK") == 0);
214 #if defined ENOTSUP && ENOTSUP != EOPNOTSUPP
215 ASSERT (strcmp (strerrorname_np (ENOTSUP
), "ENOTSUP") == 0);
218 ASSERT (strcmp (strerrorname_np (ENOTTY
), "ENOTTY") == 0);
221 ASSERT (strcmp (strerrorname_np (ENXIO
), "ENXIO") == 0);
223 #if defined EOPNOTSUPP
224 ASSERT (strcmp (strerrorname_np (EOPNOTSUPP
), "EOPNOTSUPP") == 0);
226 #if defined EOVERFLOW
227 ASSERT (strcmp (strerrorname_np (EOVERFLOW
), "EOVERFLOW") == 0);
229 #if defined EOWNERDEAD
230 ASSERT (strcmp (strerrorname_np (EOWNERDEAD
), "EOWNERDEAD") == 0);
233 ASSERT (strcmp (strerrorname_np (EPERM
), "EPERM") == 0);
236 ASSERT (strcmp (strerrorname_np (EPIPE
), "EPIPE") == 0);
239 ASSERT (strcmp (strerrorname_np (EPROTO
), "EPROTO") == 0);
241 #if defined EPROTONOSUPPORT
242 ASSERT (strcmp (strerrorname_np (EPROTONOSUPPORT
), "EPROTONOSUPPORT") == 0);
244 #if defined EPROTOTYPE
245 ASSERT (strcmp (strerrorname_np (EPROTOTYPE
), "EPROTOTYPE") == 0);
248 ASSERT (strcmp (strerrorname_np (EROFS
), "EROFS") == 0);
251 ASSERT (strcmp (strerrorname_np (ESPIPE
), "ESPIPE") == 0);
254 ASSERT (strcmp (strerrorname_np (ESRCH
), "ESRCH") == 0);
257 ASSERT (strcmp (strerrorname_np (ESTALE
), "ESTALE") == 0);
260 ASSERT (strcmp (strerrorname_np (ETIME
), "ETIME") == 0);
262 #if defined ETIMEDOUT
263 ASSERT (strcmp (strerrorname_np (ETIMEDOUT
), "ETIMEDOUT") == 0);
266 ASSERT (strcmp (strerrorname_np (ETXTBSY
), "ETXTBSY") == 0);
268 #if defined EWOULDBLOCK && EWOULDBLOCK != EAGAIN
269 ASSERT (strcmp (strerrorname_np (EWOULDBLOCK
), "EWOULDBLOCK") == 0);
272 ASSERT (strcmp (strerrorname_np (EXDEV
), "EXDEV") == 0);
275 /* Other error codes on other systems. */
278 ASSERT (strcmp (strerrorname_np (EADI
), "EADI") == 0);
280 /* Linux, HP-UX, IRIX, Solaris, Cygwin */
282 ASSERT (strcmp (strerrorname_np (EADV
), "EADV") == 0);
286 ASSERT (strcmp (strerrorname_np (EAIO
), "EAIO") == 0);
288 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, Minix */
290 ASSERT (strcmp (strerrorname_np (EAUTH
), "EAUTH") == 0);
293 #if defined EBACKGROUND
294 ASSERT (strcmp (strerrorname_np (EBACKGROUND
), "EBACKGROUND") == 0);
298 ASSERT (strcmp (strerrorname_np (EBADARCH
), "EBADARCH") == 0);
302 ASSERT (strcmp (strerrorname_np (EBADCALL
), "EBADCALL") == 0);
306 ASSERT (strcmp (strerrorname_np (EBADCPU
), "EBADCPU") == 0);
308 /* Linux, IRIX, Solaris, Cygwin */
309 #if defined EBADE && EBADE != ECKSUM
310 ASSERT (strcmp (strerrorname_np (EBADE
), "EBADE") == 0);
314 ASSERT (strcmp (strerrorname_np (EBADEPT
), "EBADEPT") == 0);
318 ASSERT (strcmp (strerrorname_np (EBADEXEC
), "EBADEXEC") == 0);
320 /* Linux, IRIX, Solaris, Cygwin */
322 ASSERT (strcmp (strerrorname_np (EBADFD
), "EBADFD") == 0);
326 ASSERT (strcmp (strerrorname_np (EBADFILT
), "EBADFILT") == 0);
329 #if defined EBADIOCTL
330 ASSERT (strcmp (strerrorname_np (EBADIOCTL
), "EBADIOCTL") == 0);
333 #if defined EBADMACHO
334 ASSERT (strcmp (strerrorname_np (EBADMACHO
), "EBADMACHO") == 0);
338 ASSERT (strcmp (strerrorname_np (EBADMODE
), "EBADMODE") == 0);
340 /* Linux, IRIX, Solaris, Cygwin */
341 #if defined EBADR && EBADR != EFRAGS
342 ASSERT (strcmp (strerrorname_np (EBADR
), "EBADR") == 0);
345 #if defined EBADREQUEST
346 ASSERT (strcmp (strerrorname_np (EBADREQUEST
), "EBADREQUEST") == 0);
348 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, OSF/1, Minix */
350 ASSERT (strcmp (strerrorname_np (EBADRPC
), "EBADRPC") == 0);
352 /* Linux, IRIX, Solaris, Cygwin */
354 ASSERT (strcmp (strerrorname_np (EBADRQC
), "EBADRQC") == 0);
357 #if defined EBADRSPEC
358 ASSERT (strcmp (strerrorname_np (EBADRSPEC
), "EBADRSPEC") == 0);
360 /* Linux, IRIX, Solaris, Cygwin */
362 ASSERT (strcmp (strerrorname_np (EBADSLT
), "EBADSLT") == 0);
365 #if defined EBADTSPEC
366 ASSERT (strcmp (strerrorname_np (EBADTSPEC
), "EBADTSPEC") == 0);
370 ASSERT (strcmp (strerrorname_np (EBADVER
), "EBADVER") == 0);
374 ASSERT (strcmp (strerrorname_np (EBDHDL
), "EBDHDL") == 0);
376 /* Linux, IRIX, Solaris, Cygwin */
378 ASSERT (strcmp (strerrorname_np (EBFONT
), "EBFONT") == 0);
382 ASSERT (strcmp (strerrorname_np (EBUFSIZE
), "EBUFSIZE") == 0);
385 #if defined ECALLDENIED
386 ASSERT (strcmp (strerrorname_np (ECALLDENIED
), "ECALLDENIED") == 0);
389 #if defined ECANTEXTENT
390 ASSERT (strcmp (strerrorname_np (ECANTEXTENT
), "ECANTEXTENT") == 0);
394 ASSERT (strcmp (strerrorname_np (ECAPMODE
), "ECAPMODE") == 0);
397 #if defined ECASECLASH
398 ASSERT (strcmp (strerrorname_np (ECASECLASH
), "ECASECLASH") == 0);
401 #if defined ECELLDOWN
402 ASSERT (strcmp (strerrorname_np (ECELLDOWN
), "ECELLDOWN") == 0);
404 /* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin */
406 ASSERT (strcmp (strerrorname_np (ECHRNG
), "ECHRNG") == 0);
410 ASSERT (strcmp (strerrorname_np (ECKPT
), "ECKPT") == 0);
414 ASSERT (strcmp (strerrorname_np (ECKSUM
), "ECKSUM") == 0);
417 #if defined ECLOCKCPU
418 ASSERT (strcmp (strerrorname_np (ECLOCKCPU
), "ECLOCKCPU") == 0);
421 #if defined ECLONEME && ECLONEME != ERESTART
422 ASSERT (strcmp (strerrorname_np (ECLONEME
), "ECLONEME") == 0);
424 /* Linux, HP-UX, IRIX, Solaris, Cygwin */
426 ASSERT (strcmp (strerrorname_np (ECOMM
), "ECOMM") == 0);
430 ASSERT (strcmp (strerrorname_np (ECONFIG
), "ECONFIG") == 0);
433 #if defined ECONTROLLER
434 ASSERT (strcmp (strerrorname_np (ECONTROLLER
), "ECONTROLLER") == 0);
438 ASSERT (strcmp (strerrorname_np (ECORRUPT
), "ECORRUPT") == 0);
442 ASSERT (strcmp (strerrorname_np (ED
), "ED") == 0);
446 ASSERT (strcmp (strerrorname_np (EDEADEPT
), "EDEADEPT") == 0);
448 /* IRIX, Solaris, Cygwin */
449 #if defined EDEADLOCK && EDEADLOCK != EDEADLK
450 ASSERT (strcmp (strerrorname_np (EDEADLOCK
), "EDEADLOCK") == 0);
453 #if defined EDEADSRCDST
454 ASSERT (strcmp (strerrorname_np (EDEADSRCDST
), "EDEADSRCDST") == 0);
458 ASSERT (strcmp (strerrorname_np (EDELAY
), "EDELAY") == 0);
461 #if defined EDESTROYED
462 ASSERT (strcmp (strerrorname_np (EDESTROYED
), "EDESTROYED") == 0);
466 ASSERT (strcmp (strerrorname_np (EDEVERR
), "EDEVERR") == 0);
470 ASSERT (strcmp (strerrorname_np (EDIED
), "EDIED") == 0);
473 #if defined EDIRCORRUPTED && EDIRCORRUPTED != EFSCORRUPTED
474 ASSERT (strcmp (strerrorname_np (EDIRCORRUPTED
), "EDIRCORRUPTED") == 0);
477 #if defined EDIRIOCTL
478 ASSERT (strcmp (strerrorname_np (EDIRIOCTL
), "EDIRIOCTL") == 0);
482 ASSERT (strcmp (strerrorname_np (EDIRTY
), "EDIRTY") == 0);
485 #if defined EDISJOINT
486 ASSERT (strcmp (strerrorname_np (EDISJOINT
), "EDISJOINT") == 0);
490 ASSERT (strcmp (strerrorname_np (EDIST
), "EDIST") == 0);
493 #if defined EDONTREPLY
494 ASSERT (strcmp (strerrorname_np (EDONTREPLY
), "EDONTREPLY") == 0);
497 #if defined EDOOFUS && EDOOFUS != EINVAL
498 ASSERT (strcmp (strerrorname_np (EDOOFUS
), "EDOOFUS") == 0);
500 /* Linux, HP-UX, Cygwin */
502 ASSERT (strcmp (strerrorname_np (EDOTDOT
), "EDOTDOT") == 0);
506 ASSERT (strcmp (strerrorname_np (EDUPPKG
), "EDUPPKG") == 0);
509 #if defined ED_ALREADY_OPEN
510 ASSERT (strcmp (strerrorname_np (ED_ALREADY_OPEN
), "ED_ALREADY_OPEN") == 0);
513 #if defined ED_DEVICE_DOWN
514 ASSERT (strcmp (strerrorname_np (ED_DEVICE_DOWN
), "ED_DEVICE_DOWN") == 0);
517 #if defined ED_INVALID_OPERATION
518 ASSERT (strcmp (strerrorname_np (ED_INVALID_OPERATION
), "ED_INVALID_OPERATION") == 0);
521 #if defined ED_INVALID_RECNUM
522 ASSERT (strcmp (strerrorname_np (ED_INVALID_RECNUM
), "ED_INVALID_RECNUM") == 0);
525 #if defined ED_INVALID_SIZE
526 ASSERT (strcmp (strerrorname_np (ED_INVALID_SIZE
), "ED_INVALID_SIZE") == 0);
529 #if defined ED_IO_ERROR
530 ASSERT (strcmp (strerrorname_np (ED_IO_ERROR
), "ED_IO_ERROR") == 0);
533 #if defined ED_NO_MEMORY
534 ASSERT (strcmp (strerrorname_np (ED_NO_MEMORY
), "ED_NO_MEMORY") == 0);
537 #if defined ED_NO_SUCH_DEVICE
538 ASSERT (strcmp (strerrorname_np (ED_NO_SUCH_DEVICE
), "ED_NO_SUCH_DEVICE") == 0);
541 #if defined ED_READ_ONLY
542 ASSERT (strcmp (strerrorname_np (ED_READ_ONLY
), "ED_READ_ONLY") == 0);
545 #if defined ED_WOULD_BLOCK
546 ASSERT (strcmp (strerrorname_np (ED_WOULD_BLOCK
), "ED_WOULD_BLOCK") == 0);
550 ASSERT (strcmp (strerrorname_np (EEMPTY
), "EEMPTY") == 0);
554 ASSERT (strcmp (strerrorname_np (EEMULATE
), "EEMULATE") == 0);
557 #if defined EENDOFMINOR
558 ASSERT (strcmp (strerrorname_np (EENDOFMINOR
), "EENDOFMINOR") == 0);
561 #if defined EENQUEUED
562 ASSERT (strcmp (strerrorname_np (EENQUEUED
), "EENQUEUED") == 0);
566 ASSERT (strcmp (strerrorname_np (EFAIL
), "EFAIL") == 0);
570 ASSERT (strcmp (strerrorname_np (EFORMAT
), "EFORMAT") == 0);
574 ASSERT (strcmp (strerrorname_np (EFPOS
), "EFPOS") == 0);
578 ASSERT (strcmp (strerrorname_np (EFRAGS
), "EFRAGS") == 0);
581 #if defined EFSCORRUPTED
582 ASSERT (strcmp (strerrorname_np (EFSCORRUPTED
), "EFSCORRUPTED") == 0);
584 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, OSF/1, Minix, Cygwin */
586 ASSERT (strcmp (strerrorname_np (EFTYPE
), "EFTYPE") == 0);
590 ASSERT (strcmp (strerrorname_np (EGENERIC
), "EGENERIC") == 0);
593 #if defined EGRATUITOUS
594 ASSERT (strcmp (strerrorname_np (EGRATUITOUS
), "EGRATUITOUS") == 0);
597 #if defined EGREGIOUS
598 ASSERT (strcmp (strerrorname_np (EGREGIOUS
), "EGREGIOUS") == 0);
601 #if defined EGROUPLOOP
602 ASSERT (strcmp (strerrorname_np (EGROUPLOOP
), "EGROUPLOOP") == 0);
604 /* Linux, Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, OSF/1, Solaris, Minix, Haiku, Cygwin */
605 #if defined EHOSTDOWN
606 ASSERT (strcmp (strerrorname_np (EHOSTDOWN
), "EHOSTDOWN") == 0);
609 #if defined EHWPOISON
610 ASSERT (strcmp (strerrorname_np (EHWPOISON
), "EHWPOISON") == 0);
614 ASSERT (strcmp (strerrorname_np (EIEIO
), "EIEIO") == 0);
618 ASSERT (strcmp (strerrorname_np (EINIT
), "EINIT") == 0);
622 ASSERT (strcmp (strerrorname_np (EINPROG
), "EINPROG") == 0);
625 #if defined EINVALMODE
626 ASSERT (strcmp (strerrorname_np (EINVALMODE
), "EINVALMODE") == 0);
629 #if defined EINVALSTATE
630 ASSERT (strcmp (strerrorname_np (EINVALSTATE
), "EINVALSTATE") == 0);
633 #if defined EINVALTIME
634 ASSERT (strcmp (strerrorname_np (EINVALTIME
), "EINVALTIME") == 0);
638 ASSERT (strcmp (strerrorname_np (EIORESID
), "EIORESID") == 0);
642 ASSERT (strcmp (strerrorname_np (EIPSEC
), "EIPSEC") == 0);
646 ASSERT (strcmp (strerrorname_np (EISNAM
), "EISNAM") == 0);
650 ASSERT (strcmp (strerrorname_np (EJOINED
), "EJOINED") == 0);
653 #if defined EJUSTRETURN
654 ASSERT (strcmp (strerrorname_np (EJUSTRETURN
), "EJUSTRETURN") == 0);
657 #if defined EKERN_ABORTED
658 ASSERT (strcmp (strerrorname_np (EKERN_ABORTED
), "EKERN_ABORTED") == 0);
661 #if defined EKERN_FAILURE
662 ASSERT (strcmp (strerrorname_np (EKERN_FAILURE
), "EKERN_FAILURE") == 0);
665 #if defined EKERN_INTERRUPTED
666 ASSERT (strcmp (strerrorname_np (EKERN_INTERRUPTED
), "EKERN_INTERRUPTED") == 0);
669 #if defined EKERN_INVALID_ADDRESS
670 ASSERT (strcmp (strerrorname_np (EKERN_INVALID_ADDRESS
), "EKERN_INVALID_ADDRESS") == 0);
673 #if defined EKERN_INVALID_ARGUMENT
674 ASSERT (strcmp (strerrorname_np (EKERN_INVALID_ARGUMENT
), "EKERN_INVALID_ARGUMENT") == 0);
677 #if defined EKERN_INVALID_CAPABILITY
678 ASSERT (strcmp (strerrorname_np (EKERN_INVALID_CAPABILITY
), "EKERN_INVALID_CAPABILITY") == 0);
681 #if defined EKERN_INVALID_HOST
682 ASSERT (strcmp (strerrorname_np (EKERN_INVALID_HOST
), "EKERN_INVALID_HOST") == 0);
685 #if defined EKERN_INVALID_NAME
686 ASSERT (strcmp (strerrorname_np (EKERN_INVALID_NAME
), "EKERN_INVALID_NAME") == 0);
689 #if defined EKERN_INVALID_RIGHT
690 ASSERT (strcmp (strerrorname_np (EKERN_INVALID_RIGHT
), "EKERN_INVALID_RIGHT") == 0);
693 #if defined EKERN_INVALID_TASK
694 ASSERT (strcmp (strerrorname_np (EKERN_INVALID_TASK
), "EKERN_INVALID_TASK") == 0);
697 #if defined EKERN_INVALID_VALUE
698 ASSERT (strcmp (strerrorname_np (EKERN_INVALID_VALUE
), "EKERN_INVALID_VALUE") == 0);
701 #if defined EKERN_MEMORY_ERROR
702 ASSERT (strcmp (strerrorname_np (EKERN_MEMORY_ERROR
), "EKERN_MEMORY_ERROR") == 0);
705 #if defined EKERN_MEMORY_FAILURE
706 ASSERT (strcmp (strerrorname_np (EKERN_MEMORY_FAILURE
), "EKERN_MEMORY_FAILURE") == 0);
709 #if defined EKERN_MEMORY_PRESENT
710 ASSERT (strcmp (strerrorname_np (EKERN_MEMORY_PRESENT
), "EKERN_MEMORY_PRESENT") == 0);
713 #if defined EKERN_NAME_EXISTS
714 ASSERT (strcmp (strerrorname_np (EKERN_NAME_EXISTS
), "EKERN_NAME_EXISTS") == 0);
717 #if defined EKERN_NOT_IN_SET
718 ASSERT (strcmp (strerrorname_np (EKERN_NOT_IN_SET
), "EKERN_NOT_IN_SET") == 0);
721 #if defined EKERN_NOT_RECEIVER
722 ASSERT (strcmp (strerrorname_np (EKERN_NOT_RECEIVER
), "EKERN_NOT_RECEIVER") == 0);
725 #if defined EKERN_NO_ACCESS
726 ASSERT (strcmp (strerrorname_np (EKERN_NO_ACCESS
), "EKERN_NO_ACCESS") == 0);
729 #if defined EKERN_NO_SPACE
730 ASSERT (strcmp (strerrorname_np (EKERN_NO_SPACE
), "EKERN_NO_SPACE") == 0);
733 #if defined EKERN_PROTECTION_FAILURE
734 ASSERT (strcmp (strerrorname_np (EKERN_PROTECTION_FAILURE
), "EKERN_PROTECTION_FAILURE") == 0);
737 #if defined EKERN_RESOURCE_SHORTAGE
738 ASSERT (strcmp (strerrorname_np (EKERN_RESOURCE_SHORTAGE
), "EKERN_RESOURCE_SHORTAGE") == 0);
741 #if defined EKERN_RIGHT_EXISTS
742 ASSERT (strcmp (strerrorname_np (EKERN_RIGHT_EXISTS
), "EKERN_RIGHT_EXISTS") == 0);
745 #if defined EKERN_TERMINATED
746 ASSERT (strcmp (strerrorname_np (EKERN_TERMINATED
), "EKERN_TERMINATED") == 0);
749 #if defined EKERN_TIMEDOUT
750 ASSERT (strcmp (strerrorname_np (EKERN_TIMEDOUT
), "EKERN_TIMEDOUT") == 0);
753 #if defined EKERN_UREFS_OVERFLOW
754 ASSERT (strcmp (strerrorname_np (EKERN_UREFS_OVERFLOW
), "EKERN_UREFS_OVERFLOW") == 0);
757 #if defined EKERN_WRITE_PROTECTION_FAILURE
758 ASSERT (strcmp (strerrorname_np (EKERN_WRITE_PROTECTION_FAILURE
), "EKERN_WRITE_PROTECTION_FAILURE") == 0);
761 #if defined EKEYEXPIRED
762 ASSERT (strcmp (strerrorname_np (EKEYEXPIRED
), "EKEYEXPIRED") == 0);
765 #if defined EKEYREJECTED
766 ASSERT (strcmp (strerrorname_np (EKEYREJECTED
), "EKEYREJECTED") == 0);
769 #if defined EKEYREVOKED
770 ASSERT (strcmp (strerrorname_np (EKEYREVOKED
), "EKEYREVOKED") == 0);
772 /* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin */
774 ASSERT (strcmp (strerrorname_np (EL2HLT
), "EL2HLT") == 0);
776 /* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin */
778 ASSERT (strcmp (strerrorname_np (EL2NSYNC
), "EL2NSYNC") == 0);
780 /* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin */
782 ASSERT (strcmp (strerrorname_np (EL3HLT
), "EL3HLT") == 0);
784 /* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin */
786 ASSERT (strcmp (strerrorname_np (EL3RST
), "EL3RST") == 0);
788 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, Minix */
789 #if defined ELAST && 0
790 ASSERT (strcmp (strerrorname_np (ELAST
), "ELAST") == 0);
794 ASSERT (strcmp (strerrorname_np (ELBIN
), "ELBIN") == 0);
796 /* Linux, IRIX, Solaris, Cygwin */
798 ASSERT (strcmp (strerrorname_np (ELIBACC
), "ELIBACC") == 0);
800 /* Linux, IRIX, Solaris, Cygwin */
802 ASSERT (strcmp (strerrorname_np (ELIBBAD
), "ELIBBAD") == 0);
804 /* Linux, IRIX, Solaris, Cygwin */
806 ASSERT (strcmp (strerrorname_np (ELIBEXEC
), "ELIBEXEC") == 0);
808 /* Linux, IRIX, Solaris, Cygwin */
810 ASSERT (strcmp (strerrorname_np (ELIBMAX
), "ELIBMAX") == 0);
812 /* Linux, IRIX, Solaris, Cygwin */
814 ASSERT (strcmp (strerrorname_np (ELIBSCN
), "ELIBSCN") == 0);
816 /* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin */
818 ASSERT (strcmp (strerrorname_np (ELNRNG
), "ELNRNG") == 0);
822 ASSERT (strcmp (strerrorname_np (ELOCKED
), "ELOCKED") == 0);
825 #if defined ELOCKUNMAPPED
826 ASSERT (strcmp (strerrorname_np (ELOCKUNMAPPED
), "ELOCKUNMAPPED") == 0);
829 #if defined ELOGINLIM
830 ASSERT (strcmp (strerrorname_np (ELOGINLIM
), "ELOGINLIM") == 0);
833 #if defined EMACH_RCV_BODY_ERROR
834 ASSERT (strcmp (strerrorname_np (EMACH_RCV_BODY_ERROR
), "EMACH_RCV_BODY_ERROR") == 0);
837 #if defined EMACH_RCV_HEADER_ERROR
838 ASSERT (strcmp (strerrorname_np (EMACH_RCV_HEADER_ERROR
), "EMACH_RCV_HEADER_ERROR") == 0);
841 #if defined EMACH_RCV_INTERRUPTED
842 ASSERT (strcmp (strerrorname_np (EMACH_RCV_INTERRUPTED
), "EMACH_RCV_INTERRUPTED") == 0);
845 #if defined EMACH_RCV_INVALID_DATA
846 ASSERT (strcmp (strerrorname_np (EMACH_RCV_INVALID_DATA
), "EMACH_RCV_INVALID_DATA") == 0);
849 #if defined EMACH_RCV_INVALID_NAME
850 ASSERT (strcmp (strerrorname_np (EMACH_RCV_INVALID_NAME
), "EMACH_RCV_INVALID_NAME") == 0);
853 #if defined EMACH_RCV_INVALID_NOTIFY
854 ASSERT (strcmp (strerrorname_np (EMACH_RCV_INVALID_NOTIFY
), "EMACH_RCV_INVALID_NOTIFY") == 0);
857 #if defined EMACH_RCV_IN_PROGRESS
858 ASSERT (strcmp (strerrorname_np (EMACH_RCV_IN_PROGRESS
), "EMACH_RCV_IN_PROGRESS") == 0);
861 #if defined EMACH_RCV_IN_SET
862 ASSERT (strcmp (strerrorname_np (EMACH_RCV_IN_SET
), "EMACH_RCV_IN_SET") == 0);
865 #if defined EMACH_RCV_PORT_CHANGED
866 ASSERT (strcmp (strerrorname_np (EMACH_RCV_PORT_CHANGED
), "EMACH_RCV_PORT_CHANGED") == 0);
869 #if defined EMACH_RCV_PORT_DIED
870 ASSERT (strcmp (strerrorname_np (EMACH_RCV_PORT_DIED
), "EMACH_RCV_PORT_DIED") == 0);
873 #if defined EMACH_RCV_TIMED_OUT
874 ASSERT (strcmp (strerrorname_np (EMACH_RCV_TIMED_OUT
), "EMACH_RCV_TIMED_OUT") == 0);
877 #if defined EMACH_RCV_TOO_LARGE
878 ASSERT (strcmp (strerrorname_np (EMACH_RCV_TOO_LARGE
), "EMACH_RCV_TOO_LARGE") == 0);
881 #if defined EMACH_SEND_INTERRUPTED
882 ASSERT (strcmp (strerrorname_np (EMACH_SEND_INTERRUPTED
), "EMACH_SEND_INTERRUPTED") == 0);
885 #if defined EMACH_SEND_INVALID_DATA
886 ASSERT (strcmp (strerrorname_np (EMACH_SEND_INVALID_DATA
), "EMACH_SEND_INVALID_DATA") == 0);
889 #if defined EMACH_SEND_INVALID_DEST
890 ASSERT (strcmp (strerrorname_np (EMACH_SEND_INVALID_DEST
), "EMACH_SEND_INVALID_DEST") == 0);
893 #if defined EMACH_SEND_INVALID_HEADER
894 ASSERT (strcmp (strerrorname_np (EMACH_SEND_INVALID_HEADER
), "EMACH_SEND_INVALID_HEADER") == 0);
897 #if defined EMACH_SEND_INVALID_MEMORY
898 ASSERT (strcmp (strerrorname_np (EMACH_SEND_INVALID_MEMORY
), "EMACH_SEND_INVALID_MEMORY") == 0);
901 #if defined EMACH_SEND_INVALID_NOTIFY
902 ASSERT (strcmp (strerrorname_np (EMACH_SEND_INVALID_NOTIFY
), "EMACH_SEND_INVALID_NOTIFY") == 0);
905 #if defined EMACH_SEND_INVALID_REPLY
906 ASSERT (strcmp (strerrorname_np (EMACH_SEND_INVALID_REPLY
), "EMACH_SEND_INVALID_REPLY") == 0);
909 #if defined EMACH_SEND_INVALID_RIGHT
910 ASSERT (strcmp (strerrorname_np (EMACH_SEND_INVALID_RIGHT
), "EMACH_SEND_INVALID_RIGHT") == 0);
913 #if defined EMACH_SEND_INVALID_TYPE
914 ASSERT (strcmp (strerrorname_np (EMACH_SEND_INVALID_TYPE
), "EMACH_SEND_INVALID_TYPE") == 0);
917 #if defined EMACH_SEND_IN_PROGRESS
918 ASSERT (strcmp (strerrorname_np (EMACH_SEND_IN_PROGRESS
), "EMACH_SEND_IN_PROGRESS") == 0);
921 #if defined EMACH_SEND_MSG_TOO_SMALL
922 ASSERT (strcmp (strerrorname_np (EMACH_SEND_MSG_TOO_SMALL
), "EMACH_SEND_MSG_TOO_SMALL") == 0);
925 #if defined EMACH_SEND_NOTIFY_IN_PROGRESS
926 ASSERT (strcmp (strerrorname_np (EMACH_SEND_NOTIFY_IN_PROGRESS
), "EMACH_SEND_NOTIFY_IN_PROGRESS") == 0);
929 #if defined EMACH_SEND_NO_BUFFER
930 ASSERT (strcmp (strerrorname_np (EMACH_SEND_NO_BUFFER
), "EMACH_SEND_NO_BUFFER") == 0);
933 #if defined EMACH_SEND_NO_NOTIFY
934 ASSERT (strcmp (strerrorname_np (EMACH_SEND_NO_NOTIFY
), "EMACH_SEND_NO_NOTIFY") == 0);
937 #if defined EMACH_SEND_TIMED_OUT
938 ASSERT (strcmp (strerrorname_np (EMACH_SEND_TIMED_OUT
), "EMACH_SEND_TIMED_OUT") == 0);
941 #if defined EMACH_SEND_WILL_NOTIFY
942 ASSERT (strcmp (strerrorname_np (EMACH_SEND_WILL_NOTIFY
), "EMACH_SEND_WILL_NOTIFY") == 0);
946 ASSERT (strcmp (strerrorname_np (EMEDIA
), "EMEDIA") == 0);
949 #if defined EMEDIUMTYPE
950 ASSERT (strcmp (strerrorname_np (EMEDIUMTYPE
), "EMEDIUMTYPE") == 0);
953 #if defined EMEMRETRY
954 ASSERT (strcmp (strerrorname_np (EMEMRETRY
), "EMEMRETRY") == 0);
957 #if defined EMIGRATED
958 ASSERT (strcmp (strerrorname_np (EMIGRATED
), "EMIGRATED") == 0);
961 #if defined EMIGRATING
962 ASSERT (strcmp (strerrorname_np (EMIGRATING
), "EMIGRATING") == 0);
965 #if defined EMIG_ARRAY_TOO_LARGE
966 ASSERT (strcmp (strerrorname_np (EMIG_ARRAY_TOO_LARGE
), "EMIG_ARRAY_TOO_LARGE") == 0);
969 #if defined EMIG_BAD_ARGUMENTS
970 ASSERT (strcmp (strerrorname_np (EMIG_BAD_ARGUMENTS
), "EMIG_BAD_ARGUMENTS") == 0);
973 #if defined EMIG_BAD_ID
974 ASSERT (strcmp (strerrorname_np (EMIG_BAD_ID
), "EMIG_BAD_ID") == 0);
977 #if defined EMIG_DESTROY_REQUEST
978 ASSERT (strcmp (strerrorname_np (EMIG_DESTROY_REQUEST
), "EMIG_DESTROY_REQUEST") == 0);
981 #if defined EMIG_EXCEPTION
982 ASSERT (strcmp (strerrorname_np (EMIG_EXCEPTION
), "EMIG_EXCEPTION") == 0);
985 #if defined EMIG_NO_REPLY
986 ASSERT (strcmp (strerrorname_np (EMIG_NO_REPLY
), "EMIG_NO_REPLY") == 0);
989 #if defined EMIG_REMOTE_ERROR
990 ASSERT (strcmp (strerrorname_np (EMIG_REMOTE_ERROR
), "EMIG_REMOTE_ERROR") == 0);
993 #if defined EMIG_REPLY_MISMATCH
994 ASSERT (strcmp (strerrorname_np (EMIG_REPLY_MISMATCH
), "EMIG_REPLY_MISMATCH") == 0);
997 #if defined EMIG_SERVER_DIED
998 ASSERT (strcmp (strerrorname_np (EMIG_SERVER_DIED
), "EMIG_SERVER_DIED") == 0);
1001 #if defined EMIG_TYPE_ERROR
1002 ASSERT (strcmp (strerrorname_np (EMIG_TYPE_ERROR
), "EMIG_TYPE_ERROR") == 0);
1005 #if defined EMTIMERS
1006 ASSERT (strcmp (strerrorname_np (EMTIMERS
), "EMTIMERS") == 0);
1009 #if defined EMUSTRUN
1010 ASSERT (strcmp (strerrorname_np (EMUSTRUN
), "EMUSTRUN") == 0);
1014 ASSERT (strcmp (strerrorname_np (ENAVAIL
), "ENAVAIL") == 0);
1016 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, Minix */
1017 #if defined ENEEDAUTH
1018 ASSERT (strcmp (strerrorname_np (ENEEDAUTH
), "ENEEDAUTH") == 0);
1021 #if defined ENFSREMOTE
1022 ASSERT (strcmp (strerrorname_np (ENFSREMOTE
), "ENFSREMOTE") == 0);
1026 ASSERT (strcmp (strerrorname_np (ENMFILE
), "ENMFILE") == 0);
1028 /* Linux, IRIX, Solaris, Cygwin */
1029 #if defined ENOANO && ENOANO != ENOKEY
1030 ASSERT (strcmp (strerrorname_np (ENOANO
), "ENOANO") == 0);
1033 #if defined ENOATTACH
1034 ASSERT (strcmp (strerrorname_np (ENOATTACH
), "ENOATTACH") == 0);
1036 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, IRIX, Minix */
1038 ASSERT (strcmp (strerrorname_np (ENOATTR
), "ENOATTR") == 0);
1042 ASSERT (strcmp (strerrorname_np (ENOBWD
), "ENOBWD") == 0);
1045 #if defined ENOCOFFEE
1046 ASSERT (strcmp (strerrorname_np (ENOCOFFEE
), "ENOCOFFEE") == 0);
1050 ASSERT (strcmp (strerrorname_np (ENOCONN
), "ENOCONN") == 0);
1053 #if defined ENOCONNECT
1054 ASSERT (strcmp (strerrorname_np (ENOCONNECT
), "ENOCONNECT") == 0);
1056 /* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin */
1058 ASSERT (strcmp (strerrorname_np (ENOCSI
), "ENOCSI") == 0);
1061 #if defined ENOEXIST
1062 ASSERT (strcmp (strerrorname_np (ENOEXIST
), "ENOEXIST") == 0);
1065 #if defined ENOINTRGROUP
1066 ASSERT (strcmp (strerrorname_np (ENOINTRGROUP
), "ENOINTRGROUP") == 0);
1069 #if defined ENOIOCTL
1070 ASSERT (strcmp (strerrorname_np (ENOIOCTL
), "ENOIOCTL") == 0);
1074 ASSERT (strcmp (strerrorname_np (ENOKEY
), "ENOKEY") == 0);
1077 #if defined ENOLIMFILE
1078 ASSERT (strcmp (strerrorname_np (ENOLIMFILE
), "ENOLIMFILE") == 0);
1082 ASSERT (strcmp (strerrorname_np (ENOLOAD
), "ENOLOAD") == 0);
1085 #if defined ENOLOGIN
1086 ASSERT (strcmp (strerrorname_np (ENOLOGIN
), "ENOLOGIN") == 0);
1089 #if defined ENOMATCH
1090 ASSERT (strcmp (strerrorname_np (ENOMATCH
), "ENOMATCH") == 0);
1092 /* Linux, OpenBSD, Cygwin */
1093 #if defined ENOMEDIUM
1094 ASSERT (strcmp (strerrorname_np (ENOMEDIUM
), "ENOMEDIUM") == 0);
1097 #if defined ENOMESSAGE
1098 ASSERT (strcmp (strerrorname_np (ENOMESSAGE
), "ENOMESSAGE") == 0);
1100 /* Linux, HP-UX, IRIX, Solaris, Cygwin */
1102 ASSERT (strcmp (strerrorname_np (ENONET
), "ENONET") == 0);
1104 /* Linux, HP-UX, IRIX, OSF/1, Solaris, Cygwin */
1106 ASSERT (strcmp (strerrorname_np (ENOPKG
), "ENOPKG") == 0);
1109 #if defined ENOPOLICY
1110 ASSERT (strcmp (strerrorname_np (ENOPOLICY
), "ENOPOLICY") == 0);
1114 ASSERT (strcmp (strerrorname_np (ENOPROC
), "ENOPROC") == 0);
1118 ASSERT (strcmp (strerrorname_np (ENOREG
), "ENOREG") == 0);
1121 #if defined ENOSERVICE
1122 ASSERT (strcmp (strerrorname_np (ENOSERVICE
), "ENOSERVICE") == 0);
1125 #if defined ENOSHARE
1126 ASSERT (strcmp (strerrorname_np (ENOSHARE
), "ENOSHARE") == 0);
1128 /* Linux, HP-UX, OSF/1 */
1130 ASSERT (strcmp (strerrorname_np (ENOSYM
), "ENOSYM") == 0);
1133 #if defined ENOTACTIVE
1134 ASSERT (strcmp (strerrorname_np (ENOTACTIVE
), "ENOTACTIVE") == 0);
1136 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, OSF/1, Solaris, Minix, Cygwin */
1138 ASSERT (strcmp (strerrorname_np (ENOTBLK
), "ENOTBLK") == 0);
1141 #if defined ENOTCAPABLE
1142 ASSERT (strcmp (strerrorname_np (ENOTCAPABLE
), "ENOTCAPABLE") == 0);
1145 #if defined ENOTCONTROLLER
1146 ASSERT (strcmp (strerrorname_np (ENOTCONTROLLER
), "ENOTCONTROLLER") == 0);
1149 #if defined ENOTENQUEUED
1150 ASSERT (strcmp (strerrorname_np (ENOTENQUEUED
), "ENOTENQUEUED") == 0);
1153 #if defined ENOTJOINED
1154 ASSERT (strcmp (strerrorname_np (ENOTJOINED
), "ENOTJOINED") == 0);
1158 ASSERT (strcmp (strerrorname_np (ENOTNAM
), "ENOTNAM") == 0);
1161 #if defined ENOTREADY
1162 ASSERT (strcmp (strerrorname_np (ENOTREADY
), "ENOTREADY") == 0);
1165 #if defined ENOTRUST
1166 ASSERT (strcmp (strerrorname_np (ENOTRUST
), "ENOTRUST") == 0);
1169 #if defined ENOTSTOPPED
1170 ASSERT (strcmp (strerrorname_np (ENOTSTOPPED
), "ENOTSTOPPED") == 0);
1172 /* Linux, IRIX, Solaris, Cygwin */
1173 #if defined ENOTUNIQ
1174 ASSERT (strcmp (strerrorname_np (ENOTUNIQ
), "ENOTUNIQ") == 0);
1178 ASSERT (strcmp (strerrorname_np (ENOUNLD
), "ENOUNLD") == 0);
1181 #if defined ENOUNREG
1182 ASSERT (strcmp (strerrorname_np (ENOUNREG
), "ENOUNREG") == 0);
1186 ASSERT (strcmp (strerrorname_np (ENOURG
), "ENOURG") == 0);
1188 /* native Windows */
1190 ASSERT (strcmp (strerrorname_np (EOTHER
), "EOTHER") == 0);
1193 #if defined EPACKSIZE
1194 ASSERT (strcmp (strerrorname_np (EPACKSIZE
), "EPACKSIZE") == 0);
1196 /* Linux, Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, OSF/1, Solaris, Minix, Haiku, Cygwin */
1197 #if defined EPFNOSUPPORT
1198 ASSERT (strcmp (strerrorname_np (EPFNOSUPPORT
), "EPFNOSUPPORT") == 0);
1200 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, IRIX, OSF/1, Minix, Cygwin */
1201 #if defined EPROCLIM
1202 ASSERT (strcmp (strerrorname_np (EPROCLIM
), "EPROCLIM") == 0);
1204 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, OSF/1, Minix */
1205 #if defined EPROCUNAVAIL
1206 ASSERT (strcmp (strerrorname_np (EPROCUNAVAIL
), "EPROCUNAVAIL") == 0);
1208 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, OSF/1, Minix */
1209 #if defined EPROGMISMATCH
1210 ASSERT (strcmp (strerrorname_np (EPROGMISMATCH
), "EPROGMISMATCH") == 0);
1212 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, OSF/1, Minix */
1213 #if defined EPROGUNAVAIL
1214 ASSERT (strcmp (strerrorname_np (EPROGUNAVAIL
), "EPROGUNAVAIL") == 0);
1218 ASSERT (strcmp (strerrorname_np (EPWROFF
), "EPWROFF") == 0);
1222 ASSERT (strcmp (strerrorname_np (EQFULL
), "EQFULL") == 0);
1226 ASSERT (strcmp (strerrorname_np (ERELOC
), "ERELOC") == 0);
1229 #if defined ERELOCATED
1230 ASSERT (strcmp (strerrorname_np (ERELOCATED
), "ERELOCATED") == 0);
1233 #if defined ERELOOKUP
1234 ASSERT (strcmp (strerrorname_np (ERELOOKUP
), "ERELOOKUP") == 0);
1236 /* Linux, IRIX, Solaris, Cygwin */
1238 ASSERT (strcmp (strerrorname_np (EREMCHG
), "EREMCHG") == 0);
1242 ASSERT (strcmp (strerrorname_np (EREMDEV
), "EREMDEV") == 0);
1244 /* Linux, Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, OSF/1, Solaris, Minix, Haiku, Cygwin */
1246 ASSERT (strcmp (strerrorname_np (EREMOTE
), "EREMOTE") == 0);
1249 #if defined EREMOTEIO
1250 ASSERT (strcmp (strerrorname_np (EREMOTEIO
), "EREMOTEIO") == 0);
1253 #if defined EREMOTERELEASE
1254 ASSERT (strcmp (strerrorname_np (EREMOTERELEASE
), "EREMOTERELEASE") == 0);
1256 /* Linux, FreeBSD, AIX, IRIX, OSF/1, Solaris, Minix */
1257 #if defined ERESTART
1258 ASSERT (strcmp (strerrorname_np (ERESTART
), "ERESTART") == 0);
1262 ASSERT (strcmp (strerrorname_np (ERFKILL
), "ERFKILL") == 0);
1264 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, OSF/1, Minix */
1265 #if defined ERPCMISMATCH
1266 ASSERT (strcmp (strerrorname_np (ERPCMISMATCH
), "ERPCMISMATCH") == 0);
1270 ASSERT (strcmp (strerrorname_np (ESAD
), "ESAD") == 0);
1273 #if defined ESHLIBVERS
1274 ASSERT (strcmp (strerrorname_np (ESHLIBVERS
), "ESHLIBVERS") == 0);
1276 /* Linux, Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, OSF/1, Solaris, Minix, Haiku, Cygwin */
1277 #if defined ESHUTDOWN
1278 ASSERT (strcmp (strerrorname_np (ESHUTDOWN
), "ESHUTDOWN") == 0);
1281 #if defined ESIGPARM
1282 ASSERT (strcmp (strerrorname_np (ESIGPARM
), "ESIGPARM") == 0);
1284 /* Linux, Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, OSF/1, Solaris, Minix, Cygwin */
1285 #if defined ESOCKTNOSUPPORT
1286 ASSERT (strcmp (strerrorname_np (ESOCKTNOSUPPORT
), "ESOCKTNOSUPPORT") == 0);
1290 ASSERT (strcmp (strerrorname_np (ESOFT
), "ESOFT") == 0);
1292 /* Linux, HP-UX, IRIX, Solaris, Cygwin */
1294 ASSERT (strcmp (strerrorname_np (ESRMNT
), "ESRMNT") == 0);
1296 /* Linux, IRIX, Solaris, Cygwin */
1297 #if defined ESTRPIPE
1298 ASSERT (strcmp (strerrorname_np (ESTRPIPE
), "ESTRPIPE") == 0);
1301 #if defined ESUCCESS
1302 ASSERT (strcmp (strerrorname_np (ESUCCESS
), "ESUCCESS") == 0);
1305 #if defined ESYSERROR
1306 ASSERT (strcmp (strerrorname_np (ESYSERROR
), "ESYSERROR") == 0);
1308 /* Linux, Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, OSF/1, Solaris, Minix, Cygwin */
1309 #if defined ETOOMANYREFS
1310 ASSERT (strcmp (strerrorname_np (ETOOMANYREFS
), "ETOOMANYREFS") == 0);
1313 #if defined ETRAPDENIED
1314 ASSERT (strcmp (strerrorname_np (ETRAPDENIED
), "ETRAPDENIED") == 0);
1318 ASSERT (strcmp (strerrorname_np (EUCLEAN
), "EUCLEAN") == 0);
1320 /* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin */
1322 ASSERT (strcmp (strerrorname_np (EUNATCH
), "EUNATCH") == 0);
1326 ASSERT (strcmp (strerrorname_np (EURG
), "EURG") == 0);
1328 /* Linux, Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, OSF/1, Solaris, Minix, Cygwin */
1330 ASSERT (strcmp (strerrorname_np (EUSERS
), "EUSERS") == 0);
1333 #if defined EVERSION
1334 ASSERT (strcmp (strerrorname_np (EVERSION
), "EVERSION") == 0);
1337 #if defined EWRONGFS
1338 ASSERT (strcmp (strerrorname_np (EWRONGFS
), "EWRONGFS") == 0);
1341 #if defined EWRPROTECT
1342 ASSERT (strcmp (strerrorname_np (EWRPROTECT
), "EWRPROTECT") == 0);
1344 /* Linux, IRIX, Solaris, Cygwin */
1346 ASSERT (strcmp (strerrorname_np (EXFULL
), "EXFULL") == 0);
1349 ASSERT (strerrorname_np (20200830) == NULL
);
1350 ASSERT (strerrorname_np (-714) == NULL
);
1352 return test_exit_status
;