On Fri, 1 May 1998, Erwin S. Andreasen wrote: ->Hm, and also... I think memory needs to be aligned to be mprotected. It needs to be aligned to a multiple of getpagesize(), AFAIK. But, more importantly, I've heard it mentioned that POSIX.1b says mprotect() can only be used on memory that has been obtained from mmap(). Also, AFAIK, there is no munprotect(). The default state of memory is read/write, so you'd call mprotect() with PROT_READ|PROT_WRITE. -dak +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST