From 5c4c2dbb5601c57596de3bb6e4d9d41001e4694a Mon Sep 17 00:00:00 2001 From: Hajimu UMEMOTO Date: Mon, 15 Sep 2003 04:52:15 +0000 Subject: [PATCH] Our getaddrinfo() and getnameinfo() are thread-safe but some limitation. Reported by: Marc G. Fournier --- lib/libc/net/getaddrinfo.3 | 6 +++++- lib/libc/net/getnameinfo.3 | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/libc/net/getaddrinfo.3 b/lib/libc/net/getaddrinfo.3 index b40f29ac0d2e..c1932af432cd 100644 --- a/lib/libc/net/getaddrinfo.3 +++ b/lib/libc/net/getaddrinfo.3 @@ -625,6 +625,10 @@ and documented in (RFC2553). .\" .Sh BUGS -The current implementation is not thread-safe. +Though the current implementation should be thread-safe, using +.Fn getaddrinfo +in conjunction with +.Fn gethostby* +breaks thread-safeness. .Pp The text was shamelessly copied from RFC2553. diff --git a/lib/libc/net/getnameinfo.3 b/lib/libc/net/getnameinfo.3 index 3267f43a1bb8..bf197dca1d12 100644 --- a/lib/libc/net/getnameinfo.3 +++ b/lib/libc/net/getnameinfo.3 @@ -301,7 +301,11 @@ and documented in (RFC2553). .\" .Sh BUGS -The current implementation is not thread-safe. +Though the current implementation should be thread-safe, using +.Fn getnameinfo +in conjunction with +.Fn gethostby* +breaks thread-safeness. .Pp The text was shamelessly copied from RFC2553. .Pp