Skip to content

Commit

Permalink
common: add MAP_SYNC and MAP_SHARED_VALIDATE flags
Browse files Browse the repository at this point in the history
  • Loading branch information
plebioda committed Feb 8, 2018
1 parent 56e642c commit 8afb74b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/common/mmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ void *util_map_tmpfile(const char *dir, size_t size, size_t req_align);
#define OS_MAPFILE "/proc/self/maps"
#endif

#ifndef MAP_SYNC
#define MAP_SYNC 0x80000
#endif

#ifndef MAP_SHARED_VALIDATE
#define MAP_SHARED_VALIDATE 0x03
#endif

/*
* macros for micromanaging range protections for the debug version
*/
Expand Down

0 comments on commit 8afb74b

Please sign in to comment.