I had kind of the same problem about 1½ ago. I needed to interface with my soundcard and thus needed ioctl. However, there was some argument against adding a general ioctl call, but I'm not sure what it was. I ended up using a tiny cmod for the purpose of setting my parameter.
It might be that there is no real way of knowing what parameters are passed and how they should be interperted on the C-level. But that could be fixed using some smart heuristics, IMHO.
/ Marcus Agehall (PacketFront)
Previous text:
2004-08-17 08:47: Subject: managing comport settings in linux
It seems like that ioctl is missing from Pike. :/
I wonder if ioctl should be added on a general basis, or if special calls should be added for all ioctls...
(crossposting developers list)
Anyhow, it should be added somehow to src/modules/files/termios.c or nearby. It shouldn't be too tricky. If I have time, I'll do it today (so it lands in 7.7-cvs), but if not I'm leaving for austria tomorrow morning, so can't do anything then for some weeks :/
/ Mirar