[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Dopendir() return values



Alan Hourihane <alanh@fairlite.co.uk> writes:

> On 11/01/11 10:54, Andreas Schwab wrote:
>> Alan Hourihane <alanh@fairlite.co.uk> writes:
>>
>>> On 11/01/11 09:41, Jean-François Lemaire wrote:
>>>> Hello,
>>>>
>>>> I just found out that Dopendir() returns the following value for a non-
>>>> existing directory:
>>>>
>>>> "-33 EFILNF 	File not found"
>>>>
>>>> But according to TOS.HYP, it's supposed to return:
>>>>
>>>> "-34 EPTHNF 	Directory (folder) not found"
>>>>
>>>> Now, I know that a directory is essentially a file, but EPTHNF would seem more 
>>>> logical to me.
>>>>
>>>> Also, it seems that "EFILNF" is not defined in "mint/errno.h".
>>> In this case, I think TOS.HYP is wrong. -33 is ENOENT, which is "No such
>>> file or directory". -34 is ENOTDIR "Not a directory".
>> Though GEMDOS uses these error codes how TOS.HYP describes them.
>
> But Dopendir is a MiNT extension, not basic GEMDOS. So it should follow
> it's extensions codes.

Still, the description is not wrong.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."