Can you ever with these things?
It all boils down to the fact that ioctls are very lowlevel, system specific and you shouldn't poke around with them unless you know what you are doing. By implementing my suggestion, you can implement default ioctls for "standard" functions and the user can easily implement her own ioctls as needed.
But, since this is dangerous stuff for the average user-joe, I would suggest making it a compiletime feature which has to be enabled with --enable-user-ioctls or something similar.
/ Marcus Agehall (PacketFront)
Previous text:
2004-08-17 13:35: Subject: managing comport settings in linux
Can you guarantee that the process wont crash if you don't feed it the wrong information?
/ Mirar