3 ms·
It would be really nice if there was a POSIX equivalent to Foundation's NSDataReadingMappedIfSafe, which uses mmap() when the file isn't backed by NFS and falls
by gok 8y ago
It would be really nice if there was a POSIX equivalent to Foundation's NSDataReadingMappedIfSafe, which uses mmap() when the file isn't backed by NFS and falls back to read() when unsafe or not worth it.
- thomasjudge 8y agoIs there a way for a process to know what kind of filesystem something lives on, or is this just a developer-provided clue?
- jfhufl 8y agogetmntent(3)