symlinkat

Function symlinkat 

Source
pub fn symlinkat(
    target: *const c_char,
    newdirfd: i32,
    linkpath: *const c_char,
) -> isize
Expand description

symlinkat - 创建符号链接

§参数

  • target - 符号链接的目标路径(可以是相对或绝对路径)
  • newdirfd - 新符号链接所在目录的文件描述符
  • linkpath - 新符号链接的路径

§返回值

  • 0 - 成功
  • -errno - 失败

§注意

target 参数不会被检查,即使目标不存在也能创建符号链接