Path: utzoo!attcan!uunet!samsung!umich!umeecs!jherbers From: jherbers@zip.eecs.umich.edu (Joseph Edward Herbers) Newsgroups: comp.unix.questions Subject: Setting Inaccessible Pages (?) Keywords: memory segmentation fault Message-ID: <2558@zipeecs.umich.edu> Date: 7 Jun 90 20:15:02 GMT Organization: University of Michigan EECS Dept., Ann Arbor Lines: 19 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