OrionLibC
Barry Importing existing Orion LibC 03048a9 (2 years, 2 months ago)#ifndef _SYS_MMAN_H #define _SYS_MMAN_H #include <stddef.h> #include <sys/types.h> /* Virtual Memory Region Protection */ enum VMRegionProt { PROT_NONE, PROT_EXEC = (1 << 0), PROT_WRITE = (1 << 1), PROT_READ = (1 << 2), }; /* Virtual Memory Region flags */ enum VMRegionFlag { MAP_SHARED, MAP_PRIVATE = (1 << 0), MAP_ANONYMOUS = (1 << 1), }; #define MAP_ANON MAP_ANONYMOUS #define MAP_FAILED ((void *) -1) #ifdef __cplusplus extern "C" { #endif void *mmap(void *addr, size_t len, int prot, int flags, int fildes, off_t off); #ifdef __cplusplus } #endif #endif