notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
All times are UTC
Ukraine
non port: lang/python31/files/patch-Modules-fcntlmodule.c
SVNWeb

Number of commits found: 2

Tue, 14 Dec 2010
[ 06:31 wen search for other commits by this committer ] Original commit 
- Update to 3.1.3
Mon, 19 Jul 2010
[ 21:59 jkim search for other commits by this committer ] Original commit  (Only the first 10 of 15 ports in this commit are shown above. View all ports for this commit)
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)

Number of commits found: 2