This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
mvalid on Linux?
- From: Bharadwaj Yadavalli <bharadwaj dot yadavalli at compaq dot com>
- To: libc-alpha at sources dot redhat dot com
- Date: Wed, 5 Dec 2001 16:16:08 -0500
- Subject: mvalid on Linux?
- Reply-to: Bharadwaj Yadavalli <bharadwaj dot yadavalli at compaq dot com>
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