summaryrefslogtreecommitdiff
path: root/os/windows/posix/include/sys/mman.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/windows/posix/include/sys/mman.h')
-rw-r--r--os/windows/posix/include/sys/mman.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/os/windows/posix/include/sys/mman.h b/os/windows/posix/include/sys/mman.h
index 36480a43..ea139ee1 100644
--- a/os/windows/posix/include/sys/mman.h
+++ b/os/windows/posix/include/sys/mman.h
@@ -3,27 +3,27 @@
#include <sys/types.h>
-#define PROT_NONE 1
-#define PROT_READ 2
-#define PROT_WRITE 4
+#define PROT_NONE 0x1
+#define PROT_READ 0x2
+#define PROT_WRITE 0x4
-#define MAP_ANON 0x1
-#define MAP_ANONYMOUS MAP_ANON
-#define MAP_FIXED 0x2
-#define MAP_HASSEMAPHORE 0x4
-#define MAP_INHERIT 0x8
-#define MAP_NOCORE 0x10
-#define MAP_NOSYNC 0x20
-#define MAP_PREFAULT_READ 0x40
-#define MAP_PRIVATE 0x80
-#define MAP_SHARED 0x100
-#define MAP_STACK 0x200
+#define MAP_ANON 0x1
+#define MAP_ANONYMOUS MAP_ANON
+#define MAP_FIXED 0x2
+#define MAP_HASSEMAPHORE 0x4
+#define MAP_INHERIT 0x8
+#define MAP_NOCORE 0x10
+#define MAP_NOSYNC 0x20
+#define MAP_PREFAULT_READ 0x40
+#define MAP_PRIVATE 0x80
+#define MAP_SHARED 0x100
+#define MAP_STACK 0x200
-#define MAP_FAILED NULL
+#define MAP_FAILED NULL
-#define MS_ASYNC 0x1
-#define MS_SYNC 0x2
-#define MS_INVALIDATE 0x3
+#define MS_ASYNC 0x1
+#define MS_SYNC 0x2
+#define MS_INVALIDATE 0x3
int posix_madvise(void *addr, size_t len, int advice);
void *mmap(void *addr, size_t len, int prot, int flags,