Page MenuHomeFreeBSD

D21706.id62765.diff
No OneTemporary

D21706.id62765.diff

Index: head/lib/libsysdecode/flags.c
===================================================================
--- head/lib/libsysdecode/flags.c
+++ head/lib/libsysdecode/flags.c
@@ -657,8 +657,18 @@
bool
sysdecode_mmap_prot(FILE *fp, int prot, int *rem)
{
+ int protm;
+ bool printed;
- return (print_mask_int(fp, mmapprot, prot, rem));
+ printed = false;
+ protm = PROT_MAX_EXTRACT(prot);
+ if (protm != 0) {
+ fputs("PROT_MAX(", fp);
+ printed = print_mask_int(fp, mmapprot, protm, rem);
+ fputs(")|", fp);
+ prot = protm;
+ }
+ return (print_mask_int(fp, mmapprot, prot, rem) || printed);
}
bool

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 14, 6:29 AM (20 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29639535
Default Alt Text
D21706.id62765.diff (607 B)

Event Timeline