| /freebsd/contrib/file/src/ |
| H A D | fsmagic.c | 75 file_printf(ms, "inode/symlink") in bad_link() 84 if (file_printf(ms, "broken symbolic link to %s", buf) == -1) in bad_link() 94 if (file_printf(ms, "inode/%s", str) == -1) in handle_mime() 96 if ((mime & MAGIC_MIME_ENCODING) && file_printf(ms, in handle_mime() 100 if ((mime & MAGIC_MIME_ENCODING) && file_printf(ms, "binary") == -1) in handle_mime() 166 if (file_printf(ms, "cannot open `%s' (%s)", in file_fsmagic() 176 if (file_printf(ms, "%ssetuid", COMMA) == -1) in file_fsmagic() 181 if (file_printf(ms, "%ssetgid", COMMA) == -1) in file_fsmagic() 186 if (file_printf(ms, "%ssticky", COMMA) == -1) in file_fsmagic() 197 } else if (file_printf(ms, "%sdirectory", COMMA) == -1) in file_fsmagic() [all …]
|
| H A D | apptype.c | 108 if (file_printf(ms, "32-bit ") == -1) in file_os2_apptype() 111 if (file_printf(ms, "physical device driver") == -1) in file_os2_apptype() 114 if (file_printf(ms, "virtual device driver") == -1) in file_os2_apptype() 118 if (file_printf(ms, "file_protected ") == -1) in file_os2_apptype() 120 if (file_printf(ms, "DLL") == -1) in file_os2_apptype() 123 if (file_printf(ms, "Windows executable") == -1) in file_os2_apptype() 133 if (file_printf(ms, "DOS executable") == -1) in file_os2_apptype() 137 if (file_printf(ms, ", magic(4)-> ") == -1) in file_os2_apptype() 142 if (file_printf(ms, "bound executable") == -1) in file_os2_apptype() 145 if (file_printf(ms, "PM executable") == -1) in file_os2_apptype() [all …]
|
| H A D | ascmagic.c | 233 if (file_printf(ms, "text/plain") == -1) in file_ascmagic_with_encoding() 243 if (file_printf(ms, ", ") == -1) in file_ascmagic_with_encoding() 260 if (file_printf(ms, "%s", code) == -1) in file_ascmagic_with_encoding() 264 if (file_printf(ms, " %s", subtype) == -1) in file_ascmagic_with_encoding() 268 if (file_printf(ms, " %s", type) == -1) in file_ascmagic_with_encoding() 272 if (file_printf(ms, " executable") == -1) in file_ascmagic_with_encoding() 276 if (file_printf(ms, ", with very long lines (%" in file_ascmagic_with_encoding() 286 if (file_printf(ms, ", with") == -1) in file_ascmagic_with_encoding() 291 if (file_printf(ms, " no") == -1) in file_ascmagic_with_encoding() 295 if (file_printf(ms, " CRLF") == -1) in file_ascmagic_with_encoding() [all …]
|
| H A D | readcdf.c | 169 if (NOTMIME(ms) && file_printf(ms, ", %s: %hd", buf, in cdf_file_property_info() 174 if (NOTMIME(ms) && file_printf(ms, ", %s: %d", buf, in cdf_file_property_info() 179 if (NOTMIME(ms) && file_printf(ms, ", %s: %u", buf, in cdf_file_property_info() 184 if (NOTMIME(ms) && file_printf(ms, ", %s: %g", buf, in cdf_file_property_info() 189 if (NOTMIME(ms) && file_printf(ms, ", %s: %g", buf, in cdf_file_property_info() 216 if (file_printf(ms, ", %s: %s", in cdf_file_property_info() 238 if (NOTMIME(ms) && file_printf(ms, in cdf_file_property_info() 249 if (NOTMIME(ms) && file_printf(ms, in cdf_file_property_info() 264 if (file_printf(ms, "application/%s", str) == -1) in cdf_file_property_info() 280 if (file_printf(ms, "Microsoft Thumbs.db [") == -1) in cdf_file_catalog() [all …]
|
| H A D | funcs.c | 197 file_printf(struct magic_set *ms, const char *fmt, ...) in file_printf() function 222 (void)file_printf(ms, "line %" SIZE_T_FORMAT "u:", lineno); in file_error_core() 225 (void)file_printf(ms, " "); in file_error_core() 228 (void)file_printf(ms, " (%s)", strerror(error)); in file_error_core() 281 return file_printf(ms, FILE_SEPARATOR); in file_separator() 318 file_printf(ms, "application/%s", in file_default() 325 if (file_printf(ms, "UNKNUNKN") == -1) in file_default() 330 if (file_printf(ms, "???") == -1) in file_default() 486 if (file_printf(ms, "%s", rbuf) == -1) in file_buffer() 512 if (file_printf(ms, "%s", def) == -1) in file_buffer() [all …]
|
| H A D | softmagic.c | 464 if (file_printf(ms, " ") == -1) in match() 630 if (file_printf(ms, F(ms, desc, "%s"), buf) == -1) \ in mprint() 635 if (file_printf(ms, F(ms, desc, "%" format "u"), \ in mprint() 639 if (file_printf(ms, F(ms, desc, "%" format "d"), \ in mprint() 673 if (file_printf(ms, F(ms, desc, "%s"), in mprint() 689 if (file_printf(ms, F(ms, desc, "%s"), in mprint() 706 if (file_printf(ms, F(ms, desc, "%s"), in mprint() 715 if (file_printf(ms, F(ms, desc, "%s"), in mprint() 724 if (file_printf(ms, F(ms, desc, "%s"), in mprint() 732 if (file_printf(ms, F(ms, desc, "%s"), in mprint() [all …]
|
| H A D | is_csv.c | 155 if (file_printf(ms, "text/csv") == -1) in file_is_csv() 160 if (file_printf(ms, "CSV %s%stext", code ? code : "", in file_is_csv()
|
| H A D | magic.c | 279 if (file_printf(ms, "writable, ") == -1) in unreadable_info() 283 if (file_printf(ms, "executable, ") == -1) in unreadable_info() 293 if (file_printf(ms, "writable, ") == -1) in unreadable_info() 299 if (file_printf(ms, "regular file, ") == -1) in unreadable_info() 301 if (file_printf(ms, "no read permission") == -1) in unreadable_info()
|
| H A D | is_simh.c | 173 if (file_printf(ms, "application/SIMH-tape-data") == -1) in file_is_simh() 178 if (file_printf(ms, "SIMH tape data") == -1) in file_is_simh()
|
| H A D | is_json.c | 442 if (file_printf(ms, "application/%s", in file_is_json() 447 if (file_printf(ms, "%sJSON text data", in file_is_json() 452 if (file_printf(ms, " (%" SIZE_T_FORMAT "u object%s, %" SIZE_T_FORMAT in file_is_json()
|
| H A D | compress.c | 271 return file_printf(ms, "ERROR:[%s: %s]", methodname(i), buf); in format_decompression_error() 277 return file_printf(ms, "application/x-decompression-error-%s-%s", in format_decompression_error() 344 if ((file_printf(ms, in file_zmagic() 360 if (file_printf(ms, "%s", rbuf) == -1) { in file_zmagic() 366 if (!mime && file_printf(ms, ")") == -1) in file_zmagic()
|
| H A D | is_tar.c | 84 if (file_printf(ms, "%s", mime ? "application/x-tar" : in file_is_tar()
|
| H A D | file.h | 567 file_protected int file_printf(struct magic_set *, const char *, ...)
|
| /freebsd/contrib/file/ |
| H A D | ChangeLog | 1762 * fix integer underflow in file_printf which can lead to
|