Igor Marnat wrote:
FH> The GPC unit contains low-level file routines such as OpenHandle FH> (also without O_SYNC support though), ReadHandle, WriteHandle (which FH> work with handles obtained from libc's open), AssignHandle (to bind FH> such a handle to a Pascal file) etc.
Thank you for the answer. I've forgot that I'll have to make ioctl calls for this device, therefore I'll anyway be forced to write interface functions in C. I've looked at GPC sources and didn't find interface function for ioctl.
No, ioctl is too diverse to provide a simple GPC wrapper. However, you still can freely mix C and Pascal routines if you work with file descriptors (integer), rather than `FILE *' in C and Pascal file types. That's what I'm doing when working with sound cards, BTW.
Frank