| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
| |
Without releasing the GIL calls to termios APIs might block the entire interpreter.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add termios.tcgetwinsize(), termios.tcsetwinsize(). Update docs.
* Add TIOCGSIZE support to termios.tcgetwinsize()
* Add TIOCSSIZE support to termios.tcsetwinsize()
Authored-by: Soumendra Ganguly <soumendraganguly@gmail.com>
* termios.tcgetwinsize() and termios.tcsetwinsize() should return/accept two-item tuples instead of lists.
* Refactor tcsetwinsize to share common code and accept any two item sequence, with overflow checking.
Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google]
|
| |
|
| |
|
|
|
|
| |
"fildes". (GH-22620)
|
| |
|
| |
|
|
|
|
| |
functions (GH-19017)
|
|
|
|
|
|
| |
Co-authored-by: Andrey Smirnov <andrew.smirnov@gmail.com>.
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
|
|
|
|
| |
Make the termios module PEP-384 compatible.
|
| |
|
| |
|
| |
|
|
|
|
| |
possible. Patch is writen with Coccinelle.
|
| |
|
|
|
|
| |
Patch by Rodolpho Eckhardt.
|
|
|
|
|
|
|
|
|
|
| |
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines
Untabify C files. Will watch buildbots.
........
|
|
|
|
|
|
|
|
|
|
| |
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75999 | gregory.p.smith | 2009-10-31 14:23:39 -0700 (Sat, 31 Oct 2009) | 2 lines
Define TCSASOFT if the flag exists.
........
|
| |
|
| |
|
|
|
|
| |
in intobject.h
|
|
|
|
| |
Probably should be backported.
|
| |
|
|
|
|
|
| |
TIOCGPGRP and many other definitions come from bsdtty.h, so it needs
to be included at least on HPUX.
|
|
|
|
|
|
| |
for Py_Main().
Thanks to Kalle Svensson and Skip Montanaro for the patches.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Modules/
_hotshot.c
dbmmodule.c
fcntlmodule.c
main.c
pwdmodule.c
readline.c
selectmodule.c
signalmodule.c
termios.c
timemodule.c
unicodedata.c
|
| |
|
| |
|
|
|
|
|
|
| |
Protect several more uses of constants with #ifdefs; these are necessary on
(at least) SCO OpenServer 5. Fixes a non-SF-submitted bugreport by Michael
Kent.
|
|
|
|
| |
on (some versions of ?) AIX.
|
|
|
|
|
|
| |
when #ifdef was needed.
This closes (reallu!) SF bug #417418.
|
|
|
|
|
|
|
|
| |
constants used by other macros from the headers.
Conditionalize VREPRINT and VDISCARD; these are not available on HP-UX.
This closes bug #417418.
|
|
|
|
|
|
|
|
| |
PyObject_AsFileDescriptor() -- it does the same thing everywhere, so
use it the same way everyone else does so that exceptions are
consistent. This means we have less code here, and we do not need to
resort to hackish ways of getting the Python-visible function name to
fdconv().
|
|
|
|
|
|
|
| |
This header does not exist on all Unix flavors; FreeBSD in particular does
not include it.
This closes SF bug #422320.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch does several things to termios:
(1) changes all functions to be METH_VARARGS
(2) changes all functions to be able to take a file object as the
first parameter, as per
http://mail.python.org/pipermail/python-dev/2001-February/012701.html
(3) give better error messages
(4) removes a bunch of comments that just repeat the docstrings
(5) #includes <termio.h> before #including <sys/ioctl.h> so more
#constants are actually #defined.
(6) a couple of docstring tweaks
I have tested this minimally (i.e. it builds, and
doesn't blow up too embarassingly) on OSF1/alpha and
on one of the sf compile farm's solaris boxes, and
rather more comprehansively on my linux/x86 box.
It still needs to be tested on all the other platforms
we build termios on.
This closes the code portion of SF patch #417081.
|
| |
|
|
|
|
|
|
|
| |
Update the docstrings to no longer refer to the obsolete TERMIOS
module.
This is a partial acceptance of SF patch #413419.
|
|
|
|
|
| |
comment it out with an explanation. This makes it easier for someone
who wants the additional symbols to try re-enabling it for their platform.
|
|
|
|
|
|
| |
in the previous patch.
This closes (again!) SF patch #410267.
|
|
|
|
|
|
| |
Add many more constants for some systems.
This closes SF patch #410267.
|
|
|
|
|
|
|
| |
some fairly recent versions have an anaemic selection of terminal-control
symbols.
This closes SF bug #405567.
|
|
|
|
|
|
|
|
|
| |
these can be missing on some (all?) Irix and Tru64 versions.
Protect the CRTSCTS value with a cast; this can be a larger value on
Solaris/SPARC.
This should fix SF tracker items #405092, #405350, and #405355.
|
|
|
|
|
|
|
|
|
|
| |
defined and export both names.
Solaris also does not define CBAUDEX; it is not clear that CBAUDEXT
(which is defined there) is the same thing, so we only protect against
the lack of CBAUDEX.
Reported by Greg V. Wilson.
|
|
|
|
|
|
| |
which does not define all the constants.
This closes SF tracker patch #404924.
|
|
|
|
| |
in this module; no more need for TERMIOS.py.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
and a couple of functions that were missed in the previous batches. Not
terribly tested, but very carefully scrutinized, three times.
All these were found by the little findkrc.py that I posted to python-dev,
which means there might be more lurking. Cases such as this:
long
func(a, b)
long a;
long b; /* flagword */
{
and other cases where the last ; in the argument list isn't followed by a
newline and an opening curly bracket. Regexps to catch all are welcome, of
course ;)
|
| |
|