Skip to content

Commit da69fcf

Browse files
authored
gh-151427: add 'not macOS' and 'not iOS' restrictions on availability state of some functions in os module. (#151537)
1 parent 9688d25 commit da69fcf

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
@@ -541,7 +541,7 @@ process and user.
541541
Return a tuple (ruid, euid, suid) denoting the current process's
542542
real, effective, and saved user ids.
543543

544-
.. availability:: Unix, not WASI.
544+
.. availability:: Unix, not WASI, not macOS, not iOS.
545545

546546
.. versionadded:: 3.2
547547

@@ -551,7 +551,7 @@ process and user.
551551
Return a tuple (rgid, egid, sgid) denoting the current process's
552552
real, effective, and saved group ids.
553553

554-
.. availability:: Unix, not WASI.
554+
.. availability:: Unix, not WASI, not macOS, not iOS.
555555

556556
.. versionadded:: 3.2
557557

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

726726
Set the current process's real, effective, and saved group 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

@@ -734,7 +734,7 @@ process and user.
734734

735735
Set the current process's real, effective, and saved user ids.
736736

737-
.. availability:: Unix, not WASI, not Android.
737+
.. availability:: Unix, not WASI, not Android, not macOS, not iOS.
738738

739739
.. versionadded:: 3.2
740740

@@ -1096,10 +1096,7 @@ as internal buffering of data.
10961096
Force write of file with filedescriptor *fd* to disk. Does not force update of
10971097
metadata.
10981098

1099-
.. availability:: Unix.
1100-
1101-
.. note::
1102-
This function is not available on MacOS.
1099+
.. availability:: Unix, not macOS, not iOS.
11031100

11041101

11051102
.. function:: fpathconf(fd, name, /)
@@ -1451,7 +1448,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
14511448
Return a pair of file descriptors ``(r, w)`` usable for reading and writing,
14521449
respectively.
14531450

1454-
.. availability:: Unix, not WASI.
1451+
.. availability:: Unix, not WASI, not macOS, not iOS.
14551452

14561453
.. versionadded:: 3.3
14571454

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

1464-
.. availability:: Unix.
1461+
.. availability:: Unix, not macOS, not iOS.
14651462

14661463
.. versionadded:: 3.3
14671464

@@ -1476,7 +1473,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
14761473
:data:`POSIX_FADV_RANDOM`, :data:`POSIX_FADV_NOREUSE`,
14771474
:data:`POSIX_FADV_WILLNEED` or :data:`POSIX_FADV_DONTNEED`.
14781475

1479-
.. availability:: Unix.
1476+
.. availability:: Unix, not macOS, not iOS.
14801477

14811478
.. versionadded:: 3.3
14821479

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

5261-
.. availability:: Unix, not WASI, not iOS.
5258+
.. availability:: Unix, not WASI, not macOS, not iOS.
52625259

52635260

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

0 commit comments

Comments
 (0)