delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/31/10:11:56

Date: Thu, 31 Oct 1996 16:48:30 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Grzegorz Kolodziej <kolodzie AT sabat DOT tu DOT kielce DOT pl>
Cc: djgpp AT delorie DOT com
Subject: Re: Problem with findfirst & findnext
In-Reply-To: <3278F567.1D80@sabat.tu.kielce.pl>
Message-Id: <Pine.SUN.3.91.961031164526.24272C-100000@is>
Mime-Version: 1.0

On Thu, 31 Oct 1996, Grzegorz Kolodziej wrote:

> The problem is (as it can be seen using gdb):
> While findfirst() finds file (res==0) the ffblk structure contains
> strange values i.e. field ff_name contains file name without first 
> 2 letters,ff_fsize is any huge number (other fields aren't correct 
> also), so found file  couldn't be deleted by unlink().

This bug and its solution are explained in the DJGPP FAQ list 
(v2/faq202b.zip from the same place you get DJGPP), section 22.10.

OTOH, if you upgrade to DJGPP v2.01, you won't need to read about this 
problem, since it's corrected in that version.

- Raw text -


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