Skip to main content

readlink_alias_fd

Function readlink_alias_fd 

Source
pub fn readlink_alias_fd(
    r: &Req<'_>,
    dirfd: i32,
    path: &[u8],
) -> Option<Result<Vec<u8>, i32>>
Expand description

readlinkat with an empty path on a descriptor opened through a hard link alias: the answer comes from the descriptor’s own inode, reopened through /proc, since the link it was opened by is gone by then and its name may stand for something else.

§Arguments

  • r - The notification.
  • dirfd - The descriptor.
  • path - The path argument.

§Returns

None when the call is not such a read, which the caller serves by path.