summaryrefslogtreecommitdiffstats
path: root/Modules/termios.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* fdconv(): Do not second guess the error condition returned byFred Drake2001-05-091-37/+4
| | | | | | | | 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().
* Only import termio.h on OSF, and add a comment about why it is needed there.Fred Drake2001-05-091-0/+4
| | | | | | | This header does not exist on all Unix flavors; FreeBSD in particular does not include it. This closes SF bug #422320.
* Michael Hudson <mwh21@cam.ac.uk>:Fred Drake2001-05-071-53/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Unixware 7 support by Billy G. Allie (SF patch 413011)Guido van Rossum2001-04-111-0/+4
|
* Michael Hudson <mwh21@cam.ac.uk>:Fred Drake2001-04-091-13/+10
| | | | | | | Update the docstrings to no longer refer to the obsolete TERMIOS module. This is a partial acceptance of SF patch #413419.
* Effectively revert the previous change: leave the new #include in, butFred Drake2001-04-051-0/+3
| | | | | 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.
* Add an #include of sys/ioctl.h to pick up a lot of the constants supportedFred Drake2001-04-041-0/+1
| | | | | | in the previous patch. This closes (again!) SF patch #410267.
* Michael Hudson <mwh21@cam.ac.uk>:Fred Drake2001-03-261-0/+329
| | | | | | Add many more constants for some systems. This closes SF patch #410267.
* Wrap several more of the constants in #ifdef/#endif for FreeBSD; at leastFred Drake2001-03-031-0/+58
| | | | | | | some fairly recent versions have an anaemic selection of terminal-control symbols. This closes SF bug #405567.
* Add more protection around the VSWTC/VSWTCH, CRTSCTS, and XTABS symbols;Fred Drake2001-03-021-1/+9
| | | | | | | | | 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.
* Solaris defines VSWTCH instead of VSWTC; carefully make sure both areFred Drake2001-03-011-0/+11
| | | | | | | | | | 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.
* Revised version of Jason Tishler's patch to make this compile on Cygwin,Fred Drake2001-03-011-0/+10
| | | | | | which does not define all the constants. This closes SF tracker patch #404924.
* Define the constants needed for working with these functions directlyFred Drake2001-02-271-0/+158
| | | | in this module; no more need for TERMIOS.py.
* Use METH_OLDARGS instead of numeric constant 0 in method def. tablesAndrew M. Kuchling2000-08-031-6/+12
|
* Bunch of minor ANSIfications: 'void initfunc()' -> 'void initfunc(void)',Thomas Wouters2000-07-211-1/+1
| | | | | | | | | | | | | | | | | | 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 ;)
* ANSI-ficationPeter Schneider-Kamp2000-07-101-18/+6
|
* Should include "Python.h", not <Python.h> -- it's not a standardGuido van Rossum1999-01-141-1/+1
| | | | header file (yet :-).
* Add DL_EXPORT() to all modules that could possibly be usedGuido van Rossum1998-12-041-1/+1
| | | | on BeOS or Windows.
* Changes for BeOS, QNX and long long, by Chris Herborth.Guido van Rossum1998-08-041-0/+4
|
* In tcsetattr(), first initialize the mode structure by callingGuido van Rossum1998-06-121-0/+3
| | | | | tcgetattr(). This seems to be the only correct way to cope with platform-specific structure members...
* Doc strings added by Mitch Chapman.Guido van Rossum1998-03-031-7/+67
|
* Apply two changes, systematically:Guido van Rossum1997-10-011-4/+1
| | | | | | | | | | | | | | | | | (1) Use PyErr_NewException("module.class", NULL, NULL) to create the exception object. (2) Remove all calls to Py_FatalError(); instead, return or ignore the errors -- the import code now checks PyErr_Occurred() after calling a module's init function, so it's no longer a fatal error for the initialization to fail. Also did some small cleanups, e.g. removed unnecessary test for "already initialized" from initfpectl(), and unified initposix()/initnt(). I haven't checked this very thoroughly, so while the changes are pretty trivial -- beware of untested code!
* Add 'return' keyword before error calls.Guido van Rossum1997-07-171-8/+8
|
* The usual return-value and memory management checks. I'm not planningBarry Warsaw1997-01-101-10/+16
| | | | | a test for this module though (it does compile at least on Solaris 2.5)
* Fix operator priority bug found thanks to gcc -Wall.Guido van Rossum1996-12-101-1/+1
|
* * various modules: #include "Python.h" and remove most remporaryGuido van Rossum1994-09-141-16/+1
| | | | renaming hacks
* Steen Lumholt's termios interface.Guido van Rossum1994-09-121-0/+258