]>
Commit | Line | Data |
---|---|---|
37be9888 | 1 | /* |
bde978a6 | 2 | * Copyright (C) 1996-2015 The Squid Software Foundation and contributors |
37be9888 AJ |
3 | * |
4 | * Squid software is distributed under GPLv2+ license and includes | |
5 | * contributions from numerous individuals and organizations. | |
6 | * Please see the COPYING and CONTRIBUTORS files for details. | |
7 | */ | |
8 | ||
27bc2077 AJ |
9 | #ifndef _INC_INET_PTON_H |
10 | #define _INC_INET_PTON_H | |
0e076fb1 | 11 | |
12 | /* Use the system provided version where possible */ | |
55d7d5e9 | 13 | #if !HAVE_DECL_INET_PTON |
0e076fb1 | 14 | |
15 | /* int | |
c5dd4956 AJ |
16 | * inet_pton(af, src, dst) |
17 | * convert from presentation format (which usually means ASCII printable) | |
18 | * to network format (which is usually some kind of binary format). | |
19 | * return: | |
20 | * 1 if the address was valid for the specified address family | |
21 | * 0 if the address wasn't valid (`dst' is untouched in this case) | |
22 | * -1 if some other error occurred (`dst' is untouched in this case, too) | |
23 | * author: | |
24 | * Paul Vixie, 1996. | |
25 | */ | |
0e076fb1 | 26 | SQUIDCEXTERN int xinet_pton(int af, const char *src, void *dst); |
4dbe7028 | 27 | #ifndef inet_pton |
27bc2077 | 28 | #define inet_pton xinet_pton |
4dbe7028 | 29 | #endif |
0e076fb1 | 30 | |
55d7d5e9 | 31 | #endif /* HAVE_DECL_INET_PTON */ |
0e076fb1 | 32 | #endif /* _INC_INET_NTOP_H */ |
f53969cc | 33 |