[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 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.
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."