Home
last modified time | relevance | path

Searched refs:file_printf (Results 1 – 15 of 15) sorted by relevance

/netbsd-src/external/bsd/file/dist/src/
H A Dfsmagic.c81 file_printf(ms, "inode/symlink") in bad_link()
90 if (file_printf(ms, "broken symbolic link to %s", buf) == -1) in bad_link()
100 if (file_printf(ms, "inode/%s", str) == -1) in handle_mime()
102 if ((mime & MAGIC_MIME_ENCODING) && file_printf(ms, in handle_mime()
106 if ((mime & MAGIC_MIME_ENCODING) && file_printf(ms, "binary") == -1) in handle_mime()
172 if (file_printf(ms, "cannot open `%s' (%s)", in file_fsmagic()
182 if (file_printf(ms, "%ssetuid", COMMA) == -1) in file_fsmagic()
187 if (file_printf(ms, "%ssetgid", COMMA) == -1) in file_fsmagic()
192 if (file_printf(ms, "%ssticky", COMMA) == -1) in file_fsmagic()
203 } else if (file_printf(ms, "%sdirectory", COMMA) == -1) in file_fsmagic()
[all …]
H A Dapptype.c115 if (file_printf(ms, "32-bit ") == -1) in file_os2_apptype()
118 if (file_printf(ms, "physical device driver") == -1) in file_os2_apptype()
121 if (file_printf(ms, "virtual device driver") == -1) in file_os2_apptype()
125 if (file_printf(ms, "file_protected ") == -1) in file_os2_apptype()
127 if (file_printf(ms, "DLL") == -1) in file_os2_apptype()
130 if (file_printf(ms, "Windows executable") == -1) in file_os2_apptype()
140 if (file_printf(ms, "DOS executable") == -1) in file_os2_apptype()
144 if (file_printf(ms, ", magic(4)-> ") == -1) in file_os2_apptype()
149 if (file_printf(ms, "bound executable") == -1) in file_os2_apptype()
152 if (file_printf(ms, "PM executable") == -1) in file_os2_apptype()
[all …]
H A Dreadelf.c76 if (file_printf(ms, ", too many %s (%u)", name, num) == -1) in toomany()
368 if (file_printf(ms, ", no program header") == -1) in dophn_core()
373 if (file_printf(ms, ", corrupted program header size") == -1) in dophn_core()
384 if (file_printf(ms, in dophn_core()
407 if (file_printf(ms, " can't read note section at %jd", in dophn_core()
435 if (file_printf(ms, ", for NetBSD") == -1) in do_note_netbsd_version()
455 if (file_printf(ms, " %u.%u", ver_maj, ver_min) == -1) in do_note_netbsd_version()
462 if (file_printf(ms, ".%u", ver_patch) == -1) in do_note_netbsd_version()
466 if (file_printf(ms, "Z") == -1) in do_note_netbsd_version()
470 if (file_printf(ms, "%c", 'A' + ver_rel - 1) == -1) in do_note_netbsd_version()
[all …]
H A Dascmagic.c233 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 Dreadcdf.c175 if (NOTMIME(ms) && file_printf(ms, ", %s: %hd", buf, in cdf_file_property_info()
180 if (NOTMIME(ms) && file_printf(ms, ", %s: %d", buf, in cdf_file_property_info()
185 if (NOTMIME(ms) && file_printf(ms, ", %s: %u", buf, in cdf_file_property_info()
190 if (NOTMIME(ms) && file_printf(ms, ", %s: %g", buf, in cdf_file_property_info()
195 if (NOTMIME(ms) && file_printf(ms, ", %s: %g", buf, in cdf_file_property_info()
222 if (file_printf(ms, ", %s: %s", in cdf_file_property_info()
239 if (NOTMIME(ms) && file_printf(ms, in cdf_file_property_info()
250 if (NOTMIME(ms) && file_printf(ms, in cdf_file_property_info()
265 if (file_printf(ms, "application/%s", str) == -1) in cdf_file_property_info()
281 if (file_printf(ms, "Microsoft Thumbs.db [") == -1) in cdf_file_catalog()
[all …]
H A Dfuncs.c182 file_printf(struct magic_set *ms, const char *fmt, ...) in file_printf() function
207 (void)file_printf(ms, "line %" SIZE_T_FORMAT "u:", lineno); in file_error_core()
210 (void)file_printf(ms, " "); in file_error_core()
213 (void)file_printf(ms, " (%s)", strerror(error)); in file_error_core()
266 return file_printf(ms, FILE_SEPARATOR); in file_separator()
303 file_printf(ms, "application/%s", in file_default()
309 if (file_printf(ms, "UNKNUNKN") == -1) in file_default()
314 if (file_printf(ms, "???") == -1) in file_default()
470 if (file_printf(ms, "%s", rbuf) == -1) in file_buffer()
496 if (file_printf(ms, "%s", def) == -1) in file_buffer()
[all …]
H A Dsoftmagic.c450 if (file_printf(ms, " ") == -1) in match()
617 if (file_printf(ms, F(ms, desc, "%s"), buf) == -1) \ in mprint()
622 if (file_printf(ms, F(ms, desc, "%" format "u"), \ in mprint()
626 if (file_printf(ms, F(ms, desc, "%" format "d"), \ in mprint()
660 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
676 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
693 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
702 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
711 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
719 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
[all …]
H A Dis_csv.c159 if (file_printf(ms, "text/csv") == -1) in file_is_csv()
164 if (file_printf(ms, "CSV %s%stext", code ? code : "", in file_is_csv()
H A Dmagic.c284 if (file_printf(ms, "writable, ") == -1) in unreadable_info()
288 if (file_printf(ms, "executable, ") == -1) in unreadable_info()
298 if (file_printf(ms, "writable, ") == -1) in unreadable_info()
304 if (file_printf(ms, "regular file, ") == -1) in unreadable_info()
306 if (file_printf(ms, "no read permission") == -1) in unreadable_info()
H A Dis_simh.c171 if (file_printf(ms, "application/SIMH-tape-data") == -1) in file_is_simh()
176 if (file_printf(ms, "SIMH tape data") == -1) in file_is_simh()
H A Dis_json.c448 if (file_printf(ms, "application/%s", in file_is_json()
453 if (file_printf(ms, "%sJSON text data", in file_is_json()
458 if (file_printf(ms, " (%" SIZE_T_FORMAT "u object%s, %" SIZE_T_FORMAT in file_is_json()
H A Dcompress.c264 return file_printf(ms, "ERROR:[%s: %s]", methodname(i), buf); in format_decompression_error()
270 return file_printf(ms, "application/x-decompression-error-%s-%s", in format_decompression_error()
337 if ((file_printf(ms, in file_zmagic()
353 if (file_printf(ms, "%s", rbuf) == -1) { in file_zmagic()
359 if (!mime && file_printf(ms, ")") == -1) in file_zmagic()
H A Dis_tar.c90 if (file_printf(ms, "%s", mime ? "application/x-tar" : in file_is_tar()
H A Dfile.h546 file_protected int file_printf(struct magic_set *, const char *, ...)
/netbsd-src/external/bsd/file/dist/
H A DChangeLog1671 * fix integer underflow in file_printf which can lead to