/* arpa/inet.h */ #ifndef _ARPA__INET_H #define _ARPA__INET_H #include /* Open Group Base Specifications Issue 6 (not complete): */ #ifndef _IN_ADDR_T #define _IN_ADDR_T /* Has to match corresponding declaration in */ typedef uint32_t in_addr_t; #endif /* _IN_ADDR_T */ #ifndef _STRUCT_IN_ADDR #define _STRUCT_IN_ADDR /* Has to match corresponding declaration in */ struct in_addr { in_addr_t s_addr; }; #endif _PROTOTYPE( uint32_t htonl, (uint32_t _hostval) ); _PROTOTYPE( uint16_t htons, (uint16_t _hostval) ); _PROTOTYPE( char *inet_ntoa, (struct in_addr _in) ); _PROTOTYPE( uint32_t ntohl, (uint32_t _netval) ); _PROTOTYPE( uint16_t ntohs, (uint16_t _netval) ); _PROTOTYPE( char *inet_ntop, (int af, const void *src, char *dst, uint32_t size) ); _PROTOTYPE( int inet_pton, (int af, const char *src, void *dst) ); #ifdef _MINIX /* Additional functions */ _PROTOTYPE( int inet_aton, (const char *_cp, struct in_addr *_pin) ); #endif #ifdef _POSIX_SOURCE in_addr_t inet_addr(const char *cp); #endif #endif /* _ARPA__INET_H */