summaryrefslogtreecommitdiff
path: root/Modules/fcntlmodule.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-05-24 15:46:13 +0000
committerAntoine Pitrou <solipsis@pitrou.net>2009-05-24 15:46:13 +0000
commit61f77b57fdfcc8a630667dda3cbb8c5ac502f438 (patch)
treed05b378ce8aa5c1ad19daa86db92a9c9245db8a9 /Modules/fcntlmodule.c
parent1ef7f6e1834cf8d5bc462f3f5845e294a7d54220 (diff)
downloadcpython-git-61f77b57fdfcc8a630667dda3cbb8c5ac502f438.tar.gz
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/fcntlmodule.c')
-rw-r--r--Modules/fcntlmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c
index 5331ea8c4d..683c5b6d9f 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;