summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-05-24 15:40:09 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-05-24 15:40:09 (GMT)
commitd49e375eedf717c048fe7f803ee347a1572cc968 (patch)
treed2642c53592bb1785ad5755a52cc655d15ee8a74 /Modules
parent4fe3858991581e22e365e51b5770547a0da33e4b (diff)
downloadcpython-d49e375eedf717c048fe7f803ee347a1572cc968.zip
cpython-d49e375eedf717c048fe7f803ee347a1572cc968.tar.gz
cpython-d49e375eedf717c048fe7f803ee347a1572cc968.tar.bz2
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;