/freebsd-current/contrib/file/src/ |
H A D | der.h | 27 extern int der_offs(struct magic_set *, struct magic *, size_t); 28 extern int der_cmp(struct magic_set *, struct magic *);
|
H A D | file.h | 455 struct magic_set { struct 526 file_protected struct magic_set *file_ms_alloc(int); 527 file_protected void file_ms_free(struct magic_set *); 528 file_protected int file_default(struct magic_set *, size_t); 529 file_protected int file_buffer(struct magic_set *, int, struct stat *, 531 file_protected int file_fsmagic(struct magic_set *, const char *, 533 file_protected int file_pipe2file(struct magic_set *, int, const void *, 535 file_protected int file_vprintf(struct magic_set *, const char *, va_list) 537 file_protected int file_separator(struct magic_set *); 540 file_protected size_t file_printedlen(const struct magic_set *); [all...] |
H A D | magic.c | 72 file_private void close_and_restore(const struct magic_set *, const char *, int, 74 file_private int unreadable_info(struct magic_set *, mode_t, const char *); 77 file_private const char *file_or_fd(struct magic_set *, const char *, int); 266 file_public struct magic_set * 273 unreadable_info(struct magic_set *ms, mode_t md, const char *file) 306 magic_close(struct magic_set *ms) 317 magic_load(struct magic_set *ms, const char *magicfile) 329 magic_load_buffers(struct magic_set *ms, void **bufs, size_t *sizes, 340 magic_compile(struct magic_set *ms, const char *magicfile) 348 magic_check(struct magic_set *m [all...] |
H A D | funcs.c | 67 file_clearbuf(struct magic_set *ms) 133 file_vprintf(struct magic_set *ms, const char *fmt, va_list ap) 176 file_printf(struct magic_set *ms, const char *fmt, ...) 193 file_error_core(struct magic_set *ms, int error, const char *f, va_list va, 214 file_error(struct magic_set *ms, int error, const char *f, ...) 227 file_magerror(struct magic_set *ms, const char *f, ...) 236 file_oomem(struct magic_set *ms, size_t len) 243 file_badseek(struct magic_set *ms) 249 file_badread(struct magic_set *ms) 258 file_separator(struct magic_set *m [all...] |
H A D | apprentice.c | 115 file_private int getvalue(struct magic_set *ms, struct magic *, const char **, int); 117 file_private const char *getstr(struct magic_set *, struct magic *, const char *, 119 file_private int parse(struct magic_set *, struct magic_entry *, const char *, 122 file_private int apprentice_1(struct magic_set *, const char *, int); 126 file_private struct magic_map *apprentice_load(struct magic_set *, 129 file_private void mlist_free_all(struct magic_set *); 148 file_private char *mkdbname(struct magic_set *, const char *, int); 149 file_private struct magic_map *apprentice_buf(struct magic_set *, struct magic *, 151 file_private struct magic_map *apprentice_map(struct magic_set *, const char *); 152 file_private int check_buffer(struct magic_set *, struc [all...] |
H A D | readelf.c | 45 file_private int dophn_core(struct magic_set *, int, int, int, off_t, int, 48 file_private int dophn_exec(struct magic_set *, int, int, int, off_t, int, 50 file_private int doshn(struct magic_set *, int, int, int, off_t, int, size_t, 52 file_private size_t donote(struct magic_set *, void *, size_t, size_t, int, 66 toomany(struct magic_set *ms, const char *name, uint16_t num) 347 dophn_core(struct magic_set *ms, int clazz, int swap, int fd, off_t off, 423 do_note_netbsd_version(struct magic_set *ms, int swap, void *v) 472 do_note_freebsd_version(struct magic_set *ms, int swap, void *v) 549 do_bid_note(struct magic_set *ms, unsigned char *nbuf, uint32_t type, 594 do_os_note(struct magic_set *m [all...] |
H A D | file.c | 183 file_private int unwrap(struct magic_set *, const char *); 184 file_private int process(struct magic_set *ms, const char *, int); 185 file_private struct magic_set *load(const char *, int); 203 struct magic_set *magic = NULL; 487 file_private struct magic_set * 491 struct magic_set *magic = magic_open(flags); 512 unwrap(struct magic_set *ms, const char *fn) 630 process(struct magic_set *ms, const char *inname, int wid) 664 file_mbswidth(struct magic_set *ms, const char *s)
|
H A D | fsmagic.c | 71 bad_link(struct magic_set *ms, int err, char *buf) 91 handle_mime(struct magic_set *ms, int mime, const char *str) 106 file_fsmagic(struct magic_set *ms, const char *fn, struct stat *sb)
|
H A D | softmagic.c | 48 file_private int match(struct magic_set *, struct magic *, file_regex_t **, size_t, 51 file_private int mget(struct magic_set *, struct magic *, const struct buffer *, 55 file_private int msetoffset(struct magic_set *, struct magic *, struct buffer *, 57 file_private int magiccheck(struct magic_set *, struct magic *, file_regex_t **); 58 file_private int mprint(struct magic_set *, struct magic *); 59 file_private int moffset(struct magic_set *, struct magic *, const struct buffer *, 62 file_private int mcopy(struct magic_set *, union VALUETYPE *, int, int, 64 file_private int mconvert(struct magic_set *, struct magic *, int); 65 file_private int print_sep(struct magic_set *, int); 66 file_private int handle_annotation(struct magic_set *, struc [all...] |
H A D | readcdf.c | 148 cdf_file_property_info(struct magic_set *ms, const cdf_property_info_t *info, 266 cdf_file_catalog(struct magic_set *ms, const cdf_header_t *h, 297 cdf_file_summary_info(struct magic_set *ms, const cdf_header_t *h, 369 cdf_file_catalog_info(struct magic_set *ms, const cdf_info_t *info, 387 cdf_check_summary_info(struct magic_set *ms, const cdf_info_t *info, 512 cdf_file_dir_info(struct magic_set *ms, const cdf_dir_t *dir) 541 file_trycdf(struct magic_set *ms, const struct buffer *b)
|
H A D | apptype.c | 45 file_os2_apptype(struct magic_set *ms, const char *fn, const void *buf,
|
H A D | is_tar.c | 63 file_is_tar(struct magic_set *ms, const struct buffer *b)
|
H A D | is_csv.c | 133 file_is_csv(struct magic_set *ms, const struct buffer *b, int looks_text,
|
H A D | ascmagic.c | 71 file_ascmagic(struct magic_set *ms, const struct buffer *b, int text) 105 file_ascmagic_with_encoding(struct magic_set *ms, const struct buffer *b,
|
H A D | is_simh.c | 149 file_is_simh(struct magic_set *ms, const struct buffer *b)
|
H A D | der.c | 264 der_offs(struct magic_set *ms, struct magic *m, size_t nbytes) 303 der_cmp(struct magic_set *ms, struct magic *m)
|
H A D | print.c | 246 file_magwarn(struct magic_set *ms, const char *f, ...)
|
H A D | is_json.c | 422 file_is_json(struct magic_set *ms, const struct buffer *b)
|
H A D | compress.c | 252 format_decompression_error(struct magic_set *ms, size_t i, unsigned char *buf) 269 file_zmagic(struct magic_set *ms, const struct buffer *b, const char *name) 472 file_pipe2file(struct magic_set *ms, int fd, const void *startbuf,
|
H A D | encoding.c | 75 file_encoding(struct magic_set *ms, const struct buffer *b,
|
/freebsd-current/contrib/file/python/ |
H A D | magic.py | 65 class magic_set(Structure): class in inherits:Structure 67 magic_set._fields_ = [] 68 magic_t = POINTER(magic_set)
|
/freebsd-current/contrib/file/tests/ |
H A D | test.c | 81 struct magic_set *ms = NULL;
|