home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.sysv386:17520 comp.unix.programmer:5737
- Path: sparky!uunet!pipex!warwick!uknet!vision!jim
- From: jim@visionware.co.uk (Jim Musgrave)
- Newsgroups: comp.unix.sysv386,comp.unix.programmer
- Subject: Accessing clone devices on SCO Unix
- Message-ID: <1992Dec18.162621.5910@visionware.co.uk>
- Date: 18 Dec 92 16:26:21 GMT
- Sender: jim@visionware.co.uk (Jim Musgrave)
- Organization: VisionWare Ltd., Leeds, UK
- Lines: 32
-
- Hi everyone.
-
- I Have SCO Unix Release 4.1. I would like to make use of the
- clone device driver (/dev/ptmx) to access the STREAMS based
- pseudo-tty's.
-
- Issuing an open on a clone device gives you the file descriptor
- of the master side which you can then use to get back the name of the slave.
- On SVR4 there are routines such as ptsname, unlockpt and grantpt, which,
- when given the file descriptor of the master, will return the name of
- the corresponding slave device, unlock it and change the ownership.
-
- Does any one know if there are any equivalent routines under SCO.
-
- Getting the name of the slave side is not too painful because you can take
- the minor number of the master side. The naming convention of the slave
- device is such that the minor number forms the suffix, e.g. /dev/pts000 is
- the slave device which corresponds to the master with minor number 0. No
- problem. Unlocking the slave and granting permissions becomes a little more
- involved.
-
- The STREAMS documentation I have for SCO is very thin on the ground, in
- fact non-existent, can anyone give me any pointers on this one.
-
- Thanks,
-
- Jim
-
- --
- VISIONWARE LTD, 57 Cardigan Lane, LEEDS LS4 2LE, England
- Tel +44 532 788858. Fax +44 532 304676. Email jim@visionware.co.uk
- -------------- "VisionWare: The home of DOS/UNIX/X integration" -------------
-