Luna/libc/include/sys/mman.h
apio 682d3c753e
All checks were successful
continuous-integration/drone/push Build is passing
kernel+libc: Add mkdir()
2023-03-12 15:32:09 +01:00

26 lines
388 B
C

/* sys/mman.h: Memory allocation and deallocation. */
#ifndef _SYS_MMAN_H
#define _SYS_MMAN_H
#include <bits/mmap-flags.h>
#include <sys/types.h>
#define PAGE_SIZE 4096UL
#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