Lines Matching refs:ms

70 file_ascmagic(struct magic_set *ms, const struct buffer *b, int text)  in file_ascmagic()  argument
91 if (file_encoding(ms, &bb, &ubuf, &ulen, &code, &code_mime, in file_ascmagic()
95 rv = file_ascmagic_with_encoding(ms, &bb, in file_ascmagic()
104 file_ascmagic_with_encoding(struct magic_set *ms, in file_ascmagic_with_encoding() argument
114 int mime = ms->flags & MAGIC_MIME; in file_ascmagic_with_encoding()
140 if (ulen > 0 && (ms->flags & MAGIC_NO_CHECK_SOFT) == 0) { in file_ascmagic_with_encoding()
146 file_oomem(ms, mlen); in file_ascmagic_with_encoding()
155 if ((rv = file_softmagic(ms, &bb, NULL, NULL, in file_ascmagic_with_encoding()
161 if ((ms->flags & (MAGIC_APPLE|MAGIC_EXTENSION))) { in file_ascmagic_with_encoding()
167 if ((ms->flags & (MAGIC_APPLE|MAGIC_EXTENSION))) { in file_ascmagic_with_encoding()
206 if (seen_cr && nbytes < ms->bytes_max) in file_ascmagic_with_encoding()
213 len = file_printedlen(ms); in file_ascmagic_with_encoding()
221 if ((ms->flags & MAGIC_CONTINUE) == 0) { in file_ascmagic_with_encoding()
225 if (need_separator && file_separator(ms) == -1) in file_ascmagic_with_encoding()
228 if (file_printf(ms, "text/plain") == -1) in file_ascmagic_with_encoding()
234 switch (file_replace(ms, " text$", ", ")) { in file_ascmagic_with_encoding()
236 switch (file_replace(ms, " text executable$", in file_ascmagic_with_encoding()
239 if (file_printf(ms, ", ") == -1) in file_ascmagic_with_encoding()
256 if (file_printf(ms, "%s", code) == -1) in file_ascmagic_with_encoding()
260 if (file_printf(ms, " %s", subtype) == -1) in file_ascmagic_with_encoding()
264 if (file_printf(ms, " %s", type) == -1) in file_ascmagic_with_encoding()
268 if (file_printf(ms, " executable") == -1) in file_ascmagic_with_encoding()
272 if (file_printf(ms, ", with very long lines") == -1) in file_ascmagic_with_encoding()
281 if (file_printf(ms, ", with") == -1) in file_ascmagic_with_encoding()
285 if (file_printf(ms, " no") == -1) in file_ascmagic_with_encoding()
289 if (file_printf(ms, " CRLF") == -1) in file_ascmagic_with_encoding()
292 if (file_printf(ms, ",") == -1) in file_ascmagic_with_encoding()
296 if (file_printf(ms, " CR") == -1) in file_ascmagic_with_encoding()
299 if (file_printf(ms, ",") == -1) in file_ascmagic_with_encoding()
303 if (file_printf(ms, " LF") == -1) in file_ascmagic_with_encoding()
306 if (file_printf(ms, ",") == -1) in file_ascmagic_with_encoding()
310 if (file_printf(ms, " NEL") == -1) in file_ascmagic_with_encoding()
314 if (file_printf(ms, " line terminators") == -1) in file_ascmagic_with_encoding()
319 if (file_printf(ms, ", with escape sequences") == -1) in file_ascmagic_with_encoding()
322 if (file_printf(ms, ", with overstriking") == -1) in file_ascmagic_with_encoding()