diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2016-06-18 18:21:50 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2016-06-18 18:21:50 (GMT) |
commit | d37de3c41de46ebda801d60b171875352267977d (patch) | |
tree | 8af472bf66184022c5164472c46359bc1c34aeb4 /Doc | |
parent | 9305d83425e2ec63b2769336907dd07b3151cd5f (diff) | |
download | cpython-d37de3c41de46ebda801d60b171875352267977d.zip cpython-d37de3c41de46ebda801d60b171875352267977d.tar.gz cpython-d37de3c41de46ebda801d60b171875352267977d.tar.bz2 |
issue27021 - Document SC_IOV_MAX limitation imposed by OS on os.writev.
Patch contributed Марк Коренберг.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/os.rst | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 743efb6..7b26953 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -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. |