core/linux/os.c
/* returns osprot flags preserving all native protection flags except
 * for RWX, which are replaced according to memprot */
returns osprot flags preserving all native protection flags except
for RWX, which are replaced according to memprot
returns osprot flags preserving all native protection flags except for RWX which are replaced according to memprot
uint
osprot_replace_memprot(uint old_osprot, uint memprot)
{
    uint new_osprot = memprot_to_osprot(memprot);
    return new_osprot;
}
uint osprot_replace_memprot ( uint old_osprot , uint memprot ) { uint new_osprot = memprot_to_osprot ( memprot ) ; return new_osprot ; }
returns osprot flags preserving all native protection flags except
 for RWX, which are replaced according to memprot
returns osprot flags preserving all native protection flags except for RWX which are replaced according to memprot
/* Note only protection flags PROT_ are relevant to mprotect() 
     * and they are separate from any other MAP_ flags passed to mmap()
     */