|
4 | 4 | #include <errno.h> |
5 | 5 |
|
6 | 6 | int *f1(void) { return cpp2rust_errno(); } |
| 7 | + |
| 8 | +int f2(void) { return E2BIG; } |
| 9 | +int f3(void) { return EACCES; } |
| 10 | +int f4(void) { return EADDRINUSE; } |
| 11 | +int f5(void) { return EADDRNOTAVAIL; } |
| 12 | +int f6(void) { return EAFNOSUPPORT; } |
| 13 | +int f7(void) { return EAGAIN; } |
| 14 | +int f8(void) { return EALREADY; } |
| 15 | +int f9(void) { return EBADF; } |
| 16 | +int f10(void) { return EBADMSG; } |
| 17 | +int f11(void) { return EBUSY; } |
| 18 | +int f12(void) { return ECANCELED; } |
| 19 | +int f13(void) { return ECHILD; } |
| 20 | +int f14(void) { return ECONNABORTED; } |
| 21 | +int f15(void) { return ECONNREFUSED; } |
| 22 | +int f16(void) { return ECONNRESET; } |
| 23 | +int f17(void) { return EDEADLK; } |
| 24 | +int f18(void) { return EDESTADDRREQ; } |
| 25 | +int f19(void) { return EDOM; } |
| 26 | +int f20(void) { return EDQUOT; } |
| 27 | +int f21(void) { return EEXIST; } |
| 28 | +int f22(void) { return EFAULT; } |
| 29 | +int f23(void) { return EFBIG; } |
| 30 | +int f24(void) { return EHOSTDOWN; } |
| 31 | +int f25(void) { return EHOSTUNREACH; } |
| 32 | +int f26(void) { return EIDRM; } |
| 33 | +int f27(void) { return EILSEQ; } |
| 34 | +int f28(void) { return EINPROGRESS; } |
| 35 | +int f29(void) { return EINTR; } |
| 36 | +int f30(void) { return EINVAL; } |
| 37 | +int f31(void) { return EIO; } |
| 38 | +int f32(void) { return EISCONN; } |
| 39 | +int f33(void) { return EISDIR; } |
| 40 | +int f34(void) { return ELOOP; } |
| 41 | +int f35(void) { return EMFILE; } |
| 42 | +int f36(void) { return EMLINK; } |
| 43 | +int f37(void) { return EMSGSIZE; } |
| 44 | +int f38(void) { return EMULTIHOP; } |
| 45 | +int f39(void) { return ENAMETOOLONG; } |
| 46 | +int f40(void) { return ENETDOWN; } |
| 47 | +int f41(void) { return ENETRESET; } |
| 48 | +int f42(void) { return ENETUNREACH; } |
| 49 | +int f43(void) { return ENFILE; } |
| 50 | +int f44(void) { return ENOBUFS; } |
| 51 | +int f45(void) { return ENODATA; } |
| 52 | +int f46(void) { return ENODEV; } |
| 53 | +int f47(void) { return ENOENT; } |
| 54 | +int f48(void) { return ENOEXEC; } |
| 55 | +int f49(void) { return ENOLCK; } |
| 56 | +int f50(void) { return ENOLINK; } |
| 57 | +int f51(void) { return ENOMEM; } |
| 58 | +int f52(void) { return ENOMSG; } |
| 59 | +int f53(void) { return ENOPROTOOPT; } |
| 60 | +int f54(void) { return ENOSPC; } |
| 61 | +int f55(void) { return ENOSR; } |
| 62 | +int f56(void) { return ENOSTR; } |
| 63 | +int f57(void) { return ENOSYS; } |
| 64 | +int f58(void) { return ENOTCONN; } |
| 65 | +int f59(void) { return ENOTDIR; } |
| 66 | +int f60(void) { return ENOTEMPTY; } |
| 67 | +int f61(void) { return ENOTRECOVERABLE; } |
| 68 | +int f62(void) { return ENOTSOCK; } |
| 69 | +int f63(void) { return ENOTSUP; } |
| 70 | +int f64(void) { return ENOTBLK; } |
| 71 | +int f65(void) { return ENOTTY; } |
| 72 | +int f66(void) { return ENXIO; } |
| 73 | +int f67(void) { return EOPNOTSUPP; } |
| 74 | +int f68(void) { return EOVERFLOW; } |
| 75 | +int f69(void) { return EOWNERDEAD; } |
| 76 | +int f70(void) { return EPERM; } |
| 77 | +int f71(void) { return EPFNOSUPPORT; } |
| 78 | +int f72(void) { return EPIPE; } |
| 79 | +int f73(void) { return EPROTO; } |
| 80 | +int f74(void) { return EPROTONOSUPPORT; } |
| 81 | +int f75(void) { return EPROTOTYPE; } |
| 82 | +int f76(void) { return ERANGE; } |
| 83 | +int f77(void) { return EREMOTE; } |
| 84 | +int f78(void) { return EROFS; } |
| 85 | +int f79(void) { return ESHUTDOWN; } |
| 86 | +int f80(void) { return ESOCKTNOSUPPORT; } |
| 87 | +int f81(void) { return ESPIPE; } |
| 88 | +int f82(void) { return ESRCH; } |
| 89 | +int f83(void) { return ESTALE; } |
| 90 | +int f84(void) { return ETIME; } |
| 91 | +int f85(void) { return ETIMEDOUT; } |
| 92 | +int f86(void) { return ETOOMANYREFS; } |
| 93 | +int f87(void) { return ETXTBSY; } |
| 94 | +int f88(void) { return EUSERS; } |
| 95 | +int f89(void) { return EWOULDBLOCK; } |
| 96 | +int f90(void) { return EXDEV; } |
| 97 | + |
| 98 | +#if defined(__linux__) |
| 99 | +int f91(void) { return EADV; } |
| 100 | +int f92(void) { return EBADE; } |
| 101 | +int f93(void) { return EBADFD; } |
| 102 | +int f94(void) { return EBADR; } |
| 103 | +int f95(void) { return EBADRQC; } |
| 104 | +int f96(void) { return EBADSLT; } |
| 105 | +int f97(void) { return EBFONT; } |
| 106 | +int f98(void) { return ECHRNG; } |
| 107 | +int f99(void) { return ECOMM; } |
| 108 | +int f100(void) { return EDEADLOCK; } |
| 109 | +int f101(void) { return EDOTDOT; } |
| 110 | +int f102(void) { return EHWPOISON; } |
| 111 | +int f103(void) { return EISNAM; } |
| 112 | +int f104(void) { return EKEYEXPIRED; } |
| 113 | +int f105(void) { return EKEYREJECTED; } |
| 114 | +int f106(void) { return EKEYREVOKED; } |
| 115 | +int f107(void) { return EL2HLT; } |
| 116 | +int f108(void) { return EL2NSYNC; } |
| 117 | +int f109(void) { return EL3HLT; } |
| 118 | +int f110(void) { return EL3RST; } |
| 119 | +int f111(void) { return ELIBACC; } |
| 120 | +int f112(void) { return ELIBBAD; } |
| 121 | +int f113(void) { return ELIBEXEC; } |
| 122 | +int f114(void) { return ELIBMAX; } |
| 123 | +int f115(void) { return ELIBSCN; } |
| 124 | +int f116(void) { return ELNRNG; } |
| 125 | +int f117(void) { return EMEDIUMTYPE; } |
| 126 | +int f118(void) { return ENAVAIL; } |
| 127 | +int f119(void) { return ENOANO; } |
| 128 | +int f120(void) { return ENOCSI; } |
| 129 | +int f121(void) { return ENOKEY; } |
| 130 | +int f122(void) { return ENOMEDIUM; } |
| 131 | +int f123(void) { return ENONET; } |
| 132 | +int f124(void) { return ENOPKG; } |
| 133 | +int f125(void) { return ENOTNAM; } |
| 134 | +int f126(void) { return ENOTUNIQ; } |
| 135 | +int f127(void) { return EREMCHG; } |
| 136 | +int f128(void) { return EREMOTEIO; } |
| 137 | +int f129(void) { return ERESTART; } |
| 138 | +int f130(void) { return ERFKILL; } |
| 139 | +int f131(void) { return ESRMNT; } |
| 140 | +int f132(void) { return ESTRPIPE; } |
| 141 | +int f133(void) { return EUCLEAN; } |
| 142 | +int f134(void) { return EUNATCH; } |
| 143 | +int f135(void) { return EXFULL; } |
| 144 | +#elif defined(__APPLE__) |
| 145 | +int f136(void) { return EAUTH; } |
| 146 | +int f137(void) { return EBADARCH; } |
| 147 | +int f138(void) { return EBADEXEC; } |
| 148 | +int f139(void) { return EBADMACHO; } |
| 149 | +int f140(void) { return EBADRPC; } |
| 150 | +int f141(void) { return EDEVERR; } |
| 151 | +int f142(void) { return EFTYPE; } |
| 152 | +int f143(void) { return ENEEDAUTH; } |
| 153 | +int f144(void) { return ENOATTR; } |
| 154 | +int f145(void) { return ENOPOLICY; } |
| 155 | +int f146(void) { return EPROCLIM; } |
| 156 | +int f147(void) { return EPROCUNAVAIL; } |
| 157 | +int f148(void) { return EPROGMISMATCH; } |
| 158 | +int f149(void) { return EPROGUNAVAIL; } |
| 159 | +int f150(void) { return EPWROFF; } |
| 160 | +int f151(void) { return EQFULL; } |
| 161 | +int f152(void) { return ERPCMISMATCH; } |
| 162 | +int f153(void) { return ESHLIBVERS; } |
| 163 | +#endif |
0 commit comments