#include "file.h"
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <stdarg.h>
#include <stdlib.h>
#include <time.h>
Go to the source code of this file.
Defines | |
#define | SZOF(a) (sizeof(a) / sizeof(a[0])) |
Functions | |
static const char * | rcsid (const char *p) |
void | file_mdump (struct magic *m) |
void | file_magwarn (struct magic_set *ms, const char *f,...) |
const char * | file_fmttime (uint32_t v, int local) |
#define SZOF | ( | a | ) | (sizeof(a) / sizeof(a[0])) |
const char* file_fmttime | ( | uint32_t | v, | |
int | local | |||
) |
void file_magwarn | ( | struct magic_set * | ms, | |
const char * | f, | |||
... | ||||
) |
Definition at line 141 of file print.c.
References magic_set::file, and magic_set::line.
Referenced by apprentice_1(), check_format(), file_signextend(), getvalue(), and parse().
void file_mdump | ( | struct magic * | m | ) |
Definition at line 51 of file print.c.
References CHAR_COMPACT_BLANK, CHAR_COMPACT_OPTIONAL_BLANK, CHAR_IGNORE_LOWERCASE, magic::cont_level, magic::desc, FILE_BEDATE, FILE_BELDATE, FILE_BELONG, FILE_BESHORT, FILE_BYTE, FILE_DATE, file_fmttime(), FILE_LDATE, FILE_LEDATE, FILE_LELDATE, FILE_LELONG, FILE_LESHORT, FILE_LONG, FILE_OPINVERSE, FILE_PSTRING, FILE_REGEX, FILE_SHORT, file_showstr(), FILE_STRING, magic::flag, magic::in_offset, magic::in_op, magic::in_type, INDIR, magic::VALUETYPE::l, magic::mask, magic::mask_op, magic::offset, magic::reln, magic::VALUETYPE::s, STRING_COMPACT_BLANK, STRING_COMPACT_OPTIONAL_BLANK, STRING_IGNORE_LOWERCASE, SZOF, magic::type, UNSIGNED, and magic::value.