pub struct LinkAt { /* private fields */ }
Expand description
Create a hard link, equivalent to linkat2(2)
.
Implementations§
source§impl LinkAt
impl LinkAt
pub fn new(
olddirfd: impl UseFd,
oldpath: *const c_char,
newdirfd: impl UseFd,
newpath: *const c_char
) -> Self
sourcepub const CODE: u8 = 39u8
pub const CODE: u8 = 39u8
The opcode of the operation. This can be passed to
Probe::is_supported
to check if this operation is
supported with the current kernel.