]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
issue27021 - Document SC_IOV_MAX limitation imposed by OS on os.writev.
authorSenthil Kumaran <senthil@uthcode.com>
Sat, 18 Jun 2016 18:21:50 +0000 (11:21 -0700)
committerSenthil Kumaran <senthil@uthcode.com>
Sat, 18 Jun 2016 18:21:50 +0000 (11:21 -0700)
Patch contributed Марк Коренберг.

Doc/library/os.rst

index 743efb691a23f3a98cf7c6abf0ef55b9af134c7e..7b26953ade5a68529e4122af252e8cce94a1fb9c 100644 (file)
@@ -1195,7 +1195,11 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
 .. function:: writev(fd, buffers)
 
    Write the contents of *buffers* to file descriptor *fd*. *buffers* must be a
-   sequence of :term:`bytes-like objects <bytes-like object>`.
+   sequence of :term:`bytes-like objects <bytes-like object>`. Buffers are
+   processed in array order. Entire contents of first buffer is written before
+   proceeding to second, and so on. The operating system may set a limit
+   (sysconf() value SC_IOV_MAX) on the number of buffers that can be used.
+
    :func:`~os.writev` writes the contents of each object to the file descriptor
    and returns the total number of bytes written.