Lines Matching refs:m

53 file_mdump(struct magic *m)  in file_mdump()  argument
58 (void) fprintf(stderr, "%u: %.*s %u", m->lineno, in file_mdump()
59 (m->cont_level & 7) + 1, ">>>>>>>>", m->offset); in file_mdump()
61 if (m->flag & INDIR) { in file_mdump()
64 (m->in_type < file_nnames) ? file_names[m->in_type] : in file_mdump()
66 if (m->in_op & FILE_OPINVERSE) in file_mdump()
69 ((size_t)(m->in_op & FILE_OPS_MASK) < in file_mdump()
70 SZOF(optyp)) ? optyp[m->in_op & FILE_OPS_MASK] : '?', in file_mdump()
71 m->in_offset); in file_mdump()
73 (void) fprintf(stderr, " %s%s", (m->flag & UNSIGNED) ? "u" : "", in file_mdump()
75 (m->type < file_nnames) ? file_names[m->type] : "*bad type"); in file_mdump()
76 if (m->mask_op & FILE_OPINVERSE) in file_mdump()
79 if (IS_LIBMAGIC_STRING(m->type)) { in file_mdump()
80 if (m->str_flags) { in file_mdump()
82 if (m->str_flags & STRING_COMPACT_WHITESPACE) in file_mdump()
84 if (m->str_flags & STRING_COMPACT_OPTIONAL_WHITESPACE) in file_mdump()
87 if (m->str_flags & STRING_IGNORE_LOWERCASE) in file_mdump()
89 if (m->str_flags & STRING_IGNORE_UPPERCASE) in file_mdump()
91 if (m->str_flags & REGEX_OFFSET_START) in file_mdump()
93 if (m->str_flags & STRING_TEXTTEST) in file_mdump()
95 if (m->str_flags & STRING_BINTEST) in file_mdump()
97 if (m->str_flags & PSTRING_1_BE) in file_mdump()
99 if (m->str_flags & PSTRING_2_BE) in file_mdump()
101 if (m->str_flags & PSTRING_2_LE) in file_mdump()
103 if (m->str_flags & PSTRING_4_BE) in file_mdump()
105 if (m->str_flags & PSTRING_4_LE) in file_mdump()
107 if (m->str_flags & PSTRING_LENGTH_INCLUDES_ITSELF) in file_mdump()
112 if (m->str_range) in file_mdump()
113 (void) fprintf(stderr, "/%u", m->str_range); in file_mdump()
116 if ((size_t)(m->mask_op & FILE_OPS_MASK) < SZOF(optyp)) in file_mdump()
117 (void) fputc(optyp[m->mask_op & FILE_OPS_MASK], stderr); in file_mdump()
121 if (m->num_mask) { in file_mdump()
123 (unsigned long long)m->num_mask); in file_mdump()
126 (void) fprintf(stderr, ",%c", m->reln); in file_mdump()
128 if (m->reln != 'x') { in file_mdump()
129 switch (m->type) { in file_mdump()
139 (void) fprintf(stderr, "%d", m->value.l); in file_mdump()
145 (unsigned long long)m->value.q); in file_mdump()
153 file_showstr(stderr, m->value.s, (size_t)m->vallen); in file_mdump()
160 file_fmttime(m->value.l, 0, tbuf)); in file_mdump()
167 file_fmttime(m->value.l, FILE_T_LOCAL, tbuf)); in file_mdump()
173 file_fmttime(m->value.q, 0, tbuf)); in file_mdump()
179 file_fmttime(m->value.q, FILE_T_LOCAL, tbuf)); in file_mdump()
185 file_fmttime(m->value.q, FILE_T_WINDOWS, tbuf)); in file_mdump()
190 (void) fprintf(stderr, "%G", m->value.f); in file_mdump()
195 (void) fprintf(stderr, "%G", m->value.d); in file_mdump()
203 (void) fprintf(stderr, "'%s'", m->value.s); in file_mdump()
206 (void) fprintf(stderr, "*bad type %d*", m->type); in file_mdump()
210 (void) fprintf(stderr, ",\"%s\"]\n", m->desc); in file_mdump()