summaryrefslogtreecommitdiffstats
path: root/sys/fs/procfs
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1996-07-27 19:47:04 +0000
committerdyson <dyson@FreeBSD.org>1996-07-27 19:47:04 +0000
commit844ec1f2c054f8e964d268e98d0c3dcdc531cf5a (patch)
treeae34a277a039f4c3fd24c02f00a51fb47a2ede96 /sys/fs/procfs
parent19e4b9aada028e7525b1cf1528c8527d4ee6930e (diff)
downloadFreeBSD-src-844ec1f2c054f8e964d268e98d0c3dcdc531cf5a.zip
FreeBSD-src-844ec1f2c054f8e964d268e98d0c3dcdc531cf5a.tar.gz
Modify slightly the output from the map file in /proc. Now the
executable bit is shown.
Diffstat (limited to 'sys/fs/procfs')
-rw-r--r--sys/fs/procfs/procfs_map.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/fs/procfs/procfs_map.c b/sys/fs/procfs/procfs_map.c
index ef71909..fcf819c 100644
--- a/sys/fs/procfs/procfs_map.c
+++ b/sys/fs/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);
OpenPOWER on IntegriCloud