Function lrs::syscall::pipe2

Creates a new pipe.

Syntax

fn pipe2(fds: &mut [i32; 2], flags: i32) -> i32

Arguments

NameDescription
fds

The buffer in which the ends of the pipe will be placed.

flags

Flags for creating the pipe.

Remarks

Unless lrs was compiled with the no-auto-cloexec flag, this function automatically adds the O_CLOEXEC flag.

See also