Luna/libc/include/sys/mman.h

24 lines
333 B
C

#ifndef _LUNA_MMAN_H
#define _LUNA_MMAN_H
#include <bits/mmap-flags.h>
#include <sys/types.h>
#define PAGE_SIZE 4096
#define MAP_FAILED (void*)-1
#ifdef __cplusplus
extern "C"
{
#endif
void* allocate_memory(size_t size, int flags);
int deallocate_memory(void* address, size_t size);
#ifdef __cplusplus
}
#endif
#endif