17431625 64-bit python should use long rather than int for os.sysconf() return value
authorJohn Beck <John.Beck@Oracle.COM>
Mon, 16 Sep 2013 11:19:09 -0700
changeset 1468 07b38c2bfed7
parent 1467 f14b6c5766ca
child 1469 ae62c3a7bd62
17431625 64-bit python should use long rather than int for os.sysconf() return value
components/python/python26/patches/Python26-32-osconf-long.patch
components/python/python27/patches/18-osconf-long.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/python26/patches/Python26-32-osconf-long.patch	Mon Sep 16 11:19:09 2013 -0700
@@ -0,0 +1,14 @@
+# http://bugs.python.org/issue17964 was fixed in 3.4 but not back-ported so we
+# need this patch for 2.6 .
+
+--- Python-2.6.8/Modules/posixmodule.c.orig	2013-09-10 14:48:19.058672610 -0700
++++ Python-2.6.8/Modules/posixmodule.c	2013-09-10 14:48:49.872618578 -0700
[email protected]@ -8188,7 +8188,7 @@
+     int name;
+ 
+     if (PyArg_ParseTuple(args, "O&:sysconf", conv_sysconf_confname, &name)) {
+-        int value;
++        long value;
+ 
+         errno = 0;
+         value = sysconf(name);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/python27/patches/18-osconf-long.patch	Mon Sep 16 11:19:09 2013 -0700
@@ -0,0 +1,14 @@
+# http://bugs.python.org/issue17964 was fixed in 3.4 but not back-ported so we
+# need this patch for 2.7 .
+
+--- Python-2.7.3/Modules/posixmodule.c.orig	2013-09-10 14:48:19.058672610 -0700
++++ Python-2.7.3/Modules/posixmodule.c	2013-09-10 14:48:49.872618578 -0700
[email protected]@ -8356,7 +8356,7 @@
+     int name;
+ 
+     if (PyArg_ParseTuple(args, "O&:sysconf", conv_sysconf_confname, &name)) {
+-        int value;
++        long value;
+ 
+         errno = 0;
+         value = sysconf(name);