Lines Matching refs:m

50 file_mdump(struct magic *m)  in file_mdump()  argument
55 (void) fprintf(stderr, "%u: %.*s %u", m->lineno, in file_mdump()
56 (m->cont_level & 7) + 1, ">>>>>>>>", m->offset); in file_mdump()
58 if (m->flag & INDIR) { in file_mdump()
61 (m->in_type < file_nnames) ? file_names[m->in_type] : in file_mdump()
63 if (m->in_op & FILE_OPINVERSE) in file_mdump()
66 (CAST(size_t, m->in_op & FILE_OPS_MASK) < in file_mdump()
68 optyp[m->in_op & FILE_OPS_MASK] : '?', m->in_offset); in file_mdump()
70 (void) fprintf(stderr, " %s%s", (m->flag & UNSIGNED) ? "u" : "", in file_mdump()
72 (m->type < file_nnames) ? file_names[m->type] : "*bad type"); in file_mdump()
73 if (m->mask_op & FILE_OPINVERSE) in file_mdump()
76 if (IS_LIBMAGIC_STRING(m->type)) { in file_mdump()
77 if (m->str_flags) { in file_mdump()
79 if (m->str_flags & STRING_COMPACT_WHITESPACE) in file_mdump()
81 if (m->str_flags & STRING_COMPACT_OPTIONAL_WHITESPACE) in file_mdump()
84 if (m->str_flags & STRING_IGNORE_LOWERCASE) in file_mdump()
86 if (m->str_flags & STRING_IGNORE_UPPERCASE) in file_mdump()
88 if (m->str_flags & REGEX_OFFSET_START) in file_mdump()
90 if (m->str_flags & STRING_TEXTTEST) in file_mdump()
92 if (m->str_flags & STRING_BINTEST) in file_mdump()
94 if (m->str_flags & PSTRING_1_BE) in file_mdump()
96 if (m->str_flags & PSTRING_2_BE) in file_mdump()
98 if (m->str_flags & PSTRING_2_LE) in file_mdump()
100 if (m->str_flags & PSTRING_4_BE) in file_mdump()
102 if (m->str_flags & PSTRING_4_LE) in file_mdump()
104 if (m->str_flags & PSTRING_LENGTH_INCLUDES_ITSELF) in file_mdump()
109 if (m->str_range) in file_mdump()
110 (void) fprintf(stderr, "/%u", m->str_range); in file_mdump()
113 if (CAST(size_t, m->mask_op & FILE_OPS_MASK) < in file_mdump()
115 (void) fputc(optyp[m->mask_op & FILE_OPS_MASK], stderr); in file_mdump()
119 if (m->num_mask) { in file_mdump()
121 CAST(unsigned long long, m->num_mask)); in file_mdump()
124 (void) fprintf(stderr, ",%c", m->reln); in file_mdump()
126 if (m->reln != 'x') { in file_mdump()
127 switch (m->type) { in file_mdump()
137 (void) fprintf(stderr, "%d", m->value.l); in file_mdump()
144 CAST(long long, m->value.q)); in file_mdump()
152 file_showstr(stderr, m->value.s, in file_mdump()
153 CAST(size_t, m->vallen)); in file_mdump()
160 file_fmtdatetime(tbuf, sizeof(tbuf), m->value.l, 0)); in file_mdump()
167 file_fmtdatetime(tbuf, sizeof(tbuf), m->value.l, in file_mdump()
174 file_fmtdatetime(tbuf, sizeof(tbuf), m->value.q, 0)); in file_mdump()
180 file_fmtdatetime(tbuf, sizeof(tbuf), m->value.q, in file_mdump()
187 file_fmtdatetime(tbuf, sizeof(tbuf), m->value.q, in file_mdump()
193 (void) fprintf(stderr, "%G", m->value.f); in file_mdump()
198 (void) fprintf(stderr, "%G", m->value.d); in file_mdump()
203 tbuf, sizeof(tbuf), m->value.us, m->type)); in file_mdump()
209 file_fmtdate(tbuf, sizeof(tbuf), m->value.h)); in file_mdump()
215 file_fmttime(tbuf, sizeof(tbuf), m->value.h)); in file_mdump()
219 file_fmtnum(tbuf, sizeof(tbuf), m->value.s, 8)); in file_mdump()
227 (void) fprintf(stderr, "'%s'", m->value.s); in file_mdump()
231 m->value.guid); in file_mdump()
236 (void) fprintf(stderr, "*bad type %d*", m->type); in file_mdump()
240 (void) fprintf(stderr, ",\"%s\"]\n", m->desc); in file_mdump()