home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.sysv386:17620 comp.unix.programmer:5773
- Path: sparky!uunet!paladin.american.edu!gatech!destroyer!cs.ubc.ca!utcsri!utgpu!attcan!ncrcan!scocan!larryp
- From: larryp@sco.COM (Larry Philps)
- Newsgroups: comp.unix.sysv386,comp.unix.programmer
- Subject: Re: Accessing clone devices on SCO Unix
- Message-ID: <1992Dec23.134059.1755@sco.COM>
- Date: 23 Dec 92 13:40:59 GMT
- References: <1992Dec18.162621.5910@visionware.co.uk>
- Sender: news@sco.COM (News administration)
- Organization: SCO Canada, Inc.
- Lines: 30
-
- In <1992Dec18.162621.5910@visionware.co.uk> jim@visionware.co.uk (Jim Musgrave) writes:
-
- > 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.
-
- Those routines are in the library /usr/lib/libpt.a on ODT 2.0. There
- are no manual pages for the routines (I am not sure why, but will check),
- however I looked at the code and the routines do what you want.
-
- Enjoy.
-
- ---
- #include <std/disclaimer>
-
- Larry Philps, SCO Canada, Inc.
- Postman: 130 Bloor St. West, 10th floor, Toronto, Ontario. M5S 1N5
- InterNet: larryp@sco.COM
- UUCP: uunet!sco!larryp
- Phone: (416) 922-1937
-