delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/08/23/10:26:36

Date: Sun, 23 Aug 1998 17:23:56 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: DJ Delorie <dj AT delorie DOT com>
cc: djgpp-workers AT delorie DOT com, Franz Zimmer <zimmer AT dpk DOT berlin DOT fido DOT de>
Subject: Re: [zimmer AT dpk DOT berlin DOT fido DOT de: djdev202/djlsr202 from 26.jul.98]
In-Reply-To: <199808201402.KAA13999@delorie.com>
Message-ID: <Pine.SUN.3.91.980823172240.1451e-100000@is>
MIME-Version: 1.0

On Thu, 20 Aug 1998, DJ Delorie wrote:


> I found a strange behaviour of the stat-function.
> If the named file is missing, i get the error-code ENFILE instead of ENOENT.
> Maybe this ist located in the transformation-table from dos-error to errno.
> If findfirst/findnext fail, the resulting dos-error-code is 12h, which will be
> remapped to the errno-value ENFILE :-(

The bug is in src/libc/dos/errno/doserr2e.c: error code 12h should be
converted to ENMFILE, not ENFILE.

Note that it is okay for findfirst/findnext to return ENMFILE when all
the files are exhausted.

- Raw text -


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