mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
5045cff4a0
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)
12 lines
602 B
ReStructuredText
12 lines
602 B
ReStructuredText
--- Doc/library/fcntl.rst.orig 2009-10-27 10:29:22.000000000 -0400
|
|
+++ Doc/library/fcntl.rst 2010-06-24 22:28:28.000000000 -0400
|
|
@@ -50,8 +50,6 @@
|
|
operations are typically defined in the library module :mod:`termios` and the
|
|
argument handling is even more complicated.
|
|
|
|
- The op parameter is limited to values that can fit in 32-bits.
|
|
-
|
|
The parameter *arg* can be one of an integer, absent (treated identically to the
|
|
integer ``0``), an object supporting the read-only buffer interface (most likely
|
|
a plain Python string) or an object supporting the read-write buffer interface.
|