Mail Archives: djgpp-workers/1998/08/23/10:26:36
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 -