Setting Inaccessible Pages (?)
Joseph Edward Herbers
jherbers at zip.eecs.umich.edu
Fri Jun 8 06:15:02 AEST 1990
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
More information about the Comp.unix.questions
mailing list