Function rustix::pipe::fcntl_setpipe_size

source ·
pub fn fcntl_setpipe_size<Fd: AsFd>(fd: Fd, size: usize) -> Result<()>
Expand description

fnctl(fd, F_SETPIPE_SZ)—Set the buffer capacity of a pipe.

The OS may decide to use a larger size than size. To know the precise size, call fcntl_getpipe_size after setting the size. In future versions of rustix, this function will return the new size.

§References