Hi,
I have an example c program (from Mac OS X Internals) that uses ioctl() to find information about the disk drive. For example to get the Block Size you call:
ioctl(fd, DKIOGETBLOCKSIZE, @blocksize);
where fd is just a file handle to say '/dev/rdisk0', DKIO.. is just a constant (I can look those up in the Darwin source), and blocksize is just a int64 variable that will contain the block size after the call. Alll fairly standard stuff.
The question becomes - where is ioctl()? I know it is in the termiosproc.inc file, but other than that I don't know what unit you should use to be able to access it. I know it will be somthing simple - but sometimes those are the hardest.
Thanks for any help.