summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-05-24 15:41:43 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-05-24 15:41:43 (GMT)
commit6c3064beed67b4cd5dc23264ed9520eaeec4cb6d (patch)
tree99c43ef5c8964832ca6b48d4156e4a29219f3489 /Modules
parent7a458e8f64720991f7bf1cb0fee115aa14c5a3ee (diff)
downloadcpython-6c3064beed67b4cd5dc23264ed9520eaeec4cb6d.zip
cpython-6c3064beed67b4cd5dc23264ed9520eaeec4cb6d.tar.gz
cpython-6c3064beed67b4cd5dc23264ed9520eaeec4cb6d.tar.bz2
Merged revisions 72887 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r72887 | antoine.pitrou | 2009-05-24 17:40:09 +0200 (dim., 24 mai 2009) | 6 lines Issue #1309352: fcntl now converts its third arguments to a C `long` rather than an int, which makes some operations possible under 64-bit Linux (e.g. DN_MULTISHOT with F_NOTIFY). ........
Diffstat (limited to 'Modules')
-rw-r--r--Modules/fcntlmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c
index ab7f22d..a333a34 100644
--- a/Modules/fcntlmodule.c
+++ b/Modules/fcntlmodule.c
@@ -34,7 +34,7 @@ fcntl_fcntl(PyObject *self, PyObject *args)
{
int fd;
int code;
- int arg;
+ long arg;
int ret;
char *str;
Py_ssize_t len;
@@ -61,7 +61,7 @@ fcntl_fcntl(PyObject *self, PyObject *args)
PyErr_Clear();
arg = 0;
if (!PyArg_ParseTuple(args,
- "O&i|i;fcntl requires a file or file descriptor,"
+ "O&i|l;fcntl requires a file or file descriptor,"
" an integer and optionally a third integer or a string",
conv_descriptor, &fd, &code, &arg)) {
return NULL;