Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com X-Originating-IP: [65.25.162.199] From: "John William" To: cygwin AT cygwin DOT com Subject: Incorrect readdir() behavour? Date: Sun, 14 Oct 2001 00:54:21 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 14 Oct 2001 00:54:22.0122 (UTC) FILETIME=[C32290A0:01C1544A] 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? - John _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- 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/