Skip to content

[3.11] gh-107924: re-order os.sendfile() flag documentation (#107926) #109178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions Doc/library/os.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1508,21 +1508,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.

The function is limited on Emscripten and WASI, see
:ref:`wasm-availability` for more information.

.. versionadded:: 3.5


.. data:: SF_NODISKIO
SF_MNOWAIT
SF_SYNC
Expand All @@ -1544,6 +1529,21 @@ 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.

The function is limited on Emscripten and WASI, see
:ref:`wasm-availability` for more information.

.. versionadded:: 3.5


.. function:: splice(src, dst, count, offset_src=None, offset_dst=None)

Transfer *count* bytes from file descriptor *src*, starting from offset
Expand Down