| 153 | } |
| 154 | |
| 155 | static inline int mlock(const void* addr, size_t len) { |
| 156 | if (VirtualLock((LPVOID)addr, len)) return 0; |
| 157 | |
| 158 | errno = __map_mman_error(GetLastError(), EPERM); |
| 159 | |
| 160 | return -1; |
| 161 | } |
| 162 | |
| 163 | static inline int munlock(const void* addr, size_t len) { |
| 164 | if (VirtualUnlock((LPVOID)addr, len)) return 0; |
nothing calls this directly
no test coverage detected