change from ioctl(fd, PIOC<foo>, &i); to ioctl(fd, PIOC<foo>, i); This is going from the _IOW to _IO ioctl macro. The kernel, procctl, and truss must be in synch for it all to work (not doing so will get errors about inappropriate ioctl's, fortunately). Hopefully I didn't forget anything :). |
||
---|---|---|
.. | ||
amd64-fbsd32.c | ||
amd64-linux32.c | ||
i386-fbsd.c | ||
i386-linux.c | ||
i386.conf | ||
i386linux.conf | ||
main.c | ||
Makefile | ||
setup.c | ||
syscall.h | ||
syscalls.c | ||
truss.1 |