openat: don’t close (-1)
[gnulib.git] / tests / test-strerrorname_np.c
blob9fc0f03117196040c1d7b9e1400b77f123107315
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)
8 any later version.
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/>. */
18 #include <config.h>
20 /* Specification. */
21 #include <string.h>
23 #include "signature.h"
24 SIGNATURE_CHECK (strerrorname_np, const char *, (int));
26 #include <errno.h>
28 #include "macros.h"
30 int
31 main (void)
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> */
40 #if defined E2BIG
41 ASSERT (strcmp (strerrorname_np (E2BIG), "E2BIG") == 0);
42 #endif
43 #if defined EACCES
44 ASSERT (strcmp (strerrorname_np (EACCES), "EACCES") == 0);
45 #endif
46 #if defined EADDRINUSE
47 ASSERT (strcmp (strerrorname_np (EADDRINUSE), "EADDRINUSE") == 0);
48 #endif
49 #if defined EADDRNOTAVAIL
50 ASSERT (strcmp (strerrorname_np (EADDRNOTAVAIL), "EADDRNOTAVAIL") == 0);
51 #endif
52 #if defined EAFNOSUPPORT
53 ASSERT (strcmp (strerrorname_np (EAFNOSUPPORT), "EAFNOSUPPORT") == 0);
54 #endif
55 #if defined EAGAIN
56 ASSERT (strcmp (strerrorname_np (EAGAIN), "EAGAIN") == 0);
57 #endif
58 #if defined EALREADY
59 ASSERT (strcmp (strerrorname_np (EALREADY), "EALREADY") == 0);
60 #endif
61 #if defined EBADF
62 ASSERT (strcmp (strerrorname_np (EBADF), "EBADF") == 0);
63 #endif
64 #if defined EBADMSG
65 ASSERT (strcmp (strerrorname_np (EBADMSG), "EBADMSG") == 0);
66 #endif
67 #if defined EBUSY
68 ASSERT (strcmp (strerrorname_np (EBUSY), "EBUSY") == 0);
69 #endif
70 #if defined ECANCELED
71 ASSERT (strcmp (strerrorname_np (ECANCELED), "ECANCELED") == 0);
72 #endif
73 #if defined ECHILD
74 ASSERT (strcmp (strerrorname_np (ECHILD), "ECHILD") == 0);
75 #endif
76 #if defined ECONNABORTED
77 ASSERT (strcmp (strerrorname_np (ECONNABORTED), "ECONNABORTED") == 0);
78 #endif
79 #if defined ECONNREFUSED
80 ASSERT (strcmp (strerrorname_np (ECONNREFUSED), "ECONNREFUSED") == 0);
81 #endif
82 #if defined ECONNRESET
83 ASSERT (strcmp (strerrorname_np (ECONNRESET), "ECONNRESET") == 0);
84 #endif
85 #if defined EDEADLK
86 ASSERT (strcmp (strerrorname_np (EDEADLK), "EDEADLK") == 0);
87 #endif
88 #if defined EDESTADDRREQ
89 ASSERT (strcmp (strerrorname_np (EDESTADDRREQ), "EDESTADDRREQ") == 0);
90 #endif
91 #if defined EDQUOT
92 ASSERT (strcmp (strerrorname_np (EDQUOT), "EDQUOT") == 0);
93 #endif
94 #if defined EEXIST
95 ASSERT (strcmp (strerrorname_np (EEXIST), "EEXIST") == 0);
96 #endif
97 #if defined EFAULT
98 ASSERT (strcmp (strerrorname_np (EFAULT), "EFAULT") == 0);
99 #endif
100 #if defined EFBIG
101 ASSERT (strcmp (strerrorname_np (EFBIG), "EFBIG") == 0);
102 #endif
103 #if defined EHOSTUNREACH
104 ASSERT (strcmp (strerrorname_np (EHOSTUNREACH), "EHOSTUNREACH") == 0);
105 #endif
106 #if defined EIDRM
107 ASSERT (strcmp (strerrorname_np (EIDRM), "EIDRM") == 0);
108 #endif
109 #if defined EINPROGRESS
110 ASSERT (strcmp (strerrorname_np (EINPROGRESS), "EINPROGRESS") == 0);
111 #endif
112 #if defined EINTR
113 ASSERT (strcmp (strerrorname_np (EINTR), "EINTR") == 0);
114 #endif
115 #if defined EINVAL
116 ASSERT (strcmp (strerrorname_np (EINVAL), "EINVAL") == 0);
117 #endif
118 #if defined EIO
119 ASSERT (strcmp (strerrorname_np (EIO), "EIO") == 0);
120 #endif
121 #if defined EISCONN
122 ASSERT (strcmp (strerrorname_np (EISCONN), "EISCONN") == 0);
123 #endif
124 #if defined EISDIR
125 ASSERT (strcmp (strerrorname_np (EISDIR), "EISDIR") == 0);
126 #endif
127 #if defined ELOOP
128 ASSERT (strcmp (strerrorname_np (ELOOP), "ELOOP") == 0);
129 #endif
130 #if defined EMFILE
131 ASSERT (strcmp (strerrorname_np (EMFILE), "EMFILE") == 0);
132 #endif
133 #if defined EMLINK
134 ASSERT (strcmp (strerrorname_np (EMLINK), "EMLINK") == 0);
135 #endif
136 #if defined EMSGSIZE
137 ASSERT (strcmp (strerrorname_np (EMSGSIZE), "EMSGSIZE") == 0);
138 #endif
139 #if defined EMULTIHOP
140 ASSERT (strcmp (strerrorname_np (EMULTIHOP), "EMULTIHOP") == 0);
141 #endif
142 #if defined ENAMETOOLONG
143 ASSERT (strcmp (strerrorname_np (ENAMETOOLONG), "ENAMETOOLONG") == 0);
144 #endif
145 #if defined ENETDOWN
146 ASSERT (strcmp (strerrorname_np (ENETDOWN), "ENETDOWN") == 0);
147 #endif
148 #if defined ENETRESET
149 ASSERT (strcmp (strerrorname_np (ENETRESET), "ENETRESET") == 0);
150 #endif
151 #if defined ENETUNREACH
152 ASSERT (strcmp (strerrorname_np (ENETUNREACH), "ENETUNREACH") == 0);
153 #endif
154 #if defined ENFILE
155 ASSERT (strcmp (strerrorname_np (ENFILE), "ENFILE") == 0);
156 #endif
157 #if defined ENOBUFS
158 ASSERT (strcmp (strerrorname_np (ENOBUFS), "ENOBUFS") == 0);
159 #endif
160 #if defined ENODATA
161 ASSERT (strcmp (strerrorname_np (ENODATA), "ENODATA") == 0);
162 #endif
163 #if defined ENODEV
164 ASSERT (strcmp (strerrorname_np (ENODEV), "ENODEV") == 0);
165 #endif
166 #if defined ENOENT
167 ASSERT (strcmp (strerrorname_np (ENOENT), "ENOENT") == 0);
168 #endif
169 #if defined ENOEXEC
170 ASSERT (strcmp (strerrorname_np (ENOEXEC), "ENOEXEC") == 0);
171 #endif
172 #if defined ENOLCK
173 ASSERT (strcmp (strerrorname_np (ENOLCK), "ENOLCK") == 0);
174 #endif
175 #if defined ENOLINK
176 ASSERT (strcmp (strerrorname_np (ENOLINK), "ENOLINK") == 0);
177 #endif
178 #if defined ENOMEM
179 ASSERT (strcmp (strerrorname_np (ENOMEM), "ENOMEM") == 0);
180 #endif
181 #if defined ENOMSG
182 ASSERT (strcmp (strerrorname_np (ENOMSG), "ENOMSG") == 0);
183 #endif
184 #if defined ENOPROTOOPT
185 ASSERT (strcmp (strerrorname_np (ENOPROTOOPT), "ENOPROTOOPT") == 0);
186 #endif
187 #if defined ENOSPC
188 ASSERT (strcmp (strerrorname_np (ENOSPC), "ENOSPC") == 0);
189 #endif
190 #if defined ENOSR
191 ASSERT (strcmp (strerrorname_np (ENOSR), "ENOSR") == 0);
192 #endif
193 #if defined ENOSTR
194 ASSERT (strcmp (strerrorname_np (ENOSTR), "ENOSTR") == 0);
195 #endif
196 #if defined ENOSYS
197 ASSERT (strcmp (strerrorname_np (ENOSYS), "ENOSYS") == 0);
198 #endif
199 #if defined ENOTCONN
200 ASSERT (strcmp (strerrorname_np (ENOTCONN), "ENOTCONN") == 0);
201 #endif
202 #if defined ENOTDIR
203 ASSERT (strcmp (strerrorname_np (ENOTDIR), "ENOTDIR") == 0);
204 #endif
205 #if defined ENOTEMPTY && ENOTEMPTY != EEXIST
206 ASSERT (strcmp (strerrorname_np (ENOTEMPTY), "ENOTEMPTY") == 0);
207 #endif
208 #if defined ENOTRECOVERABLE
209 ASSERT (strcmp (strerrorname_np (ENOTRECOVERABLE), "ENOTRECOVERABLE") == 0);
210 #endif
211 #if defined ENOTSOCK
212 ASSERT (strcmp (strerrorname_np (ENOTSOCK), "ENOTSOCK") == 0);
213 #endif
214 #if defined ENOTSUP && ENOTSUP != EOPNOTSUPP
215 ASSERT (strcmp (strerrorname_np (ENOTSUP), "ENOTSUP") == 0);
216 #endif
217 #if defined ENOTTY
218 ASSERT (strcmp (strerrorname_np (ENOTTY), "ENOTTY") == 0);
219 #endif
220 #if defined ENXIO
221 ASSERT (strcmp (strerrorname_np (ENXIO), "ENXIO") == 0);
222 #endif
223 #if defined EOPNOTSUPP
224 ASSERT (strcmp (strerrorname_np (EOPNOTSUPP), "EOPNOTSUPP") == 0);
225 #endif
226 #if defined EOVERFLOW
227 ASSERT (strcmp (strerrorname_np (EOVERFLOW), "EOVERFLOW") == 0);
228 #endif
229 #if defined EOWNERDEAD
230 ASSERT (strcmp (strerrorname_np (EOWNERDEAD), "EOWNERDEAD") == 0);
231 #endif
232 #if defined EPERM
233 ASSERT (strcmp (strerrorname_np (EPERM), "EPERM") == 0);
234 #endif
235 #if defined EPIPE
236 ASSERT (strcmp (strerrorname_np (EPIPE), "EPIPE") == 0);
237 #endif
238 #if defined EPROTO
239 ASSERT (strcmp (strerrorname_np (EPROTO), "EPROTO") == 0);
240 #endif
241 #if defined EPROTONOSUPPORT
242 ASSERT (strcmp (strerrorname_np (EPROTONOSUPPORT), "EPROTONOSUPPORT") == 0);
243 #endif
244 #if defined EPROTOTYPE
245 ASSERT (strcmp (strerrorname_np (EPROTOTYPE), "EPROTOTYPE") == 0);
246 #endif
247 #if defined EROFS
248 ASSERT (strcmp (strerrorname_np (EROFS), "EROFS") == 0);
249 #endif
250 #if defined ESPIPE
251 ASSERT (strcmp (strerrorname_np (ESPIPE), "ESPIPE") == 0);
252 #endif
253 #if defined ESRCH
254 ASSERT (strcmp (strerrorname_np (ESRCH), "ESRCH") == 0);
255 #endif
256 #if defined ESTALE
257 ASSERT (strcmp (strerrorname_np (ESTALE), "ESTALE") == 0);
258 #endif
259 #if defined ETIME
260 ASSERT (strcmp (strerrorname_np (ETIME), "ETIME") == 0);
261 #endif
262 #if defined ETIMEDOUT
263 ASSERT (strcmp (strerrorname_np (ETIMEDOUT), "ETIMEDOUT") == 0);
264 #endif
265 #if defined ETXTBSY
266 ASSERT (strcmp (strerrorname_np (ETXTBSY), "ETXTBSY") == 0);
267 #endif
268 #if defined EWOULDBLOCK && EWOULDBLOCK != EAGAIN
269 ASSERT (strcmp (strerrorname_np (EWOULDBLOCK), "EWOULDBLOCK") == 0);
270 #endif
271 #if defined EXDEV
272 ASSERT (strcmp (strerrorname_np (EXDEV), "EXDEV") == 0);
273 #endif
275 /* Other error codes on other systems. */
276 /* Solaris */
277 #if defined EADI
278 ASSERT (strcmp (strerrorname_np (EADI), "EADI") == 0);
279 #endif
280 /* Linux, HP-UX, IRIX, Solaris, Cygwin */
281 #if defined EADV
282 ASSERT (strcmp (strerrorname_np (EADV), "EADV") == 0);
283 #endif
284 /* OSF/1 */
285 #if defined EAIO
286 ASSERT (strcmp (strerrorname_np (EAIO), "EAIO") == 0);
287 #endif
288 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, Minix */
289 #if defined EAUTH
290 ASSERT (strcmp (strerrorname_np (EAUTH), "EAUTH") == 0);
291 #endif
292 /* GNU/Hurd */
293 #if defined EBACKGROUND
294 ASSERT (strcmp (strerrorname_np (EBACKGROUND), "EBACKGROUND") == 0);
295 #endif
296 /* Mac OS X */
297 #if defined EBADARCH
298 ASSERT (strcmp (strerrorname_np (EBADARCH), "EBADARCH") == 0);
299 #endif
300 /* Minix */
301 #if defined EBADCALL
302 ASSERT (strcmp (strerrorname_np (EBADCALL), "EBADCALL") == 0);
303 #endif
304 /* Minix */
305 #if defined EBADCPU
306 ASSERT (strcmp (strerrorname_np (EBADCPU), "EBADCPU") == 0);
307 #endif
308 /* Linux, IRIX, Solaris, Cygwin */
309 #if defined EBADE && EBADE != ECKSUM
310 ASSERT (strcmp (strerrorname_np (EBADE), "EBADE") == 0);
311 #endif
312 /* Minix */
313 #if defined EBADEPT
314 ASSERT (strcmp (strerrorname_np (EBADEPT), "EBADEPT") == 0);
315 #endif
316 /* Mac OS X */
317 #if defined EBADEXEC
318 ASSERT (strcmp (strerrorname_np (EBADEXEC), "EBADEXEC") == 0);
319 #endif
320 /* Linux, IRIX, Solaris, Cygwin */
321 #if defined EBADFD
322 ASSERT (strcmp (strerrorname_np (EBADFD), "EBADFD") == 0);
323 #endif
324 /* IRIX */
325 #if defined EBADFILT
326 ASSERT (strcmp (strerrorname_np (EBADFILT), "EBADFILT") == 0);
327 #endif
328 /* Minix */
329 #if defined EBADIOCTL
330 ASSERT (strcmp (strerrorname_np (EBADIOCTL), "EBADIOCTL") == 0);
331 #endif
332 /* Mac OS X */
333 #if defined EBADMACHO
334 ASSERT (strcmp (strerrorname_np (EBADMACHO), "EBADMACHO") == 0);
335 #endif
336 /* Minix */
337 #if defined EBADMODE
338 ASSERT (strcmp (strerrorname_np (EBADMODE), "EBADMODE") == 0);
339 #endif
340 /* Linux, IRIX, Solaris, Cygwin */
341 #if defined EBADR && EBADR != EFRAGS
342 ASSERT (strcmp (strerrorname_np (EBADR), "EBADR") == 0);
343 #endif
344 /* Minix */
345 #if defined EBADREQUEST
346 ASSERT (strcmp (strerrorname_np (EBADREQUEST), "EBADREQUEST") == 0);
347 #endif
348 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, OSF/1, Minix */
349 #if defined EBADRPC
350 ASSERT (strcmp (strerrorname_np (EBADRPC), "EBADRPC") == 0);
351 #endif
352 /* Linux, IRIX, Solaris, Cygwin */
353 #if defined EBADRQC
354 ASSERT (strcmp (strerrorname_np (EBADRQC), "EBADRQC") == 0);
355 #endif
356 /* IRIX */
357 #if defined EBADRSPEC
358 ASSERT (strcmp (strerrorname_np (EBADRSPEC), "EBADRSPEC") == 0);
359 #endif
360 /* Linux, IRIX, Solaris, Cygwin */
361 #if defined EBADSLT
362 ASSERT (strcmp (strerrorname_np (EBADSLT), "EBADSLT") == 0);
363 #endif
364 /* IRIX */
365 #if defined EBADTSPEC
366 ASSERT (strcmp (strerrorname_np (EBADTSPEC), "EBADTSPEC") == 0);
367 #endif
368 /* HP-UX */
369 #if defined EBADVER
370 ASSERT (strcmp (strerrorname_np (EBADVER), "EBADVER") == 0);
371 #endif
372 /* IRIX */
373 #if defined EBDHDL
374 ASSERT (strcmp (strerrorname_np (EBDHDL), "EBDHDL") == 0);
375 #endif
376 /* Linux, IRIX, Solaris, Cygwin */
377 #if defined EBFONT
378 ASSERT (strcmp (strerrorname_np (EBFONT), "EBFONT") == 0);
379 #endif
380 /* IRIX */
381 #if defined EBUFSIZE
382 ASSERT (strcmp (strerrorname_np (EBUFSIZE), "EBUFSIZE") == 0);
383 #endif
384 /* Minix */
385 #if defined ECALLDENIED
386 ASSERT (strcmp (strerrorname_np (ECALLDENIED), "ECALLDENIED") == 0);
387 #endif
388 /* IRIX */
389 #if defined ECANTEXTENT
390 ASSERT (strcmp (strerrorname_np (ECANTEXTENT), "ECANTEXTENT") == 0);
391 #endif
392 /* FreeBSD */
393 #if defined ECAPMODE
394 ASSERT (strcmp (strerrorname_np (ECAPMODE), "ECAPMODE") == 0);
395 #endif
396 /* Cygwin */
397 #if defined ECASECLASH
398 ASSERT (strcmp (strerrorname_np (ECASECLASH), "ECASECLASH") == 0);
399 #endif
400 /* IRIX */
401 #if defined ECELLDOWN
402 ASSERT (strcmp (strerrorname_np (ECELLDOWN), "ECELLDOWN") == 0);
403 #endif
404 /* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin */
405 #if defined ECHRNG
406 ASSERT (strcmp (strerrorname_np (ECHRNG), "ECHRNG") == 0);
407 #endif
408 /* IRIX */
409 #if defined ECKPT
410 ASSERT (strcmp (strerrorname_np (ECKPT), "ECKPT") == 0);
411 #endif
412 /* Solaris */
413 #if defined ECKSUM
414 ASSERT (strcmp (strerrorname_np (ECKSUM), "ECKSUM") == 0);
415 #endif
416 /* IRIX */
417 #if defined ECLOCKCPU
418 ASSERT (strcmp (strerrorname_np (ECLOCKCPU), "ECLOCKCPU") == 0);
419 #endif
420 /* OSF/1 */
421 #if defined ECLONEME && ECLONEME != ERESTART
422 ASSERT (strcmp (strerrorname_np (ECLONEME), "ECLONEME") == 0);
423 #endif
424 /* Linux, HP-UX, IRIX, Solaris, Cygwin */
425 #if defined ECOMM
426 ASSERT (strcmp (strerrorname_np (ECOMM), "ECOMM") == 0);
427 #endif
428 /* HP-UX */
429 #if defined ECONFIG
430 ASSERT (strcmp (strerrorname_np (ECONFIG), "ECONFIG") == 0);
431 #endif
432 /* IRIX */
433 #if defined ECONTROLLER
434 ASSERT (strcmp (strerrorname_np (ECONTROLLER), "ECONTROLLER") == 0);
435 #endif
436 /* AIX */
437 #if defined ECORRUPT
438 ASSERT (strcmp (strerrorname_np (ECORRUPT), "ECORRUPT") == 0);
439 #endif
440 /* GNU/Hurd */
441 #if defined ED
442 ASSERT (strcmp (strerrorname_np (ED), "ED") == 0);
443 #endif
444 /* Minix */
445 #if defined EDEADEPT
446 ASSERT (strcmp (strerrorname_np (EDEADEPT), "EDEADEPT") == 0);
447 #endif
448 /* IRIX, Solaris, Cygwin */
449 #if defined EDEADLOCK && EDEADLOCK != EDEADLK
450 ASSERT (strcmp (strerrorname_np (EDEADLOCK), "EDEADLOCK") == 0);
451 #endif
452 /* Minix */
453 #if defined EDEADSRCDST
454 ASSERT (strcmp (strerrorname_np (EDEADSRCDST), "EDEADSRCDST") == 0);
455 #endif
456 /* IRIX */
457 #if defined EDELAY
458 ASSERT (strcmp (strerrorname_np (EDELAY), "EDELAY") == 0);
459 #endif
460 /* IRIX */
461 #if defined EDESTROYED
462 ASSERT (strcmp (strerrorname_np (EDESTROYED), "EDESTROYED") == 0);
463 #endif
464 /* Mac OS X */
465 #if defined EDEVERR
466 ASSERT (strcmp (strerrorname_np (EDEVERR), "EDEVERR") == 0);
467 #endif
468 /* GNU/Hurd */
469 #if defined EDIED
470 ASSERT (strcmp (strerrorname_np (EDIED), "EDIED") == 0);
471 #endif
472 /* IRIX */
473 #if defined EDIRCORRUPTED && EDIRCORRUPTED != EFSCORRUPTED
474 ASSERT (strcmp (strerrorname_np (EDIRCORRUPTED), "EDIRCORRUPTED") == 0);
475 #endif
476 /* FreeBSD */
477 #if defined EDIRIOCTL
478 ASSERT (strcmp (strerrorname_np (EDIRIOCTL), "EDIRIOCTL") == 0);
479 #endif
480 /* OSF/1 */
481 #if defined EDIRTY
482 ASSERT (strcmp (strerrorname_np (EDIRTY), "EDIRTY") == 0);
483 #endif
484 /* IRIX */
485 #if defined EDISJOINT
486 ASSERT (strcmp (strerrorname_np (EDISJOINT), "EDISJOINT") == 0);
487 #endif
488 /* AIX */
489 #if defined EDIST
490 ASSERT (strcmp (strerrorname_np (EDIST), "EDIST") == 0);
491 #endif
492 /* Minix */
493 #if defined EDONTREPLY
494 ASSERT (strcmp (strerrorname_np (EDONTREPLY), "EDONTREPLY") == 0);
495 #endif
496 /* FreeBSD */
497 #if defined EDOOFUS && EDOOFUS != EINVAL
498 ASSERT (strcmp (strerrorname_np (EDOOFUS), "EDOOFUS") == 0);
499 #endif
500 /* Linux, HP-UX, Cygwin */
501 #if defined EDOTDOT
502 ASSERT (strcmp (strerrorname_np (EDOTDOT), "EDOTDOT") == 0);
503 #endif
504 /* OSF/1 */
505 #if defined EDUPPKG
506 ASSERT (strcmp (strerrorname_np (EDUPPKG), "EDUPPKG") == 0);
507 #endif
508 /* GNU/Hurd */
509 #if defined ED_ALREADY_OPEN
510 ASSERT (strcmp (strerrorname_np (ED_ALREADY_OPEN), "ED_ALREADY_OPEN") == 0);
511 #endif
512 /* GNU/Hurd */
513 #if defined ED_DEVICE_DOWN
514 ASSERT (strcmp (strerrorname_np (ED_DEVICE_DOWN), "ED_DEVICE_DOWN") == 0);
515 #endif
516 /* GNU/Hurd */
517 #if defined ED_INVALID_OPERATION
518 ASSERT (strcmp (strerrorname_np (ED_INVALID_OPERATION), "ED_INVALID_OPERATION") == 0);
519 #endif
520 /* GNU/Hurd */
521 #if defined ED_INVALID_RECNUM
522 ASSERT (strcmp (strerrorname_np (ED_INVALID_RECNUM), "ED_INVALID_RECNUM") == 0);
523 #endif
524 /* GNU/Hurd */
525 #if defined ED_INVALID_SIZE
526 ASSERT (strcmp (strerrorname_np (ED_INVALID_SIZE), "ED_INVALID_SIZE") == 0);
527 #endif
528 /* GNU/Hurd */
529 #if defined ED_IO_ERROR
530 ASSERT (strcmp (strerrorname_np (ED_IO_ERROR), "ED_IO_ERROR") == 0);
531 #endif
532 /* GNU/Hurd */
533 #if defined ED_NO_MEMORY
534 ASSERT (strcmp (strerrorname_np (ED_NO_MEMORY), "ED_NO_MEMORY") == 0);
535 #endif
536 /* GNU/Hurd */
537 #if defined ED_NO_SUCH_DEVICE
538 ASSERT (strcmp (strerrorname_np (ED_NO_SUCH_DEVICE), "ED_NO_SUCH_DEVICE") == 0);
539 #endif
540 /* GNU/Hurd */
541 #if defined ED_READ_ONLY
542 ASSERT (strcmp (strerrorname_np (ED_READ_ONLY), "ED_READ_ONLY") == 0);
543 #endif
544 /* GNU/Hurd */
545 #if defined ED_WOULD_BLOCK
546 ASSERT (strcmp (strerrorname_np (ED_WOULD_BLOCK), "ED_WOULD_BLOCK") == 0);
547 #endif
548 /* IRIX */
549 #if defined EEMPTY
550 ASSERT (strcmp (strerrorname_np (EEMPTY), "EEMPTY") == 0);
551 #endif
552 /* OSF/1 */
553 #if defined EEMULATE
554 ASSERT (strcmp (strerrorname_np (EEMULATE), "EEMULATE") == 0);
555 #endif
556 /* IRIX */
557 #if defined EENDOFMINOR
558 ASSERT (strcmp (strerrorname_np (EENDOFMINOR), "EENDOFMINOR") == 0);
559 #endif
560 /* IRIX */
561 #if defined EENQUEUED
562 ASSERT (strcmp (strerrorname_np (EENQUEUED), "EENQUEUED") == 0);
563 #endif
564 /* OSF/1 */
565 #if defined EFAIL
566 ASSERT (strcmp (strerrorname_np (EFAIL), "EFAIL") == 0);
567 #endif
568 /* AIX */
569 #if defined EFORMAT
570 ASSERT (strcmp (strerrorname_np (EFORMAT), "EFORMAT") == 0);
571 #endif
572 /* Haiku */
573 #if defined EFPOS
574 ASSERT (strcmp (strerrorname_np (EFPOS), "EFPOS") == 0);
575 #endif
576 /* Solaris */
577 #if defined EFRAGS
578 ASSERT (strcmp (strerrorname_np (EFRAGS), "EFRAGS") == 0);
579 #endif
580 /* IRIX */
581 #if defined EFSCORRUPTED
582 ASSERT (strcmp (strerrorname_np (EFSCORRUPTED), "EFSCORRUPTED") == 0);
583 #endif
584 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, OSF/1, Minix, Cygwin */
585 #if defined EFTYPE
586 ASSERT (strcmp (strerrorname_np (EFTYPE), "EFTYPE") == 0);
587 #endif
588 /* Minix */
589 #if defined EGENERIC
590 ASSERT (strcmp (strerrorname_np (EGENERIC), "EGENERIC") == 0);
591 #endif
592 /* GNU/Hurd */
593 #if defined EGRATUITOUS
594 ASSERT (strcmp (strerrorname_np (EGRATUITOUS), "EGRATUITOUS") == 0);
595 #endif
596 /* GNU/Hurd */
597 #if defined EGREGIOUS
598 ASSERT (strcmp (strerrorname_np (EGREGIOUS), "EGREGIOUS") == 0);
599 #endif
600 /* IRIX */
601 #if defined EGROUPLOOP
602 ASSERT (strcmp (strerrorname_np (EGROUPLOOP), "EGROUPLOOP") == 0);
603 #endif
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);
607 #endif
608 /* Linux */
609 #if defined EHWPOISON
610 ASSERT (strcmp (strerrorname_np (EHWPOISON), "EHWPOISON") == 0);
611 #endif
612 /* GNU/Hurd */
613 #if defined EIEIO
614 ASSERT (strcmp (strerrorname_np (EIEIO), "EIEIO") == 0);
615 #endif
616 /* IRIX */
617 #if defined EINIT
618 ASSERT (strcmp (strerrorname_np (EINIT), "EINIT") == 0);
619 #endif
620 /* OSF/1 */
621 #if defined EINPROG
622 ASSERT (strcmp (strerrorname_np (EINPROG), "EINPROG") == 0);
623 #endif
624 /* IRIX */
625 #if defined EINVALMODE
626 ASSERT (strcmp (strerrorname_np (EINVALMODE), "EINVALMODE") == 0);
627 #endif
628 /* IRIX */
629 #if defined EINVALSTATE
630 ASSERT (strcmp (strerrorname_np (EINVALSTATE), "EINVALSTATE") == 0);
631 #endif
632 /* IRIX */
633 #if defined EINVALTIME
634 ASSERT (strcmp (strerrorname_np (EINVALTIME), "EINVALTIME") == 0);
635 #endif
636 /* IRIX */
637 #if defined EIORESID
638 ASSERT (strcmp (strerrorname_np (EIORESID), "EIORESID") == 0);
639 #endif
640 /* OpenBSD */
641 #if defined EIPSEC
642 ASSERT (strcmp (strerrorname_np (EIPSEC), "EIPSEC") == 0);
643 #endif
644 /* Linux, IRIX */
645 #if defined EISNAM
646 ASSERT (strcmp (strerrorname_np (EISNAM), "EISNAM") == 0);
647 #endif
648 /* IRIX */
649 #if defined EJOINED
650 ASSERT (strcmp (strerrorname_np (EJOINED), "EJOINED") == 0);
651 #endif
652 /* FreeBSD, OSF/1 */
653 #if defined EJUSTRETURN
654 ASSERT (strcmp (strerrorname_np (EJUSTRETURN), "EJUSTRETURN") == 0);
655 #endif
656 /* GNU/Hurd */
657 #if defined EKERN_ABORTED
658 ASSERT (strcmp (strerrorname_np (EKERN_ABORTED), "EKERN_ABORTED") == 0);
659 #endif
660 /* GNU/Hurd */
661 #if defined EKERN_FAILURE
662 ASSERT (strcmp (strerrorname_np (EKERN_FAILURE), "EKERN_FAILURE") == 0);
663 #endif
664 /* GNU/Hurd */
665 #if defined EKERN_INTERRUPTED
666 ASSERT (strcmp (strerrorname_np (EKERN_INTERRUPTED), "EKERN_INTERRUPTED") == 0);
667 #endif
668 /* GNU/Hurd */
669 #if defined EKERN_INVALID_ADDRESS
670 ASSERT (strcmp (strerrorname_np (EKERN_INVALID_ADDRESS), "EKERN_INVALID_ADDRESS") == 0);
671 #endif
672 /* GNU/Hurd */
673 #if defined EKERN_INVALID_ARGUMENT
674 ASSERT (strcmp (strerrorname_np (EKERN_INVALID_ARGUMENT), "EKERN_INVALID_ARGUMENT") == 0);
675 #endif
676 /* GNU/Hurd */
677 #if defined EKERN_INVALID_CAPABILITY
678 ASSERT (strcmp (strerrorname_np (EKERN_INVALID_CAPABILITY), "EKERN_INVALID_CAPABILITY") == 0);
679 #endif
680 /* GNU/Hurd */
681 #if defined EKERN_INVALID_HOST
682 ASSERT (strcmp (strerrorname_np (EKERN_INVALID_HOST), "EKERN_INVALID_HOST") == 0);
683 #endif
684 /* GNU/Hurd */
685 #if defined EKERN_INVALID_NAME
686 ASSERT (strcmp (strerrorname_np (EKERN_INVALID_NAME), "EKERN_INVALID_NAME") == 0);
687 #endif
688 /* GNU/Hurd */
689 #if defined EKERN_INVALID_RIGHT
690 ASSERT (strcmp (strerrorname_np (EKERN_INVALID_RIGHT), "EKERN_INVALID_RIGHT") == 0);
691 #endif
692 /* GNU/Hurd */
693 #if defined EKERN_INVALID_TASK
694 ASSERT (strcmp (strerrorname_np (EKERN_INVALID_TASK), "EKERN_INVALID_TASK") == 0);
695 #endif
696 /* GNU/Hurd */
697 #if defined EKERN_INVALID_VALUE
698 ASSERT (strcmp (strerrorname_np (EKERN_INVALID_VALUE), "EKERN_INVALID_VALUE") == 0);
699 #endif
700 /* GNU/Hurd */
701 #if defined EKERN_MEMORY_ERROR
702 ASSERT (strcmp (strerrorname_np (EKERN_MEMORY_ERROR), "EKERN_MEMORY_ERROR") == 0);
703 #endif
704 /* GNU/Hurd */
705 #if defined EKERN_MEMORY_FAILURE
706 ASSERT (strcmp (strerrorname_np (EKERN_MEMORY_FAILURE), "EKERN_MEMORY_FAILURE") == 0);
707 #endif
708 /* GNU/Hurd */
709 #if defined EKERN_MEMORY_PRESENT
710 ASSERT (strcmp (strerrorname_np (EKERN_MEMORY_PRESENT), "EKERN_MEMORY_PRESENT") == 0);
711 #endif
712 /* GNU/Hurd */
713 #if defined EKERN_NAME_EXISTS
714 ASSERT (strcmp (strerrorname_np (EKERN_NAME_EXISTS), "EKERN_NAME_EXISTS") == 0);
715 #endif
716 /* GNU/Hurd */
717 #if defined EKERN_NOT_IN_SET
718 ASSERT (strcmp (strerrorname_np (EKERN_NOT_IN_SET), "EKERN_NOT_IN_SET") == 0);
719 #endif
720 /* GNU/Hurd */
721 #if defined EKERN_NOT_RECEIVER
722 ASSERT (strcmp (strerrorname_np (EKERN_NOT_RECEIVER), "EKERN_NOT_RECEIVER") == 0);
723 #endif
724 /* GNU/Hurd */
725 #if defined EKERN_NO_ACCESS
726 ASSERT (strcmp (strerrorname_np (EKERN_NO_ACCESS), "EKERN_NO_ACCESS") == 0);
727 #endif
728 /* GNU/Hurd */
729 #if defined EKERN_NO_SPACE
730 ASSERT (strcmp (strerrorname_np (EKERN_NO_SPACE), "EKERN_NO_SPACE") == 0);
731 #endif
732 /* GNU/Hurd */
733 #if defined EKERN_PROTECTION_FAILURE
734 ASSERT (strcmp (strerrorname_np (EKERN_PROTECTION_FAILURE), "EKERN_PROTECTION_FAILURE") == 0);
735 #endif
736 /* GNU/Hurd */
737 #if defined EKERN_RESOURCE_SHORTAGE
738 ASSERT (strcmp (strerrorname_np (EKERN_RESOURCE_SHORTAGE), "EKERN_RESOURCE_SHORTAGE") == 0);
739 #endif
740 /* GNU/Hurd */
741 #if defined EKERN_RIGHT_EXISTS
742 ASSERT (strcmp (strerrorname_np (EKERN_RIGHT_EXISTS), "EKERN_RIGHT_EXISTS") == 0);
743 #endif
744 /* GNU/Hurd */
745 #if defined EKERN_TERMINATED
746 ASSERT (strcmp (strerrorname_np (EKERN_TERMINATED), "EKERN_TERMINATED") == 0);
747 #endif
748 /* GNU/Hurd */
749 #if defined EKERN_TIMEDOUT
750 ASSERT (strcmp (strerrorname_np (EKERN_TIMEDOUT), "EKERN_TIMEDOUT") == 0);
751 #endif
752 /* GNU/Hurd */
753 #if defined EKERN_UREFS_OVERFLOW
754 ASSERT (strcmp (strerrorname_np (EKERN_UREFS_OVERFLOW), "EKERN_UREFS_OVERFLOW") == 0);
755 #endif
756 /* GNU/Hurd */
757 #if defined EKERN_WRITE_PROTECTION_FAILURE
758 ASSERT (strcmp (strerrorname_np (EKERN_WRITE_PROTECTION_FAILURE), "EKERN_WRITE_PROTECTION_FAILURE") == 0);
759 #endif
760 /* Linux */
761 #if defined EKEYEXPIRED
762 ASSERT (strcmp (strerrorname_np (EKEYEXPIRED), "EKEYEXPIRED") == 0);
763 #endif
764 /* Linux */
765 #if defined EKEYREJECTED
766 ASSERT (strcmp (strerrorname_np (EKEYREJECTED), "EKEYREJECTED") == 0);
767 #endif
768 /* Linux */
769 #if defined EKEYREVOKED
770 ASSERT (strcmp (strerrorname_np (EKEYREVOKED), "EKEYREVOKED") == 0);
771 #endif
772 /* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin */
773 #if defined EL2HLT
774 ASSERT (strcmp (strerrorname_np (EL2HLT), "EL2HLT") == 0);
775 #endif
776 /* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin */
777 #if defined EL2NSYNC
778 ASSERT (strcmp (strerrorname_np (EL2NSYNC), "EL2NSYNC") == 0);
779 #endif
780 /* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin */
781 #if defined EL3HLT
782 ASSERT (strcmp (strerrorname_np (EL3HLT), "EL3HLT") == 0);
783 #endif
784 /* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin */
785 #if defined EL3RST
786 ASSERT (strcmp (strerrorname_np (EL3RST), "EL3RST") == 0);
787 #endif
788 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, Minix */
789 #if defined ELAST && 0
790 ASSERT (strcmp (strerrorname_np (ELAST), "ELAST") == 0);
791 #endif
792 /* Cygwin */
793 #if defined ELBIN
794 ASSERT (strcmp (strerrorname_np (ELBIN), "ELBIN") == 0);
795 #endif
796 /* Linux, IRIX, Solaris, Cygwin */
797 #if defined ELIBACC
798 ASSERT (strcmp (strerrorname_np (ELIBACC), "ELIBACC") == 0);
799 #endif
800 /* Linux, IRIX, Solaris, Cygwin */
801 #if defined ELIBBAD
802 ASSERT (strcmp (strerrorname_np (ELIBBAD), "ELIBBAD") == 0);
803 #endif
804 /* Linux, IRIX, Solaris, Cygwin */
805 #if defined ELIBEXEC
806 ASSERT (strcmp (strerrorname_np (ELIBEXEC), "ELIBEXEC") == 0);
807 #endif
808 /* Linux, IRIX, Solaris, Cygwin */
809 #if defined ELIBMAX
810 ASSERT (strcmp (strerrorname_np (ELIBMAX), "ELIBMAX") == 0);
811 #endif
812 /* Linux, IRIX, Solaris, Cygwin */
813 #if defined ELIBSCN
814 ASSERT (strcmp (strerrorname_np (ELIBSCN), "ELIBSCN") == 0);
815 #endif
816 /* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin */
817 #if defined ELNRNG
818 ASSERT (strcmp (strerrorname_np (ELNRNG), "ELNRNG") == 0);
819 #endif
820 /* Minix */
821 #if defined ELOCKED
822 ASSERT (strcmp (strerrorname_np (ELOCKED), "ELOCKED") == 0);
823 #endif
824 /* Solaris */
825 #if defined ELOCKUNMAPPED
826 ASSERT (strcmp (strerrorname_np (ELOCKUNMAPPED), "ELOCKUNMAPPED") == 0);
827 #endif
828 /* IRIX */
829 #if defined ELOGINLIM
830 ASSERT (strcmp (strerrorname_np (ELOGINLIM), "ELOGINLIM") == 0);
831 #endif
832 /* GNU/Hurd */
833 #if defined EMACH_RCV_BODY_ERROR
834 ASSERT (strcmp (strerrorname_np (EMACH_RCV_BODY_ERROR), "EMACH_RCV_BODY_ERROR") == 0);
835 #endif
836 /* GNU/Hurd */
837 #if defined EMACH_RCV_HEADER_ERROR
838 ASSERT (strcmp (strerrorname_np (EMACH_RCV_HEADER_ERROR), "EMACH_RCV_HEADER_ERROR") == 0);
839 #endif
840 /* GNU/Hurd */
841 #if defined EMACH_RCV_INTERRUPTED
842 ASSERT (strcmp (strerrorname_np (EMACH_RCV_INTERRUPTED), "EMACH_RCV_INTERRUPTED") == 0);
843 #endif
844 /* GNU/Hurd */
845 #if defined EMACH_RCV_INVALID_DATA
846 ASSERT (strcmp (strerrorname_np (EMACH_RCV_INVALID_DATA), "EMACH_RCV_INVALID_DATA") == 0);
847 #endif
848 /* GNU/Hurd */
849 #if defined EMACH_RCV_INVALID_NAME
850 ASSERT (strcmp (strerrorname_np (EMACH_RCV_INVALID_NAME), "EMACH_RCV_INVALID_NAME") == 0);
851 #endif
852 /* GNU/Hurd */
853 #if defined EMACH_RCV_INVALID_NOTIFY
854 ASSERT (strcmp (strerrorname_np (EMACH_RCV_INVALID_NOTIFY), "EMACH_RCV_INVALID_NOTIFY") == 0);
855 #endif
856 /* GNU/Hurd */
857 #if defined EMACH_RCV_IN_PROGRESS
858 ASSERT (strcmp (strerrorname_np (EMACH_RCV_IN_PROGRESS), "EMACH_RCV_IN_PROGRESS") == 0);
859 #endif
860 /* GNU/Hurd */
861 #if defined EMACH_RCV_IN_SET
862 ASSERT (strcmp (strerrorname_np (EMACH_RCV_IN_SET), "EMACH_RCV_IN_SET") == 0);
863 #endif
864 /* GNU/Hurd */
865 #if defined EMACH_RCV_PORT_CHANGED
866 ASSERT (strcmp (strerrorname_np (EMACH_RCV_PORT_CHANGED), "EMACH_RCV_PORT_CHANGED") == 0);
867 #endif
868 /* GNU/Hurd */
869 #if defined EMACH_RCV_PORT_DIED
870 ASSERT (strcmp (strerrorname_np (EMACH_RCV_PORT_DIED), "EMACH_RCV_PORT_DIED") == 0);
871 #endif
872 /* GNU/Hurd */
873 #if defined EMACH_RCV_TIMED_OUT
874 ASSERT (strcmp (strerrorname_np (EMACH_RCV_TIMED_OUT), "EMACH_RCV_TIMED_OUT") == 0);
875 #endif
876 /* GNU/Hurd */
877 #if defined EMACH_RCV_TOO_LARGE
878 ASSERT (strcmp (strerrorname_np (EMACH_RCV_TOO_LARGE), "EMACH_RCV_TOO_LARGE") == 0);
879 #endif
880 /* GNU/Hurd */
881 #if defined EMACH_SEND_INTERRUPTED
882 ASSERT (strcmp (strerrorname_np (EMACH_SEND_INTERRUPTED), "EMACH_SEND_INTERRUPTED") == 0);
883 #endif
884 /* GNU/Hurd */
885 #if defined EMACH_SEND_INVALID_DATA
886 ASSERT (strcmp (strerrorname_np (EMACH_SEND_INVALID_DATA), "EMACH_SEND_INVALID_DATA") == 0);
887 #endif
888 /* GNU/Hurd */
889 #if defined EMACH_SEND_INVALID_DEST
890 ASSERT (strcmp (strerrorname_np (EMACH_SEND_INVALID_DEST), "EMACH_SEND_INVALID_DEST") == 0);
891 #endif
892 /* GNU/Hurd */
893 #if defined EMACH_SEND_INVALID_HEADER
894 ASSERT (strcmp (strerrorname_np (EMACH_SEND_INVALID_HEADER), "EMACH_SEND_INVALID_HEADER") == 0);
895 #endif
896 /* GNU/Hurd */
897 #if defined EMACH_SEND_INVALID_MEMORY
898 ASSERT (strcmp (strerrorname_np (EMACH_SEND_INVALID_MEMORY), "EMACH_SEND_INVALID_MEMORY") == 0);
899 #endif
900 /* GNU/Hurd */
901 #if defined EMACH_SEND_INVALID_NOTIFY
902 ASSERT (strcmp (strerrorname_np (EMACH_SEND_INVALID_NOTIFY), "EMACH_SEND_INVALID_NOTIFY") == 0);
903 #endif
904 /* GNU/Hurd */
905 #if defined EMACH_SEND_INVALID_REPLY
906 ASSERT (strcmp (strerrorname_np (EMACH_SEND_INVALID_REPLY), "EMACH_SEND_INVALID_REPLY") == 0);
907 #endif
908 /* GNU/Hurd */
909 #if defined EMACH_SEND_INVALID_RIGHT
910 ASSERT (strcmp (strerrorname_np (EMACH_SEND_INVALID_RIGHT), "EMACH_SEND_INVALID_RIGHT") == 0);
911 #endif
912 /* GNU/Hurd */
913 #if defined EMACH_SEND_INVALID_TYPE
914 ASSERT (strcmp (strerrorname_np (EMACH_SEND_INVALID_TYPE), "EMACH_SEND_INVALID_TYPE") == 0);
915 #endif
916 /* GNU/Hurd */
917 #if defined EMACH_SEND_IN_PROGRESS
918 ASSERT (strcmp (strerrorname_np (EMACH_SEND_IN_PROGRESS), "EMACH_SEND_IN_PROGRESS") == 0);
919 #endif
920 /* GNU/Hurd */
921 #if defined EMACH_SEND_MSG_TOO_SMALL
922 ASSERT (strcmp (strerrorname_np (EMACH_SEND_MSG_TOO_SMALL), "EMACH_SEND_MSG_TOO_SMALL") == 0);
923 #endif
924 /* GNU/Hurd */
925 #if defined EMACH_SEND_NOTIFY_IN_PROGRESS
926 ASSERT (strcmp (strerrorname_np (EMACH_SEND_NOTIFY_IN_PROGRESS), "EMACH_SEND_NOTIFY_IN_PROGRESS") == 0);
927 #endif
928 /* GNU/Hurd */
929 #if defined EMACH_SEND_NO_BUFFER
930 ASSERT (strcmp (strerrorname_np (EMACH_SEND_NO_BUFFER), "EMACH_SEND_NO_BUFFER") == 0);
931 #endif
932 /* GNU/Hurd */
933 #if defined EMACH_SEND_NO_NOTIFY
934 ASSERT (strcmp (strerrorname_np (EMACH_SEND_NO_NOTIFY), "EMACH_SEND_NO_NOTIFY") == 0);
935 #endif
936 /* GNU/Hurd */
937 #if defined EMACH_SEND_TIMED_OUT
938 ASSERT (strcmp (strerrorname_np (EMACH_SEND_TIMED_OUT), "EMACH_SEND_TIMED_OUT") == 0);
939 #endif
940 /* GNU/Hurd */
941 #if defined EMACH_SEND_WILL_NOTIFY
942 ASSERT (strcmp (strerrorname_np (EMACH_SEND_WILL_NOTIFY), "EMACH_SEND_WILL_NOTIFY") == 0);
943 #endif
944 /* AIX, OSF/1 */
945 #if defined EMEDIA
946 ASSERT (strcmp (strerrorname_np (EMEDIA), "EMEDIA") == 0);
947 #endif
948 /* Linux, OpenBSD */
949 #if defined EMEDIUMTYPE
950 ASSERT (strcmp (strerrorname_np (EMEDIUMTYPE), "EMEDIUMTYPE") == 0);
951 #endif
952 /* IRIX */
953 #if defined EMEMRETRY
954 ASSERT (strcmp (strerrorname_np (EMEMRETRY), "EMEMRETRY") == 0);
955 #endif
956 /* IRIX */
957 #if defined EMIGRATED
958 ASSERT (strcmp (strerrorname_np (EMIGRATED), "EMIGRATED") == 0);
959 #endif
960 /* IRIX */
961 #if defined EMIGRATING
962 ASSERT (strcmp (strerrorname_np (EMIGRATING), "EMIGRATING") == 0);
963 #endif
964 /* GNU/Hurd */
965 #if defined EMIG_ARRAY_TOO_LARGE
966 ASSERT (strcmp (strerrorname_np (EMIG_ARRAY_TOO_LARGE), "EMIG_ARRAY_TOO_LARGE") == 0);
967 #endif
968 /* GNU/Hurd */
969 #if defined EMIG_BAD_ARGUMENTS
970 ASSERT (strcmp (strerrorname_np (EMIG_BAD_ARGUMENTS), "EMIG_BAD_ARGUMENTS") == 0);
971 #endif
972 /* GNU/Hurd */
973 #if defined EMIG_BAD_ID
974 ASSERT (strcmp (strerrorname_np (EMIG_BAD_ID), "EMIG_BAD_ID") == 0);
975 #endif
976 /* GNU/Hurd */
977 #if defined EMIG_DESTROY_REQUEST
978 ASSERT (strcmp (strerrorname_np (EMIG_DESTROY_REQUEST), "EMIG_DESTROY_REQUEST") == 0);
979 #endif
980 /* GNU/Hurd */
981 #if defined EMIG_EXCEPTION
982 ASSERT (strcmp (strerrorname_np (EMIG_EXCEPTION), "EMIG_EXCEPTION") == 0);
983 #endif
984 /* GNU/Hurd */
985 #if defined EMIG_NO_REPLY
986 ASSERT (strcmp (strerrorname_np (EMIG_NO_REPLY), "EMIG_NO_REPLY") == 0);
987 #endif
988 /* GNU/Hurd */
989 #if defined EMIG_REMOTE_ERROR
990 ASSERT (strcmp (strerrorname_np (EMIG_REMOTE_ERROR), "EMIG_REMOTE_ERROR") == 0);
991 #endif
992 /* GNU/Hurd */
993 #if defined EMIG_REPLY_MISMATCH
994 ASSERT (strcmp (strerrorname_np (EMIG_REPLY_MISMATCH), "EMIG_REPLY_MISMATCH") == 0);
995 #endif
996 /* GNU/Hurd */
997 #if defined EMIG_SERVER_DIED
998 ASSERT (strcmp (strerrorname_np (EMIG_SERVER_DIED), "EMIG_SERVER_DIED") == 0);
999 #endif
1000 /* GNU/Hurd */
1001 #if defined EMIG_TYPE_ERROR
1002 ASSERT (strcmp (strerrorname_np (EMIG_TYPE_ERROR), "EMIG_TYPE_ERROR") == 0);
1003 #endif
1004 /* OSF/1 */
1005 #if defined EMTIMERS
1006 ASSERT (strcmp (strerrorname_np (EMTIMERS), "EMTIMERS") == 0);
1007 #endif
1008 /* IRIX */
1009 #if defined EMUSTRUN
1010 ASSERT (strcmp (strerrorname_np (EMUSTRUN), "EMUSTRUN") == 0);
1011 #endif
1012 /* Linux, IRIX */
1013 #if defined ENAVAIL
1014 ASSERT (strcmp (strerrorname_np (ENAVAIL), "ENAVAIL") == 0);
1015 #endif
1016 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, Minix */
1017 #if defined ENEEDAUTH
1018 ASSERT (strcmp (strerrorname_np (ENEEDAUTH), "ENEEDAUTH") == 0);
1019 #endif
1020 /* IRIX */
1021 #if defined ENFSREMOTE
1022 ASSERT (strcmp (strerrorname_np (ENFSREMOTE), "ENFSREMOTE") == 0);
1023 #endif
1024 /* Cygwin */
1025 #if defined ENMFILE
1026 ASSERT (strcmp (strerrorname_np (ENMFILE), "ENMFILE") == 0);
1027 #endif
1028 /* Linux, IRIX, Solaris, Cygwin */
1029 #if defined ENOANO && ENOANO != ENOKEY
1030 ASSERT (strcmp (strerrorname_np (ENOANO), "ENOANO") == 0);
1031 #endif
1032 /* IRIX */
1033 #if defined ENOATTACH
1034 ASSERT (strcmp (strerrorname_np (ENOATTACH), "ENOATTACH") == 0);
1035 #endif
1036 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, IRIX, Minix */
1037 #if defined ENOATTR
1038 ASSERT (strcmp (strerrorname_np (ENOATTR), "ENOATTR") == 0);
1039 #endif
1040 /* IRIX */
1041 #if defined ENOBWD
1042 ASSERT (strcmp (strerrorname_np (ENOBWD), "ENOBWD") == 0);
1043 #endif
1044 /* MirBSD */
1045 #if defined ENOCOFFEE
1046 ASSERT (strcmp (strerrorname_np (ENOCOFFEE), "ENOCOFFEE") == 0);
1047 #endif
1048 /* Minix */
1049 #if defined ENOCONN
1050 ASSERT (strcmp (strerrorname_np (ENOCONN), "ENOCONN") == 0);
1051 #endif
1052 /* AIX */
1053 #if defined ENOCONNECT
1054 ASSERT (strcmp (strerrorname_np (ENOCONNECT), "ENOCONNECT") == 0);
1055 #endif
1056 /* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin */
1057 #if defined ENOCSI
1058 ASSERT (strcmp (strerrorname_np (ENOCSI), "ENOCSI") == 0);
1059 #endif
1060 /* IRIX */
1061 #if defined ENOEXIST
1062 ASSERT (strcmp (strerrorname_np (ENOEXIST), "ENOEXIST") == 0);
1063 #endif
1064 /* IRIX */
1065 #if defined ENOINTRGROUP
1066 ASSERT (strcmp (strerrorname_np (ENOINTRGROUP), "ENOINTRGROUP") == 0);
1067 #endif
1068 /* FreeBSD */
1069 #if defined ENOIOCTL
1070 ASSERT (strcmp (strerrorname_np (ENOIOCTL), "ENOIOCTL") == 0);
1071 #endif
1072 /* Linux */
1073 #if defined ENOKEY
1074 ASSERT (strcmp (strerrorname_np (ENOKEY), "ENOKEY") == 0);
1075 #endif
1076 /* IRIX */
1077 #if defined ENOLIMFILE
1078 ASSERT (strcmp (strerrorname_np (ENOLIMFILE), "ENOLIMFILE") == 0);
1079 #endif
1080 /* HP-UX */
1081 #if defined ENOLOAD
1082 ASSERT (strcmp (strerrorname_np (ENOLOAD), "ENOLOAD") == 0);
1083 #endif
1084 /* IRIX */
1085 #if defined ENOLOGIN
1086 ASSERT (strcmp (strerrorname_np (ENOLOGIN), "ENOLOGIN") == 0);
1087 #endif
1088 /* HP-UX */
1089 #if defined ENOMATCH
1090 ASSERT (strcmp (strerrorname_np (ENOMATCH), "ENOMATCH") == 0);
1091 #endif
1092 /* Linux, OpenBSD, Cygwin */
1093 #if defined ENOMEDIUM
1094 ASSERT (strcmp (strerrorname_np (ENOMEDIUM), "ENOMEDIUM") == 0);
1095 #endif
1096 /* IRIX */
1097 #if defined ENOMESSAGE
1098 ASSERT (strcmp (strerrorname_np (ENOMESSAGE), "ENOMESSAGE") == 0);
1099 #endif
1100 /* Linux, HP-UX, IRIX, Solaris, Cygwin */
1101 #if defined ENONET
1102 ASSERT (strcmp (strerrorname_np (ENONET), "ENONET") == 0);
1103 #endif
1104 /* Linux, HP-UX, IRIX, OSF/1, Solaris, Cygwin */
1105 #if defined ENOPKG
1106 ASSERT (strcmp (strerrorname_np (ENOPKG), "ENOPKG") == 0);
1107 #endif
1108 /* Mac OS X */
1109 #if defined ENOPOLICY
1110 ASSERT (strcmp (strerrorname_np (ENOPOLICY), "ENOPOLICY") == 0);
1111 #endif
1112 /* IRIX */
1113 #if defined ENOPROC
1114 ASSERT (strcmp (strerrorname_np (ENOPROC), "ENOPROC") == 0);
1115 #endif
1116 /* HP-UX */
1117 #if defined ENOREG
1118 ASSERT (strcmp (strerrorname_np (ENOREG), "ENOREG") == 0);
1119 #endif
1120 /* IRIX */
1121 #if defined ENOSERVICE
1122 ASSERT (strcmp (strerrorname_np (ENOSERVICE), "ENOSERVICE") == 0);
1123 #endif
1124 /* Cygwin */
1125 #if defined ENOSHARE
1126 ASSERT (strcmp (strerrorname_np (ENOSHARE), "ENOSHARE") == 0);
1127 #endif
1128 /* Linux, HP-UX, OSF/1 */
1129 #if defined ENOSYM
1130 ASSERT (strcmp (strerrorname_np (ENOSYM), "ENOSYM") == 0);
1131 #endif
1132 /* Solaris */
1133 #if defined ENOTACTIVE
1134 ASSERT (strcmp (strerrorname_np (ENOTACTIVE), "ENOTACTIVE") == 0);
1135 #endif
1136 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, OSF/1, Solaris, Minix, Cygwin */
1137 #if defined ENOTBLK
1138 ASSERT (strcmp (strerrorname_np (ENOTBLK), "ENOTBLK") == 0);
1139 #endif
1140 /* FreeBSD */
1141 #if defined ENOTCAPABLE
1142 ASSERT (strcmp (strerrorname_np (ENOTCAPABLE), "ENOTCAPABLE") == 0);
1143 #endif
1144 /* IRIX */
1145 #if defined ENOTCONTROLLER
1146 ASSERT (strcmp (strerrorname_np (ENOTCONTROLLER), "ENOTCONTROLLER") == 0);
1147 #endif
1148 /* IRIX */
1149 #if defined ENOTENQUEUED
1150 ASSERT (strcmp (strerrorname_np (ENOTENQUEUED), "ENOTENQUEUED") == 0);
1151 #endif
1152 /* IRIX */
1153 #if defined ENOTJOINED
1154 ASSERT (strcmp (strerrorname_np (ENOTJOINED), "ENOTJOINED") == 0);
1155 #endif
1156 /* Linux, IRIX */
1157 #if defined ENOTNAM
1158 ASSERT (strcmp (strerrorname_np (ENOTNAM), "ENOTNAM") == 0);
1159 #endif
1160 /* AIX, Minix */
1161 #if defined ENOTREADY
1162 ASSERT (strcmp (strerrorname_np (ENOTREADY), "ENOTREADY") == 0);
1163 #endif
1164 /* AIX */
1165 #if defined ENOTRUST
1166 ASSERT (strcmp (strerrorname_np (ENOTRUST), "ENOTRUST") == 0);
1167 #endif
1168 /* IRIX */
1169 #if defined ENOTSTOPPED
1170 ASSERT (strcmp (strerrorname_np (ENOTSTOPPED), "ENOTSTOPPED") == 0);
1171 #endif
1172 /* Linux, IRIX, Solaris, Cygwin */
1173 #if defined ENOTUNIQ
1174 ASSERT (strcmp (strerrorname_np (ENOTUNIQ), "ENOTUNIQ") == 0);
1175 #endif
1176 /* HP-UX */
1177 #if defined ENOUNLD
1178 ASSERT (strcmp (strerrorname_np (ENOUNLD), "ENOUNLD") == 0);
1179 #endif
1180 /* HP-UX */
1181 #if defined ENOUNREG
1182 ASSERT (strcmp (strerrorname_np (ENOUNREG), "ENOUNREG") == 0);
1183 #endif
1184 /* Minix */
1185 #if defined ENOURG
1186 ASSERT (strcmp (strerrorname_np (ENOURG), "ENOURG") == 0);
1187 #endif
1188 /* native Windows */
1189 #if defined EOTHER
1190 ASSERT (strcmp (strerrorname_np (EOTHER), "EOTHER") == 0);
1191 #endif
1192 /* Minix */
1193 #if defined EPACKSIZE
1194 ASSERT (strcmp (strerrorname_np (EPACKSIZE), "EPACKSIZE") == 0);
1195 #endif
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);
1199 #endif
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);
1203 #endif
1204 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, OSF/1, Minix */
1205 #if defined EPROCUNAVAIL
1206 ASSERT (strcmp (strerrorname_np (EPROCUNAVAIL), "EPROCUNAVAIL") == 0);
1207 #endif
1208 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, OSF/1, Minix */
1209 #if defined EPROGMISMATCH
1210 ASSERT (strcmp (strerrorname_np (EPROGMISMATCH), "EPROGMISMATCH") == 0);
1211 #endif
1212 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, OSF/1, Minix */
1213 #if defined EPROGUNAVAIL
1214 ASSERT (strcmp (strerrorname_np (EPROGUNAVAIL), "EPROGUNAVAIL") == 0);
1215 #endif
1216 /* Mac OS X */
1217 #if defined EPWROFF
1218 ASSERT (strcmp (strerrorname_np (EPWROFF), "EPWROFF") == 0);
1219 #endif
1220 /* Mac OS X */
1221 #if defined EQFULL
1222 ASSERT (strcmp (strerrorname_np (EQFULL), "EQFULL") == 0);
1223 #endif
1224 /* HP-UX */
1225 #if defined ERELOC
1226 ASSERT (strcmp (strerrorname_np (ERELOC), "ERELOC") == 0);
1227 #endif
1228 /* OSF/1 */
1229 #if defined ERELOCATED
1230 ASSERT (strcmp (strerrorname_np (ERELOCATED), "ERELOCATED") == 0);
1231 #endif
1232 /* FreeBSD */
1233 #if defined ERELOOKUP
1234 ASSERT (strcmp (strerrorname_np (ERELOOKUP), "ERELOOKUP") == 0);
1235 #endif
1236 /* Linux, IRIX, Solaris, Cygwin */
1237 #if defined EREMCHG
1238 ASSERT (strcmp (strerrorname_np (EREMCHG), "EREMCHG") == 0);
1239 #endif
1240 /* IRIX */
1241 #if defined EREMDEV
1242 ASSERT (strcmp (strerrorname_np (EREMDEV), "EREMDEV") == 0);
1243 #endif
1244 /* Linux, Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, OSF/1, Solaris, Minix, Haiku, Cygwin */
1245 #if defined EREMOTE
1246 ASSERT (strcmp (strerrorname_np (EREMOTE), "EREMOTE") == 0);
1247 #endif
1248 /* Linux, IRIX */
1249 #if defined EREMOTEIO
1250 ASSERT (strcmp (strerrorname_np (EREMOTEIO), "EREMOTEIO") == 0);
1251 #endif
1252 /* Linux, HP-UX */
1253 #if defined EREMOTERELEASE
1254 ASSERT (strcmp (strerrorname_np (EREMOTERELEASE), "EREMOTERELEASE") == 0);
1255 #endif
1256 /* Linux, FreeBSD, AIX, IRIX, OSF/1, Solaris, Minix */
1257 #if defined ERESTART
1258 ASSERT (strcmp (strerrorname_np (ERESTART), "ERESTART") == 0);
1259 #endif
1260 /* Linux */
1261 #if defined ERFKILL
1262 ASSERT (strcmp (strerrorname_np (ERFKILL), "ERFKILL") == 0);
1263 #endif
1264 /* Mac OS X, FreeBSD, NetBSD, OpenBSD, OSF/1, Minix */
1265 #if defined ERPCMISMATCH
1266 ASSERT (strcmp (strerrorname_np (ERPCMISMATCH), "ERPCMISMATCH") == 0);
1267 #endif
1268 /* AIX */
1269 #if defined ESAD
1270 ASSERT (strcmp (strerrorname_np (ESAD), "ESAD") == 0);
1271 #endif
1272 /* Mac OS X */
1273 #if defined ESHLIBVERS
1274 ASSERT (strcmp (strerrorname_np (ESHLIBVERS), "ESHLIBVERS") == 0);
1275 #endif
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);
1279 #endif
1280 /* Haiku */
1281 #if defined ESIGPARM
1282 ASSERT (strcmp (strerrorname_np (ESIGPARM), "ESIGPARM") == 0);
1283 #endif
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);
1287 #endif
1288 /* AIX, OSF/1 */
1289 #if defined ESOFT
1290 ASSERT (strcmp (strerrorname_np (ESOFT), "ESOFT") == 0);
1291 #endif
1292 /* Linux, HP-UX, IRIX, Solaris, Cygwin */
1293 #if defined ESRMNT
1294 ASSERT (strcmp (strerrorname_np (ESRMNT), "ESRMNT") == 0);
1295 #endif
1296 /* Linux, IRIX, Solaris, Cygwin */
1297 #if defined ESTRPIPE
1298 ASSERT (strcmp (strerrorname_np (ESTRPIPE), "ESTRPIPE") == 0);
1299 #endif
1300 /* OSF/1 */
1301 #if defined ESUCCESS
1302 ASSERT (strcmp (strerrorname_np (ESUCCESS), "ESUCCESS") == 0);
1303 #endif
1304 /* AIX */
1305 #if defined ESYSERROR
1306 ASSERT (strcmp (strerrorname_np (ESYSERROR), "ESYSERROR") == 0);
1307 #endif
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);
1311 #endif
1312 /* Minix */
1313 #if defined ETRAPDENIED
1314 ASSERT (strcmp (strerrorname_np (ETRAPDENIED), "ETRAPDENIED") == 0);
1315 #endif
1316 /* Linux, IRIX */
1317 #if defined EUCLEAN
1318 ASSERT (strcmp (strerrorname_np (EUCLEAN), "EUCLEAN") == 0);
1319 #endif
1320 /* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin */
1321 #if defined EUNATCH
1322 ASSERT (strcmp (strerrorname_np (EUNATCH), "EUNATCH") == 0);
1323 #endif
1324 /* Minix */
1325 #if defined EURG
1326 ASSERT (strcmp (strerrorname_np (EURG), "EURG") == 0);
1327 #endif
1328 /* Linux, Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, OSF/1, Solaris, Minix, Cygwin */
1329 #if defined EUSERS
1330 ASSERT (strcmp (strerrorname_np (EUSERS), "EUSERS") == 0);
1331 #endif
1332 /* OSF/1 */
1333 #if defined EVERSION
1334 ASSERT (strcmp (strerrorname_np (EVERSION), "EVERSION") == 0);
1335 #endif
1336 /* IRIX */
1337 #if defined EWRONGFS
1338 ASSERT (strcmp (strerrorname_np (EWRONGFS), "EWRONGFS") == 0);
1339 #endif
1340 /* AIX */
1341 #if defined EWRPROTECT
1342 ASSERT (strcmp (strerrorname_np (EWRPROTECT), "EWRPROTECT") == 0);
1343 #endif
1344 /* Linux, IRIX, Solaris, Cygwin */
1345 #if defined EXFULL
1346 ASSERT (strcmp (strerrorname_np (EXFULL), "EXFULL") == 0);
1347 #endif
1349 ASSERT (strerrorname_np (20200830) == NULL);
1350 ASSERT (strerrorname_np (-714) == NULL);
1352 return test_exit_status;