Skip to content

Commit

Permalink
abis/linux: define more mman flags
Browse files Browse the repository at this point in the history
  • Loading branch information
no92 committed Jan 4, 2024
1 parent b9bd82c commit 19f3e69
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions abis/linux/vm-flags.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#define MAP_ANON 0x20
#define MAP_ANONYMOUS 0x20
#define MAP_NORESERVE 0x4000
#define MAP_POPULATE 0x8000
#define MAP_FIXED_NOREPLACE 0x100000

#define MS_ASYNC 0x01
Expand All @@ -35,11 +36,14 @@
#define MADV_WILLNEED 3
#define MADV_DONTNEED 4
#define MADV_FREE 8
#define MADV_DONTFORK 10
#define MADV_HUGEPAGE 14

#define MREMAP_MAYMOVE 1
#define MREMAP_FIXED 2

#define MFD_CLOEXEC 1U
#define MFD_ALLOW_SEALING 2U
#define MFD_HUGETLB 4U

#endif // _ABIBITS_VM_FLAGS_H

0 comments on commit 19f3e69

Please sign in to comment.