| 145 | } |
| 146 | |
| 147 | static inline int msync(void* addr, size_t len, int flags) { |
| 148 | if (FlushViewOfFile(addr, len)) return 0; |
| 149 | |
| 150 | errno = __map_mman_error(GetLastError(), EPERM); |
| 151 | |
| 152 | return -1; |
| 153 | } |
| 154 | |
| 155 | static inline int mlock(const void* addr, size_t len) { |
| 156 | if (VirtualLock((LPVOID)addr, len)) return 0; |
nothing calls this directly
no test coverage detected