[comp.sys.atari.st] where is ioctl?

egisin@orchid.UUCP (06/18/87)

I'm making some bug fixes to the C library of the "free C" compiler,
and need something like the ms-doc ioctl function.
I can't find any documentation for ioctl or an equivalent in gemdos.
I want to find out whether a file has been redirected (by the shell),
and whether it is the console or some other device.
Is there a way to do this?

PS. does the author of this compiler, Mark Johnson, have a net address?