[Fwd: [Bug] _POSIX_THREAD_SAFE_FUNCTIONS is defined, but it should not be?]

Corinna Vinschen vinschen@redhat.com
Thu May 13 13:57:00 GMT 2004

Hi Thomas,

talking about flockfile, ftrylockfile and funlockfile, wouldn't it be easy
to implement them as macros in include/sys/stdio.h, using the already
existing definitions for _flockfile and _funlockfile?


----- Forwarded message from Max Bowsher -----

> Date: Thu, 13 May 2004 12:13:05 +0100
> From: "Max Bowsher" 
> Subject: [Bug] _POSIX_THREAD_SAFE_FUNCTIONS is defined, but it should not be?
> To: <cygwin@cygwin.com>
> Cygwin defines _POSIX_THREAD_SAFE_FUNCTIONS (in newlib/include/sys/features.h), but it does not provide the following 7 functions,
> which are among those that this define is supposed to indicate the presence of:
> flockfile
> ftrylockfile
> funlockfile
> getgrgid_r
> getgrnam_r
> getlogin_r
> readdir_r
> (I noticed this, because APR assumes readdir_r is available if that define is defined. This seems to be a valid assumption,
> according to SUSv3).
> Max.

----- End forwarded message -----

Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Co-Project Leader          mailto:cygwin@cygwin.com
Red Hat, Inc.

More information about the Cygwin-developers mailing list