From: jim@visionware.co.uk (Jim Musgrave)
Subject: DEC OSF/1 Pseudo-tty's
Date: 28 Oct 1994 16:55:09 GMT [thread overview]
Message-ID: <38radd$2fp@wol.visionware.co.uk> (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" -----------
reply other threads:[~1994-10-28 16:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox