home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / sysv386 / 17620 < prev    next >
Encoding:
Text File  |  1992-12-24  |  1.6 KB  |  43 lines

  1. Xref: sparky comp.unix.sysv386:17620 comp.unix.programmer:5773
  2. Path: sparky!uunet!paladin.american.edu!gatech!destroyer!cs.ubc.ca!utcsri!utgpu!attcan!ncrcan!scocan!larryp
  3. From: larryp@sco.COM (Larry Philps)
  4. Newsgroups: comp.unix.sysv386,comp.unix.programmer
  5. Subject: Re: Accessing clone devices on SCO Unix
  6. Message-ID: <1992Dec23.134059.1755@sco.COM>
  7. Date: 23 Dec 92 13:40:59 GMT
  8. References: <1992Dec18.162621.5910@visionware.co.uk>
  9. Sender: news@sco.COM (News administration)
  10. Organization: SCO Canada, Inc.
  11. Lines: 30
  12.  
  13. In <1992Dec18.162621.5910@visionware.co.uk> jim@visionware.co.uk (Jim Musgrave) writes:
  14.  
  15. > Hi everyone.
  16. > I Have SCO Unix Release 4.1.  I would like to make use of the 
  17. > clone device driver (/dev/ptmx) to access the STREAMS based
  18. > pseudo-tty's.  
  19. > Issuing an open on a clone device gives you the file descriptor
  20. > of the master side which you can then use to get back the name of the slave.
  21. > On SVR4 there are routines such as ptsname, unlockpt and grantpt, which,
  22. > when given the file descriptor of the master, will return the name of
  23. > the corresponding slave device, unlock it and change the ownership.
  24. > Does any one know if there are any equivalent routines under SCO.
  25.  
  26. Those routines are in the library /usr/lib/libpt.a on ODT 2.0.  There
  27. are no manual pages for the routines (I am not sure why, but will check),
  28. however I looked at the code and the routines do what you want.
  29.  
  30. Enjoy.
  31.  
  32. ---
  33. #include <std/disclaimer>
  34.  
  35. Larry Philps,     SCO Canada, Inc.
  36. Postman:  130 Bloor St. West, 10th floor, Toronto, Ontario.  M5S 1N5
  37. InterNet: larryp@sco.COM
  38. UUCP:      uunet!sco!larryp
  39. Phone:      (416) 922-1937
  40.