Page MenuHomeFreeBSD

D21706.diff
No OneTemporary

D21706.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
Fri, Mar 13, 10:28 PM (11 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29639535
Default Alt Text
D21706.diff (607 B)

Event Timeline