Message-Id: <200006231014.NAA28348@alpha.netvision.net.il> Date: Fri, 23 Jun 2000 13:16:44 +0200 X-Mailer: Emacs 20.6 (via feedmail 8.1.emacs20_6 I) and Blat ver 1.8.5b From: "Eli Zaretskii" To: Laurence Withers CC: djgpp AT delorie DOT com In-reply-to: (message from Laurence Withers on Thu, 22 Jun 2000 22:53:02 +0100) Subject: Re: findfirst and directories containing only subdirectories References: Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: Laurence Withers > Newsgroups: comp.os.msdos.djgpp > Date: Thu, 22 Jun 2000 22:53:02 +0100 > > Using Windows 98 (not second edition), the command line was: > gxx -W -Wall -o test.exe test.cpp > > Using djdev203.zip, and gcc -v reports > Reading specs from d:/djgpp/lib/gcc-lib/djgpp/2.952/specs > gcc version 2.95.2 19991024 (release) I just tested this in the exact same environment (except that my Windows 98 is a Hebrew-enabled version), and I still cannot reproduce the problem: I get "return value 0; errno 0". (Previously, I tested this on Windows 95 with GCC 2.7.2.1, but the results were identical to what I get now.) So either you posted a program that is different from what you actually run, or there's some factor specific to your system that is at work here. Note that there's nothing wrong with errno being non-zero, since you didn't initialize it to zero before calling `findfirst'. But the status returned by `findfirst' should indeed be zero in the case you described.