diff options
author | Charles-François Natali <neologix@free.fr> | 2011-05-29 18:07:40 (GMT) |
---|---|---|
committer | Charles-François Natali <neologix@free.fr> | 2011-05-29 18:07:40 (GMT) |
commit | daafdd5bea1edb0fa980727cf8c52bfe7928d6b8 (patch) | |
tree | 9a508518d3a596ce11436bff47ada935011c177b /Doc | |
parent | 04a90b4611d3a20ac593860d7f4156a14723e84a (diff) | |
download | cpython-daafdd5bea1edb0fa980727cf8c52bfe7928d6b8.zip cpython-daafdd5bea1edb0fa980727cf8c52bfe7928d6b8.tar.gz cpython-daafdd5bea1edb0fa980727cf8c52bfe7928d6b8.tar.bz2 |
Issue #12196: Add pipe2() to the os module.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/os.rst | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 6ef6d9d..c62a00d 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -1019,6 +1019,19 @@ as internal buffering of data. Availability: Unix, Windows. +.. function:: pipe2(flags=0) + + Create a pipe with *flags* set atomically. + *flags* is optional and can be constructed by ORing together zero or more of + these values: :data:`O_NONBLOCK`, :data:`O_CLOEXEC`. + Return a pair of file descriptors ``(r, w)`` usable for reading and writing, + respectively. + + Availability: some flavors of Unix. + + .. versionadded:: 3.3 + + .. function:: posix_fallocate(fd, offset, len) Ensures that enough disk space is allocated for the file specified by *fd* |