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