Home
last modified time | relevance | path

Searched refs:magic_set (Results 1 – 21 of 21) sorted by relevance

/php-src/ext/fileinfo/libmagic/
H A Dfile.h447 struct magic_set { struct
518 file_protected struct magic_set *file_ms_alloc(int); argument
519 file_protected void file_ms_free(struct magic_set *);
527 file_protected int file_separator(struct magic_set *);
530 file_protected size_t file_printedlen(const struct magic_set *);
536 file_protected int file_reset(struct magic_set *, int);
567 file_protected void file_badread(struct magic_set *);
568 file_protected void file_badseek(struct magic_set *);
569 file_protected void file_oomem(struct magic_set *, size_t);
579 file_protected const char *file_getbuffer(struct magic_set *);
[all …]
H A Dmagic.c81 file_public struct magic_set *
121 magic_close(struct magic_set *ms) in magic_close()
132 magic_load(struct magic_set *ms, const char *magicfile) in magic_load()
156 magic_list(struct magic_set *ms, const char *magicfile) in magic_list()
169 magic_descriptor(struct magic_set *ms, int fd) in magic_descriptor()
180 magic_file(struct magic_set *ms, const char *inname) in magic_file()
188 magic_stream(struct magic_set *ms, php_stream *stream) in magic_stream()
290 magic_error(struct magic_set *ms) in magic_error()
298 magic_errno(struct magic_set *ms) in magic_errno()
306 magic_getflags(struct magic_set *ms) in magic_getflags()
[all …]
H A Dder.h27 extern int der_offs(struct magic_set *, struct magic *, size_t);
28 extern int der_cmp(struct magic_set *, struct magic *);
H A Dfuncs.c67 file_clearbuf(struct magic_set *ms) in file_clearbuf()
230 file_oomem(struct magic_set *ms, size_t len) in file_oomem()
237 file_badseek(struct magic_set *ms) in file_badseek()
243 file_badread(struct magic_set *ms) in file_badread()
252 file_separator(struct magic_set *ms) in file_separator()
258 trim_separator(struct magic_set *ms) in trim_separator()
277 checkdone(struct magic_set *ms, int *rv) in checkdone()
287 file_default(struct magic_set *ms, size_t nb) in file_default()
548 file_getbuffer(struct magic_set *ms) in file_getbuffer()
649 file_printedlen(const struct magic_set *ms) in file_printedlen()
[all …]
H A Dapprentice.c131 file_private void mlist_free_all(struct magic_set *);
197 struct magic_set *ms; in main()
526 file_ms_free(struct magic_set *ms) in file_ms_free()
548 file_protected struct magic_set *
551 struct magic_set *ms; in file_ms_alloc()
554 if ((ms = CAST(struct magic_set *, ecalloc(CAST(size_t, 1u), in file_ms_alloc()
627 mlist_free_all(struct magic_set *ms) in mlist_free_all()
1228 addentry(struct magic_set *ms, struct magic_entry *me, in addentry()
2730 check_format(struct magic_set *ms, struct magic *m) in check_format()
3206 apprentice_map(struct magic_set *ms, const char *fn) in apprentice_map()
[all …]
H A Dsoftmagic.c58 file_private int mprint(struct magic_set *, struct magic *);
65 file_private int print_sep(struct magic_set *, int);
119 file_softmagic(struct magic_set *ms, const struct buffer *b, in file_softmagic()
212 match(struct magic_set *ms, struct magic *magic, in match()
490 check_fmt(struct magic_set *ms, const char *fmt) in check_fmt()
592 mprint(struct magic_set *ms, struct magic *m) in mprint()
996 cvt_id3(struct magic_set *ms, uint32_t v) in cvt_id3()
1571 save_cont(struct magic_set *ms, struct cont *c) in save_cont()
1586 restore_cont(struct magic_set *ms, struct cont *c) in restore_cont()
2085 magiccheck(struct magic_set *ms, struct magic *m) in magiccheck()
[all …]
H A Dreadcdf.c135 cdf_file_property_info(struct magic_set *ms, const cdf_property_info_t *info, in cdf_file_property_info()
255 cdf_file_catalog(struct magic_set *ms, const cdf_header_t *h, in cdf_file_catalog()
286 cdf_file_summary_info(struct magic_set *ms, const cdf_header_t *h, in cdf_file_summary_info()
358 cdf_file_catalog_info(struct magic_set *ms, const cdf_info_t *info, in cdf_file_catalog_info()
376 cdf_check_summary_info(struct magic_set *ms, const cdf_info_t *info, in cdf_check_summary_info()
501 cdf_file_dir_info(struct magic_set *ms, const cdf_dir_t *dir) in cdf_file_dir_info()
530 file_trycdf(struct magic_set *ms, const struct buffer *b) in file_trycdf()
H A Dfsmagic.c75 handle_mime(struct magic_set *ms, int mime, const char *str) in handle_mime()
90 file_fsmagic(struct magic_set *ms, const char *fn, zend_stat_t *sb) in file_fsmagic()
H A Dmagic.h125 typedef struct magic_set *magic_t;
H A Dis_csv.c133 file_is_csv(struct magic_set *ms, const struct buffer *b, int looks_text, in file_is_csv()
H A Dapptype.c45 file_os2_apptype(struct magic_set *ms, const char *fn, const void *buf, in file_os2_apptype()
H A Dis_tar.c63 file_is_tar(struct magic_set *ms, const struct buffer *b) in file_is_tar()
H A Dascmagic.c71 file_ascmagic(struct magic_set *ms, const struct buffer *b, int text) in file_ascmagic()
105 file_ascmagic_with_encoding(struct magic_set *ms, const struct buffer *b, in file_ascmagic_with_encoding()
H A Dis_simh.c149 file_is_simh(struct magic_set *ms, const struct buffer *b) in file_is_simh()
H A Dder.c266 der_offs(struct magic_set *ms, struct magic *m, size_t nbytes) in der_offs()
305 der_cmp(struct magic_set *ms, struct magic *m) in der_cmp()
H A Dcompress.c255 format_decompression_error(struct magic_set *ms, size_t i, unsigned char *buf) in format_decompression_error()
272 file_zmagic(struct magic_set *ms, const struct buffer *b, const char *name) in file_zmagic()
476 file_pipe2file(struct magic_set *ms, int fd, const void *startbuf, in file_pipe2file()
H A Dis_json.c422 file_is_json(struct magic_set *ms, const struct buffer *b) in file_is_json()
H A Dprint.c246 file_magwarn(struct magic_set *ms, const char *f, ...) in file_magwarn()
H A Dencoding.c75 file_encoding(struct magic_set *ms, const struct buffer *b, in file_encoding()
/php-src/ext/fileinfo/
H A Dlibmagic.patch81 file_protected struct magic_set *
83 struct magic_set *ms;
565 apprentice_map(struct magic_set *ms, const char *fn)
1593 -bad_link(struct magic_set *ms, int err, char *buf)
1882 file_clearbuf(struct magic_set *ms)
2076 -check_regex(struct magic_set *ms, const char *pat)
2452 file_public struct magic_set *
2989 +match(struct magic_set *ms, struct magic *magic,
3033 check_fmt(struct magic_set *ms, const char *fmt)
3103 restore_cont(struct magic_set *ms, struct cont *c)
[all …]
H A Dfileinfo.c42 struct magic_set *magic;
299 struct magic_set *magic = NULL; in _php_finfo_get_type()

Completed in 130 milliseconds