core/win32/os.c
/* translate native flags to platform independent protection bits */
translate native flags to platform independent protection bits
translate native flags to platform independent protection bits
int
osprot_to_memprot(uint prot)
{
    uint mem_prot = 0;
    if (prot_is_readable(prot))
        mem_prot |= MEMPROT_READ;
    if (prot_is_writable(prot))
        mem_prot |= MEMPROT_WRITE;
    if (prot_is_executable(prot))
        mem_prot |= MEMPROT_EXEC;
    return mem_prot;
}
int osprot_to_memprot ( uint prot ) { uint mem_prot = 0 ; if ( prot_is_readable ( prot ) ) mem_prot |= MEMPROT_READ ; if ( prot_is_writable ( prot ) ) mem_prot |= MEMPROT_WRITE ; if ( prot_is_executable ( prot ) ) mem_prot |= MEMPROT_EXEC ; return mem_prot ; }
translate native flags to platform independent protection bits
translate native flags to platform independent protection bits