summaryrefslogtreecommitdiffstats
path: root/Modules/fcntlmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* SF bug/patch #1433877: string parameter to ioctl not null terminatedThomas Wouters2006-04-251-5/+10
| | | | | | | The new char-array used in ioctl calls wasn't explicitly NUL-terminated; quite probably the cause for the test_pty failures on Solaris that we circumvented earlier. (I wasn't able to reproduce it with this patch, but it has been somewhat elusive to start with.)
* Explain why we use the unsigned int format for a signed int variable.Thomas Wouters2006-03-021-0/+4
| | | | (Should 'code' be cast to the right pointer type?)
* Make Py_ssize_t-cleanThomas Wouters2006-03-021-2/+4
|
* Check return result from Py_InitModule*(). This API can fail.Neal Norwitz2006-01-191-0/+2
| | | | Probably should be backported.
* Fix a typo. (found by Jong-uk Kim)Hye-Shik Chang2005-07-281-1/+1
|
* This is barry-scott's patch:Michael W. Hudson2005-07-271-3/+3
| | | | | | | | [ 1231069 ] ioctl has problem with -ive request codes by using the 'I' not the 'i' format code to PyArg_ParseTuple(). Backport candidate? Maybe...
* Hear the #error: change the default value of the mutable_arg argumentMichael W. Hudson2004-11-301-11/+1
| | | | to ioctl() and remove the warning when it is not supplied.
* Warn abou missing mutate flag to ioctl. Fixes #696535.Martin v. Löwis2004-06-031-1/+7
|
* Fix typo, refer to proper argument nameNeal Norwitz2003-06-301-1/+1
|
* Simple fix forMichael W. Hudson2003-05-091-0/+5
| | | | [ 733781 ] fcntl fails to build on old RH Linux
* Patch #708495: Port more stuff to OpenVMS.Martin v. Löwis2003-05-031-0/+4
|
* Fix bugMichael W. Hudson2003-03-031-11/+83
| | | | | | | | [ 555817 ] Flawed fcntl.ioctl implementation. with my patch that allows for an array to be mutated when passed as the buffer argument to ioctl() (details complicated by backwards compatibility considerations -- read the docs!).
* Expose I_ constants. Auto-detect stropts.h. Properly configure the slave ↵Martin v. Löwis2003-01-011-1/+38
| | | | terminal.
* 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-12/+10
|
* OS/2 EMX port changes (Modules part of patch #450267):Andrew MacIntyre2002-03-031-1/+7
| | | | | | | | | | | | | | | Modules/ _hotshot.c dbmmodule.c fcntlmodule.c main.c pwdmodule.c readline.c selectmodule.c signalmodule.c termios.c timemodule.c unicodedata.c
* Include <unistd.h> in Python.h. Fixes #500924.Martin v. Löwis2002-01-121-4/+0
|
* Add fcntl.h constants from glibc 2.2.4. Fixes #496171.Martin v. Löwis2001-12-281-0/+70
|
* fcntl.ioctl(): Update error message; necessity noted by Michael Hudson.Fred Drake2001-05-141-1/+3
|
* Fix the fcntl() docstring so the user is not mis-directed to the FCNTLFred Drake2001-05-101-7/+7
| | | | module for useful constants.
* Modify to allow file objects wherever file descriptors are needed.Fred Drake2001-05-091-8/+71
| | | | | | | | This closes SF bug #231328. Added all constants needed to use the functions defined in this module that are not defined elsewhere (the O_* symbols are available in the os module). No additonal modules are needed to use this now.
* Let's keep things portable to non GCC compilers, please.Sjoerd Mullender2001-01-251-22/+22
| | | | You can only use mult-line strings in C if each line ends in \.
* lockf_doc: a much better description of the lockf() function, based onBarry Warsaw2001-01-251-4/+23
| | | | an eyeballing of the code.
* REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum2000-09-011-9/+0
| | | | This should match the situation in the 1.6b1 tree.
* Do the absolute minimal amount of modifications to eradicateBarry Warsaw2000-09-011-4/+0
| | | | | | | | | | | | | | | Py_FatalError() from module initialization functions. The importing mechanism already checks for PyErr_Occurred() after module importation and it Does The Right Thing. Unfortunately, the following either were not compiled or tested by the regression suite, due to issues with my development platform: almodule.c cdmodule.c mpzmodule.c puremodule.c timingmodule.c
* Rob Hooft (Patch #101046): use PyArg_ParseTuple everywhere.Guido van Rossum2000-08-021-21/+27
|
* 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
|
* Change copyright notice - 2nd try.Guido van Rossum2000-06-301-6/+0
|
* Change copyright notice.Guido van Rossum2000-06-301-22/+7
|
* Massive patch by Skip Montanaro to add ":name" to as manyGuido van Rossum2000-02-291-1/+1
| | | | PyArg_ParseTuple() format string arguments as possible.
* Changes for long file support by Steve Clift.Guido van Rossum1999-01-061-9/+33
| | | | He also fixes thread-related evil that caused core dumps.
* Add DL_EXPORT() to all modules that could possibly be usedGuido van Rossum1998-12-041-1/+1
| | | | on BeOS or Windows.
* Doc strings by Chris Petrilli.Guido van Rossum1998-11-231-6/+44
|
* Keep gcc -Wall happyGuido van Rossum1997-08-151-0/+1
|
* Add definitions for symbolic constants LOCK_{EX,NB,SH,UN}.Guido van Rossum1997-07-311-0/+25
|
* Opps, left in a /*#include "modsupport.h"*/Roger E. Masse1996-12-171-1/+0
|
* Grandly renamed.Roger E. Masse1996-12-171-61/+65
|
* Include <sys/ioctl.h>, to keep gcc -Wall happy.Guido van Rossum1996-12-091-0/+1
|
* Keep gcc -Wall happy.Guido van Rossum1996-12-051-2/+8
|
* New permission notice, includes CNRI.Guido van Rossum1996-10-251-13/+20
|
* Added lockf() callGuido van Rossum1996-09-111-0/+45
|
* A fcntl implementation for systems (like Solaris) without flock() call.Guido van Rossum1996-06-111-0/+27
| | | | By Sjoerd.
* Added flock().Guido van Rossum1996-05-231-0/+29
|
* add BGN/END_SAVE macros around fcntl/ioctl callsGuido van Rossum1995-10-071-2/+12
|
* Added 1995 to copyright message.Guido van Rossum1995-01-041-2/+2
| | | | | Setup.in: clarified Tk comments somewhat. structmodule.c: use memcpy() instead of double precision assignment.
* Merge alpha100 branch back to main trunkGuido van Rossum1994-08-011-1/+1
|
* * Changed all copyright messages to include 1993.Guido van Rossum1993-03-291-2/+2
| | | | | | | | | | | | | | | | | * Stubs for faster implementation of local variables (not yet finished) * Added function name to code object. Print it for code and function objects. THIS MAKES THE .PYC FILE FORMAT INCOMPATIBLE (the version number has changed accordingly) * Print address of self for built-in methods * New internal functions getattro and setattro (getattr/setattr with string object arg) * Replaced "dictobject" with more powerful "mappingobject" * New per-type functio tp_hash to implement arbitrary object hashing, and hashobject() to interface to it * Added built-in functions hash(v) and hasattr(v, 'name') * classobject: made some functions static that accidentally weren't; added __hash__ special instance method to implement hash() * Added proper comparison for built-in methods and functions
* struct: pack/unpack binary structs; fcntl: fcntl(), ioctl().Guido van Rossum1992-08-171-0/+146