Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* DEC OSF/1 Pseudo-tty's
@ 1994-10-28 16:55 Jim Musgrave
  0 siblings, 0 replies; only message in thread
From: Jim Musgrave @ 1994-10-28 16:55 UTC (permalink / raw)


Hi folks,

I wonder if someone could help me out with my (lack of) understanding 
of PTY drivers on OSF/1.

Having read what little doc's I have, the way I see it is there are two
drivers one BSD'ish one Sys V.  There is a clone driver for each (ptmx_bsd
& ptmx).  The default configuration uses the BSD style devices.

I have a user-level multi-plexing driver which allocates up to 8 pty pair's
and select()'s on the master fd's with terminal session's on the slave.
The slave processes are managed by a separate process.

Does anyone know the tidiest way to handle the two types of PTY driver
given that either could be installed.

I have seen the openpty(3) call, the problem is my driver doesn't
open the slave side, I get the impression that openpty() opens
both sides for you, I don't really want to close the slavefd every
time I call openpty().  According to the documentation it uses
BSD style devices, what do I do if I have my system configured
to use Sys V devices?

Do I have to ascertain what is being used and open the relevant clone
driver by hand.  If I use ptmx (Sys V) do I have to use 
slavename()/unlockpt()/grantpt() to get the slavename and push on the 
necessary STREAMS modules to give me the necessary terminal characteristics?

Can anyone offer any useful advice?

Thanks,

Jim.
--
         VISIONWARE LTD, 57 Cardigan Lane, LEEDS LS4 2LE, England
  Tel +44 532 788858 x219.  Fax +44 532 304676.  Email jim@visionware.co.uk
------------ "VisionWare:   The home of DOS/SQL/UNIX/X integration" -----------


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1994-10-28 16:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-10-28 16:55 DEC OSF/1 Pseudo-tty's Jim Musgrave

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox