This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

mvalid on Linux?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]