diff options
author | delphij <delphij@FreeBSD.org> | 2007-06-11 07:21:21 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2007-06-11 07:21:21 +0000 |
commit | 0325fb6ca4e8ecfa891d252d9d442141ad32847b (patch) | |
tree | d64971ce8313ba1ded2f2e6067ba93c54bc1e7ec /include/arpa | |
parent | 219bfe35e701b456e351b70d8d9b05418b7057d8 (diff) | |
download | FreeBSD-src-0325fb6ca4e8ecfa891d252d9d442141ad32847b.zip FreeBSD-src-0325fb6ca4e8ecfa891d252d9d442141ad32847b.tar.gz |
Add inet_ntoa_r, a reentrant version of inet_ntoa. This is
available on a lot of platforms, as well as libkern for years.
Submitted by: "MQ"
Diffstat (limited to 'include/arpa')
-rw-r--r-- | include/arpa/inet.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/arpa/inet.h b/include/arpa/inet.h index fc5ef7d..fdc7708 100644 --- a/include/arpa/inet.h +++ b/include/arpa/inet.h @@ -130,6 +130,7 @@ struct in_addr { #define inet_cidr_ntop __inet_cidr_ntop #define inet_cidr_pton __inet_cidr_pton #define inet_ntoa __inet_ntoa +#define inet_ntoa_r __inet_ntoa_r #define inet_pton __inet_pton #define inet_ntop __inet_ntop #define inet_nsap_addr __inet_nsap_addr @@ -147,6 +148,7 @@ uint16_t ntohs(uint16_t); in_addr_t inet_addr(const char *); /*const*/ char *inet_ntoa(struct in_addr); +char *inet_ntoa_r(struct in_addr, char *buf); const char *inet_ntop(int, const void * __restrict, char * __restrict, socklen_t); int inet_pton(int, const char * __restrict, void * __restrict); |