From: Charles-Francois Natali Date: Wed, 1 May 2013 13:12:20 +0000 (+0200) Subject: Issue #17529: Fix os.sendfile() documentation regarding the type of file X-Git-Tag: v3.3.2~41 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a771a1b48e7fcf73b13e905f87f319fcd4cb25b2;p=thirdparty%2FPython%2Fcpython.git Issue #17529: Fix os.sendfile() documentation regarding the type of file descriptor supported. --- diff --git a/Doc/library/os.rst b/Doc/library/os.rst index e70c8869cef8..6d4fb0410835 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -999,9 +999,8 @@ as internal buffering of data. On Mac OS X and FreeBSD, a value of 0 for *nbytes* specifies to send until the end of *in* is reached. - On Solaris, *out* may be the file descriptor of a regular file or the file - descriptor of a socket. On all other platforms, *out* must be the file - descriptor of an open socket. + All platforms support sockets as *out* file descriptor, and some platforms + allow other types (e.g. regular file, pipe) as well. Availability: Unix.