Lines Matching refs:mime
78 handle_mime(struct magic_set *ms, int mime, const char *str) in handle_mime() argument
80 if ((mime & MAGIC_MIME_TYPE)) { in handle_mime()
83 if ((mime & MAGIC_MIME_ENCODING) && file_printf(ms, in handle_mime()
87 if ((mime & MAGIC_MIME_ENCODING) && file_printf(ms, "binary") == -1) in handle_mime()
95 int mime = ms->flags & MAGIC_MIME; in file_fsmagic() local
125 if (!mime) { in file_fsmagic()
155 if (mime) { in file_fsmagic()
156 if (handle_mime(ms, mime, "x-character-device") == -1) in file_fsmagic()
184 if (mime) { in file_fsmagic()
185 if (handle_mime(ms, mime, "fifo") == -1) in file_fsmagic()
193 if (mime) { in file_fsmagic()
194 if (handle_mime(ms, mime, "door") == -1) in file_fsmagic()
213 if (mime) { in file_fsmagic()
214 if (handle_mime(ms, mime, "socket") == -1) in file_fsmagic()
244 if (mime) { in file_fsmagic()
245 if (handle_mime(ms, mime, "x-empty") == -1) in file_fsmagic()