# POSIX header spec: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/netdb.h.html # # Spec quotations relating to includes: # - "The header shall define the uint32_t type as described in ." # - "The header shall define the socklen_t type through typedef, as described in ." # - "Inclusion of the header may also make visible all symbols from , , and ." # # netinet/in.h brings in sys/socket.h # netinet/in.h brings in bits/arpainet.h bringing in inttypes.h # features.h needed for deprecated annotations sys_includes = ["netinet/in.h", "features.h"] include_guard = "_RELIBC_NETDB_H" trailer = """ #ifndef _RELIBC_BITS_NETDB_H #define _RELIBC_BITS_NETDB_H #define h_errno (*__h_errno_location()) #define h_addr h_addr_list[0] /* Address, for backward compatibility.*/ #endif // _RELIBC_BITS_NETDB_H """ language = "C" style = "Tag" no_includes = true cpp_compat = true [export.rename] "sockaddr" = "struct sockaddr" [enum] prefix_with_name = true