Function arceos_posix_api::sys_rename

source ·
pub fn sys_rename(old: *const c_char, new: *const c_char) -> c_int
Available on crate feature fs only.
Expand description

Rename old to new If new exists, it is first removed.

Return 0 if the operation succeeds, otherwise return -1.