Add new defines to the mman.h file.
This commit is contained in:
@@ -8,6 +8,13 @@
|
||||
|
||||
#include "stddef.h"
|
||||
|
||||
#define PROT_READ 0x1 ///< Page can be read.
|
||||
#define PROT_WRITE 0x2 ///< Page can be written.
|
||||
#define PROT_EXEC 0x4 ///< Page can be executed.
|
||||
|
||||
#define MAP_SHARED 0x01 ///< The memory is shared.
|
||||
#define MAP_PRIVATE 0x02 ///< The memory is private.
|
||||
|
||||
#ifndef __KERNEL__
|
||||
|
||||
void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset);
|
||||
|
||||
Reference in New Issue
Block a user