Luna/libc/include/bits/mmap-flags.h
apio 586ca19b62
All checks were successful
continuous-integration/drone/push Build is passing
Add a VERY BASIC and hacky way of allocating memory from userspace
Only supports one-page allocations and doesn't have libc wrappers, which means it has to be invoked using syscall().
2023-01-11 23:02:42 +01:00

12 lines
199 B
C

/* bits/mmap-flags.h: PROT_* constants for mmap(). */
#ifndef _BITS_MMAP_FLAGS_H
#define _BITS_MMAP_FLAGS_H
#define PROT_NONE 0
#define PROT_READ 1
#define PROT_WRITE 2
#define PROT_EXEC 4
#endif