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).
This commit is contained in:
Antoine Pitrou 2009-05-24 15:40:09 +00:00
parent 4fe3858991
commit d49e375eed
3 changed files with 22 additions and 3 deletions

View file

@ -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;