Method lrs::file::File::filename_buf

Returns the path of the file that was used to open this file.

Syntax

impl File {
    fn filename_buf(&self, buf: &'a mut [u8]) -> Result<&'a mut CStr, Errno>
}

Arguments

NameDescription
buf

The buffer in which the path will be placed.

Remarks

The /proc filesystem must be mounted for this operation.

See also