summaryrefslogtreecommitdiff
path: root/Modules/fcntlmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions ↵Georg Brandl2010-10-061-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 82798,82805,83659,83977,84015,84018,84141,84264,84326-84327,84480,84482,84484,84530-84531,84553,84619,84915-84916 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82798 | georg.brandl | 2010-07-11 11:23:11 +0200 (So, 11 Jul 2010) | 1 line #6774: explain shutdown() behavior varying with platform. ........ r82805 | georg.brandl | 2010-07-11 11:42:10 +0200 (So, 11 Jul 2010) | 1 line #7935: cross-reference to ast.literal_eval() from eval() docs. ........ r83659 | georg.brandl | 2010-08-03 14:06:29 +0200 (Di, 03 Aug 2010) | 1 line Terminology fix: exceptions are raised, except in generator.throw(). ........ r83977 | georg.brandl | 2010-08-13 17:10:49 +0200 (Fr, 13 Aug 2010) | 1 line Fix copy-paste error. ........ r84015 | georg.brandl | 2010-08-14 17:44:34 +0200 (Sa, 14 Aug 2010) | 1 line Add some maintainers. ........ r84018 | georg.brandl | 2010-08-14 17:48:49 +0200 (Sa, 14 Aug 2010) | 1 line Typo fix. ........ r84141 | georg.brandl | 2010-08-17 16:11:59 +0200 (Di, 17 Aug 2010) | 1 line Markup nits. ........ r84264 | georg.brandl | 2010-08-22 22:23:38 +0200 (So, 22 Aug 2010) | 1 line #9649: fix default value description. ........ r84326 | georg.brandl | 2010-08-26 16:30:15 +0200 (Do, 26 Aug 2010) | 1 line #9689: add links from overview to in-depth class API descriptions. ........ r84327 | georg.brandl | 2010-08-26 16:30:56 +0200 (Do, 26 Aug 2010) | 1 line #9681: typo. ........ r84480 | georg.brandl | 2010-09-04 00:33:27 +0200 (Sa, 04 Sep 2010) | 1 line More inclusive title. ........ r84482 | georg.brandl | 2010-09-04 00:40:02 +0200 (Sa, 04 Sep 2010) | 1 line #9760: clarify what context expression is. ........ r84484 | georg.brandl | 2010-09-04 00:49:27 +0200 (Sa, 04 Sep 2010) | 1 line Fix missing word. ........ r84530 | georg.brandl | 2010-09-05 19:07:12 +0200 (So, 05 Sep 2010) | 1 line #9747: fix copy-paste error in getresgid() doc. ........ r84531 | georg.brandl | 2010-09-05 19:09:18 +0200 (So, 05 Sep 2010) | 1 line #9776: fix some spacing. ........ r84553 | georg.brandl | 2010-09-06 08:49:07 +0200 (Mo, 06 Sep 2010) | 1 line #9780: both { and } are not valid fill characters. ........ r84619 | georg.brandl | 2010-09-08 12:43:45 +0200 (Mi, 08 Sep 2010) | 1 line Add Lukasz. ........ r84915 | georg.brandl | 2010-09-20 08:27:02 +0200 (Mo, 20 Sep 2010) | 1 line Fix typo. ........ r84916 | georg.brandl | 2010-09-20 08:29:01 +0200 (Mo, 20 Sep 2010) | 1 line Mention % as string formatting. ........
* Merged revisions 84589 via svnmerge fromAntoine Pitrou2010-09-071-1/+1
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84589 | antoine.pitrou | 2010-09-07 18:30:09 +0200 (mar., 07 sept. 2010) | 5 lines Issue #9758: When fcntl.ioctl() was called with mutable_flag set to True, and the passed buffer was exactly 1024 bytes long, the buffer wouldn't be updated back after the system call. Original patch by Brian Brazil. ........
* Untabify C files. Will watch buildbots.Antoine Pitrou2010-05-091-340/+340
|
* Issue #1309352: fcntl now converts its third arguments to a C `long` ratherAntoine Pitrou2009-05-241-2/+2
| | | | | than an int, which makes some operations possible under 64-bit Linux (e.g. DN_MULTISHOT with F_NOTIFY).
* Patch by Ian Charnas from issue 3517.Guido van Rossum2008-08-071-0/+5
| | | | Add F_FULLFSYNC if it exists (OS X only so far).
* This reverts r63675 based on the discussion in this thread:Gregory P. Smith2008-06-091-3/+3
| | | | | | | http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread.
* Renamed PyString to PyBytesChristian Heimes2008-05-261-3/+3
|
* #2890: support os.O_ASYNC and fcntl.FASYNC.Georg Brandl2008-05-161-0/+3
|
* Prevent ioctl op codes from being sign extended from int to unsigned longGregory P. Smith2008-03-191-5/+14
| | | | | | | | | | | when used on platforms that actually define ioctl as taking an unsigned long. (the BSDs and OS X / Darwin) Adds a unittest for fcntl.ioctl that tests what happens with both positive and negative numbers. This was done because of issue1471 but I'm not able to reproduce -that- problem in the first place on Linux 32bit or 64bit or OS X 10.4 & 10.5 32bit or 64 bit.
* Doc patch #1730 from Robin Stocker; minor corrections mostly to os.rst.Georg Brandl2008-01-051-1/+1
|
* Tweak wordingAndrew M. Kuchling2006-07-291-1/+1
|
* Fix function name in error msgNeal Norwitz2006-07-121-1/+1
|
* 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
|