32 lines
1.0 KiB
TOML
32 lines
1.0 KiB
TOML
# POSIX header spec: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/netdb.h.html
|
|
#
|
|
# Spec quotations relating to includes:
|
|
# - "The <netdb.h> header shall define the uint32_t type as described in <inttypes.h>."
|
|
# - "The <netdb.h> header shall define the socklen_t type through typedef, as described in <sys/socket.h>."
|
|
# - "Inclusion of the <netdb.h> header may also make visible all symbols from <netinet/in.h>, <sys/socket.h>, and <inttypes.h>."
|
|
#
|
|
# 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
|