Files
Mads Odgaard 77b84ac2cd [NIOFileSystem] Fallback to rename when renameat2 is not available (#3612)
We are running into some issues when doing:

```swift
        let writeOptions: OpenOptions.Write =
            byteOffset > 0 ? .modifyFile(createIfNecessary: true) : .newFile(replaceExisting: true)

        try await FileSystem.shared.withFileHandle(
            forWritingAt: FilePath(outputFilePath),
            options: writeOptions
        ) { fileHandle in
```

which results in crashes on some Android devices where `renameat2` is
not available:

```
('renameat2' system call failed with '(38) Function not implemented'.)
```

This PR adds functionality similar to what is already done for `EINVAL`
on Linux, such that both lead to the same recovery: stat the
destination, then plain rename() if absent.

And for non-exclusive renames where it also fails to function not
implemented, it falls back to plain `rename`.
2026-06-03 14:33:41 +01:00
..
2024-09-12 13:18:25 +01:00
2025-10-06 10:58:33 +01:00
2025-05-07 12:24:44 +00:00
2025-05-07 12:24:44 +00:00