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

Re: [MiNT] System call bindings



Philipp Donzé wrote:

Hi,

Here are some remarks from me when going through "osbind.h" and "mintbind.h":

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

- 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? ;-)

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

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

All DTA description I have see in libs are wrong (I not look in recent mintlib so perhaps correct), the name part, have alway's describe as char name[14] that's of course not work with long file name! I have correct this by simply
char name[255]

Olivier




Philipp