Retrieves an attribute of a file without following symbolic links.
fn get_attr_no_follow_buf<P, S, V>(path: P, name: S, buf: &mut [u8]) -> Result<usize, Errno>
where P: ToCString,
S: ToCString,| Name | Description |
|---|---|
| path | The path of the file whose attribute we want to retrieve. |
| name | The name of the attribute to retrieve. |
| buf | The buffer in which the attribute will be stored. |
The number of bytes stored in the buffer.
If the path refers to a symbolic link, the attribute of the file will be retrieved.
If the path is relative, it will be interpreted relative to the current working directory.