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: Re-entrant versions of functions


On Fri, Aug 19, 2005 at 05:24:20PM +0100, syphon wrote:
>I'm trying to build some example code from 'Programming with POSIX 
>Threads' by David Butenhof, and have run into an error because one of 
>the programs calls readdir_r.  From googling and searching the mailing 
>lists, it looks like there has been some work done on the re-entrant 
>versions of the standard functions, but nothing seems to be built in the 
>shipping binary code.
>
>I downloaded the cygwin source and there is definition for readdir_r in 
>newlib/libc/posix however there is no corresponding declaration in any 
>header file.
>
>My question is, is there a reason that the re-entrant versions of the 
>functions like readdir_r are not built?
>
>This isn't a critical issue for me - I just want to play with this stuff 
>on my laptop on the train without needing to dual-boot into linux (so 
>I'm just being lazy!).  However I'm still curious, so if anyone has an 
>answer I'd be greatful.

In 90% of the cases, the reason for "Why doesn't X exist?" is that no
one had taken the time to implement it.  That was the case here.
readdir_r was never implemented.  I have, however, just added it to the
DLL.  It will be in the next cygwin snapshot:

http://cygwin.com/snapshots/

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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