1#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG4
2// in_port_t should have exactly 16 bits
3type in_port_t
4// in_addr_t should have exactly 32 bits
5type in_addr_t
6
7type uint32_t
8type uint16_t
9
10macro INET_ADDRSTRLEN
11macro INET6_ADDRSTRLEN
12
13// The following can be declared as functions, defined as macros or both:
14function uint32_t htonl (uint32_t)
15function uint16_t htons (uint16_t)
16function uint32_t ntohl (uint32_t)
17function uint16_t htons (uint16_t)
18
19function in_addr_t inet_addr (const char*)
20function in_addr_t inet_lnaof (struct in_addr)
21function {struct in_addr} inet_makeaddr (in_addr_t, in_addr_t)
22function in_addr_t inet_netof (struct in_addr)
23function in_addr_t inet_network (const char *)
24function {char*} inet_ntoa (struct in_addr)
25function {const char*} inet_ntop (int, const void*, char*, socklen_t)
26function int inet_pton (int, const char*, void*)
27
28allow-header netinet/in.h
29allow-header inttypes.h
30
31#endif
32