home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / sysv386 / 17520 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.7 KB

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