Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-119770: Make termios ioctl() constants positive (#119840) | Victor Stinner | 2024-05-31 | 1 | -3/+15 |
| | |||||
* | gh-117557: Improve error messages when a string, bytes or bytearray of ↵ | Serhiy Storchaka | 2024-05-28 | 1 | -1/+1 |
| | | | | length 1 are expected (GH-117631) | ||||
* | gh-116322: Add Py_mod_gil module slot (#116882) | Brett Simmers | 2024-05-03 | 1 | -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 Stinner | 2024-03-17 | 1 | -16/+22 |
| | |||||
* | gh-85984: Add _POSIX_VDISABLE from unistd.h to termios module. (#114985) | Soumendra Ganguly | 2024-02-11 | 1 | -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 Storchaka | 2024-01-23 | 1 | -0/+2 |
| | | | On Alpine Linux it could leave some field non-initialized. | ||||
* | gh-51944: fix type and missing addition in gh-112823 (#112996) | Ronald Oussoren | 2023-12-12 | 1 | -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 Oussoren | 2023-12-07 | 1 | -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 Sobolev | 2023-10-05 | 1 | -13/+26 |
| | | | Co-authored-by: Erlend E. Aasland <erlend@python.org> | ||||
* | gh-110260: Check for PyList_SetItem() errors in termios module (GH-110261) | Nikita Sobolev | 2023-10-04 | 1 | -17/+32 |
| | |||||
* | gh-108765: include <unistd.h> in termios.c on Solaris (#108825) | Jakub Kulík | 2023-09-02 | 1 | -0/+3 |
| | |||||
* | gh-108765: Remove old prototypes from pyport.h (#108782) | Victor Stinner | 2023-09-02 | 1 | -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 Stinner | 2023-08-26 | 1 | -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 Storchaka | 2023-07-25 | 1 | -6/+1 |
| | | | | | Use PyModule_Add() or PyModule_AddObjectRef() instead of soft deprecated PyModule_AddObject(). | ||||
* | Trim trailing whitespace and test on CI (#104275) | Hugo van Kemenade | 2023-05-08 | 1 | -2/+2 |
| | | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | ||||
* | gh-99113: Add Py_MOD_PER_INTERPRETER_GIL_SUPPORTED (gh-104205) | Eric Snow | 2023-05-05 | 1 | -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 Oussoren | 2022-11-22 | 1 | -12/+76 |
| | | | Without releasing the GIL calls to termios APIs might block the entire interpreter. | ||||
* | Remove trailing spaces. (GH-28706) | Serhiy Storchaka | 2021-10-03 | 1 | -1/+1 |
| | |||||
* | bpo-41818: Add termios.tcgetwinsize(), termios.tcsetwinsize(). (GH-23686) | Soumendra Ganguly | 2021-08-27 | 1 | -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 Storchaka | 2021-08-09 | 1 | -1/+1 |
| | |||||
* | bpo-20184: Convert termios to Argument Clinic. (GH-22693) | Serhiy Storchaka | 2020-10-18 | 1 | -99/+103 |
| | |||||
* | bpo-41985: Add _PyLong_FileDescriptor_Converter and AC converter for ↵ | Serhiy Storchaka | 2020-10-09 | 1 | -18/+6 |
| | | | | "fildes". (GH-22620) | ||||
* | bpo-1635741: Port the termios to multi-phase init (PEP 489) (GH-22139) | Mohamed Koubaa | 2020-09-08 | 1 | -81/+101 |
| | |||||
* | Update the comment of termios.c (#21886) | Soumendra Ganguly | 2020-08-16 | 1 | -1/+1 |
| | |||||
* | bpo-39968: Convert extension modules' macros of get_module_state() to inline ↵ | Hai Shi | 2020-03-16 | 1 | -5/+13 |
| | | | | functions (GH-19017) | ||||
* | bpo-28367: Add additional baud rates for termios (GH-13142) | Anthony Shaw | 2020-01-04 | 1 | -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 Viehland | 2019-09-10 | 1 | -20/+47 |
| | | | | Make the termios module PEP-384 compatible. | ||||
* | Fix typos mostly in comments, docs and test names (GH-15209) | Min ho Kim | 2019-08-30 | 1 | -1/+1 |
| | |||||
* | Fix a possible "double decref" in termios.tcgetattr(). (GH-10194) | Zackery Spytz | 2018-10-29 | 1 | -2/+2 |
| | |||||
* | bpo-32660: Solaris should support constants like termios' FIONREAD (#5328) | jcea | 2018-01-28 | 1 | -0/+6 |
| | |||||
* | Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE wherever | Serhiy Storchaka | 2017-01-23 | 1 | -10/+5 |
| | | | | possible. Patch is writen with Coccinelle. | ||||
* | Issue #11495: OSF support is eliminated. It was deprecated in Python 3.2 | Jesus Cea | 2011-03-14 | 1 | -5/+0 |
| | |||||
* | Issue #8078: Add constants for higher baud rates in the termios module. | Antoine Pitrou | 2010-11-20 | 1 | -0/+37 |
| | | | | Patch by Rodolpho Eckhardt. | ||||
* | Recorded merge of revisions 81029 via svnmerge from | Antoine Pitrou | 2010-05-09 | 1 | -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 from | Gregory P. Smith | 2009-11-01 | 1 | -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öwis | 2008-06-11 | 1 | -5/+15 |
| | |||||
* | Renamed PyString to PyBytes | Christian Heimes | 2008-05-26 | 1 | -3/+3 |
| | |||||
* | Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases ↵ | Christian Heimes | 2007-12-02 | 1 | -16/+16 |
| | | | | in intobject.h | ||||
* | Check return result from Py_InitModule*(). This API can fail. | Neal Norwitz | 2006-01-19 | 1 | -0/+2 |
| | | | | Probably should be backported. | ||||
* | Patch #787189: Explicitly define CTRL on SGI. | Martin v. Löwis | 2003-10-31 | 1 | -0/+6 |
| | |||||
* | Get test_ioctl to pass on HPUX 11. | Neal Norwitz | 2003-05-23 | 1 | -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 prototype | Mark Hammond | 2002-08-02 | 1 | -1/+1 |
| | | | | | | for Py_Main(). Thanks to Kalle Svensson and Skip Montanaro for the patches. | ||||
* | Patch #568124: Add doc string macros. | Martin v. Löwis | 2002-06-13 | 1 | -21/+21 |
| | |||||
* | OS/2 EMX port changes (Modules part of patch #450267): | Andrew MacIntyre | 2002-03-03 | 1 | -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 Drake | 2002-02-14 | 1 | -4/+6 |
| | |||||
* | Include <unistd.h> in Python.h. Fixes #500924. | Martin v. Löwis | 2002-01-12 | 1 | -4/+0 |
| | |||||
* | Forward-port revision 2.24.2.4 from the release21-maint branch: | Thomas Wouters | 2001-06-15 | 1 | -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 missing | Thomas Wouters | 2001-06-11 | 1 | -0/+2 |
| | | | | on (some versions of ?) AIX. | ||||
* | Correct the sense of a couple of conditional compilations -- used #ifndef | Fred Drake | 2001-05-22 | 1 | -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 provide | Fred Drake | 2001-05-11 | 1 | -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. |