This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: reentrant functions

On Thu, Apr 08, 2004 at 09:30:47PM +0200, Bas van Gompel wrote:
>Op Wed, 7 Apr 2004 21:46:43 +0200
>schreef Corinna Vinschen <corinna-cygwin from>
>in <>
>:  On Apr  6 23:43, Oleg Ostrozhansky wrote:
>: > not thread-safe.  But when as an example I try using _gets_r(), I'm
>: > getting a link error that this function does not exist:
>:  Many reentrant functions from newlib are currently just not exported by
>:  Cygwin.  Any volunteer to collect these non-exported newlib functions
>:  so that we can add all of them?
>$ grep -oR '_[^ ]\+_r *( *struct \+_reent' .|sed 's, *(.*,,'|sort|uniq
>_remove_r and _stat64_r only occur in winsup/cygwin/
>_fstat_r, _getpid_r and _stat_r are in winsup/cygwin/
>and newlib/libc.
>The others are only in newlib/libc.
>Is this the info you wanted?

Not really.  The above list includes at least one function that are
already exported by the DLL.

We also do not want to export _r functions which are unique only to
newlib.  For instance, I suspect that _mallopt_r is probably not
something that we want to export since no other UNIX has it.

This is not something that will be solved by grep.  It actually
involves some research.


Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]