H A D | funcs.c | 56 file_vprintf(struct magic_set *ms, const char *fmt, va_list ap) argument 65 if (ms->o.buf != NULL) { 66 len = asprintf(&newstr, "%s%s", ms->o.buf, buf); 70 free(ms->o.buf); 73 ms->o.buf = buf; 76 file_error(ms, errno, "vasprintf failed"); 81 file_printf(struct magic_set *ms, const char *fmt, ...) argument 87 rv = file_vprintf(ms, fmt, ap); 97 file_error_core(struct magic_set *ms, int error, const char *f, va_list va, argument 101 if (ms 117 file_error(struct magic_set *ms, int error, const char *f, ...) argument 130 file_magerror(struct magic_set *ms, const char *f, ...) argument 139 file_oomem(struct magic_set *ms, size_t len) argument 145 file_badseek(struct magic_set *ms) argument 151 file_badread(struct magic_set *ms) argument 158 file_buffer(struct magic_set *ms, int fd, const char *inname, const void *buf, size_t nb) argument 303 file_reset(struct magic_set *ms) argument 331 file_getbuffer(struct magic_set *ms) argument 409 file_check_mem(struct magic_set *ms, unsigned int level) argument [all...] |