core/linux/os.c
/* translate platform independent protection bits to native flags */
translate platform independent protection bits to native flags
translate platform independent protection bits to native flags
static inline uint
memprot_to_osprot(uint prot)
{
    uint mmap_prot = 0;
    if (TEST(MEMPROT_EXEC, prot))
        mmap_prot |= PROT_EXEC;
    if (TEST(MEMPROT_READ, prot))
        mmap_prot |= PROT_READ;
    if (TEST(MEMPROT_WRITE, prot))
        mmap_prot |= PROT_WRITE;
    return mmap_prot;
}
static inline uint memprot_to_osprot ( uint prot ) { uint mmap_prot = 0 ; if ( TEST ( MEMPROT_EXEC , prot ) ) mmap_prot |= PROT_EXEC ; if ( TEST ( MEMPROT_READ , prot ) ) mmap_prot |= PROT_READ ; if ( TEST ( MEMPROT_WRITE , prot ) ) mmap_prot |= PROT_WRITE ; return mmap_prot ; }
translate platform independent protection bits to native flags
translate platform independent protection bits to native flags