Skip to content

gh-107924: re-order os.sendfile() flag documentation #107926

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 3 commits into from
Sep 7, 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
39 changes: 20 additions & 19 deletions Doc/library/os.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down