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

Re: [MiNT] Dopendir() return values



On 11/01/11 13:43, Andreas Schwab wrote:
> 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.

Then, I'm not sure what you are saying here. Something is, and I've not
read TOS.HYP, but the FreeMiNT code is not doing anything wrong here.

Alan.