Skip to content

Commit 9906857

Browse files
[3.14] gh-151427: add 'not macOS' and 'not iOS' restrictions on availability state of some functions in os module. (GH-151537) (#151698)
(cherry picked from commit da69fcf) Co-authored-by: Duprat <yduprat@gmail.com>
1 parent 2e873f7 commit 9906857

1 file changed

Lines changed: 9 additions & 12 deletions

File tree

Doc/library/os.rst

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ process and user.
532532
Return a tuple (ruid, euid, suid) denoting the current process's
533533
real, effective, and saved user ids.
534534

535-
.. availability:: Unix, not WASI.
535+
.. availability:: Unix, not WASI, not macOS, not iOS.
536536

537537
.. versionadded:: 3.2
538538

@@ -542,7 +542,7 @@ process and user.
542542
Return a tuple (rgid, egid, sgid) denoting the current process's
543543
real, effective, and saved group ids.
544544

545-
.. availability:: Unix, not WASI.
545+
.. availability:: Unix, not WASI, not macOS, not iOS.
546546

547547
.. versionadded:: 3.2
548548

@@ -716,7 +716,7 @@ process and user.
716716

717717
Set the current process's real, effective, and saved group ids.
718718

719-
.. availability:: Unix, not WASI, not Android.
719+
.. availability:: Unix, not WASI, not Android, not macOS, not iOS.
720720

721721
.. versionadded:: 3.2
722722

@@ -725,7 +725,7 @@ process and user.
725725

726726
Set the current process's real, effective, and saved user ids.
727727

728-
.. availability:: Unix, not WASI, not Android.
728+
.. availability:: Unix, not WASI, not Android, not macOS, not iOS.
729729

730730
.. versionadded:: 3.2
731731

@@ -1062,10 +1062,7 @@ as internal buffering of data.
10621062
Force write of file with filedescriptor *fd* to disk. Does not force update of
10631063
metadata.
10641064

1065-
.. availability:: Unix.
1066-
1067-
.. note::
1068-
This function is not available on MacOS.
1065+
.. availability:: Unix, not macOS, not iOS.
10691066

10701067

10711068
.. function:: fpathconf(fd, name, /)
@@ -1417,7 +1414,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
14171414
Return a pair of file descriptors ``(r, w)`` usable for reading and writing,
14181415
respectively.
14191416

1420-
.. availability:: Unix, not WASI.
1417+
.. availability:: Unix, not WASI, not macOS, not iOS.
14211418

14221419
.. versionadded:: 3.3
14231420

@@ -1427,7 +1424,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
14271424
Ensures that enough disk space is allocated for the file specified by *fd*
14281425
starting from *offset* and continuing for *len* bytes.
14291426

1430-
.. availability:: Unix.
1427+
.. availability:: Unix, not macOS, not iOS.
14311428

14321429
.. versionadded:: 3.3
14331430

@@ -1442,7 +1439,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
14421439
:data:`POSIX_FADV_RANDOM`, :data:`POSIX_FADV_NOREUSE`,
14431440
:data:`POSIX_FADV_WILLNEED` or :data:`POSIX_FADV_DONTNEED`.
14441441

1445-
.. availability:: Unix.
1442+
.. availability:: Unix, not macOS, not iOS.
14461443

14471444
.. versionadded:: 3.3
14481445

@@ -4672,7 +4669,7 @@ written in Python, such as a mail server's external command delivery program.
46724669
Lock program segments into memory. The value of *op* (defined in
46734670
``<sys/lock.h>``) determines which segments are locked.
46744671

4675-
.. availability:: Unix, not WASI, not iOS.
4672+
.. availability:: Unix, not WASI, not macOS, not iOS.
46764673

46774674

46784675
.. function:: popen(cmd, mode='r', buffering=-1)

0 commit comments

Comments
 (0)