| 94 | } |
| 95 | |
| 96 | static 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? |
no outgoing calls
no test coverage detected