• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (C) 2017 The Android Open Source Project
2 // SPDX-License-Identifier: BSD-2-Clause
3 
4 #include <arpa/inet.h>
5 
6 #include "header_checks.h"
7 
arpa_inet_h()8 static void arpa_inet_h() {
9   TYPE(in_port_t);
10   TYPE(in_addr_t);
11   TYPE(struct in_addr);
12 
13   MACRO(INET_ADDRSTRLEN);
14   MACRO(INET6_ADDRSTRLEN);
15 
16   FUNCTION(htonl, uint32_t (*f)(uint32_t));
17   FUNCTION(htons, uint16_t (*f)(uint16_t));
18   FUNCTION(ntohl, uint32_t (*f)(uint32_t));
19   FUNCTION(ntohs, uint16_t (*f)(uint16_t));
20 
21   TYPE(uint32_t);
22   TYPE(uint16_t);
23 
24   FUNCTION(inet_addr, in_addr_t (*f)(const char*));
25 }
26