summaryrefslogtreecommitdiffstats
path: root/Modules/termios.c
Commit message (Collapse)AuthorAgeFilesLines
* gh-119770: Make termios ioctl() constants positive (#119840)Victor Stinner2024-05-311-3/+15
|
* gh-117557: Improve error messages when a string, bytes or bytearray of ↵Serhiy Storchaka2024-05-281-1/+1
| | | | length 1 are expected (GH-117631)
* gh-116322: Add Py_mod_gil module slot (#116882)Brett Simmers2024-05-031-0/+1
| | | | | | | | | | | | | | This PR adds the ability to enable the GIL if it was disabled at interpreter startup, and modifies the multi-phase module initialization path to enable the GIL when loading a module, unless that module's spec includes a slot indicating it can run safely without the GIL. PEP 703 called the constant for the slot `Py_mod_gil_not_used`; I went with `Py_MOD_GIL_NOT_USED` for consistency with gh-104148. A warning will be issued up to once per interpreter for the first GIL-using module that is loaded. If `-v` is given, a shorter message will be printed to stderr every time a GIL-using module is loaded (including the first one that issues a warning).
* gh-85283: Build termios extension with the limited C API (#116928)Victor Stinner2024-03-171-16/+22
|
* gh-85984: Add _POSIX_VDISABLE from unistd.h to termios module. (#114985)Soumendra Ganguly2024-02-111-3/+4
| | | | Signed-off-by: Soumendra Ganguly <soumendraganguly@gmail.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* gh-114492: Initialize struct termios before calling tcgetattr() (GH-114495)Serhiy Storchaka2024-01-231-0/+2
| | | On Alpine Linux it could leave some field non-initialized.
* gh-51944: fix type and missing addition in gh-112823 (#112996)Ronald Oussoren2023-12-121-1/+4
| | | | Fix the defition of VDSUSP and add CCTS_OFLOW (which was mentioned in NEWS, but not actually addded)
* gh-51944: Add missing macOS constants to termios (#112823)Ronald Oussoren2023-12-071-0/+61
| | | | | | | | | | | * gh-51944: Add some macOS constants to termios This changeset adds all public constants in <termio.h> and <sys/termios.h> on macOS that weren't present already. Based on the macOS 14.2 SDK Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-110365: Fix error overwrite in `termios.tcsetattr` (#110366)Nikita Sobolev2023-10-051-13/+26
| | | Co-authored-by: Erlend E. Aasland <erlend@python.org>
* gh-110260: Check for PyList_SetItem() errors in termios module (GH-110261)Nikita Sobolev2023-10-041-17/+32
|
* gh-108765: include <unistd.h> in termios.c on Solaris (#108825)Jakub Kulík2023-09-021-0/+3
|
* gh-108765: Remove old prototypes from pyport.h (#108782)Victor Stinner2023-09-021-3/+10
| | | | | | | Move prototypes of gethostname(), _getpty() and struct termios from pyport.h to the C code using them: posixmodule.c, socketmodule.c and termios.c. Replace "#ifdef SOLARIS" with "#ifdef __sun".
* gh-106320: Remove private _PyLong_FileDescriptor_Converter() (#108503)Victor Stinner2023-08-261-0/+4
| | | | | | | | | Move the private _PyLong converter functions to the internal C API * _PyLong_FileDescriptor_Converter(): moved to pycore_fileutils.h * _PyLong_Size_t_Converter(): moved to pycore_long.h Argument Clinic now emits includes for pycore_fileutils.h and pycore_long.h when these functions are used.
* gh-86493: Modernize modules initialization code (GH-106858)Serhiy Storchaka2023-07-251-6/+1
| | | | | Use PyModule_Add() or PyModule_AddObjectRef() instead of soft deprecated PyModule_AddObject().
* Trim trailing whitespace and test on CI (#104275)Hugo van Kemenade2023-05-081-2/+2
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-99113: Add Py_MOD_PER_INTERPRETER_GIL_SUPPORTED (gh-104205)Eric Snow2023-05-051-0/+1
| | | Here we are doing no more than adding the value for Py_mod_multiple_interpreters and using it for stdlib modules. We will start checking for it in gh-104206 (once PyInterpreterState.ceval.own_gil is added in gh-104204).
* GH-97001: Release GIL in termios extension (#99503)Ronald Oussoren2022-11-221-12/+76
| | | Without releasing the GIL calls to termios APIs might block the entire interpreter.
* Remove trailing spaces. (GH-28706)Serhiy Storchaka2021-10-031-1/+1
|
* bpo-41818: Add termios.tcgetwinsize(), termios.tcsetwinsize(). (GH-23686)Soumendra Ganguly2021-08-271-0/+158
| | | | | | | | | | | | * 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]
* bpo-44854: Remove trailing whitespaces (GH-27689)Serhiy Storchaka2021-08-091-1/+1
|
* bpo-20184: Convert termios to Argument Clinic. (GH-22693)Serhiy Storchaka2020-10-181-99/+103
|
* bpo-41985: Add _PyLong_FileDescriptor_Converter and AC converter for ↵Serhiy Storchaka2020-10-091-18/+6
| | | | "fildes". (GH-22620)
* bpo-1635741: Port the termios to multi-phase init (PEP 489) (GH-22139)Mohamed Koubaa2020-09-081-81/+101
|
* Update the comment of termios.c (#21886)Soumendra Ganguly2020-08-161-1/+1
|
* bpo-39968: Convert extension modules' macros of get_module_state() to inline ↵Hai Shi2020-03-161-5/+13
| | | | functions (GH-19017)
* bpo-28367: Add additional baud rates for termios (GH-13142)Anthony Shaw2020-01-041-0/+33
| | | | | | Co-authored-by: Andrey Smirnov <andrew.smirnov@gmail.com>. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* bpo-38071: Make termios PEP-384 compatible (GH-15785)Dino Viehland2019-09-101-20/+47
| | | | Make the termios module PEP-384 compatible.
* Fix typos mostly in comments, docs and test names (GH-15209)Min ho Kim2019-08-301-1/+1
|
* Fix a possible "double decref" in termios.tcgetattr(). (GH-10194)Zackery Spytz2018-10-291-2/+2
|
* bpo-32660: Solaris should support constants like termios' FIONREAD (#5328)jcea2018-01-281-0/+6
|
* Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE whereverSerhiy Storchaka2017-01-231-10/+5
| | | | possible. Patch is writen with Coccinelle.
* Issue #11495: OSF support is eliminated. It was deprecated in Python 3.2Jesus Cea2011-03-141-5/+0
|
* Issue #8078: Add constants for higher baud rates in the termios module.Antoine Pitrou2010-11-201-0/+37
| | | | Patch by Rodolpho Eckhardt.
* Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou2010-05-091-452/+452
| | | | | | | | | | 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. ........
* Merged revisions 75999 via svnmerge fromGregory P. Smith2009-11-011-0/+3
| | | | | | | | | | 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. ........
* Implement PEP 3121: new module initialization and finalization API.Martin v. Löwis2008-06-111-5/+15
|
* Renamed PyString to PyBytesChristian Heimes2008-05-261-3/+3
|
* Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases ↵Christian Heimes2007-12-021-16/+16
| | | | in intobject.h
* Check return result from Py_InitModule*(). This API can fail.Neal Norwitz2006-01-191-0/+2
| | | | Probably should be backported.
* Patch #787189: Explicitly define CTRL on SGI.Martin v. Löwis2003-10-311-0/+6
|
* Get test_ioctl to pass on HPUX 11.Neal Norwitz2003-05-231-0/+4
| | | | | TIOCGPGRP and many other definitions come from bsdtty.h, so it needs to be included at least on HPUX.
* Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototypeMark Hammond2002-08-021-1/+1
| | | | | | for Py_Main(). Thanks to Kalle Svensson and Skip Montanaro for the patches.
* Patch #568124: Add doc string macros.Martin v. Löwis2002-06-131-21/+21
|
* OS/2 EMX port changes (Modules part of patch #450267):Andrew MacIntyre2002-03-031-0/+4
| | | | | | | | | | | | | | | Modules/ _hotshot.c dbmmodule.c fcntlmodule.c main.c pwdmodule.c readline.c selectmodule.c signalmodule.c termios.c timemodule.c unicodedata.c
* Use PyModule_AddObject() instead of accessing the module dict directly.Fred Drake2002-02-141-4/+6
|
* Include <unistd.h> in Python.h. Fixes #500924.Martin v. Löwis2002-01-121-4/+0
|
* Forward-port revision 2.24.2.4 from the release21-maint branch:Thomas Wouters2001-06-151-0/+10
| | | | | | 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.
* Protect the use of the VWERASE symbol by an #ifdef, it's apparently missingThomas Wouters2001-06-111-0/+2
| | | | on (some versions of ?) AIX.
* Correct the sense of a couple of conditional compilations -- used #ifndefFred Drake2001-05-221-2/+2
| | | | | | when #ifdef was needed. This closes (reallu!) SF bug #417418.
* Include sys/modem.h if we have it; this is needed on HP-UX to provideFred Drake2001-05-111-0/+12
| | | | | | | | constants used by other macros from the headers. Conditionalize VREPRINT and VDISCARD; these are not available on HP-UX. This closes bug #417418.