Page MenuHomeFreeBSD

D23733.id68525.diff
No OneTemporary

D23733.id68525.diff

Index: head/lib/libsysdecode/flags.c
===================================================================
--- head/lib/libsysdecode/flags.c
+++ head/lib/libsysdecode/flags.c
@@ -1277,3 +1277,10 @@
}
}
}
+
+bool
+sysdecode_shmflags(FILE *fp, int flags, int *rem)
+{
+
+ return (print_mask_0(fp, shmflags, flags, rem));
+}
Index: head/lib/libsysdecode/mktables
===================================================================
--- head/lib/libsysdecode/mktables
+++ head/lib/libsysdecode/mktables
@@ -165,6 +165,7 @@
else
gen_table "sysarchnum" "[A-Z_]+[[:space:]]+[0-9]+" "machine/sysarch.h"
fi
+gen_table "shmflags" "SHM_[A-Z_]+[[:space:]]+0x[0-9]+" "sys/mman.h" "SHM_ANON"
# Generate a .depend file for our output file
if [ -n "$output_file" ]; then
Index: head/lib/libsysdecode/sysdecode.h
===================================================================
--- head/lib/libsysdecode/sysdecode.h
+++ head/lib/libsysdecode/sysdecode.h
@@ -128,5 +128,6 @@
bool sysdecode_wait4_options(FILE *_fp, int _options, int *_rem);
bool sysdecode_wait6_options(FILE *_fp, int _options, int *_rem);
const char *sysdecode_whence(int _whence);
+bool sysdecode_shmflags(FILE *_fp, int _flags, int *_rem);
#endif /* !__SYSDECODE_H__ */

File Metadata

Mime Type
text/plain
Expires
Thu, Jul 23, 7:18 PM (17 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35412430
Default Alt Text
D23733.id68525.diff (1 KB)

Event Timeline