starry_api

Function sys_unlinkat

Source
pub fn sys_unlinkat(
    dir_fd: isize,
    path: UserConstPtr<c_char>,
    flags: usize,
) -> LinuxResult<isize>
Expand description

remove link of specific file (can be used to delete file) dir_fd: the directory of link to be removed path: the name of link to be removed flags: can be 0 or AT_REMOVEDIR return 0 when success, else return -1