devela::_dep::rustix::pipe

Function fcntl_setpipe_size

pub fn fcntl_setpipe_size<Fd>(fd: Fd, size: usize) -> Result<(), Errno> 
where Fd: AsFd,
Available on crate feature dep_rustix only.
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