Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d37de3c

Browse files
committed
issue27021 - Document SC_IOV_MAX limitation imposed by OS on os.writev.
Patch contributed Марк Коренберг.
1 parent 9305d83 commit d37de3c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Doc/library/os.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,11 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
11951195
.. function:: writev(fd, buffers)
11961196

11971197
Write the contents of *buffers* to file descriptor *fd*. *buffers* must be a
1198-
sequence of :term:`bytes-like objects <bytes-like object>`.
1198+
sequence of :term:`bytes-like objects <bytes-like object>`. Buffers are
1199+
processed in array order. Entire contents of first buffer is written before
1200+
proceeding to second, and so on. The operating system may set a limit
1201+
(sysconf() value SC_IOV_MAX) on the number of buffers that can be used.
1202+
11991203
:func:`~os.writev` writes the contents of each object to the file descriptor
12001204
and returns the total number of bytes written.
12011205

0 commit comments

Comments
 (0)