1 #include <errno.h> 2 #define C(n) switch(n){case n:;} f()3static void f() 4 { 5 {int c = errno;} 6 C(EDOM) 7 C(EILSEQ) 8 C(ERANGE) 9 #ifdef _POSIX_C_SOURCE 10 C(E2BIG) 11 C(EACCES) 12 C(EADDRINUSE) 13 C(EADDRNOTAVAIL) 14 C(EAFNOSUPPORT) 15 C(EAGAIN) 16 C(EALREADY) 17 C(EBADF) 18 C(EBADMSG) 19 C(EBUSY) 20 C(ECANCELED) 21 C(ECHILD) 22 C(ECONNABORTED) 23 C(ECONNREFUSED) 24 C(ECONNRESET) 25 C(EDEADLK) 26 C(EDESTADDRREQ) 27 C(EDQUOT) 28 C(EEXIST) 29 C(EFAULT) 30 C(EFBIG) 31 C(EHOSTUNREACH) 32 C(EIDRM) 33 C(EINPROGRESS) 34 C(EINTR) 35 C(EINVAL) 36 C(EIO) 37 C(EISCONN) 38 C(EISDIR) 39 C(ELOOP) 40 C(EMFILE) 41 C(EMLINK) 42 C(EMSGSIZE) 43 C(EMULTIHOP) 44 C(ENAMETOOLONG) 45 C(ENETDOWN) 46 C(ENETRESET) 47 C(ENETUNREACH) 48 C(ENFILE) 49 C(ENOBUFS) 50 C(ENODATA) 51 C(ENODEV) 52 C(ENOENT) 53 C(ENOEXEC) 54 C(ENOLCK) 55 C(ENOLINK) 56 C(ENOMEM) 57 C(ENOMSG) 58 C(ENOPROTOOPT) 59 C(ENOSPC) 60 C(ENOSR) 61 C(ENOSTR) 62 C(ENOSYS) 63 C(ENOTCONN) 64 C(ENOTDIR) 65 C(ENOTEMPTY) 66 C(ENOTRECOVERABLE) 67 C(ENOTSOCK) 68 C(ENOTSUP) 69 C(ENOTTY) 70 C(ENXIO) 71 C(EOPNOTSUPP) 72 C(EOVERFLOW) 73 C(EOWNERDEAD) 74 C(EPERM) 75 C(EPIPE) 76 C(EPROTO) 77 C(EPROTONOSUPPORT) 78 C(EPROTOTYPE) 79 C(EROFS) 80 C(ESPIPE) 81 C(ESRCH) 82 C(ESTALE) 83 C(ETIME) 84 C(ETIMEDOUT) 85 C(ETXTBSY) 86 C(EWOULDBLOCK) 87 C(EXDEV) 88 #endif 89 } 90