mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-42029: Remove IRIX code (GH-23023)
IRIX code was slowy removed in Python 2.4 (--with-sgi-dl), Python 3.3 (Irix threads), and Python 3.7.
This commit is contained in:
parent
350526105f
commit
5776663675
4 changed files with 8 additions and 25 deletions
|
@ -37,7 +37,7 @@ Large File Support
|
||||||
|
|
||||||
.. sectionauthor:: Steve Clift <clift@mail.anacapa.net>
|
.. sectionauthor:: Steve Clift <clift@mail.anacapa.net>
|
||||||
|
|
||||||
Several operating systems (including AIX, HP-UX, Irix and Solaris) provide
|
Several operating systems (including AIX, HP-UX and Solaris) provide
|
||||||
support for files that are larger than 2 GiB from a C programming model where
|
support for files that are larger than 2 GiB from a C programming model where
|
||||||
:c:type:`int` and :c:type:`long` are 32-bit values. This is typically accomplished
|
:c:type:`int` and :c:type:`long` are 32-bit values. This is typically accomplished
|
||||||
by defining the relevant size and offset types as 64-bit values. Such files are
|
by defining the relevant size and offset types as 64-bit values. Such files are
|
||||||
|
@ -47,8 +47,8 @@ Large file support is enabled in Python when the size of an :c:type:`off_t` is
|
||||||
larger than a :c:type:`long` and the :c:type:`long long` is at least as large
|
larger than a :c:type:`long` and the :c:type:`long long` is at least as large
|
||||||
as an :c:type:`off_t`.
|
as an :c:type:`off_t`.
|
||||||
It may be necessary to configure and compile Python with certain compiler flags
|
It may be necessary to configure and compile Python with certain compiler flags
|
||||||
to enable this mode. For example, it is enabled by default with recent versions
|
to enable this mode. For example, with Solaris 2.6 and 2.7 you need to do
|
||||||
of Irix, but with Solaris 2.6 and 2.7 you need to do something like::
|
something like::
|
||||||
|
|
||||||
CFLAGS="`getconf LFS_CFLAGS`" OPT="-g -O2 $CFLAGS" \
|
CFLAGS="`getconf LFS_CFLAGS`" OPT="-g -O2 $CFLAGS" \
|
||||||
./configure
|
./configure
|
||||||
|
|
|
@ -524,16 +524,6 @@ def system_alias(system, release, version):
|
||||||
# XXX Whatever the new SunOS marketing name is...
|
# XXX Whatever the new SunOS marketing name is...
|
||||||
system = 'Solaris'
|
system = 'Solaris'
|
||||||
|
|
||||||
elif system == 'IRIX64':
|
|
||||||
# IRIX reports IRIX64 on platforms with 64-bit support; yet it
|
|
||||||
# is really a version and not a different platform, since 32-bit
|
|
||||||
# apps are also supported..
|
|
||||||
system = 'IRIX'
|
|
||||||
if version:
|
|
||||||
version = version + ' (64bit)'
|
|
||||||
else:
|
|
||||||
version = '64bit'
|
|
||||||
|
|
||||||
elif system in ('win32', 'win16'):
|
elif system in ('win32', 'win16'):
|
||||||
# In case one of the other tricks
|
# In case one of the other tricks
|
||||||
system = 'Windows'
|
system = 'Windows'
|
||||||
|
@ -698,9 +688,6 @@ def architecture(executable=sys.executable, bits='', linkage=''):
|
||||||
# Bits
|
# Bits
|
||||||
if '32-bit' in fileout:
|
if '32-bit' in fileout:
|
||||||
bits = '32bit'
|
bits = '32bit'
|
||||||
elif 'N32' in fileout:
|
|
||||||
# On Irix only
|
|
||||||
bits = 'n32bit'
|
|
||||||
elif '64-bit' in fileout:
|
elif '64-bit' in fileout:
|
||||||
bits = '64bit'
|
bits = '64bit'
|
||||||
|
|
||||||
|
|
|
@ -6763,12 +6763,11 @@ error:
|
||||||
|
|
||||||
|
|
||||||
/* AIX uses /dev/ptc but is otherwise the same as /dev/ptmx */
|
/* AIX uses /dev/ptc but is otherwise the same as /dev/ptmx */
|
||||||
/* IRIX has both /dev/ptc and /dev/ptmx, use ptmx */
|
|
||||||
#if defined(HAVE_DEV_PTC) && !defined(HAVE_DEV_PTMX)
|
#if defined(HAVE_DEV_PTC) && !defined(HAVE_DEV_PTMX)
|
||||||
#define DEV_PTY_FILE "/dev/ptc"
|
# define DEV_PTY_FILE "/dev/ptc"
|
||||||
#define HAVE_DEV_PTMX
|
# define HAVE_DEV_PTMX
|
||||||
#else
|
#else
|
||||||
#define DEV_PTY_FILE "/dev/ptmx"
|
# define DEV_PTY_FILE "/dev/ptmx"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_OPENPTY) || defined(HAVE_FORKPTY) || defined(HAVE_DEV_PTMX)
|
#if defined(HAVE_OPENPTY) || defined(HAVE_FORKPTY) || defined(HAVE_DEV_PTMX)
|
||||||
|
|
|
@ -313,13 +313,10 @@ resource_getpagesize_impl(PyObject *module)
|
||||||
long pagesize = 0;
|
long pagesize = 0;
|
||||||
#if defined(HAVE_GETPAGESIZE)
|
#if defined(HAVE_GETPAGESIZE)
|
||||||
pagesize = getpagesize();
|
pagesize = getpagesize();
|
||||||
#elif defined(HAVE_SYSCONF)
|
#elif defined(HAVE_SYSCONF) && defined(_SC_PAGE_SIZE)
|
||||||
#if defined(_SC_PAGE_SIZE)
|
|
||||||
pagesize = sysconf(_SC_PAGE_SIZE);
|
pagesize = sysconf(_SC_PAGE_SIZE);
|
||||||
#else
|
#else
|
||||||
/* Irix 5.3 has _SC_PAGESIZE, but not _SC_PAGE_SIZE */
|
# error "unsupported platform: resource.getpagesize()"
|
||||||
pagesize = sysconf(_SC_PAGESIZE);
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
return pagesize;
|
return pagesize;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue