diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-05-16 18:23:41 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-16 18:23:41 +0000 |
commit | 465a8f73134de0eec1bf28c749cc89cece0c7a1a (patch) | |
tree | cf43007ccc5c590b351b4dba16dd7987063659d9 /src | |
parent | 33f4efe6cfebf7b80df78355173eb481ea348285 (diff) | |
parent | 8996cf96763632246e4c9c2c9d2da1d05d3525ed (diff) | |
download | nix-465a8f73134de0eec1bf28c749cc89cece0c7a1a.zip |
Merge #1232
1232: Document O_DIRECT flag for pipe2 r=asomers a=hberntsen
From the man page linked in the description
Co-authored-by: Harm Berntsen <git@harmberntsen.nl>
Diffstat (limited to 'src')
-rw-r--r-- | src/unistd.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/unistd.rs b/src/unistd.rs index f6efb364..fff103c0 100644 --- a/src/unistd.rs +++ b/src/unistd.rs @@ -1055,7 +1055,9 @@ pub fn pipe() -> Result<(RawFd, RawFd)> { /// The following flags are supported, and will be set atomically as the pipe is /// created: /// -/// `O_CLOEXEC`: Set the close-on-exec flag for the new file descriptors. +/// `O_CLOEXEC`: Set the close-on-exec flag for the new file descriptors. +#[cfg_attr(target_os = "linux", doc = "`O_DIRECT`: Create a pipe that performs I/O in \"packet\" mode. ")] +#[cfg_attr(target_os = "netbsd", doc = "`O_NOSIGPIPE`: Return `EPIPE` instead of raising `SIGPIPE`. ")] /// `O_NONBLOCK`: Set the non-blocking flag for the ends of the pipe. /// /// See also [pipe(2)](http://man7.org/linux/man-pages/man2/pipe.2.html) |