This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Add support for openpty(3) and forkpty(3), when available.
Type: Stage:
Components: None Versions:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: fdrake Nosy List: fdrake, gvanrossum, twouters
Priority: normal Keywords: patch

Created on 2000-06-26 19:13 by twouters, last changed 2022-04-10 16:02 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
None twouters, 2000-06-26 19:13 None
Messages (5)
msg32840 - (view) Author: Thomas Wouters (twouters) * (Python committer) Date: 2000-06-26 19:13
 
msg32841 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2000-06-28 16:06
I've asked Thomas about test cases that exercise this patch.
msg32842 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2000-06-28 16:43
Checked in; Thomas knows he owes some test cases.
msg32843 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2000-06-27 01:45
I suppose this won't hurt...
msg32844 - (view) Author: Thomas Wouters (twouters) * (Python committer) Date: 2000-06-26 19:28
This patch adds the openpty() and forkpty() library calls to posixmodule.c, when they are available on the target system. (glibc-2.1-based Linux systems, FreeBSD and BSDI at least, probably the other BSD-based systems as well.)

Lib/pty.py is also rewritten to use openpty when available, but falls back to the old SGI method or the 'manual' BSD open-a-pty code. Openpty() is necessary to use the Unix98 pty's under Linux 2.2, or when using non-standard tty names under (at least) BSDI, which is why I needed it, myself ;-)
forkpty() is included for symmetry.

The next patch includes suggested Doc-changes, but I'm not a TeX-y and haven't tested these additions.

See http://www.python.org/pipermail/patches/2000-June/000896.html and http://www.python.org/pipermail/patches/2000-June/000962.html for more information.
History
Date User Action Args
2022-04-10 16:02:01adminsetgithub: 32459
2000-06-26 19:13:10twouterscreate