Bug report : fcntlmodule.so (fonction ioctl) python 1.5.2

David Berthelot berthelo at lirmm.fr
Fri Sep 24 09:37:50 EDT 1999


Hi, 

i think, i found a bug (and a fix).

In the "fcntlmodule.so", the "ioctl" function does not work with 
an optional int parameter but currently it works only with an 
optional string parameter.

So i think that the line number 76 of fcntlmodule.c :
76: ret = ioctl(fd, code, arg);

should be replaced by:
76: ret = ioctl(fd, code, &arg);

I think it does it, doesn't it ? 
Yes, unlike fcntl, ioctl uses a pointer for its 3rd arg.

Hope it can help.

David.
--
- - --
David Berthelot            Contact at:
3rd year PhD Student       | LIRMM
Email: berthelo at lirmm.fr   | 161, Rue Ada
Tel  : 33 4 67 418 577     | 34392 MONTPELLIER Cedex 5
Fax  : 33 4 67 418 500     | FRANCE




More information about the Python-list mailing list