MCPcopy Create free account
hub / github.com/catboost/catboost / ModeToMmapProt

Function ModeToMmapProt

util/system/filemap.cpp:96–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96static int ModeToMmapProt(TMemoryMapCommon::EOpenMode mode) {
97 int prot = PROT_READ;
98 if ((mode & TMemoryMapCommon::oAccessMask) != TMemoryMapCommon::oRdOnly) {
99 prot |= PROT_WRITE;
100 }
101 return prot;
102}
103#endif
104
105// maybe we should move this function to another .cpp file to avoid unwanted optimization?

Callers 2

CreateMappingMethod · 0.85
MapMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected