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

Skip to content

Commit a771a1b

Browse files
committed
Issue #17529: Fix os.sendfile() documentation regarding the type of file
descriptor supported.
1 parent 81641d6 commit a771a1b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Doc/library/os.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -999,9 +999,8 @@ as internal buffering of data.
999999
On Mac OS X and FreeBSD, a value of 0 for *nbytes* specifies to send until
10001000
the end of *in* is reached.
10011001

1002-
On Solaris, *out* may be the file descriptor of a regular file or the file
1003-
descriptor of a socket. On all other platforms, *out* must be the file
1004-
descriptor of an open socket.
1002+
All platforms support sockets as *out* file descriptor, and some platforms
1003+
allow other types (e.g. regular file, pipe) as well.
10051004

10061005
Availability: Unix.
10071006

0 commit comments

Comments
 (0)