Lines Matching defs:ms

71 file_ascmagic(struct magic_set *ms, const unsigned char *buf, size_t nbytes,
85 if (file_encoding(ms, buf, nbytes, &ubuf, &ulen, &code, &code_mime,
89 rv = file_ascmagic_with_encoding(ms, buf, nbytes, ubuf, ulen, code,
98 file_ascmagic_with_encoding(struct magic_set *ms, const unsigned char *buf,
105 int mime = ms->flags & MAGIC_MIME;
131 if (ulen > 0 && (ms->flags & MAGIC_NO_CHECK_SOFT) == 0) {
137 file_oomem(ms, mlen);
143 if ((rv = file_softmagic(ms, utf8_buf,
147 if ((ms->flags & (MAGIC_APPLE|MAGIC_EXTENSION))) {
152 if ((ms->flags & (MAGIC_APPLE|MAGIC_EXTENSION)))
186 been followed by a LF. If we have ms->bytes_max bytes, it indicates
189 if (seen_cr && nbytes < ms->bytes_max)
197 if (!file_printedlen(ms) && (mime & MAGIC_MIME_TYPE) != 0) {
199 if (file_printf(ms, "%s", subtype_mime) == -1)
202 if (file_printf(ms, "text/plain") == -1)
207 if (file_printedlen(ms)) {
208 switch (file_replace(ms, " text$", ", ")) {
210 switch (file_replace(ms, " text executable$",
213 if (file_printf(ms, ", ") == -1)
230 if (file_printf(ms, "%s", code) == -1)
234 if (file_printf(ms, " %s", subtype) == -1)
238 if (file_printf(ms, " %s", type) == -1)
242 if (file_printf(ms, " executable") == -1)
246 if (file_printf(ms, ", with very long lines") == -1)
255 if (file_printf(ms, ", with") == -1)
259 if (file_printf(ms, " no") == -1)
263 if (file_printf(ms, " CRLF") == -1)
266 if (file_printf(ms, ",") == -1)
270 if (file_printf(ms, " CR") == -1)
273 if (file_printf(ms, ",") == -1)
277 if (file_printf(ms, " LF") == -1)
280 if (file_printf(ms, ",") == -1)
284 if (file_printf(ms, " NEL") == -1)
288 if (file_printf(ms, " line terminators") == -1)
293 if (file_printf(ms, ", with escape sequences") == -1)
296 if (file_printf(ms, ", with overstriking") == -1)