Opens a path for reading relative to this file.
impl File {
fn rel_open_read<P>(&self, path: P) -> Result<File, Errno>
where P: ToCString,
}| Name | Description |
|---|---|
| path | A path to the file to be opened. |
Returns the opened path.
If the path is relative, this file must be a directory and the path will be interpreted relative to it.
This is equivalent to self.rel_open with the FILE_READ_ONLY flag.
Unless lrs was compiled with the no-auto-cloexec flag, the opened file always has the O_CLOEXEC flag set.