summaryrefslogtreecommitdiffstats
path: root/Doc/library/shutil.rst
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2019-05-30 06:05:41 (GMT)
committerGitHub <noreply@github.com>2019-05-30 06:05:41 (GMT)
commit413d955f8ec88a7183f91d7ad8b0ff7def803de3 (patch)
tree5e82b37895fa363bf445df67f61a56ff5553de61 /Doc/library/shutil.rst
parenta16387ab2d85f19665920bb6ff91a7e57f59dd2a (diff)
downloadcpython-413d955f8ec88a7183f91d7ad8b0ff7def803de3.zip
cpython-413d955f8ec88a7183f91d7ad8b0ff7def803de3.tar.gz
cpython-413d955f8ec88a7183f91d7ad8b0ff7def803de3.tar.bz2
bpo-36610: shutil.copyfile(): use sendfile() on Linux only (GH-13675)
...and avoid using it on Solaris as it can raise EINVAL if offset is equal or bigger than the size of the file
Diffstat (limited to 'Doc/library/shutil.rst')
-rw-r--r--Doc/library/shutil.rst3
1 files changed, 1 insertions, 2 deletions
diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst
index 4af5a16..dcb2a16 100644
--- a/Doc/library/shutil.rst
+++ b/Doc/library/shutil.rst
@@ -420,8 +420,7 @@ the use of userspace buffers in Python as in "``outfd.write(infd.read())``".
On macOS `fcopyfile`_ is used to copy the file content (not metadata).
-On Linux, Solaris and other POSIX platforms where :func:`os.sendfile` supports
-copies between 2 regular file descriptors :func:`os.sendfile` is used.
+On Linux :func:`os.sendfile` is used.
On Windows :func:`shutil.copyfile` uses a bigger default buffer size (1 MiB
instead of 64 KiB) and a :func:`memoryview`-based variant of