Lines Matching defs:pipe
537 /// Creates new fifo special file (named pipe) with path `path` and access rights `mode`.
558 /// let fifo_path = tmp_dir.path().join("foo.pipe");
576 /// Creates new fifo special file (named pipe) with path `path` and access rights `mode`.
1147 /// See also [pipe(2)](https://pubs.opengroup.org/onlinepubs/9699919799/functions/pipe.html)
1148 pub fn pipe() -> std::result::Result<(RawFd, RawFd), Error> {
1151 let res = unsafe { libc::pipe(fds.as_mut_ptr() as *mut c_int) };
1160 /// Like `pipe`, but allows setting certain file descriptor flags.
1162 /// The following flags are supported, and will be set atomically as the pipe is
1166 #[cfg_attr(target_os = "linux", doc = "- `O_DIRECT`: Create a pipe that performs I/O in \"packet\" mode.")]
1168 /// - `O_NONBLOCK`: Set the non-blocking flag for the ends of the pipe.
1170 /// See also [pipe(2)](https://man7.org/linux/man-pages/man2/pipe.2.html)
1965 /// a pipe.