3 ms·
I believe mmap is not fully portable without extra work, so they avoid it - debian runs on a LOT of different systems.
by ars 11y ago
I believe mmap is not fully portable without extra work, so they avoid it - debian runs on a LOT of different systems.
- legulere 11y agoIt was developed inside the original BSD and is part of POSIX. So it's supported on all unixes today. The only place it isn't supported is Windows.
- icefox 11y agoIt is everywhere even Windows. There is a little bit of weirdness on some older versions of Windows CE and some undefined behavior with edge conditions on some OS's if I recall, but you can find the capability everywhere. I added the map API to QFile back in the day and went through checking different OS's for compatibility. A quick google search here is a link to the windows method: https://github.com/radekp/qt/blob/master/src/corelib/io/qfsfileengine_win.cpp#L1948 https://github.com/radekp/qt/blob/master/src/corelib/io/qfsf... unix version: https://github.com/radekp/qt/blob/master/src/corelib/io/qfsfileengine_unix.cpp#L1238 https://github.com/radekp/qt/blob/master/src/corelib/io/qfsf...