H A D | magic.c | 267 unreadable_info(struct magic_set *ms, mode_t md, const char *file) argument 272 if (file_printf(ms, "writable, ") == -1) 275 if (file_printf(ms, "executable, ") == -1) 279 if (file_printf(ms, "regular file, ") == -1) 281 if (file_printf(ms, "no read permission") == -1) 287 magic_close(struct magic_set *ms) argument 289 if (ms == NULL) 291 file_ms_free(ms); 298 magic_load(struct magic_set *ms, const char *magicfile) argument 300 if (ms 310 magic_load_buffers(struct magic_set *ms, void **bufs, size_t *sizes, size_t nbufs) argument 321 magic_compile(struct magic_set *ms, const char *magicfile) argument 329 magic_check(struct magic_set *ms, const char *magicfile) argument 337 magic_list(struct magic_set *ms, const char *magicfile) argument 345 close_and_restore(const struct magic_set *ms, const char *name, int fd, const struct stat *sb) argument 383 magic_descriptor(struct magic_set *ms, int fd) argument 394 magic_file(struct magic_set *ms, const char *inname) argument 402 file_or_fd(struct magic_set *ms, const char *inname, int fd) argument 529 magic_buffer(struct magic_set *ms, const void *buf, size_t nb) argument 547 magic_error(struct magic_set *ms) argument 555 magic_errno(struct magic_set *ms) argument 563 magic_getflags(struct magic_set *ms) argument 572 magic_setflags(struct magic_set *ms, int flags) argument 591 magic_setparam(struct magic_set *ms, int param, const void *val) argument 624 magic_getparam(struct magic_set *ms, int param, void *val) argument [all...] |