aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libc/net/gethostbyname.3
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2005-04-28 18:03:43 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2005-04-28 18:03:43 +0000
commitaa2f4ec72aa5a0edf89218a157cc36087316a2c5 (patch)
treebf4853f6b32bd035c380dd4ac79b8598d2682385 /lib/libc/net/gethostbyname.3
parent7b671d902bb803d5624f344f400b89833ecedf28 (diff)
downloadsrc-aa2f4ec72aa5a0edf89218a157cc36087316a2c5.tar.gz
src-aa2f4ec72aa5a0edf89218a157cc36087316a2c5.zip
make gethostby*() thread-safe.
Notes
Notes: svn path=/head/; revision=145633
Diffstat (limited to 'lib/libc/net/gethostbyname.3')
-rw-r--r--lib/libc/net/gethostbyname.312
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/net/gethostbyname.3 b/lib/libc/net/gethostbyname.3
index 3d92af612ec0..6f9ee0dce1f1 100644
--- a/lib/libc/net/gethostbyname.3
+++ b/lib/libc/net/gethostbyname.3
@@ -366,14 +366,14 @@ function first appeared in
.Tn BIND
version 4.9.4.
.Sh BUGS
-These functions use static data storage;
+These functions use a thread-specific data storage;
if the data is needed for future use, it should be
copied before any subsequent calls overwrite it.
-Threaded applications should never use them, as they will also conflict
-with the
+.Pp
+Though these functions are thread-safe,
+still it is recommended to use the
.Xr getaddrinfo 3
-and
-.Xr getipnodebyname 3
-families of functions (which should be used instead).
+family of functions, instead.
+.Pp
Only the Internet
address format is currently understood.