home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / hp / 9257 < prev    next >
Encoding:
Text File  |  1992-08-13  |  1.6 KB  |  38 lines

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!uunet!usc!rpi!usenet.coe.montana.edu!news.u.washington.edu!davidb
  3. From: davidb@ce.washington.edu (David W. Barts)
  4. Subject: Re: pty programing question
  5. Message-ID: <davidb.713731041@atlas>
  6. Sender: news@u.washington.edu (USENET News System)
  7. Organization: University of Washington
  8. References: <172@bwilab3.UUCP>
  9. Date: Thu, 13 Aug 1992 18:37:21 GMT
  10. Lines: 26
  11.  
  12. chris@bwilab3.UUCP (Chris Curtin) writes:
  13.  
  14. >So my question: Does anyone know how PTYOPEN(3X) gets a pty? HP does not
  15. >document the pty interface for HP-UX. I pressed the HP support engineer
  16. >and he said that the HP-UX pty interface is probably standard AT&T. Does 
  17. >anyone have any documentation of this interface?
  18.  
  19. >I am running HP-UX 8.0, 8.02 and 8.07 on 9000 series [78]00.
  20.  
  21. I find the claim "HP does not document the pty interface..." a bit
  22. hard to believe, since typing `man 7 pty' will result in a dozen
  23. pages of just such documentation.  In fact, I've used HP's pty man
  24. page while programming with pty's on other systems (HP's is better
  25. written and more complete than most).
  26.  
  27. The standard way to grab a pty pair is not explicitly mentioned in
  28. the man page, but it does drop a very strong hint when it mentions
  29. "Only one open to the master side of a pty is permitted."  Basically,
  30. you step through all possible master pty names, and try to open
  31. each one.  When open returns successfully, you have the master side
  32. of your pty pair.
  33.  
  34. --
  35. David Barts  N5JRN                      UW Civil Engineering, FX-10
  36. davidb@ce.washington.edu                Seattle, WA  98195
  37.     Sun OpenWindows...  the JCL of graphical user interfaces.
  38.