Atomically exchanges two files.
fn exchange<P, Q>(one: P, two: Q) -> Result<(), Errno>
where P: ToCString,
Q: ToCString,| Name | Description |
|---|---|
| one | File one. |
| two | File two. |
If the paths are relative, they will be interpreted relative to the current working directory. Both paths must refer to the same mount point or the operation fails.
The required kernel version is 3.15.