From owner-freebsd-questions Sat Jan 21 14:51:56 1995 Return-Path: questions-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id OAA21686 for questions-outgoing; Sat, 21 Jan 1995 14:51:56 -0800 Received: from cs.weber.edu (cs.weber.edu [137.190.16.16]) by freefall.cdrom.com (8.6.9/8.6.6) with SMTP id OAA21678 for ; Sat, 21 Jan 1995 14:51:54 -0800 Received: by cs.weber.edu (4.1/SMI-4.1.1) id AA00615; Sat, 21 Jan 95 15:45:54 MST From: terry@cs.weber.edu (Terry Lambert) Message-Id: <9501212245.AA00615@cs.weber.edu> Subject: Re: Silly question... To: mrami@mramirez.sy.yale.edu (Marc Ramirez) Date: Sat, 21 Jan 95 15:45:53 MST Cc: questions@FreeBSD.org In-Reply-To: from "Marc Ramirez" at Jan 20, 95 09:53:03 pm X-Mailer: ELM [version 2.4dev PL52] Sender: questions-owner@FreeBSD.org Precedence: bulk > > 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.