mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Doc: Update references and examples of old, unsupported OSes and uarches (GH-92791)
This commit is contained in:
parent
a365dd64c2
commit
a5ba0f4ebc
7 changed files with 29 additions and 18 deletions
|
@ -102,7 +102,7 @@ To map anonymous memory, -1 should be passed as the fileno along with the length
|
|||
|
||||
To ensure validity of the created memory mapping the file specified
|
||||
by the descriptor *fileno* is internally automatically synchronized
|
||||
with physical backing store on macOS and OpenVMS.
|
||||
with the physical backing store on macOS.
|
||||
|
||||
This example shows a simple way of using :class:`~mmap.mmap`::
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ Cross Platform
|
|||
|
||||
.. function:: machine()
|
||||
|
||||
Returns the machine type, e.g. ``'i386'``. An empty string is returned if the
|
||||
Returns the machine type, e.g. ``'AMD64'``. An empty string is returned if the
|
||||
value cannot be determined.
|
||||
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ Large File Support
|
|||
|
||||
.. sectionauthor:: Steve Clift <clift@mail.anacapa.net>
|
||||
|
||||
Several operating systems (including AIX, HP-UX and Solaris) provide
|
||||
Several operating systems (including AIX and Solaris) provide
|
||||
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
|
||||
by defining the relevant size and offset types as 64-bit values. Such files are
|
||||
|
|
|
@ -146,9 +146,10 @@ If the first character is not one of these, ``'@'`` is assumed.
|
|||
|
||||
Native byte order is big-endian or little-endian, depending on the host
|
||||
system. For example, Intel x86 and AMD64 (x86-64) are little-endian;
|
||||
Motorola 68000 and PowerPC G5 are big-endian; ARM and Intel Itanium feature
|
||||
switchable endianness (bi-endian). Use ``sys.byteorder`` to check the
|
||||
endianness of your system.
|
||||
IBM z and most legacy architectures are big-endian;
|
||||
and ARM, RISC-V and IBM Power feature switchable endianness
|
||||
(bi-endian, though the former two are nearly always little-endian in practice).
|
||||
Use ``sys.byteorder`` to check the endianness of your system.
|
||||
|
||||
Native size and alignment are determined using the C compiler's
|
||||
``sizeof`` expression. This is always combined with native byte order.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue