root/maint/gnulib/tests/test-strerrorname_np.c

/* [previous][next][first][last][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. main

   1 /* Test of strerrorname_np() function.
   2 
   3    Copyright (C) 2020-2021 Free Software Foundation, Inc.
   4 
   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.
   9 
  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.
  14 
  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/>.  */
  17 
  18 #include <config.h>
  19 
  20 /* Specification.  */
  21 #include <string.h>
  22 
  23 #include "signature.h"
  24 SIGNATURE_CHECK (strerrorname_np, const char *, (int));
  25 
  26 #include <errno.h>
  27 
  28 #include "macros.h"
  29 
  30 int
  31 main (void)
     /* [previous][next][first][last][top][bottom][index][help] */
  32 {
  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);
  37 
  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
 274 
 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
 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
 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   /* IRIX */
 413   #if defined ECLOCKCPU
 414   ASSERT (strcmp (strerrorname_np (ECLOCKCPU), "ECLOCKCPU") == 0);
 415   #endif
 416   /* OSF/1 */
 417   #if defined ECLONEME && ECLONEME != ERESTART
 418   ASSERT (strcmp (strerrorname_np (ECLONEME), "ECLONEME") == 0);
 419   #endif
 420   /* Linux, HP-UX, IRIX, Solaris, Cygwin */
 421   #if defined ECOMM
 422   ASSERT (strcmp (strerrorname_np (ECOMM), "ECOMM") == 0);
 423   #endif
 424   /* HP-UX */
 425   #if defined ECONFIG
 426   ASSERT (strcmp (strerrorname_np (ECONFIG), "ECONFIG") == 0);
 427   #endif
 428   /* IRIX */
 429   #if defined ECONTROLLER
 430   ASSERT (strcmp (strerrorname_np (ECONTROLLER), "ECONTROLLER") == 0);
 431   #endif
 432   /* AIX */
 433   #if defined ECORRUPT
 434   ASSERT (strcmp (strerrorname_np (ECORRUPT), "ECORRUPT") == 0);
 435   #endif
 436   /* GNU/Hurd */
 437   #if defined ED
 438   ASSERT (strcmp (strerrorname_np (ED), "ED") == 0);
 439   #endif
 440   /* Minix */
 441   #if defined EDEADEPT
 442   ASSERT (strcmp (strerrorname_np (EDEADEPT), "EDEADEPT") == 0);
 443   #endif
 444   /* IRIX, Solaris, Cygwin */
 445   #if defined EDEADLOCK && EDEADLOCK != EDEADLK
 446   ASSERT (strcmp (strerrorname_np (EDEADLOCK), "EDEADLOCK") == 0);
 447   #endif
 448   /* Minix */
 449   #if defined EDEADSRCDST
 450   ASSERT (strcmp (strerrorname_np (EDEADSRCDST), "EDEADSRCDST") == 0);
 451   #endif
 452   /* IRIX */
 453   #if defined EDELAY
 454   ASSERT (strcmp (strerrorname_np (EDELAY), "EDELAY") == 0);
 455   #endif
 456   /* IRIX */
 457   #if defined EDESTROYED
 458   ASSERT (strcmp (strerrorname_np (EDESTROYED), "EDESTROYED") == 0);
 459   #endif
 460   /* Mac OS X */
 461   #if defined EDEVERR
 462   ASSERT (strcmp (strerrorname_np (EDEVERR), "EDEVERR") == 0);
 463   #endif
 464   /* GNU/Hurd */
 465   #if defined EDIED
 466   ASSERT (strcmp (strerrorname_np (EDIED), "EDIED") == 0);
 467   #endif
 468   /* IRIX */
 469   #if defined EDIRCORRUPTED
 470   ASSERT (strcmp (strerrorname_np (EDIRCORRUPTED), "EDIRCORRUPTED") == 0);
 471   #endif
 472   /* FreeBSD */
 473   #if defined EDIRIOCTL
 474   ASSERT (strcmp (strerrorname_np (EDIRIOCTL), "EDIRIOCTL") == 0);
 475   #endif
 476   /* OSF/1 */
 477   #if defined EDIRTY
 478   ASSERT (strcmp (strerrorname_np (EDIRTY), "EDIRTY") == 0);
 479   #endif
 480   /* IRIX */
 481   #if defined EDISJOINT
 482   ASSERT (strcmp (strerrorname_np (EDISJOINT), "EDISJOINT") == 0);
 483   #endif
 484   /* AIX */
 485   #if defined EDIST
 486   ASSERT (strcmp (strerrorname_np (EDIST), "EDIST") == 0);
 487   #endif
 488   /* Minix */
 489   #if defined EDONTREPLY
 490   ASSERT (strcmp (strerrorname_np (EDONTREPLY), "EDONTREPLY") == 0);
 491   #endif
 492   /* FreeBSD */
 493   #if defined EDOOFUS
 494   ASSERT (strcmp (strerrorname_np (EDOOFUS), "EDOOFUS") == 0);
 495   #endif
 496   /* Linux, HP-UX, Cygwin */
 497   #if defined EDOTDOT
 498   ASSERT (strcmp (strerrorname_np (EDOTDOT), "EDOTDOT") == 0);
 499   #endif
 500   /* OSF/1 */
 501   #if defined EDUPPKG
 502   ASSERT (strcmp (strerrorname_np (EDUPPKG), "EDUPPKG") == 0);
 503   #endif
 504   /* GNU/Hurd */
 505   #if defined ED_ALREADY_OPEN
 506   ASSERT (strcmp (strerrorname_np (ED_ALREADY_OPEN), "ED_ALREADY_OPEN") == 0);
 507   #endif
 508   /* GNU/Hurd */
 509   #if defined ED_DEVICE_DOWN
 510   ASSERT (strcmp (strerrorname_np (ED_DEVICE_DOWN), "ED_DEVICE_DOWN") == 0);
 511   #endif
 512   /* GNU/Hurd */
 513   #if defined ED_INVALID_OPERATION
 514   ASSERT (strcmp (strerrorname_np (ED_INVALID_OPERATION), "ED_INVALID_OPERATION") == 0);
 515   #endif
 516   /* GNU/Hurd */
 517   #if defined ED_INVALID_RECNUM
 518   ASSERT (strcmp (strerrorname_np (ED_INVALID_RECNUM), "ED_INVALID_RECNUM") == 0);
 519   #endif
 520   /* GNU/Hurd */
 521   #if defined ED_INVALID_SIZE
 522   ASSERT (strcmp (strerrorname_np (ED_INVALID_SIZE), "ED_INVALID_SIZE") == 0);
 523   #endif
 524   /* GNU/Hurd */
 525   #if defined ED_IO_ERROR
 526   ASSERT (strcmp (strerrorname_np (ED_IO_ERROR), "ED_IO_ERROR") == 0);
 527   #endif
 528   /* GNU/Hurd */
 529   #if defined ED_NO_MEMORY
 530   ASSERT (strcmp (strerrorname_np (ED_NO_MEMORY), "ED_NO_MEMORY") == 0);
 531   #endif
 532   /* GNU/Hurd */
 533   #if defined ED_NO_SUCH_DEVICE
 534   ASSERT (strcmp (strerrorname_np (ED_NO_SUCH_DEVICE), "ED_NO_SUCH_DEVICE") == 0);
 535   #endif
 536   /* GNU/Hurd */
 537   #if defined ED_READ_ONLY
 538   ASSERT (strcmp (strerrorname_np (ED_READ_ONLY), "ED_READ_ONLY") == 0);
 539   #endif
 540   /* GNU/Hurd */
 541   #if defined ED_WOULD_BLOCK
 542   ASSERT (strcmp (strerrorname_np (ED_WOULD_BLOCK), "ED_WOULD_BLOCK") == 0);
 543   #endif
 544   /* IRIX */
 545   #if defined EEMPTY
 546   ASSERT (strcmp (strerrorname_np (EEMPTY), "EEMPTY") == 0);
 547   #endif
 548   /* OSF/1 */
 549   #if defined EEMULATE
 550   ASSERT (strcmp (strerrorname_np (EEMULATE), "EEMULATE") == 0);
 551   #endif
 552   /* IRIX */
 553   #if defined EENDOFMINOR
 554   ASSERT (strcmp (strerrorname_np (EENDOFMINOR), "EENDOFMINOR") == 0);
 555   #endif
 556   /* IRIX */
 557   #if defined EENQUEUED
 558   ASSERT (strcmp (strerrorname_np (EENQUEUED), "EENQUEUED") == 0);
 559   #endif
 560   /* OSF/1 */
 561   #if defined EFAIL
 562   ASSERT (strcmp (strerrorname_np (EFAIL), "EFAIL") == 0);
 563   #endif
 564   /* AIX */
 565   #if defined EFORMAT
 566   ASSERT (strcmp (strerrorname_np (EFORMAT), "EFORMAT") == 0);
 567   #endif
 568   /* Haiku */
 569   #if defined EFPOS
 570   ASSERT (strcmp (strerrorname_np (EFPOS), "EFPOS") == 0);
 571   #endif
 572   /* IRIX */
 573   #if defined EFSCORRUPTED
 574   ASSERT (strcmp (strerrorname_np (EFSCORRUPTED), "EFSCORRUPTED") == 0);
 575   #endif
 576   /* Mac OS X, FreeBSD, NetBSD, OpenBSD, OSF/1, Minix, Cygwin */
 577   #if defined EFTYPE
 578   ASSERT (strcmp (strerrorname_np (EFTYPE), "EFTYPE") == 0);
 579   #endif
 580   /* Minix */
 581   #if defined EGENERIC
 582   ASSERT (strcmp (strerrorname_np (EGENERIC), "EGENERIC") == 0);
 583   #endif
 584   /* GNU/Hurd */
 585   #if defined EGRATUITOUS
 586   ASSERT (strcmp (strerrorname_np (EGRATUITOUS), "EGRATUITOUS") == 0);
 587   #endif
 588   /* GNU/Hurd */
 589   #if defined EGREGIOUS
 590   ASSERT (strcmp (strerrorname_np (EGREGIOUS), "EGREGIOUS") == 0);
 591   #endif
 592   /* IRIX */
 593   #if defined EGROUPLOOP
 594   ASSERT (strcmp (strerrorname_np (EGROUPLOOP), "EGROUPLOOP") == 0);
 595   #endif
 596   /* Linux, Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, OSF/1, Solaris, Minix, Haiku, Cygwin */
 597   #if defined EHOSTDOWN
 598   ASSERT (strcmp (strerrorname_np (EHOSTDOWN), "EHOSTDOWN") == 0);
 599   #endif
 600   /* Linux */
 601   #if defined EHWPOISON
 602   ASSERT (strcmp (strerrorname_np (EHWPOISON), "EHWPOISON") == 0);
 603   #endif
 604   /* GNU/Hurd */
 605   #if defined EIEIO
 606   ASSERT (strcmp (strerrorname_np (EIEIO), "EIEIO") == 0);
 607   #endif
 608   /* IRIX */
 609   #if defined EINIT
 610   ASSERT (strcmp (strerrorname_np (EINIT), "EINIT") == 0);
 611   #endif
 612   /* OSF/1 */
 613   #if defined EINPROG
 614   ASSERT (strcmp (strerrorname_np (EINPROG), "EINPROG") == 0);
 615   #endif
 616   /* IRIX */
 617   #if defined EINVALMODE
 618   ASSERT (strcmp (strerrorname_np (EINVALMODE), "EINVALMODE") == 0);
 619   #endif
 620   /* IRIX */
 621   #if defined EINVALSTATE
 622   ASSERT (strcmp (strerrorname_np (EINVALSTATE), "EINVALSTATE") == 0);
 623   #endif
 624   /* IRIX */
 625   #if defined EINVALTIME
 626   ASSERT (strcmp (strerrorname_np (EINVALTIME), "EINVALTIME") == 0);
 627   #endif
 628   /* IRIX */
 629   #if defined EIORESID
 630   ASSERT (strcmp (strerrorname_np (EIORESID), "EIORESID") == 0);
 631   #endif
 632   /* OpenBSD */
 633   #if defined EIPSEC
 634   ASSERT (strcmp (strerrorname_np (EIPSEC), "EIPSEC") == 0);
 635   #endif
 636   /* Linux, IRIX */
 637   #if defined EISNAM
 638   ASSERT (strcmp (strerrorname_np (EISNAM), "EISNAM") == 0);
 639   #endif
 640   /* IRIX */
 641   #if defined EJOINED
 642   ASSERT (strcmp (strerrorname_np (EJOINED), "EJOINED") == 0);
 643   #endif
 644   /* FreeBSD, OSF/1 */
 645   #if defined EJUSTRETURN
 646   ASSERT (strcmp (strerrorname_np (EJUSTRETURN), "EJUSTRETURN") == 0);
 647   #endif
 648   /* GNU/Hurd */
 649   #if defined EKERN_ABORTED
 650   ASSERT (strcmp (strerrorname_np (EKERN_ABORTED), "EKERN_ABORTED") == 0);
 651   #endif
 652   /* GNU/Hurd */
 653   #if defined EKERN_FAILURE
 654   ASSERT (strcmp (strerrorname_np (EKERN_FAILURE), "EKERN_FAILURE") == 0);
 655   #endif
 656   /* GNU/Hurd */
 657   #if defined EKERN_INTERRUPTED
 658   ASSERT (strcmp (strerrorname_np (EKERN_INTERRUPTED), "EKERN_INTERRUPTED") == 0);
 659   #endif
 660   /* GNU/Hurd */
 661   #if defined EKERN_INVALID_ADDRESS
 662   ASSERT (strcmp (strerrorname_np (EKERN_INVALID_ADDRESS), "EKERN_INVALID_ADDRESS") == 0);
 663   #endif
 664   /* GNU/Hurd */
 665   #if defined EKERN_INVALID_ARGUMENT
 666   ASSERT (strcmp (strerrorname_np (EKERN_INVALID_ARGUMENT), "EKERN_INVALID_ARGUMENT") == 0);
 667   #endif
 668   /* GNU/Hurd */
 669   #if defined EKERN_INVALID_CAPABILITY
 670   ASSERT (strcmp (strerrorname_np (EKERN_INVALID_CAPABILITY), "EKERN_INVALID_CAPABILITY") == 0);
 671   #endif
 672   /* GNU/Hurd */
 673   #if defined EKERN_INVALID_HOST
 674   ASSERT (strcmp (strerrorname_np (EKERN_INVALID_HOST), "EKERN_INVALID_HOST") == 0);
 675   #endif
 676   /* GNU/Hurd */
 677   #if defined EKERN_INVALID_NAME
 678   ASSERT (strcmp (strerrorname_np (EKERN_INVALID_NAME), "EKERN_INVALID_NAME") == 0);
 679   #endif
 680   /* GNU/Hurd */
 681   #if defined EKERN_INVALID_RIGHT
 682   ASSERT (strcmp (strerrorname_np (EKERN_INVALID_RIGHT), "EKERN_INVALID_RIGHT") == 0);
 683   #endif
 684   /* GNU/Hurd */
 685   #if defined EKERN_INVALID_TASK
 686   ASSERT (strcmp (strerrorname_np (EKERN_INVALID_TASK), "EKERN_INVALID_TASK") == 0);
 687   #endif
 688   /* GNU/Hurd */
 689   #if defined EKERN_INVALID_VALUE
 690   ASSERT (strcmp (strerrorname_np (EKERN_INVALID_VALUE), "EKERN_INVALID_VALUE") == 0);
 691   #endif
 692   /* GNU/Hurd */
 693   #if defined EKERN_MEMORY_ERROR
 694   ASSERT (strcmp (strerrorname_np (EKERN_MEMORY_ERROR), "EKERN_MEMORY_ERROR") == 0);
 695   #endif
 696   /* GNU/Hurd */
 697   #if defined EKERN_MEMORY_FAILURE
 698   ASSERT (strcmp (strerrorname_np (EKERN_MEMORY_FAILURE), "EKERN_MEMORY_FAILURE") == 0);
 699   #endif
 700   /* GNU/Hurd */
 701   #if defined EKERN_MEMORY_PRESENT
 702   ASSERT (strcmp (strerrorname_np (EKERN_MEMORY_PRESENT), "EKERN_MEMORY_PRESENT") == 0);
 703   #endif
 704   /* GNU/Hurd */
 705   #if defined EKERN_NAME_EXISTS
 706   ASSERT (strcmp (strerrorname_np (EKERN_NAME_EXISTS), "EKERN_NAME_EXISTS") == 0);
 707   #endif
 708   /* GNU/Hurd */
 709   #if defined EKERN_NOT_IN_SET
 710   ASSERT (strcmp (strerrorname_np (EKERN_NOT_IN_SET), "EKERN_NOT_IN_SET") == 0);
 711   #endif
 712   /* GNU/Hurd */
 713   #if defined EKERN_NOT_RECEIVER
 714   ASSERT (strcmp (strerrorname_np (EKERN_NOT_RECEIVER), "EKERN_NOT_RECEIVER") == 0);
 715   #endif
 716   /* GNU/Hurd */
 717   #if defined EKERN_NO_ACCESS
 718   ASSERT (strcmp (strerrorname_np (EKERN_NO_ACCESS), "EKERN_NO_ACCESS") == 0);
 719   #endif
 720   /* GNU/Hurd */
 721   #if defined EKERN_NO_SPACE
 722   ASSERT (strcmp (strerrorname_np (EKERN_NO_SPACE), "EKERN_NO_SPACE") == 0);
 723   #endif
 724   /* GNU/Hurd */
 725   #if defined EKERN_PROTECTION_FAILURE
 726   ASSERT (strcmp (strerrorname_np (EKERN_PROTECTION_FAILURE), "EKERN_PROTECTION_FAILURE") == 0);
 727   #endif
 728   /* GNU/Hurd */
 729   #if defined EKERN_RESOURCE_SHORTAGE
 730   ASSERT (strcmp (strerrorname_np (EKERN_RESOURCE_SHORTAGE), "EKERN_RESOURCE_SHORTAGE") == 0);
 731   #endif
 732   /* GNU/Hurd */
 733   #if defined EKERN_RIGHT_EXISTS
 734   ASSERT (strcmp (strerrorname_np (EKERN_RIGHT_EXISTS), "EKERN_RIGHT_EXISTS") == 0);
 735   #endif
 736   /* GNU/Hurd */
 737   #if defined EKERN_TERMINATED
 738   ASSERT (strcmp (strerrorname_np (EKERN_TERMINATED), "EKERN_TERMINATED") == 0);
 739   #endif
 740   /* GNU/Hurd */
 741   #if defined EKERN_TIMEDOUT
 742   ASSERT (strcmp (strerrorname_np (EKERN_TIMEDOUT), "EKERN_TIMEDOUT") == 0);
 743   #endif
 744   /* GNU/Hurd */
 745   #if defined EKERN_UREFS_OVERFLOW
 746   ASSERT (strcmp (strerrorname_np (EKERN_UREFS_OVERFLOW), "EKERN_UREFS_OVERFLOW") == 0);
 747   #endif
 748   /* GNU/Hurd */
 749   #if defined EKERN_WRITE_PROTECTION_FAILURE
 750   ASSERT (strcmp (strerrorname_np (EKERN_WRITE_PROTECTION_FAILURE), "EKERN_WRITE_PROTECTION_FAILURE") == 0);
 751   #endif
 752   /* Linux */
 753   #if defined EKEYEXPIRED
 754   ASSERT (strcmp (strerrorname_np (EKEYEXPIRED), "EKEYEXPIRED") == 0);
 755   #endif
 756   /* Linux */
 757   #if defined EKEYREJECTED
 758   ASSERT (strcmp (strerrorname_np (EKEYREJECTED), "EKEYREJECTED") == 0);
 759   #endif
 760   /* Linux */
 761   #if defined EKEYREVOKED
 762   ASSERT (strcmp (strerrorname_np (EKEYREVOKED), "EKEYREVOKED") == 0);
 763   #endif
 764   /* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin */
 765   #if defined EL2HLT
 766   ASSERT (strcmp (strerrorname_np (EL2HLT), "EL2HLT") == 0);
 767   #endif
 768   /* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin */
 769   #if defined EL2NSYNC
 770   ASSERT (strcmp (strerrorname_np (EL2NSYNC), "EL2NSYNC") == 0);
 771   #endif
 772   /* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin */
 773   #if defined EL3HLT
 774   ASSERT (strcmp (strerrorname_np (EL3HLT), "EL3HLT") == 0);
 775   #endif
 776   /* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin */
 777   #if defined EL3RST
 778   ASSERT (strcmp (strerrorname_np (EL3RST), "EL3RST") == 0);
 779   #endif
 780   /* Mac OS X, FreeBSD, NetBSD, OpenBSD, Minix */
 781   #if defined ELAST && 0
 782   ASSERT (strcmp (strerrorname_np (ELAST), "ELAST") == 0);
 783   #endif
 784   /* Cygwin */
 785   #if defined ELBIN
 786   ASSERT (strcmp (strerrorname_np (ELBIN), "ELBIN") == 0);
 787   #endif
 788   /* Linux, IRIX, Solaris, Cygwin */
 789   #if defined ELIBACC
 790   ASSERT (strcmp (strerrorname_np (ELIBACC), "ELIBACC") == 0);
 791   #endif
 792   /* Linux, IRIX, Solaris, Cygwin */
 793   #if defined ELIBBAD
 794   ASSERT (strcmp (strerrorname_np (ELIBBAD), "ELIBBAD") == 0);
 795   #endif
 796   /* Linux, IRIX, Solaris, Cygwin */
 797   #if defined ELIBEXEC
 798   ASSERT (strcmp (strerrorname_np (ELIBEXEC), "ELIBEXEC") == 0);
 799   #endif
 800   /* Linux, IRIX, Solaris, Cygwin */
 801   #if defined ELIBMAX
 802   ASSERT (strcmp (strerrorname_np (ELIBMAX), "ELIBMAX") == 0);
 803   #endif
 804   /* Linux, IRIX, Solaris, Cygwin */
 805   #if defined ELIBSCN
 806   ASSERT (strcmp (strerrorname_np (ELIBSCN), "ELIBSCN") == 0);
 807   #endif
 808   /* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin */
 809   #if defined ELNRNG
 810   ASSERT (strcmp (strerrorname_np (ELNRNG), "ELNRNG") == 0);
 811   #endif
 812   /* Minix */
 813   #if defined ELOCKED
 814   ASSERT (strcmp (strerrorname_np (ELOCKED), "ELOCKED") == 0);
 815   #endif
 816   /* Solaris */
 817   #if defined ELOCKUNMAPPED
 818   ASSERT (strcmp (strerrorname_np (ELOCKUNMAPPED), "ELOCKUNMAPPED") == 0);
 819   #endif
 820   /* IRIX */
 821   #if defined ELOGINLIM
 822   ASSERT (strcmp (strerrorname_np (ELOGINLIM), "ELOGINLIM") == 0);
 823   #endif
 824   /* GNU/Hurd */
 825   #if defined EMACH_RCV_BODY_ERROR
 826   ASSERT (strcmp (strerrorname_np (EMACH_RCV_BODY_ERROR), "EMACH_RCV_BODY_ERROR") == 0);
 827   #endif
 828   /* GNU/Hurd */
 829   #if defined EMACH_RCV_HEADER_ERROR
 830   ASSERT (strcmp (strerrorname_np (EMACH_RCV_HEADER_ERROR), "EMACH_RCV_HEADER_ERROR") == 0);
 831   #endif
 832   /* GNU/Hurd */
 833   #if defined EMACH_RCV_INTERRUPTED
 834   ASSERT (strcmp (strerrorname_np (EMACH_RCV_INTERRUPTED), "EMACH_RCV_INTERRUPTED") == 0);
 835   #endif
 836   /* GNU/Hurd */
 837   #if defined EMACH_RCV_INVALID_DATA
 838   ASSERT (strcmp (strerrorname_np (EMACH_RCV_INVALID_DATA), "EMACH_RCV_INVALID_DATA") == 0);
 839   #endif
 840   /* GNU/Hurd */
 841   #if defined EMACH_RCV_INVALID_NAME
 842   ASSERT (strcmp (strerrorname_np (EMACH_RCV_INVALID_NAME), "EMACH_RCV_INVALID_NAME") == 0);
 843   #endif
 844   /* GNU/Hurd */
 845   #if defined EMACH_RCV_INVALID_NOTIFY
 846   ASSERT (strcmp (strerrorname_np (EMACH_RCV_INVALID_NOTIFY), "EMACH_RCV_INVALID_NOTIFY") == 0);
 847   #endif
 848   /* GNU/Hurd */
 849   #if defined EMACH_RCV_IN_PROGRESS
 850   ASSERT (strcmp (strerrorname_np (EMACH_RCV_IN_PROGRESS), "EMACH_RCV_IN_PROGRESS") == 0);
 851   #endif
 852   /* GNU/Hurd */
 853   #if defined EMACH_RCV_IN_SET
 854   ASSERT (strcmp (strerrorname_np (EMACH_RCV_IN_SET), "EMACH_RCV_IN_SET") == 0);
 855   #endif
 856   /* GNU/Hurd */
 857   #if defined EMACH_RCV_PORT_CHANGED
 858   ASSERT (strcmp (strerrorname_np (EMACH_RCV_PORT_CHANGED), "EMACH_RCV_PORT_CHANGED") == 0);
 859   #endif
 860   /* GNU/Hurd */
 861   #if defined EMACH_RCV_PORT_DIED
 862   ASSERT (strcmp (strerrorname_np (EMACH_RCV_PORT_DIED), "EMACH_RCV_PORT_DIED") == 0);
 863   #endif
 864   /* GNU/Hurd */
 865   #if defined EMACH_RCV_TIMED_OUT
 866   ASSERT (strcmp (strerrorname_np (EMACH_RCV_TIMED_OUT), "EMACH_RCV_TIMED_OUT") == 0);
 867   #endif
 868   /* GNU/Hurd */
 869   #if defined EMACH_RCV_TOO_LARGE
 870   ASSERT (strcmp (strerrorname_np (EMACH_RCV_TOO_LARGE), "EMACH_RCV_TOO_LARGE") == 0);
 871   #endif
 872   /* GNU/Hurd */
 873   #if defined EMACH_SEND_INTERRUPTED
 874   ASSERT (strcmp (strerrorname_np (EMACH_SEND_INTERRUPTED), "EMACH_SEND_INTERRUPTED") == 0);
 875   #endif
 876   /* GNU/Hurd */
 877   #if defined EMACH_SEND_INVALID_DATA
 878   ASSERT (strcmp (strerrorname_np (EMACH_SEND_INVALID_DATA), "EMACH_SEND_INVALID_DATA") == 0);
 879   #endif
 880   /* GNU/Hurd */
 881   #if defined EMACH_SEND_INVALID_DEST
 882   ASSERT (strcmp (strerrorname_np (EMACH_SEND_INVALID_DEST), "EMACH_SEND_INVALID_DEST") == 0);
 883   #endif
 884   /* GNU/Hurd */
 885   #if defined EMACH_SEND_INVALID_HEADER
 886   ASSERT (strcmp (strerrorname_np (EMACH_SEND_INVALID_HEADER), "EMACH_SEND_INVALID_HEADER") == 0);
 887   #endif
 888   /* GNU/Hurd */
 889   #if defined EMACH_SEND_INVALID_MEMORY
 890   ASSERT (strcmp (strerrorname_np (EMACH_SEND_INVALID_MEMORY), "EMACH_SEND_INVALID_MEMORY") == 0);
 891   #endif
 892   /* GNU/Hurd */
 893   #if defined EMACH_SEND_INVALID_NOTIFY
 894   ASSERT (strcmp (strerrorname_np (EMACH_SEND_INVALID_NOTIFY), "EMACH_SEND_INVALID_NOTIFY") == 0);
 895   #endif
 896   /* GNU/Hurd */
 897   #if defined EMACH_SEND_INVALID_REPLY
 898   ASSERT (strcmp (strerrorname_np (EMACH_SEND_INVALID_REPLY), "EMACH_SEND_INVALID_REPLY") == 0);
 899   #endif
 900   /* GNU/Hurd */
 901   #if defined EMACH_SEND_INVALID_RIGHT
 902   ASSERT (strcmp (strerrorname_np (EMACH_SEND_INVALID_RIGHT), "EMACH_SEND_INVALID_RIGHT") == 0);
 903   #endif
 904   /* GNU/Hurd */
 905   #if defined EMACH_SEND_INVALID_TYPE
 906   ASSERT (strcmp (strerrorname_np (EMACH_SEND_INVALID_TYPE), "EMACH_SEND_INVALID_TYPE") == 0);
 907   #endif
 908   /* GNU/Hurd */
 909   #if defined EMACH_SEND_IN_PROGRESS
 910   ASSERT (strcmp (strerrorname_np (EMACH_SEND_IN_PROGRESS), "EMACH_SEND_IN_PROGRESS") == 0);
 911   #endif
 912   /* GNU/Hurd */
 913   #if defined EMACH_SEND_MSG_TOO_SMALL
 914   ASSERT (strcmp (strerrorname_np (EMACH_SEND_MSG_TOO_SMALL), "EMACH_SEND_MSG_TOO_SMALL") == 0);
 915   #endif
 916   /* GNU/Hurd */
 917   #if defined EMACH_SEND_NOTIFY_IN_PROGRESS
 918   ASSERT (strcmp (strerrorname_np (EMACH_SEND_NOTIFY_IN_PROGRESS), "EMACH_SEND_NOTIFY_IN_PROGRESS") == 0);
 919   #endif
 920   /* GNU/Hurd */
 921   #if defined EMACH_SEND_NO_BUFFER
 922   ASSERT (strcmp (strerrorname_np (EMACH_SEND_NO_BUFFER), "EMACH_SEND_NO_BUFFER") == 0);
 923   #endif
 924   /* GNU/Hurd */
 925   #if defined EMACH_SEND_NO_NOTIFY
 926   ASSERT (strcmp (strerrorname_np (EMACH_SEND_NO_NOTIFY), "EMACH_SEND_NO_NOTIFY") == 0);
 927   #endif
 928   /* GNU/Hurd */
 929   #if defined EMACH_SEND_TIMED_OUT
 930   ASSERT (strcmp (strerrorname_np (EMACH_SEND_TIMED_OUT), "EMACH_SEND_TIMED_OUT") == 0);
 931   #endif
 932   /* GNU/Hurd */
 933   #if defined EMACH_SEND_WILL_NOTIFY
 934   ASSERT (strcmp (strerrorname_np (EMACH_SEND_WILL_NOTIFY), "EMACH_SEND_WILL_NOTIFY") == 0);
 935   #endif
 936   /* AIX, OSF/1 */
 937   #if defined EMEDIA
 938   ASSERT (strcmp (strerrorname_np (EMEDIA), "EMEDIA") == 0);
 939   #endif
 940   /* Linux, OpenBSD */
 941   #if defined EMEDIUMTYPE
 942   ASSERT (strcmp (strerrorname_np (EMEDIUMTYPE), "EMEDIUMTYPE") == 0);
 943   #endif
 944   /* IRIX */
 945   #if defined EMEMRETRY
 946   ASSERT (strcmp (strerrorname_np (EMEMRETRY), "EMEMRETRY") == 0);
 947   #endif
 948   /* IRIX */
 949   #if defined EMIGRATED
 950   ASSERT (strcmp (strerrorname_np (EMIGRATED), "EMIGRATED") == 0);
 951   #endif
 952   /* IRIX */
 953   #if defined EMIGRATING
 954   ASSERT (strcmp (strerrorname_np (EMIGRATING), "EMIGRATING") == 0);
 955   #endif
 956   /* GNU/Hurd */
 957   #if defined EMIG_ARRAY_TOO_LARGE
 958   ASSERT (strcmp (strerrorname_np (EMIG_ARRAY_TOO_LARGE), "EMIG_ARRAY_TOO_LARGE") == 0);
 959   #endif
 960   /* GNU/Hurd */
 961   #if defined EMIG_BAD_ARGUMENTS
 962   ASSERT (strcmp (strerrorname_np (EMIG_BAD_ARGUMENTS), "EMIG_BAD_ARGUMENTS") == 0);
 963   #endif
 964   /* GNU/Hurd */
 965   #if defined EMIG_BAD_ID
 966   ASSERT (strcmp (strerrorname_np (EMIG_BAD_ID), "EMIG_BAD_ID") == 0);
 967   #endif
 968   /* GNU/Hurd */
 969   #if defined EMIG_DESTROY_REQUEST
 970   ASSERT (strcmp (strerrorname_np (EMIG_DESTROY_REQUEST), "EMIG_DESTROY_REQUEST") == 0);
 971   #endif
 972   /* GNU/Hurd */
 973   #if defined EMIG_EXCEPTION
 974   ASSERT (strcmp (strerrorname_np (EMIG_EXCEPTION), "EMIG_EXCEPTION") == 0);
 975   #endif
 976   /* GNU/Hurd */
 977   #if defined EMIG_NO_REPLY
 978   ASSERT (strcmp (strerrorname_np (EMIG_NO_REPLY), "EMIG_NO_REPLY") == 0);
 979   #endif
 980   /* GNU/Hurd */
 981   #if defined EMIG_REMOTE_ERROR
 982   ASSERT (strcmp (strerrorname_np (EMIG_REMOTE_ERROR), "EMIG_REMOTE_ERROR") == 0);
 983   #endif
 984   /* GNU/Hurd */
 985   #if defined EMIG_REPLY_MISMATCH
 986   ASSERT (strcmp (strerrorname_np (EMIG_REPLY_MISMATCH), "EMIG_REPLY_MISMATCH") == 0);
 987   #endif
 988   /* GNU/Hurd */
 989   #if defined EMIG_SERVER_DIED
 990   ASSERT (strcmp (strerrorname_np (EMIG_SERVER_DIED), "EMIG_SERVER_DIED") == 0);
 991   #endif
 992   /* GNU/Hurd */
 993   #if defined EMIG_TYPE_ERROR
 994   ASSERT (strcmp (strerrorname_np (EMIG_TYPE_ERROR), "EMIG_TYPE_ERROR") == 0);
 995   #endif
 996   /* OSF/1 */
 997   #if defined EMTIMERS
 998   ASSERT (strcmp (strerrorname_np (EMTIMERS), "EMTIMERS") == 0);
 999   #endif
