|
37 | 37 | #define AF_INET6 PF_INET6 |
38 | 38 | #define AF_UNIX 3 |
39 | 39 | #define AF_UNSPEC PF_UNSPEC |
| 40 | +#define AI_ADDRCONFIG 0x20 |
| 41 | +#define AI_ALL 0x10 |
| 42 | +#define AI_CANONNAME 0x02 |
| 43 | +#define AI_NUMERICHOST 0x04 |
| 44 | +#define AI_NUMERICSERV 0x400 |
| 45 | +#define AI_PASSIVE 0x01 |
| 46 | +#define AI_V4MAPPED 0x08 |
40 | 47 | #define ALT_DIGITS 0x2002F |
41 | 48 | #define AM_STR 0x20026 |
42 | 49 | #define ANYMARK 0x01 |
|
192 | 199 | #define EADDRNOTAVAIL __WASI_ERRNO_ADDRNOTAVAIL |
193 | 200 | #define EAFNOSUPPORT __WASI_ERRNO_AFNOSUPPORT |
194 | 201 | #define EAGAIN __WASI_ERRNO_AGAIN |
| 202 | +#define EAI_ADDRFAMILY -9 |
| 203 | +#define EAI_AGAIN -3 |
| 204 | +#define EAI_ALLDONE -103 |
| 205 | +#define EAI_BADFLAGS -1 |
| 206 | +#define EAI_CANCELED -101 |
| 207 | +#define EAI_FAIL -4 |
| 208 | +#define EAI_FAMILY -6 |
| 209 | +#define EAI_IDN_ENCODE -105 |
| 210 | +#define EAI_INPROGRESS -100 |
| 211 | +#define EAI_INTR -104 |
| 212 | +#define EAI_MEMORY -10 |
| 213 | +#define EAI_NODATA -5 |
| 214 | +#define EAI_NONAME -2 |
| 215 | +#define EAI_NOTCANCELED -102 |
| 216 | +#define EAI_OVERFLOW -12 |
| 217 | +#define EAI_SERVICE -8 |
| 218 | +#define EAI_SOCKTYPE -7 |
| 219 | +#define EAI_SYSTEM -11 |
195 | 220 | #define EALREADY __WASI_ERRNO_ALREADY |
196 | 221 | #define EBADF __WASI_ERRNO_BADF |
197 | 222 | #define EBADID 5 |
|
489 | 514 | #define HIBITL MINLONG |
490 | 515 | #define HIBITS MINSHORT |
491 | 516 | #define HOST_NAME_MAX 255 |
| 517 | +#define HOST_NOT_FOUND 1 |
492 | 518 | #define HUGE 3.40282346638528859812e+38F |
493 | 519 | #define HUGE_VAL ((double)INFINITY) |
494 | 520 | #define HUGE_VALF INFINITY |
|
1239 | 1265 | #define NEW_ENV_VAR 0 |
1240 | 1266 | #define NGROUPS 32 |
1241 | 1267 | #define NGROUPS_MAX 32 |
| 1268 | +#define NI_DGRAM 0x10 |
| 1269 | +#define NI_MAXHOST 255 |
| 1270 | +#define NI_MAXSERV 32 |
| 1271 | +#define NI_NAMEREQD 0x08 |
| 1272 | +#define NI_NOFQDN 0x04 |
| 1273 | +#define NI_NUMERICHOST 0x01 |
| 1274 | +#define NI_NUMERICSCOPE 0x100 |
| 1275 | +#define NI_NUMERICSERV 0x02 |
1242 | 1276 | #define NL_ARGMAX 9 |
1243 | 1277 | #define NL_CAT_LOCALE 1 |
1244 | 1278 | #define NL_LANGMAX 32 |
|
1257 | 1291 | #define NOTAUTH ns_r_notauth |
1258 | 1292 | #define NOTIMP ns_r_notimpl |
1259 | 1293 | #define NOTZONE ns_r_notzone |
| 1294 | +#define NO_ADDRESS NO_DATA |
| 1295 | +#define NO_DATA 4 |
| 1296 | +#define NO_RECOVERY 3 |
1260 | 1297 | #define NR_ICMP_TYPES 18 |
1261 | 1298 | #define NR_ICMP_UNREACH 15 |
1262 | 1299 | #define NSLC 18 |
|
1968 | 2005 | #define TOREAD 00004 |
1969 | 2006 | #define TOWRITE 00002 |
1970 | 2007 | #define TRANSIENT 4 |
| 2008 | +#define TRY_AGAIN 2 |
1971 | 2009 | #define TSGID 02000 |
1972 | 2010 | #define TSS_DTOR_ITERATIONS 4 |
1973 | 2011 | #define TSUID 04000 |
|
2173 | 2211 | #define _MATH_H |
2174 | 2212 | #define _MONETARY_H |
2175 | 2213 | #define _MQUEUE_H |
| 2214 | +#define _NETDB_H |
2176 | 2215 | #define _NETINET_ICMP6_H |
2177 | 2216 | #define _NETINET_IGMP_H |
2178 | 2217 | #define _NETINET_IN_H |
|
3194 | 3233 | #define __wasilibc___typedef_suseconds_t_h |
3195 | 3234 | #define __wasilibc___typedef_time_t_h |
3196 | 3235 | #define __wasilibc___typedef_uid_t_h |
3197 | | -#define __wasilibc_use_wasip2 |
| 3236 | +#define __wasilibc_use_wasip2 1 |
3198 | 3237 | #define __wasm 1 |
3199 | 3238 | #define __wasm32 1 |
3200 | 3239 | #define __wasm32__ 1 |
|
3281 | 3320 | #define glob64 glob |
3282 | 3321 | #define glob64_t glob_t |
3283 | 3322 | #define globfree64 globfree |
| 3323 | +#define h_addr h_addr_list[0] |
| 3324 | +#define h_errno h_errno |
3284 | 3325 | #define howmany(n,d) (((n)+((d)-1))/(d)) |
3285 | 3326 | #define htobe16(x) __bswap16(x) |
3286 | 3327 | #define htobe32(x) __bswap32(x) |
|
0 commit comments