You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Manoj Kasichainula <ma...@io.com> on 1999/10/04 21:01:54 UTC

Re: Non-threadsafe functions used in threads? (1.3, 2.0)

On Tue, Sep 28, 1999 at 11:46:20AM +0200, Ralf S. Engelschall wrote:
> A list of acceptable functions for threaded environments you can find in SUSv2
> under http://www.opengroup.org/onlinepubs/007908799/xsh/threads.html
> 
> But, yes, Pthreads doesn't _require_ thread-safe functions unless
> _POSIX_THREAD_SAFE_FUNCTIONS is defined. This usually means you cannot rely on
> the existence of thread-safe functions or at least have a own fallback
> possibility in case _POSIX_THREAD_SAFE_FUNCTIONS is not defined.

Apparently, there are even two different #defines to indicate this.
You, Single Unix, and Linux's header files use
_POSIX_THREAD_SAFE_FUNCTIONS. This O'Reilly pthreads book mentions
_POSIX_REENTRANT_FUNCTIONS, and the X includes on this machine look
for both, as I guess we'll have to do.

-- 
Manoj Kasichainula - manojk@raleigh.ibm.com
IBM, Apache Development