Reorganized sys functions

This commit is contained in:
Eduard Urbach 2025-02-06 13:46:37 +01:00
parent 9908066c20
commit c352778c6d
Signed by: eduard
GPG key ID: 49226B848C78F6C8
15 changed files with 110 additions and 120 deletions

7
lib/sys/mem_windows.q Normal file
View file

@ -0,0 +1,7 @@
mmap(address Int, length Int, protection Int, flags Int) -> Pointer {
return kernel32.VirtualAlloc(address, length, flags, protection)
}
munmap(address Pointer, length Int) -> Int {
return kernel32.VirtualFree(address, length, 0x4000)
}