Lines Matching refs:desc
161 file_fmtcheck(struct magic_set *ms, const char *desc, const char *def, in file_fmtcheck() argument
166 if (strchr(desc, '%') == NULL) in file_fmtcheck()
167 return desc; in file_fmtcheck()
169 ptr = fmtcheck(desc, def); in file_fmtcheck()
173 " with `%s'", file, line, desc, def); in file_fmtcheck()
312 if (*m->desc) { in match()
421 if (*m->desc) { in match()
424 if (print && *m->desc) { in match()
598 const char *desc; in mprint() local
601 if (varexpand(ms, ebuf, sizeof(ebuf), m->desc) == -1) in mprint()
602 desc = m->desc; in mprint()
604 desc = ebuf; in mprint()
608 switch (check_fmt(ms, desc)) { \ in mprint()
619 if (file_printf(ms, F(ms, desc, "%s"), buf) == -1) \ in mprint()
624 if (file_printf(ms, F(ms, desc, "%" format "u"), \ in mprint()
628 if (file_printf(ms, F(ms, desc, "%" format "d"), \ in mprint()
662 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
678 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
695 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
704 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
713 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
721 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
729 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
739 switch (check_fmt(ms, desc)) { in mprint()
744 if (file_printf(ms, F(ms, desc, "%s"), buf) == -1) in mprint()
748 if (file_printf(ms, F(ms, desc, "%g"), vf) == -1) in mprint()
758 switch (check_fmt(ms, desc)) { in mprint()
763 if (file_printf(ms, F(ms, desc, "%s"), buf) == -1) in mprint()
767 if (file_printf(ms, F(ms, desc, "%g"), vd) == -1) in mprint()
786 rval = file_printf(ms, F(ms, desc, "%s"), file_printable(ms, in mprint()
797 if (file_printf(ms, "%s", m->desc) == -1) in mprint()
806 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
813 if (file_printf(ms, F(ms, desc, "%s"), buf) == -1) in mprint()
819 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
826 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
832 if (file_printf(ms, F(ms, desc, "%s"), buf) == -1) in mprint()
1922 file_printf(ms, F(ms, m->desc, "%u"), offset) == -1) in mget()
1978 if (file_printf(ms, "%s", m->desc) == -1) in mget()