Messages in this thread | | | Subject | catch pty ioctl() in user mode ? | Date | Fri, 8 Aug 97 22:32:45 MESZ | From | Michael Marxmeier <> |
| |
Hello.
Is there a way to catch ioctl() requests made to the slave side on the master side of a pty pair ? HP-UX provides some nice ioctl() which make this possible (TIOCTRAP/TIOCREQGET etc). In addition, you could even create your own set of application cation specific ioctl() which could be handled in user mode.
I'm using this in an application which does a multiplexing among pty`s and translates pty mode changes to a tty appropriatly (along with handing additional application ioctls). I had a glance at the kernel sources but was unable to locate a similar mechanism.
While this is probably a proprietary feature of HP-UX i'm wondering if it this is generally considered a useful feature. The real benefit of this is that it is completely transparent to the client and another process could sit between the application and the real tty driver and even provide additional application specific functionality.
If this is considered useful, i'll have a look what it takes to implement it (this may take some time as i'm not used to kernel hacking yet). Any thoughts/hints are apreciated.
Michael
-- Michael Marxmeier Marxmeier Software GmbH E-Mail: mike@msede.com Suedstrasse 58 Voice : +49 202 2431440 42119 Wuppertal, Germany Fax : +49 202 2431420 http://www.msede.com/
| |