Sets the capacity of the pipe.
impl Pipe {
fn set_capacity(&self, cap: usize) -> Result<(), Errno>
}| Name | Description |
|---|---|
| cap | The new capacity of the pipe. |
The new capacity must be able to hold the bytes currently buffered in the pipe or the operation fails.
fcntl(2) and F_SETPIPE_SZ therein