mvalid on Linux?

Bharadwaj Yadavalli bharadwaj.yadavalli@compaq.com
Wed Dec 5 13:17:00 GMT 2001


Tru64 has the following mman function to check the validity of a memory region.

int mvalid (caddr_t addr, size_t len,int prot)

where prot is any ORed combination of PROT_READ, PROT_WRITE and PROT_EXEC
and the retrun value is 0 if accesses requiring the specified
protections are allowed to all addresses within the specified range of
addresses.  Otherwise, the mvalid() function returns -1.

Is there an equivalent one on Linux? Alternately is there a way to 
find this info. on Linux?

Thanks,

Bharadwaj



More information about the Libc-alpha mailing list