Device Emulation with a pty?

Ken Mandelberg km at mathcs.emory.edu
Sun Oct 7 01:50:15 AEST 1990


I would like to use a pty to let a process emulate a device.  However,
it looks to me like the pty interface doesn't really provide enough
control and status on the master side. For example, I don't see how
to:

 * send a HUP to the slave side process by operating on the master
  (to emulate a device hangup)

 * cause the slave side process to block on open (for example to
   simulate waiting for DCD)

 * detect the slave side open not just its first write.

 * detect device specific slave side ioctls and reply to them from
   the master side.

Can any of this been done on the existing BSD or Sun pty driver? Has
anyone done a more general pty streams module that does more of this.
-- 
Ken Mandelberg      | km at mathcs.emory.edu          PREFERRED
Emory University    | {rutgers,gatech}!emory!km    UUCP 
Dept of Math and CS | km at emory.bitnet              NON-DOMAIN BITNET  
Atlanta, GA 30322   | Phone: (404) 727-7963



More information about the Comp.unix.internals mailing list