Skip to content

Commit e87e0ad

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

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

513-
.. availability:: Unix, not WASI.
513+
.. availability:: Unix, not WASI, not macOS, not iOS.
514514

515515
.. versionadded:: 3.2
516516

@@ -520,7 +520,7 @@ process and user.
520520
Return a tuple (rgid, egid, sgid) denoting the current process's
521521
real, effective, and saved group ids.
522522

523-
.. availability:: Unix, not WASI.
523+
.. availability:: Unix, not WASI, not macOS, not iOS.
524524

525525
.. versionadded:: 3.2
526526

@@ -692,7 +692,7 @@ process and user.
692692

693693
Set the current process's real, effective, and saved group ids.
694694

695-
.. availability:: Unix, not WASI, not Android.
695+
.. availability:: Unix, not WASI, not Android, not macOS, not iOS.
696696

697697
.. versionadded:: 3.2
698698

@@ -701,7 +701,7 @@ process and user.
701701

702702
Set the current process's real, effective, and saved user ids.
703703

704-
.. availability:: Unix, not WASI, not Android.
704+
.. availability:: Unix, not WASI, not Android, not macOS, not iOS.
705705

706706
.. versionadded:: 3.2
707707

@@ -1036,10 +1036,7 @@ as internal buffering of data.
10361036
Force write of file with filedescriptor *fd* to disk. Does not force update of
10371037
metadata.
10381038

1039-
.. availability:: Unix.
1040-
1041-
.. note::
1042-
This function is not available on MacOS.
1039+
.. availability:: Unix, not macOS, not iOS.
10431040

10441041

10451042
.. function:: fpathconf(fd, name, /)
@@ -1391,7 +1388,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
13911388
Return a pair of file descriptors ``(r, w)`` usable for reading and writing,
13921389
respectively.
13931390

1394-
.. availability:: Unix, not WASI.
1391+
.. availability:: Unix, not WASI, not macOS, not iOS.
13951392

13961393
.. versionadded:: 3.3
13971394

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

1404-
.. availability:: Unix.
1401+
.. availability:: Unix, not macOS, not iOS.
14051402

14061403
.. versionadded:: 3.3
14071404

@@ -1416,7 +1413,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
14161413
:data:`POSIX_FADV_RANDOM`, :data:`POSIX_FADV_NOREUSE`,
14171414
:data:`POSIX_FADV_WILLNEED` or :data:`POSIX_FADV_DONTNEED`.
14181415

1419-
.. availability:: Unix.
1416+
.. availability:: Unix, not macOS, not iOS.
14201417

14211418
.. versionadded:: 3.3
14221419

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

4602-
.. availability:: Unix, not WASI, not iOS.
4599+
.. availability:: Unix, not WASI, not macOS, not iOS.
46034600

46044601

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

0 commit comments

Comments
 (0)