1000   /* IRIX */
1001   #if defined EMUSTRUN
1002   ASSERT (strcmp (strerrorname_np (EMUSTRUN), "EMUSTRUN") == 0);
1003   #endif
1004   /* Linux, IRIX */
1005   #if defined ENAVAIL
1006   ASSERT (strcmp (strerrorname_np (ENAVAIL), "ENAVAIL") == 0);
1007   #endif
1008   /* Mac OS X, FreeBSD, NetBSD, OpenBSD, Minix */
1009   #if defined ENEEDAUTH
1010   ASSERT (strcmp (strerrorname_np (ENEEDAUTH), "ENEEDAUTH") == 0);
1011   #endif
1012   /* IRIX */
1013   #if defined ENFSREMOTE
1014   ASSERT (strcmp (strerrorname_np (ENFSREMOTE), "ENFSREMOTE") == 0);
1015   #endif
1016   /* Cygwin */
1017   #if defined ENMFILE
1018   ASSERT (strcmp (strerrorname_np (ENMFILE), "ENMFILE") == 0);
1019   #endif
1020   /* Linux, IRIX, Solaris, Cygwin */
1021   #if defined ENOANO
1022   ASSERT (strcmp (strerrorname_np (ENOANO), "ENOANO") == 0);
1023   #endif
1024   /* IRIX */
1025   #if defined ENOATTACH
1026   ASSERT (strcmp (strerrorname_np (ENOATTACH), "ENOATTACH") == 0);
1027   #endif
1028   /* Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, IRIX, Minix */
1029   #if defined ENOATTR
1030   ASSERT (strcmp (strerrorname_np (ENOATTR), "ENOATTR") == 0);
1031   #endif
1032   /* IRIX */
1033   #if defined ENOBWD
1034   ASSERT (strcmp (strerrorname_np (ENOBWD), "ENOBWD") == 0);
1035   #endif
1036   /* MirBSD */
1037   #if defined ENOCOFFEE
1038   ASSERT (strcmp (strerrorname_np (ENOCOFFEE), "ENOCOFFEE") == 0);
1039   #endif
1040   /* Minix */
1041   #if defined ENOCONN
1042   ASSERT (strcmp (strerrorname_np (ENOCONN), "ENOCONN") == 0);
1043   #endif
1044   /* AIX */
1045   #if defined ENOCONNECT
1046   ASSERT (strcmp (strerrorname_np (ENOCONNECT), "ENOCONNECT") == 0);
1047   #endif
1048   /* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin */
1049   #if defined ENOCSI
1050   ASSERT (strcmp (strerrorname_np (ENOCSI), "ENOCSI") == 0);
1051   #endif
1052   /* IRIX */
1053   #if defined ENOEXIST
1054   ASSERT (strcmp (strerrorname_np (ENOEXIST), "ENOEXIST") == 0);
1055   #endif
1056   /* IRIX */
1057   #if defined ENOINTRGROUP
1058   ASSERT (strcmp (strerrorname_np (ENOINTRGROUP), "ENOINTRGROUP") == 0);
1059   #endif
1060   /* FreeBSD */
1061   #if defined ENOIOCTL
1062   ASSERT (strcmp (strerrorname_np (ENOIOCTL), "ENOIOCTL") == 0);
1063   #endif
1064   /* Linux */
1065   #if defined ENOKEY
1066   ASSERT (strcmp (strerrorname_np (ENOKEY), "ENOKEY") == 0);
1067   #endif
1068   /* IRIX */
1069   #if defined ENOLIMFILE
1070   ASSERT (strcmp (strerrorname_np (ENOLIMFILE), "ENOLIMFILE") == 0);
1071   #endif
1072   /* HP-UX */
1073   #if defined ENOLOAD
1074   ASSERT (strcmp (strerrorname_np (ENOLOAD), "ENOLOAD") == 0);
1075   #endif
1076   /* IRIX */
1077   #if defined ENOLOGIN
1078   ASSERT (strcmp (strerrorname_np (ENOLOGIN), "ENOLOGIN") == 0);
1079   #endif
1080   /* HP-UX */
1081   #if defined ENOMATCH
1082   ASSERT (strcmp (strerrorname_np (ENOMATCH), "ENOMATCH") == 0);
1083   #endif
1084   /* Linux, OpenBSD, Cygwin */
1085   #if defined ENOMEDIUM
1086   ASSERT (strcmp (strerrorname_np (ENOMEDIUM), "ENOMEDIUM") == 0);
1087   #endif
1088   /* IRIX */
1089   #if defined ENOMESSAGE
1090   ASSERT (strcmp (strerrorname_np (ENOMESSAGE), "ENOMESSAGE") == 0);
1091   #endif
1092   /* Linux, HP-UX, IRIX, Solaris, Cygwin */
1093   #if defined ENONET
1094   ASSERT (strcmp (strerrorname_np (ENONET), "ENONET") == 0);
1095   #endif
1096   /* Linux, HP-UX, IRIX, OSF/1, Solaris, Cygwin */
1097   #if defined ENOPKG
1098   ASSERT (strcmp (strerrorname_np (ENOPKG), "ENOPKG") == 0);
1099   #endif
1100   /* Mac OS X */
1101   #if defined ENOPOLICY
1102   ASSERT (strcmp (strerrorname_np (ENOPOLICY), "ENOPOLICY") == 0);
1103   #endif
1104   /* IRIX */
1105   #if defined ENOPROC
1106   ASSERT (strcmp (strerrorname_np (ENOPROC), "ENOPROC") == 0);
1107   #endif
1108   /* HP-UX */
1109   #if defined ENOREG
1110   ASSERT (strcmp (strerrorname_np (ENOREG), "ENOREG") == 0);
1111   #endif
1112   /* IRIX */
1113   #if defined ENOSERVICE
1114   ASSERT (strcmp (strerrorname_np (ENOSERVICE), "ENOSERVICE") == 0);
1115   #endif
1116   /* Cygwin */
1117   #if defined ENOSHARE
1118   ASSERT (strcmp (strerrorname_np (ENOSHARE), "ENOSHARE") == 0);
1119   #endif
1120   /* HP-UX, OSF/1 */
1121   #if defined ENOSYM
1122   ASSERT (strcmp (strerrorname_np (ENOSYM), "ENOSYM") == 0);
1123   #endif
1124   /* Solaris */
1125   #if defined ENOTACTIVE
1126   ASSERT (strcmp (strerrorname_np (ENOTACTIVE), "ENOTACTIVE") == 0);
1127   #endif
1128   /* Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, OSF/1, Solaris, Minix, Cygwin */
1129   #if defined ENOTBLK
1130   ASSERT (strcmp (strerrorname_np (ENOTBLK), "ENOTBLK") == 0);
1131   #endif
1132   /* FreeBSD */
1133   #if defined ENOTCAPABLE
1134   ASSERT (strcmp (strerrorname_np (ENOTCAPABLE), "ENOTCAPABLE") == 0);
1135   #endif
1136   /* IRIX */
1137   #if defined ENOTCONTROLLER
1138   ASSERT (strcmp (strerrorname_np (ENOTCONTROLLER), "ENOTCONTROLLER") == 0);
1139   #endif
1140   /* IRIX */
1141   #if defined ENOTENQUEUED
1142   ASSERT (strcmp (strerrorname_np (ENOTENQUEUED), "ENOTENQUEUED") == 0);
1143   #endif
1144   /* IRIX */
1145   #if defined ENOTJOINED
1146   ASSERT (strcmp (strerrorname_np (ENOTJOINED), "ENOTJOINED") == 0);
1147   #endif
1148   /* Linux, IRIX */
1149   #if defined ENOTNAM
1150   ASSERT (strcmp (strerrorname_np (ENOTNAM), "ENOTNAM") == 0);
1151   #endif
1152   /* AIX, Minix */
1153   #if defined ENOTREADY
1154   ASSERT (strcmp (strerrorname_np (ENOTREADY), "ENOTREADY") == 0);
1155   #endif
1156   /* AIX */
1157   #if defined ENOTRUST
1158   ASSERT (strcmp (strerrorname_np (ENOTRUST), "ENOTRUST") == 0);
1159   #endif
1160   /* IRIX */
1161   #if defined ENOTSTOPPED
1162   ASSERT (strcmp (strerrorname_np (ENOTSTOPPED), "ENOTSTOPPED") == 0);
1163   #endif
1164   /* Linux, IRIX, Solaris, Cygwin */
1165   #if defined ENOTUNIQ
1166   ASSERT (strcmp (strerrorname_np (ENOTUNIQ), "ENOTUNIQ") == 0);
1167   #endif
1168   /* HP-UX */
1169   #if defined ENOUNLD
1170   ASSERT (strcmp (strerrorname_np (ENOUNLD), "ENOUNLD") == 0);
1171   #endif
1172   /* HP-UX */
1173   #if defined ENOUNREG
1174   ASSERT (strcmp (strerrorname_np (ENOUNREG), "ENOUNREG") == 0);
1175   #endif
1176   /* Minix */
1177   #if defined ENOURG
1178   ASSERT (strcmp (strerrorname_np (ENOURG), "ENOURG") == 0);
1179   #endif
1180   /* native Windows */
1181   #if defined EOTHER
1182   ASSERT (strcmp (strerrorname_np (EOTHER), "EOTHER") == 0);
1183   #endif
1184   /* Minix */
1185   #if defined EPACKSIZE
1186   ASSERT (strcmp (strerrorname_np (EPACKSIZE), "EPACKSIZE") == 0);
1187   #endif
1188   /* Linux, Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, OSF/1, Solaris, Minix, Haiku, Cygwin */
1189   #if defined EPFNOSUPPORT
1190   ASSERT (strcmp (strerrorname_np (EPFNOSUPPORT), "EPFNOSUPPORT") == 0);
1191   #endif
1192   /* Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, IRIX, OSF/1, Minix, Cygwin */
1193   #if defined EPROCLIM
1194   ASSERT (strcmp (strerrorname_np (EPROCLIM), "EPROCLIM") == 0);
1195   #endif
1196   /* Mac OS X, FreeBSD, NetBSD, OpenBSD, OSF/1, Minix */
1197   #if defined EPROCUNAVAIL
1198   ASSERT (strcmp (strerrorname_np (EPROCUNAVAIL), "EPROCUNAVAIL") == 0);
1199   #endif
1200   /* Mac OS X, FreeBSD, NetBSD, OpenBSD, OSF/1, Minix */
1201   #if defined EPROGMISMATCH
1202   ASSERT (strcmp (strerrorname_np (EPROGMISMATCH), "EPROGMISMATCH") == 0);
1203   #endif
1204   /* Mac OS X, FreeBSD, NetBSD, OpenBSD, OSF/1, Minix */
1205   #if defined EPROGUNAVAIL
1206   ASSERT (strcmp (strerrorname_np (EPROGUNAVAIL), "EPROGUNAVAIL") == 0);
1207   #endif
1208   /* Mac OS X */
1209   #if defined EPWROFF
1210   ASSERT (strcmp (strerrorname_np (EPWROFF), "EPWROFF") == 0);
1211   #endif
1212   /* Mac OS X */
1213   #if defined EQFULL
1214   ASSERT (strcmp (strerrorname_np (EQFULL), "EQFULL") == 0);
1215   #endif
1216   /* HP-UX */
1217   #if defined ERELOC
1218   ASSERT (strcmp (strerrorname_np (ERELOC), "ERELOC") == 0);
1219   #endif
1220   /* OSF/1 */
1221   #if defined ERELOCATED
1222   ASSERT (strcmp (strerrorname_np (ERELOCATED), "ERELOCATED") == 0);
1223   #endif
1224   /* FreeBSD */
1225   #if defined ERELOOKUP
1226   ASSERT (strcmp (strerrorname_np (ERELOOKUP), "ERELOOKUP") == 0);
1227   #endif
1228   /* Linux, IRIX, Solaris, Cygwin */
1229   #if defined EREMCHG
1230   ASSERT (strcmp (strerrorname_np (EREMCHG), "EREMCHG") == 0);
1231   #endif
1232   /* IRIX */
1233   #if defined EREMDEV
1234   ASSERT (strcmp (strerrorname_np (EREMDEV), "EREMDEV") == 0);
1235   #endif
1236   /* Linux, Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, OSF/1, Solaris, Minix, Haiku, Cygwin */
1237   #if defined EREMOTE
1238   ASSERT (strcmp (strerrorname_np (EREMOTE), "EREMOTE") == 0);
1239   #endif
1240   /* Linux, IRIX */
1241   #if defined EREMOTEIO
1242   ASSERT (strcmp (strerrorname_np (EREMOTEIO), "EREMOTEIO") == 0);
1243   #endif
1244   /* HP-UX */
1245   #if defined EREMOTERELEASE
1246   ASSERT (strcmp (strerrorname_np (EREMOTERELEASE), "EREMOTERELEASE") == 0);
1247   #endif
1248   /* Linux, FreeBSD, AIX, IRIX, OSF/1, Solaris, Minix */
1249   #if defined ERESTART
1250   ASSERT (strcmp (strerrorname_np (ERESTART), "ERESTART") == 0);
1251   #endif
1252   /* Linux */
1253   #if defined ERFKILL
1254   ASSERT (strcmp (strerrorname_np (ERFKILL), "ERFKILL") == 0);
1255   #endif
1256   /* Mac OS X, FreeBSD, NetBSD, OpenBSD, OSF/1, Minix */
1257   #if defined ERPCMISMATCH
1258   ASSERT (strcmp (strerrorname_np (ERPCMISMATCH), "ERPCMISMATCH") == 0);
1259   #endif
1260   /* AIX */
1261   #if defined ESAD
1262   ASSERT (strcmp (strerrorname_np (ESAD), "ESAD") == 0);
1263   #endif
1264   /* Mac OS X */
1265   #if defined ESHLIBVERS
1266   ASSERT (strcmp (strerrorname_np (ESHLIBVERS), "ESHLIBVERS") == 0);
1267   #endif
1268   /* Linux, Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, OSF/1, Solaris, Minix, Haiku, Cygwin */
1269   #if defined ESHUTDOWN
1270   ASSERT (strcmp (strerrorname_np (ESHUTDOWN), "ESHUTDOWN") == 0);
1271   #endif
1272   /* Haiku */
1273   #if defined ESIGPARM
1274   ASSERT (strcmp (strerrorname_np (ESIGPARM), "ESIGPARM") == 0);
1275   #endif
1276   /* Linux, Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, OSF/1, Solaris, Minix, Cygwin */
1277   #if defined ESOCKTNOSUPPORT
1278   ASSERT (strcmp (strerrorname_np (ESOCKTNOSUPPORT), "ESOCKTNOSUPPORT") == 0);
1279   #endif
1280   /* AIX, OSF/1 */
1281   #if defined ESOFT
1282   ASSERT (strcmp (strerrorname_np (ESOFT), "ESOFT") == 0);
1283   #endif
1284   /* Linux, HP-UX, IRIX, Solaris, Cygwin */
1285   #if defined ESRMNT
1286   ASSERT (strcmp (strerrorname_np (ESRMNT), "ESRMNT") == 0);
1287   #endif
1288   /* Linux, IRIX, Solaris, Cygwin */
1289   #if defined ESTRPIPE
1290   ASSERT (strcmp (strerrorname_np (ESTRPIPE), "ESTRPIPE") == 0);
1291   #endif
1292   /* OSF/1 */
1293   #if defined ESUCCESS
1294   ASSERT (strcmp (strerrorname_np (ESUCCESS), "ESUCCESS") == 0);
1295   #endif
1296   /* AIX */
1297   #if defined ESYSERROR
1298   ASSERT (strcmp (strerrorname_np (ESYSERROR), "ESYSERROR") == 0);
1299   #endif
1300   /* Linux, Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, OSF/1, Solaris, Minix, Cygwin */
1301   #if defined ETOOMANYREFS
1302   ASSERT (strcmp (strerrorname_np (ETOOMANYREFS), "ETOOMANYREFS") == 0);
1303   #endif
1304   /* Minix */
1305   #if defined ETRAPDENIED
1306   ASSERT (strcmp (strerrorname_np (ETRAPDENIED), "ETRAPDENIED") == 0);
1307   #endif
1308   /* Linux, IRIX */
1309   #if defined EUCLEAN
1310   ASSERT (strcmp (strerrorname_np (EUCLEAN), "EUCLEAN") == 0);
1311   #endif
1312   /* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin */
1313   #if defined EUNATCH
1314   ASSERT (strcmp (strerrorname_np (EUNATCH), "EUNATCH") == 0);
1315   #endif
1316   /* Minix */
1317   #if defined EURG
1318   ASSERT (strcmp (strerrorname_np (EURG), "EURG") == 0);
1319   #endif
1320   /* Linux, Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, OSF/1, Solaris, Minix, Cygwin */
1321   #if defined EUSERS
1322   ASSERT (strcmp (strerrorname_np (EUSERS), "EUSERS") == 0);
1323   #endif
1324   /* OSF/1 */
1325   #if defined EVERSION
1326   ASSERT (strcmp (strerrorname_np (EVERSION), "EVERSION") == 0);
1327   #endif
1328   /* IRIX */
1329   #if defined EWRONGFS
1330   ASSERT (strcmp (strerrorname_np (EWRONGFS), "EWRONGFS") == 0);
1331   #endif
1332   /* AIX */
1333   #if defined EWRPROTECT
1334   ASSERT (strcmp (strerrorname_np (EWRPROTECT), "EWRPROTECT") == 0);
1335   #endif
1336   /* Linux, IRIX, Solaris, Cygwin */
1337   #if defined EXFULL
1338   ASSERT (strcmp (strerrorname_np (EXFULL), "EXFULL") == 0);
1339   #endif
1340 
1341   ASSERT (strerrorname_np (20200830) == NULL);
1342   ASSERT (strerrorname_np (-714) == NULL);
1343 
1344   return 0;
1345 }

/* [previous][next][first][last][top][bottom][index][help] */