diff options
author | itojun <itojun@FreeBSD.org> | 2000-08-09 23:16:23 +0000 |
---|---|---|
committer | itojun <itojun@FreeBSD.org> | 2000-08-09 23:16:23 +0000 |
commit | 3168f0a4f8b336d3f008cdfe3ad5b7ccdb71bb29 (patch) | |
tree | e286c66b5ea4090d844cf5ff2f6ce290ff5f972d /lib/libc/net/getnameinfo.3 | |
parent | 4d349e97e6e47dc8bd4358e39cbb9e2fe6e0c5f5 (diff) | |
download | FreeBSD-src-3168f0a4f8b336d3f008cdfe3ad5b7ccdb71bb29.zip FreeBSD-src-3168f0a4f8b336d3f008cdfe3ad5b7ccdb71bb29.tar.gz |
mention getipnodeby* and get{addr,name}info are not thread-safe. (sync with kame)
s/.Os KAME/.Os/
comment From: Greg Thompson
Diffstat (limited to 'lib/libc/net/getnameinfo.3')
-rw-r--r-- | lib/libc/net/getnameinfo.3 | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lib/libc/net/getnameinfo.3 b/lib/libc/net/getnameinfo.3 index 0b47857..113563f 100644 --- a/lib/libc/net/getnameinfo.3 +++ b/lib/libc/net/getnameinfo.3 @@ -1,5 +1,5 @@ .\" $FreeBSD$ -.\" $KAME: getnameinfo.3,v 1.16 2000/07/05 08:22:04 itojun Exp $ +.\" $KAME: getnameinfo.3,v 1.17 2000/08/09 21:16:17 itojun Exp $ .\" .\" Copyright (c) 1983, 1987, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -36,7 +36,7 @@ .\" .Dd May 25, 1995 .Dt GETNAMEINFO 3 -.Os KAME +.Os .\" .Sh NAME .Nm getnameinfo @@ -57,14 +57,15 @@ The .Fn getnameinfo function is defined for protocol-independent address-to-nodename translation. Its functionality is a reverse conversion of -.Xr getaddrinfo 3 -and is similar to that of +.Xr getaddrinfo 3 , +and implements similar functionality with .Xr gethostbyaddr 3 and -.Xr getservbyport 3 . +.Xr getservbyport 3 +in more sophisticated manner. .Pp This function looks up an IP address and port number provided by the -caller in the DNS and system-specific database and then returns text +caller in the DNS and system-specific database, and returns text strings for both in buffers provided by the caller. The function indicates successful completion by a zero return value; a non-zero return value indicates failure. @@ -303,6 +304,8 @@ and documented in .Pq RFC2553 . .\" .Sh BUGS +The current implementation is not thread-safe. +.Pp The text was shamelessly copied from RFC2553. .Pp The type of the 2nd argument should be |