Skip to main content

pipe2

Function pipe2 

Source
pub fn pipe2(flags: i32) -> Result<(i32, i32)>
Expand description

pipe2(2) 创建管道对,用于 splice 中继。

§参数

  • flags - 管道标志(如 O_NONBLOCK

§返回

(read_fd, write_fd)