Add new defines to the mman.h file.

This commit is contained in:
Enrico Fraccaroli (Galfurian)
2023-06-14 12:52:07 -04:00
parent 16c416cbea
commit e23c434cc6
+7
View File
@@ -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);