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

Skip to content

Commit 4c3e687

Browse files
committed
[merge from 3.5] - issue27021 - Document SC_IOV_MAX limitation imposed by OS on os.writev.
Patch contributed Марк Коренберг.
2 parents 977b3ac + d37de3c commit 4c3e687

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
@@ -1228,7 +1228,11 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
12281228
.. function:: writev(fd, buffers)
12291229

12301230
Write the contents of *buffers* to file descriptor *fd*. *buffers* must be a
1231-
sequence of :term:`bytes-like objects <bytes-like object>`.
1231+
sequence of :term:`bytes-like objects <bytes-like object>`. Buffers are
1232+
processed in array order. Entire contents of first buffer is written before
1233+
proceeding to second, and so on. The operating system may set a limit
1234+
(sysconf() value SC_IOV_MAX) on the number of buffers that can be used.
1235+
12321236
:func:`~os.writev` writes the contents of each object to the file descriptor
12331237
and returns the total number of bytes written.
12341238

0 commit comments

Comments
 (0)