Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libsysdecode/flags.c
Show First 20 Lines • Show All 656 Lines • ▼ Show 20 Lines | |||||
bool | bool | ||||
sysdecode_mmap_prot(FILE *fp, int prot, int *rem) | sysdecode_mmap_prot(FILE *fp, int prot, int *rem) | ||||
{ | { | ||||
int protm; | int protm; | ||||
bool printed; | bool printed; | ||||
printed = false; | printed = false; | ||||
protm = PROT_MAX_EXTRACT(prot); | protm = PROT_MAX_EXTRACT(prot); | ||||
prot = PROT_EXTRACT(prot); | |||||
if (protm != 0) { | if (protm != 0) { | ||||
fputs("PROT_MAX(", fp); | fputs("PROT_MAX(", fp); | ||||
printed = print_mask_int(fp, mmapprot, protm, rem); | printed = print_mask_int(fp, mmapprot, protm, rem); | ||||
fputs(")|", fp); | fputs(")|", fp); | ||||
prot = protm; | |||||
} | } | ||||
return (print_mask_int(fp, mmapprot, prot, rem) || printed); | return (print_mask_int(fp, mmapprot, prot, rem) || printed); | ||||
} | } | ||||
bool | bool | ||||
sysdecode_fileflags(FILE *fp, fflags_t flags, fflags_t *rem) | sysdecode_fileflags(FILE *fp, fflags_t flags, fflags_t *rem) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 609 Lines • Show Last 20 Lines |