Re: [fpc-pascal] ioctl

2006-05-17 Thread Vinzent Hoefler
On Tuesday 16 May 2006 16:18, Alain Michaud wrote: > Do I need open a "file deccriptor" in order to communicate using > IOCTL? Yes, you have to open the device before talking to it. Or what the hell do you think, the "Handle" parameter of |Function FpIOCtl (Handle:cint;Ndx: culong;Data: P

[fpc-pascal] ioctl

2006-05-16 Thread Alain Michaud
Hi, I am trying to use the FpIOCtl in the BASEUNIX unit. Guess what? the only thing I get back is -1 ! Is there any example code available on how to talk to a kernel module? The only kernel that I know to talk to is the one that I am trying is the one that I am writing myself. I am not too fa