Method lrs::file::File::rel_open_read

Opens a path for reading relative to this file.

Syntax

impl File {
    fn rel_open_read<P>(&self, path: P) -> Result<File, Errno>
        where P: ToCString,
}

Arguments

NameDescription
path

A path to the file to be opened.

Return value

Returns the opened path.

Remarks

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.

See also