Trait method lrs::prelude::v1::FDContainer::duplicate_min

Duplicates the file descriptor so that the duplicated one has a minimum value.

Syntax

fn duplicate_min(&self, min: i32) -> Result<Self, Errno>

Arguments

NameDescription
min

The minimum value of the new file descriptor.

Remarks

The close on exec flag will automatically be set on the new file descriptor.

See also