|
@@ -1,9 +1,7 @@
|
|
-//+build freebsd, openbsd
|
|
|
|
|
|
+//+build freebsd, openbsd, netbsd
|
|
//+private
|
|
//+private
|
|
package mem_virtual
|
|
package mem_virtual
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
_reserve :: proc "contextless" (size: uint) -> (data: []byte, err: Allocator_Error) {
|
|
_reserve :: proc "contextless" (size: uint) -> (data: []byte, err: Allocator_Error) {
|
|
return nil, nil
|
|
return nil, nil
|
|
}
|
|
}
|
|
@@ -11,16 +9,18 @@ _reserve :: proc "contextless" (size: uint) -> (data: []byte, err: Allocator_Err
|
|
_commit :: proc "contextless" (data: rawptr, size: uint) -> Allocator_Error {
|
|
_commit :: proc "contextless" (data: rawptr, size: uint) -> Allocator_Error {
|
|
return nil
|
|
return nil
|
|
}
|
|
}
|
|
|
|
+
|
|
_decommit :: proc "contextless" (data: rawptr, size: uint) {
|
|
_decommit :: proc "contextless" (data: rawptr, size: uint) {
|
|
}
|
|
}
|
|
|
|
+
|
|
_release :: proc "contextless" (data: rawptr, size: uint) {
|
|
_release :: proc "contextless" (data: rawptr, size: uint) {
|
|
}
|
|
}
|
|
|
|
+
|
|
_protect :: proc "contextless" (data: rawptr, size: uint, flags: Protect_Flags) -> bool {
|
|
_protect :: proc "contextless" (data: rawptr, size: uint, flags: Protect_Flags) -> bool {
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
|
|
|
|
_platform_memory_init :: proc() {
|
|
_platform_memory_init :: proc() {
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
_map_file :: proc "contextless" (fd: uintptr, size: i64, flags: Map_File_Flags) -> (data: []byte, error: Map_File_Error) {
|
|
_map_file :: proc "contextless" (fd: uintptr, size: i64, flags: Map_File_Flags) -> (data: []byte, error: Map_File_Error) {
|