jherbers@zip.eecs.umich.edu (Joseph Edward Herbers) (06/08/90)
Is there a way to mark pages as inaccessible in 4.3BSD? What I have done is set up memory myself using brk()/sbrk() and trap the segmentation fault that results when I try to use memory beyond what I have allocated. What I WANT to do is divide up my memory into diff regions and I want to have a signal issued that I can catch whenever any of the regions attempts to grow outside its bounds. So, if I could separate the regions by inaccessible pages, then an attempt to access beyond the bounds would result in a segmentation fault that I can trap. I can decide in the handler routine which of the regions exceeded its bounds, and act accordingly. So How can I mark pages as inaccessible??? Joe Herbers