- void *os_mem_map(size_t nbytes)
- { void *p;
-
- p = mmap(null, nbytes, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0);
- return (p == MAP_FAILED) ? null : p;
- }
-
-
- int os_mem_commit(void *base, size_t offset, size_t nbytes)
- {
- return 0;
- }
-
-
- int os_mem_decommit(void *base, size_t offset, size_t nbytes)