delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/23/06:16:12

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" <eliz AT is DOT elta DOT co DOT il>
To: Laurence Withers <lwithers AT lwithers DOT demon DOT co DOT uk>
CC: djgpp AT delorie DOT com
In-reply-to: <H0vlKRA+qoU5Ew+E@lwithers.demon.co.uk> (message from Laurence
Withers on Thu, 22 Jun 2000 22:53:02 +0100)
Subject: Re: findfirst and directories containing only subdirectories
References: <FOKFUUAqpSU5Ew8b AT lwithers DOT demon DOT co DOT uk>
<Pine DOT SUN DOT 3 DOT 91 DOT 1000622114601 DOT 24311J AT is> <H0vlKRA+qoU5Ew+E AT lwithers DOT demon DOT co DOT uk>
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

> From: Laurence Withers <lwithers AT lwithers DOT demon DOT co DOT uk>
> 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.

- Raw text -


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