[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::digital_unix

Title:DIGITAL UNIX(FORMERLY KNOWN AS DEC OSF/1)
Notice:Welcome to the Digital UNIX Conference
Moderator:SMURF::DENHAM
Created:Thu Mar 16 1995
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:10068
Total number of notes:35879

9022.0. "is inet_ntoa() thread safe?" by XSTACY::TOBINM () Tue Mar 04 1997 06:56

I'm using inet_ntoa() in a multi-threaded process.

The function returns a pointer to a dot-formatted character string.

Do you know if this is already thread-safe or should I protect this
with a mutex?

i.e. is inet_ntoa() using static memory to return this string, in 
which case its not thread-safe.
T.RTitleUserPersonal
Name
DateLines
9022.1yupSMURF::DANIELETue Mar 04 1997 09:235
The code is explicitly thread-safe as of V4.0.

(I believe "all" of libc was made t-s in V4.0...)

Mike