Skip to main content

xila_directory_rename

Function xila_directory_rename 

Source
pub unsafe extern "C" fn xila_directory_rename(
    from: *const Directory,
    from_path: *const c_char,
    from_length: usize,
    to: *const Directory,
    to_path: *const c_char,
    to_length: usize,
) -> Status
Expand description

Rename an entry using two WRITE capabilities with the same VFS and task. Existing destinations follow the underlying filesystem’s replacement semantics.

§Safety

Objects must be live and paths readable for their lengths. Calls must be serialized.