Lines Matching refs:ms

46 #define NOTMIME(ms) (((ms)->flags & MAGIC_MIME) == 0)  argument
137 cdf_file_property_info(struct magic_set *ms, const cdf_property_info_t *info, in cdf_file_property_info() argument
150 if (!NOTMIME(ms) && root_storage) in cdf_file_property_info()
160 if (NOTMIME(ms) && file_printf(ms, ", %s: %hd", buf, in cdf_file_property_info()
165 if (NOTMIME(ms) && file_printf(ms, ", %s: %d", buf, in cdf_file_property_info()
170 if (NOTMIME(ms) && file_printf(ms, ", %s: %u", buf, in cdf_file_property_info()
175 if (NOTMIME(ms) && file_printf(ms, ", %s: %g", buf, in cdf_file_property_info()
180 if (NOTMIME(ms) && file_printf(ms, ", %s: %g", buf, in cdf_file_property_info()
205 if (NOTMIME(ms)) { in cdf_file_property_info()
207 if (file_printf(ms, ", %s: %s", in cdf_file_property_info()
224 if (NOTMIME(ms) && file_printf(ms, in cdf_file_property_info()
235 if (NOTMIME(ms) && file_printf(ms, in cdf_file_property_info()
247 if (ms->flags & MAGIC_MIME_TYPE) { in cdf_file_property_info()
250 if (file_printf(ms, "application/%s", str) == -1) in cdf_file_property_info()
257 cdf_file_catalog(struct magic_set *ms, const cdf_header_t *h, in cdf_file_catalog() argument
265 if (NOTMIME(ms)) { in cdf_file_catalog()
266 if (file_printf(ms, "Microsoft Thumbs.db [") == -1) in cdf_file_catalog()
273 if (file_printf(ms, "%s%s", in cdf_file_catalog()
280 } else if (ms->flags & MAGIC_MIME_TYPE) { in cdf_file_catalog()
281 if (file_printf(ms, "application/CDFV2") == -1) in cdf_file_catalog()
288 cdf_file_summary_info(struct magic_set *ms, const cdf_header_t *h, in cdf_file_summary_info() argument
299 if (NOTMIME(ms)) { in cdf_file_summary_info()
302 if (file_printf(ms, "Composite Document File V2 Document") in cdf_file_summary_info()
306 if (file_printf(ms, ", %s Endian", in cdf_file_summary_info()
311 if (file_printf(ms, ", Os: Windows, Version %d.%d", in cdf_file_summary_info()
317 if (file_printf(ms, ", Os: MacOS, Version %d.%d", in cdf_file_summary_info()
323 if (file_printf(ms, ", Os %d, Version: %d.%d", si.si_os, in cdf_file_summary_info()
333 if (file_printf(ms, ", %s", str) == -1) in cdf_file_summary_info()
339 m = cdf_file_property_info(ms, info, count, root_storage); in cdf_file_summary_info()
360 cdf_file_catalog_info(struct magic_set *ms, const cdf_info_t *info, in cdf_file_catalog_info() argument
372 if ((i = cdf_file_catalog(ms, h, scn)) == -1) in cdf_file_catalog_info()
378 cdf_check_summary_info(struct magic_set *ms, const cdf_info_t *info, in cdf_check_summary_info() argument
392 if ((i = cdf_file_summary_info(ms, h, scn, root_storage)) < 0) { in cdf_check_summary_info()
403 NOTMIME(ms) ? name2desc : name2mime); in cdf_check_summary_info()
405 if (NOTMIME(ms)) { in cdf_check_summary_info()
407 if (file_printf(ms, "%s", str) == -1) in cdf_check_summary_info()
411 } else if (ms->flags & MAGIC_MIME_TYPE) { in cdf_check_summary_info()
414 if (file_printf(ms, "application/%s", str) == -1) in cdf_check_summary_info()
419 i = cdf_file_catalog_info(ms, info, h, sat, ssat, sst, in cdf_check_summary_info()
503 cdf_file_dir_info(struct magic_set *ms, const cdf_dir_t *dir) in cdf_file_dir_info() argument
519 if (NOTMIME(ms)) { in cdf_file_dir_info()
520 if (file_printf(ms, "CDFV2 %s", si->name) == -1) in cdf_file_dir_info()
522 } else if (ms->flags & MAGIC_MIME_TYPE) { in cdf_file_dir_info()
523 if (file_printf(ms, "application/%s", si->mime) == -1) in cdf_file_dir_info()
532 file_trycdf(struct magic_set *ms, const struct buffer *b) in file_trycdf() argument
550 if (ms->flags & (MAGIC_APPLE|MAGIC_EXTENSION)) in file_trycdf()
589 if (NOTMIME(ms)) { in file_trycdf()
591 if (file_printf(ms, "CLSID %s, ", in file_trycdf()
605 if (NOTMIME(ms)) { in file_trycdf()
606 if (file_printf(ms, in file_trycdf()
609 } else if (ms->flags & MAGIC_MIME_TYPE) { in file_trycdf()
610 if (file_printf(ms, "application/x-hwp") == -1) in file_trycdf()
626 i = cdf_check_summary_info(ms, &info, &h, in file_trycdf()
637 i = cdf_check_summary_info(ms, &info, &h, &sat, &ssat, in file_trycdf()
642 i = cdf_file_dir_info(ms, &dir); in file_trycdf()
660 if (NOTMIME(ms)) { in file_trycdf()
661 if (file_printf(ms, in file_trycdf()
665 if (file_printf(ms, ", %s", expn) == -1) in file_trycdf()
667 } else if (ms->flags & MAGIC_MIME_TYPE) { in file_trycdf()
668 if (file_printf(ms, "application/CDFV2") == -1) in file_trycdf()