Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 1983, 1993 | 2 * Copyright (c) 1983, 1993 |
| 3 * The Regents of the University of California. All rights reserved. | 3 * The Regents of the University of California. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 109 | 109 |
| 110 #define inet_addr __inet_addr | 110 #define inet_addr __inet_addr |
| 111 #define inet_aton __inet_aton | 111 #define inet_aton __inet_aton |
| 112 #define inet_lnaof __inet_lnaof | 112 #define inet_lnaof __inet_lnaof |
| 113 #define inet_makeaddr __inet_makeaddr | 113 #define inet_makeaddr __inet_makeaddr |
| 114 #define inet_neta __inet_neta | 114 #define inet_neta __inet_neta |
| 115 #define inet_netof __inet_netof | 115 #define inet_netof __inet_netof |
| 116 #define inet_network __inet_network | 116 #define inet_network __inet_network |
| 117 #define inet_net_ntop __inet_net_ntop | 117 #define inet_net_ntop __inet_net_ntop |
| 118 #define inet_net_pton __inet_net_pton | 118 #define inet_net_pton __inet_net_pton |
| 119 #define inet_ntoa __inet_ntoa | |
| 120 #define inet_pton __inet_pton | 119 #define inet_pton __inet_pton |
| 121 #define inet_ntop __inet_ntop | |
| 122 #define inet_nsap_addr __inet_nsap_addr | 120 #define inet_nsap_addr __inet_nsap_addr |
| 123 #define inet_nsap_ntoa __inet_nsap_ntoa | 121 #define inet_nsap_ntoa __inet_nsap_ntoa |
|
Sam Clegg
2013/08/08 01:47:25
Presumably you should remove all these #defines?
torinmr
2013/08/08 17:10:07
I figured I shouldn't remove these for functions t
| |
| 124 | 122 |
| 125 __BEGIN_DECLS | 123 __BEGIN_DECLS |
| 126 in_addr_t inet_addr(const char *); | 124 in_addr_t inet_addr(const char *); |
| 127 char *inet_ntoa(struct in_addr); | 125 char *inet_ntoa(struct in_addr); |
| 128 const char *inet_ntop(int, const void *, char *, socklen_t); | 126 const char *inet_ntop(int, const void *, char *, socklen_t); |
| 129 int inet_pton(int, const char *, void *); | 127 int inet_pton(int, const char *, void *); |
| 130 | 128 |
| 131 int ascii2addr(int, const char *, void *); | 129 int ascii2addr(int, const char *, void *); |
| 132 char *addr2ascii(int, const void *, int, char *); | 130 char *addr2ascii(int, const void *, int, char *); |
| 133 int inet_aton(const char *, struct in_addr *); | 131 int inet_aton(const char *, struct in_addr *); |
| 134 in_addr_t inet_lnaof(struct in_addr); | 132 in_addr_t inet_lnaof(struct in_addr); |
| 135 struct in_addr inet_makeaddr(in_addr_t, in_addr_t); | 133 struct in_addr inet_makeaddr(in_addr_t, in_addr_t); |
| 136 char * inet_neta(in_addr_t, char *, size_t); | 134 char * inet_neta(in_addr_t, char *, size_t); |
| 137 in_addr_t inet_netof(struct in_addr); | 135 in_addr_t inet_netof(struct in_addr); |
| 138 in_addr_t inet_network(const char *); | 136 in_addr_t inet_network(const char *); |
| 139 char *inet_net_ntop(int, const void *, int, char *, size_t); | 137 char *inet_net_ntop(int, const void *, int, char *, size_t); |
| 140 int inet_net_pton(int, const char *, void *, size_t); | 138 int inet_net_pton(int, const char *, void *, size_t); |
| 141 unsigned inet_nsap_addr(const char *, unsigned char *, int); | 139 unsigned inet_nsap_addr(const char *, unsigned char *, int); |
| 142 char *inet_nsap_ntoa(int, const unsigned char *, char *); | 140 char *inet_nsap_ntoa(int, const unsigned char *, char *); |
| 143 __END_DECLS | 141 __END_DECLS |
| 144 | 142 |
| 145 #endif /* !_ARPA_INET_H_ */ | 143 #endif /* !_ARPA_INET_H_ */ |
| OLD | NEW |