delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/20/02:24:29

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Sat, 20 Aug 2005 02:23:41 -0400
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Re-entrant versions of functions
Message-ID: <20050820062341.GB29420@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
References: <430607B4 DOT 6030109 AT whichwalk DOT com>
Mime-Version: 1.0
In-Reply-To: <430607B4.6030109@whichwalk.com>
User-Agent: Mutt/1.5.8i

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019