core/unix/os.c
/* change protections on memory region starting at pc of length length */
change protections on memory region starting at pc of length length
change protections on memory region starting at pc of length length
bool
change_protection(byte *pc, size_t length, bool writable)
{
    uint flags = (writable) ? (MEMPROT_READ|MEMPROT_WRITE) : (MEMPROT_READ);
    return set_protection(pc, length, flags);
}
bool change_protection ( byte * pc , size_t length , bool writable ) { uint flags = ( writable ) ? ( MEMPROT_READ | MEMPROT_WRITE ) : ( MEMPROT_READ ) ; return set_protection ( pc , length , flags ) ; }
change protections on memory region starting at pc of length length
change protections on memory region starting at pc of length length