[net.micro.atari16] Calling gemdos

gsschaffer@watdaisy.UUCP (Greg Schaffer) (08/21/86)

I am trying to write a program which will create a directory(folder), if it does
not already exist.  I've tried to use   Fattrib (filename, 0, 0)  to tell
me what type of file it is (or -33 if not found),  but it returns -33
whether the folder exists or not.  In looking more closely at the Lattice C
manual, I find that all the arguments to gemdos() are integers (32 bits),
and that all char & short function arguments are expanded to int.
But according to ST INTERNALS some of the gemdos args are supposed to be
words (16 bits).  Has anyone figured out how the gemdos() [in Lattice]
sets up its arguments for Gem?  Help!

-----------------------------------------------------------------------------
gsschaffer%watdaisy@waterloo.csnet                        Greg Schaffer
gsschaffer%watdaisy@waterloo.csnet@csnet-relay.arpa       CS Dept. U. Waterloo
{decvax|ihnp4|allegra|utzoo}!watmath!watdaisy!gsschaffer  Waterloo,ONT N2L 3G1

at@exunido.UUCP (08/28/86)

> Lattice C gemdos bindings...

	First you must use another flag in fattrib to scan for folders.
	Lattice C expects allways 32 bit integers as arguments, but
	the gemdos, bios and xbios functions keep some sort of
	conversion table to make shure that all parameters are of the
	required size.

	Andreas Toenne
	at@unido.uucp