Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Side by Side Diff: fusl/include/arpa/inet.h

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #ifndef _ARPA_INET_H 1 #ifndef _ARPA_INET_H
2 #define»_ARPA_INET_H 2 #define _ARPA_INET_H
3 3
4 #ifdef __cplusplus 4 #ifdef __cplusplus
5 extern "C" { 5 extern "C" {
6 #endif 6 #endif
7 7
8 #include <features.h> 8 #include <features.h>
9 #include <netinet/in.h> 9 #include <netinet/in.h>
10 10
11 uint32_t htonl(uint32_t); 11 uint32_t htonl(uint32_t);
12 uint16_t htons(uint16_t); 12 uint16_t htons(uint16_t);
13 uint32_t ntohl(uint32_t); 13 uint32_t ntohl(uint32_t);
14 uint16_t ntohs(uint16_t); 14 uint16_t ntohs(uint16_t);
15 15
16 in_addr_t inet_addr (const char *); 16 in_addr_t inet_addr(const char*);
17 in_addr_t inet_network (const char *); 17 in_addr_t inet_network(const char*);
18 char *inet_ntoa (struct in_addr); 18 char* inet_ntoa(struct in_addr);
19 int inet_pton (int, const char *__restrict, void *__restrict); 19 int inet_pton(int, const char* __restrict, void* __restrict);
20 const char *inet_ntop (int, const void *__restrict, char *__restrict, socklen_t) ; 20 const char* inet_ntop(int, const void* __restrict, char* __restrict, socklen_t);
21 21
22 int inet_aton (const char *, struct in_addr *); 22 int inet_aton(const char*, struct in_addr*);
23 struct in_addr inet_makeaddr(in_addr_t, in_addr_t); 23 struct in_addr inet_makeaddr(in_addr_t, in_addr_t);
24 in_addr_t inet_lnaof(struct in_addr); 24 in_addr_t inet_lnaof(struct in_addr);
25 in_addr_t inet_netof(struct in_addr); 25 in_addr_t inet_netof(struct in_addr);
26 26
27 #undef INET_ADDRSTRLEN 27 #undef INET_ADDRSTRLEN
28 #undef INET6_ADDRSTRLEN 28 #undef INET6_ADDRSTRLEN
29 #define INET_ADDRSTRLEN 16 29 #define INET_ADDRSTRLEN 16
30 #define INET6_ADDRSTRLEN 46 30 #define INET6_ADDRSTRLEN 46
31 31
32 #ifdef __cplusplus 32 #ifdef __cplusplus
33 } 33 }
34 #endif 34 #endif
35 35
36 #endif 36 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698