delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Date: | Sat, 13 Oct 2001 21:35:06 -0400 |
From: | Christopher Faylor <cgf AT redhat DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Incorrect readdir() behavour? |
Message-ID: | <20011013213506.B396@redhat.com> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <F85dhTpkQAm16K39u8i00004088 AT hotmail DOT com> |
Mime-Version: | 1.0 |
In-Reply-To: | <F85dhTpkQAm16K39u8i00004088@hotmail.com> |
User-Agent: | Mutt/1.3.21i |
On Sun, Oct 14, 2001 at 12:54:21AM +0000, John William wrote: >There seems to be a difference in behavour between RH Linux and Cygwin for >the following case: > >cur_dir=opendir(...); >while (cur_de=readdir(cur_dir)) >{ > do something with each entry > (while this is going on, files are added to the directory) >} >closedir(cur_dir); > >Under Linux, readdir() only returns the files that existed when opendir() >was called. With Cygwin, I get some of the new files added (but not all of >them). > >My versions are: latest (per the updater) for Cygwin, except I'm still using > >the 1.3.2 DLL; standard RH 7.1 but with 2.2.19 kernel. > >I am assuming that Linux is correct and that this is a bug in Cygwin's >readdir() routine? Nope. cygwin != linux http://www.opengroup.org/onlinepubs/007908799/xsh/readdir.html cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |