summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Anton Mitterer <mail@christoph.anton.mitterer.name>2023-09-07 15:50:10 (GMT)
committerGitHub <noreply@github.com>2023-09-07 15:50:10 (GMT)
commit403ab1306a6e9860197bce57eadcb83418966f21 (patch)
tree278e7f7f0309f35093529bd5c1dc835c0a660754
parentf2584eade378910b9ea18072bb1dab3dd58e23bb (diff)
downloadcpython-403ab1306a6e9860197bce57eadcb83418966f21.zip
cpython-403ab1306a6e9860197bce57eadcb83418966f21.tar.gz
cpython-403ab1306a6e9860197bce57eadcb83418966f21.tar.bz2
gh-107924: re-order os.sendfile() flag documentation (#107926)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
-rw-r--r--Doc/library/os.rst39
1 files changed, 20 insertions, 19 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 4f4d8c9..c67b966 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -1618,25 +1618,6 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
Parameters *out* and *in* was renamed to *out_fd* and *in_fd*.
-.. function:: set_blocking(fd, blocking, /)
-
- Set the blocking mode of the specified file descriptor. Set the
- :data:`O_NONBLOCK` flag if blocking is ``False``, clear the flag otherwise.
-
- See also :func:`get_blocking` and :meth:`socket.socket.setblocking`.
-
- .. availability:: Unix, Windows.
-
- The function is limited on Emscripten and WASI, see
- :ref:`wasm-availability` for more information.
-
- On Windows, this function is limited to pipes.
-
- .. versionadded:: 3.5
-
- .. versionchanged:: 3.12
- Added support for pipes on Windows.
-
.. data:: SF_NODISKIO
SF_MNOWAIT
SF_SYNC
@@ -1658,6 +1639,26 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
.. versionadded:: 3.11
+.. function:: set_blocking(fd, blocking, /)
+
+ Set the blocking mode of the specified file descriptor. Set the
+ :data:`O_NONBLOCK` flag if blocking is ``False``, clear the flag otherwise.
+
+ See also :func:`get_blocking` and :meth:`socket.socket.setblocking`.
+
+ .. availability:: Unix, Windows.
+
+ The function is limited on Emscripten and WASI, see
+ :ref:`wasm-availability` for more information.
+
+ On Windows, this function is limited to pipes.
+
+ .. versionadded:: 3.5
+
+ .. versionchanged:: 3.12
+ Added support for pipes on Windows.
+
+
.. function:: splice(src, dst, count, offset_src=None, offset_dst=None)
Transfer *count* bytes from file descriptor *src*, starting from offset