summaryrefslogtreecommitdiff
path: root/lang/python32/files/patch-Modules-fcntlmodule.c
diff options
context:
space:
mode:
authorRuslan Makhmatkhanov <rm@FreeBSD.org>2016-02-02 20:16:34 +0000
committerRuslan Makhmatkhanov <rm@FreeBSD.org>2016-02-02 20:16:34 +0000
commited63d28c085967c3d7a5345fb02fb6879ff4b9e9 (patch)
tree012a960d546cc034a99fa7d956e9772d0f4ade1f /lang/python32/files/patch-Modules-fcntlmodule.c
parentnet/py-ldap3: update to 1.0.4 (diff)
Remove expired lang/python32
Python 3.2 has reached it's EOL. Please update to Python 3.5 With hat: python
Notes
Notes: svn path=/head/; revision=407843
Diffstat (limited to 'lang/python32/files/patch-Modules-fcntlmodule.c')
-rw-r--r--lang/python32/files/patch-Modules-fcntlmodule.c53
1 files changed, 0 insertions, 53 deletions
diff --git a/lang/python32/files/patch-Modules-fcntlmodule.c b/lang/python32/files/patch-Modules-fcntlmodule.c
deleted file mode 100644
index 6f9f3ab01d0a..000000000000
--- a/lang/python32/files/patch-Modules-fcntlmodule.c
+++ /dev/null
@@ -1,53 +0,0 @@
---- Modules/fcntlmodule.c.orig 2010-12-14 09:44:03.000000000 +0800
-+++ Modules/fcntlmodule.c 2010-12-14 09:47:17.000000000 +0800
-@@ -97,20 +97,15 @@
- {
- #define IOCTL_BUFSZ 1024
- int fd;
-- /* In PyArg_ParseTuple below, we use the unsigned non-checked 'I'
-+ /* In PyArg_ParseTuple below, we use the unsigned non-checked 'k'
- format for the 'code' parameter because Python turns 0x8000000
- into either a large positive number (PyLong or PyInt on 64-bit
- platforms) or a negative number on others (32-bit PyInt)
- whereas the system expects it to be a 32bit bit field value
- regardless of it being passed as an int or unsigned long on
-- various platforms. See the termios.TIOCSWINSZ constant across
-- platforms for an example of thise.
--
-- If any of the 64bit platforms ever decide to use more than 32bits
-- in their unsigned long ioctl codes this will break and need
-- special casing based on the platform being built on.
-+ various platforms.
- */
-- unsigned int code;
-+ unsigned long code;
- int arg;
- int ret;
- Py_buffer pstr;
-@@ -119,7 +114,7 @@
- int mutate_arg = 1;
- char buf[IOCTL_BUFSZ+1]; /* argument plus NUL byte */
-
-- if (PyArg_ParseTuple(args, "O&Iw*|i:ioctl",
-+ if (PyArg_ParseTuple(args, "O&kw*|i:ioctl",
- conv_descriptor, &fd, &code,
- &pstr, &mutate_arg)) {
- char *arg;
-@@ -174,7 +169,7 @@
- }
-
- PyErr_Clear();
-- if (PyArg_ParseTuple(args, "O&Is*:ioctl",
-+ if (PyArg_ParseTuple(args, "O&ks*:ioctl",
- conv_descriptor, &fd, &code, &pstr)) {
- str = pstr.buf;
- len = pstr.len;
-@@ -201,7 +196,7 @@
- PyErr_Clear();
- arg = 0;
- if (!PyArg_ParseTuple(args,
-- "O&I|i;ioctl requires a file or file descriptor,"
-+ "O&k|i;ioctl requires a file or file descriptor,"
- " an integer and optionally an integer or buffer argument",
- conv_descriptor, &fd, &code, &arg)) {
- return NULL;