Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Feb 1998 01:27:23 -0500
From:      "Kaleb S. KEITHLEY" <k.#nojunk#keithley@opengroup.org>
To:        hackers@FreeBSD.ORG
Subject:   _POSIX_THREAD_SAFE_FUNCTIONS, but no thread-safe functions
Message-ID:  <34F65CCB.41C67EA6@opengroup.org>

next in thread | raw e-mail | index | archive | help
I'm looking at a 3.0-971225-SNAP machine, and <pthread.h> has
_POSIX_THREAD_SAFE_FUNCTIONS defined, but libc_r does not have any of
the thread-safe functions, e.g. getpwnam_r, gethostbyname_r, strtok_r,
etc.

I don't have my pthreads spec here at home, but as I recall,
_POSIX_THREAD_SAFE_FUNCTIONS is specified as meaning that the *_r
functions are available. I don't believe it means anything WRT to the
general thread-safeness of the rest of libc (or libc_r), which by
definition should be inherently thread-safe (on the off chance that
that's what you thought it meant.)

--
Kaleb S. KEITHLEY

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?34F65CCB.41C67EA6>