jkim 2010-07-19 21:59:28 UTC
FreeBSD ports repository
Modified files:
lang/python24 Makefile
lang/python25 Makefile
lang/python26 Makefile
lang/python31 Makefile
Added files:
lang/python24/files patch-Modules-fcntlmodule.c
lang/python25/files patch-Lib-test-test_ioctl.py
patch-Modules-fcntlmodule.c
lang/python26/files patch-Doc-library-fcntl.rst
patch-Lib-test-test_ioctl.py
patch-Modules-fcntlmodule.c
lang/python31/files patch-Doc-library-fcntl.rst
patch-Lib-test-test_fcntl.py
patch-Lib-test-test_ioctl.py
patch-Lib-test-test_socket.py
patch-Modules-fcntlmodule.c
Log:
Fix fcntl module to accept 'unsigned long' type commands for ioctl(2).
Although POSIX says the type is 'int', all BSD variants (including Mac OS X)
have been using 'unsigned long' type for very long time and its use predates
the standard long enough. For certain commands (e.g., TIOCSWINSZ, FIONBIO),
the Python value may get sign-extended on 64-bit platforms (by implicit type
promotion) and it causes annoying warnings from kernel such as this:
WARNING pid 24509 (python2.6): ioctl sign-extension ioctl ffffffff8004667e
Approved by: python (maintainer timeout)
Revision Changes Path
1.171 +1 -1 ports/lang/python24/Makefile
1.1 +38 -0 ports/lang/python24/files/patch-Modules-fcntlmodule.c
(new)
1.160 +1 -0 ports/lang/python25/Makefile
1.1 +27 -0 ports/lang/python25/files/patch-Lib-test-test_ioctl.py
(new)
1.1 +53 -0 ports/lang/python25/files/patch-Modules-fcntlmodule.c
(new)
1.167 +1 -0 ports/lang/python26/Makefile
1.1 +11 -0 ports/lang/python26/files/patch-Doc-library-fcntl.rst
(new)
1.1 +23 -0 ports/lang/python26/files/patch-Lib-test-test_ioctl.py
(new)
1.1 +53 -0 ports/lang/python26/files/patch-Modules-fcntlmodule.c
(new)
1.167 +1 -0 ports/lang/python31/Makefile
1.1 +11 -0 ports/lang/python31/files/patch-Doc-library-fcntl.rst
(new)
1.1 +11 -0 ports/lang/python31/files/patch-Lib-test-test_fcntl.py
(new)
1.1 +23 -0 ports/lang/python31/files/patch-Lib-test-test_ioctl.py
(new)
1.3 +11 -0 ports/lang/python31/files/patch-Lib-test-test_socket.py
(new)
1.1 +53 -0 ports/lang/python31/files/patch-Modules-fcntlmodule.c
(new)
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "[email protected]"