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

Re: [MiNT] System call bindings



Hello!

- Why is DOSTIME defined to contain "short" elements instead of "unsigned short"? I didn't find any documentation defining it as "signed" types!

Then it's a bug :-)

- I found different implementations of DTA structure. "TOS.HYP", Atari compendium, "Profibuch" use the same types and names. Only mintlib uses a different approach by changing names and prefixes of the structure. I know, these bindings are old and obolete, but what's the use of having them implemented in a completely different manner than ANY document proposes? Make it difficult to port/compile old software with mintlib? ;-)

No, the reason is to keep the mintlib namespace clean. As this structure is a system dependant structure it's prefixed with '_' so it don't pollute the normal namespace.

- Fsetdta() is known to return nothing. In osbind.h it returns a "long". I have no idea what it could return...

I don't know which osbind.h you have but in my osbind.h from current cvs the return value is castet to void.

- Dcreate(), Fattrib() should return a "long" instead of a "short" because a GEMDOS error will be returned if necessary.

As long the error code is below SHORT_MAX it's no problem to cast to a short.


Regards,
Frank

--
ATARI FALCON 060 // MILAN 060
-----------------------------------------
http://www.cs.uni-magdeburg.de/~fnaumann/
e-Mail: fnaumann@freemint.de