summaryrefslogtreecommitdiff
path: root/sys/miscfs/procfs/procfs_map.c
diff options
context:
space:
mode:
authorJohn Dyson <dyson@FreeBSD.org>1996-07-27 19:47:04 +0000
committerJohn Dyson <dyson@FreeBSD.org>1996-07-27 19:47:04 +0000
commit3c087a2f30fa29e55c01171b0ea9eecd34fc604f (patch)
treeae34a277a039f4c3fd24c02f00a51fb47a2ede96 /sys/miscfs/procfs/procfs_map.c
parentadef72483b4b4bc5a1c2fb2e30de4651762c11cc (diff)
Notes
Diffstat (limited to 'sys/miscfs/procfs/procfs_map.c')
-rw-r--r--sys/miscfs/procfs/procfs_map.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/miscfs/procfs/procfs_map.c b/sys/miscfs/procfs/procfs_map.c
index ef71909b6d93..fcf819ce01d7 100644
--- a/sys/miscfs/procfs/procfs_map.c
+++ b/sys/miscfs/procfs/procfs_map.c
@@ -152,10 +152,12 @@ case OBJT_DEVICE:
* format:
* start, end, resident, private resident, cow, access, type.
*/
- sprintf(mebuffer, "0x%-8.8x 0x%-8.8x %9d %9d %s %s %s\n",
+ sprintf(mebuffer, "0x%-8.8x 0x%-8.8x %9d %9d %s%s%s %s %s\n",
entry->start, entry->end,
resident, privateresident,
- (entry->protection & VM_PROT_WRITE)?"RW":"RO",
+ (entry->protection & VM_PROT_READ)?"r":"-",
+ (entry->protection & VM_PROT_WRITE)?"w":"-",
+ (entry->protection & VM_PROT_EXECUTE)?"x":"-",
entry->copy_on_write?"COW":" ",
type);