diff options
author | dyson <dyson@FreeBSD.org> | 1997-01-16 04:16:22 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1997-01-16 04:16:22 +0000 |
commit | 52f682b5823b83f1e906f18c5e969ef07a70b8f9 (patch) | |
tree | 0ad89c8435b3bd8b781b683d36913c0b84a63ac8 /sys/fs/procfs/procfs_map.c | |
parent | b3f48f1d0e3959ea19934a3a2734680d5c86d96b (diff) | |
download | FreeBSD-src-52f682b5823b83f1e906f18c5e969ef07a70b8f9.zip FreeBSD-src-52f682b5823b83f1e906f18c5e969ef07a70b8f9.tar.gz |
Change the map entry flags from bitfields to bitmasks. Allows
for some code simplification.
Diffstat (limited to 'sys/fs/procfs/procfs_map.c')
-rw-r--r-- | sys/fs/procfs/procfs_map.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/procfs/procfs_map.c b/sys/fs/procfs/procfs_map.c index b871a5d..27c44fa 100644 --- a/sys/fs/procfs/procfs_map.c +++ b/sys/fs/procfs/procfs_map.c @@ -113,7 +113,7 @@ procfs_domap(curp, p, pfs, uio) int resident, privateresident; char *type; - if (entry->is_a_map || entry->is_sub_map) + if (entry->eflags & (MAP_ENTRY_IS_A_MAP|MAP_ENTRY_IS_SUB_MAP)) continue; obj = entry->object.vm_object; @@ -163,7 +163,7 @@ case OBJT_DEVICE: (entry->protection & VM_PROT_READ)?"r":"-", (entry->protection & VM_PROT_WRITE)?"w":"-", (entry->protection & VM_PROT_EXECUTE)?"x":"-", - entry->copy_on_write?"COW":" ", + (entry->eflags & MAP_ENTRY_COW)?"COW":" ", type); len = strlen(mebuffer); |