Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jan 95 15:45:53 MST
From:      terry@cs.weber.edu (Terry Lambert)
To:        mrami@mramirez.sy.yale.edu (Marc Ramirez)
Cc:        questions@FreeBSD.org
Subject:   Re: Silly question...
Message-ID:  <9501212245.AA00615@cs.weber.edu>
In-Reply-To: <Pine.BSI.3.91.950120214821.619A-100000@mramirez.sy.yale.edu> from "Marc Ramirez" at Jan 20, 95 09:53:03 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> How can I tell if a certain address is unmapped, mapped read only, or 
> mapped read/write?
> 
> Marc.  (Yes, I changed my address, for those who care)

Dereference it.  If it's unmapped, you will get a signal.

If it's mapped read/read-write, then you won't.

If you don't, then dereference assign it's value to it's previous value.

If it's only mapped read, you will get a signal, otherwise, you won't.


Or you could just ioctl() the procfs entry for the process.  8-).


					Terry Lambert
					terry@cs.weber.edu
---
Any opinions in this posting are my own and not those of my present
or previous employers.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9501212245.AA00615>