From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,8ece86f5d9e826cc,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-10-28 10:59:36 PST Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!pipex!visionware.co.uk!jim From: jim@visionware.co.uk (Jim Musgrave) Newsgroups: comp.unix.osf.osf1 Subject: DEC OSF/1 Pseudo-tty's Date: 28 Oct 1994 16:55:09 GMT Organization: Visionware Ltd., Leeds, UK Message-ID: <38radd$2fp@wol.visionware.co.uk> NNTP-Posting-Host: poohbear.visionware.co.uk X-Newsreader: TIN [version 1.2 PL1] 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" -----------