File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1055,7 +1055,9 @@ pub fn pipe() -> Result<(RawFd, RawFd)> {
1055
1055
/// The following flags are supported, and will be set atomically as the pipe is
1056
1056
/// created:
1057
1057
///
1058
- /// `O_CLOEXEC`: Set the close-on-exec flag for the new file descriptors.
1058
+ /// `O_CLOEXEC`: Set the close-on-exec flag for the new file descriptors.
1059
+ #[ cfg_attr( target_os = "linux" , doc = "`O_DIRECT`: Create a pipe that performs I/O in \" packet\" mode. " ) ]
1060
+ #[ cfg_attr( target_os = "netbsd" , doc = "`O_NOSIGPIPE`: Return `EPIPE` instead of raising `SIGPIPE`. " ) ]
1059
1061
/// `O_NONBLOCK`: Set the non-blocking flag for the ends of the pipe.
1060
1062
///
1061
1063
/// See also [pipe(2)](http://man7.org/linux/man-pages/man2/pipe.2.html)
You can’t perform that action at this time.
0 commit comments