Lines Matching refs:m
51 file_mdump(struct magic *m) in file_mdump() argument
56 (void) fprintf(stderr, "%u: %.*s %u", m->lineno, in file_mdump()
57 (m->cont_level & 7) + 1, ">>>>>>>>", m->offset); in file_mdump()
59 if (m->flag & INDIR) { in file_mdump()
62 (m->in_type < file_nnames) ? file_names[m->in_type] : in file_mdump()
64 if (m->in_op & FILE_OPINVERSE) in file_mdump()
67 (CAST(size_t, m->in_op & FILE_OPS_MASK) < in file_mdump()
69 optyp[m->in_op & FILE_OPS_MASK] : '?', m->in_offset); in file_mdump()
71 (void) fprintf(stderr, " %s%s", (m->flag & UNSIGNED) ? "u" : "", in file_mdump()
73 (m->type < file_nnames) ? file_names[m->type] : "*bad type"); in file_mdump()
74 if (m->mask_op & FILE_OPINVERSE) in file_mdump()
77 if (IS_LIBMAGIC_STRING(m->type)) { in file_mdump()
78 if (m->str_flags) { in file_mdump()
80 if (m->str_flags & STRING_COMPACT_WHITESPACE) in file_mdump()
82 if (m->str_flags & STRING_COMPACT_OPTIONAL_WHITESPACE) in file_mdump()
85 if (m->str_flags & STRING_IGNORE_LOWERCASE) in file_mdump()
87 if (m->str_flags & STRING_IGNORE_UPPERCASE) in file_mdump()
89 if (m->str_flags & REGEX_OFFSET_START) in file_mdump()
91 if (m->str_flags & STRING_TEXTTEST) in file_mdump()
93 if (m->str_flags & STRING_BINTEST) in file_mdump()
95 if (m->str_flags & PSTRING_1_BE) in file_mdump()
97 if (m->str_flags & PSTRING_2_BE) in file_mdump()
99 if (m->str_flags & PSTRING_2_LE) in file_mdump()
101 if (m->str_flags & PSTRING_4_BE) in file_mdump()
103 if (m->str_flags & PSTRING_4_LE) in file_mdump()
105 if (m->str_flags & PSTRING_LENGTH_INCLUDES_ITSELF) in file_mdump()
110 if (m->str_range) in file_mdump()
111 (void) fprintf(stderr, "/%u", m->str_range); in file_mdump()
114 if (CAST(size_t, m->mask_op & FILE_OPS_MASK) < in file_mdump()
116 (void) fputc(optyp[m->mask_op & FILE_OPS_MASK], stderr); in file_mdump()
120 if (m->num_mask) { in file_mdump()
122 CAST(unsigned long long, m->num_mask)); in file_mdump()
125 (void) fprintf(stderr, ",%c", m->reln); in file_mdump()
127 if (m->reln != 'x') { in file_mdump()
128 switch (m->type) { in file_mdump()
138 (void) fprintf(stderr, "%d", m->value.l); in file_mdump()
145 CAST(long long, m->value.q)); in file_mdump()
153 file_showstr(stderr, m->value.s, in file_mdump()
154 CAST(size_t, m->vallen)); in file_mdump()
161 file_fmttime(tbuf, sizeof(tbuf), m->value.l, 0)); in file_mdump()
168 file_fmttime(tbuf, sizeof(tbuf), m->value.l, in file_mdump()
175 file_fmttime(tbuf, sizeof(tbuf), m->value.q, 0)); in file_mdump()
181 file_fmttime(tbuf, sizeof(tbuf), m->value.q, in file_mdump()
188 file_fmttime(tbuf, sizeof(tbuf), m->value.q, in file_mdump()
194 (void) fprintf(stderr, "%G", m->value.f); in file_mdump()
199 (void) fprintf(stderr, "%G", m->value.d); in file_mdump()
207 (void) fprintf(stderr, "'%s'", m->value.s); in file_mdump()
211 m->value.guid); in file_mdump()
216 (void) fprintf(stderr, "*bad type %d*", m->type); in file_mdump()
220 (void) fprintf(stderr, ",\"%s\"]\n", m->desc); in file_mdump()