#include "system.h"
#include "file.h"
#include "patchlevel.h"
#include "debug.h"
Go to the source code of this file.
Defines | |
#define | USAGE "Usage: %s [-bciknsvz] [-f namefile] [-m magicfiles] file...\n" |
#define | MAXPATHLEN 512 |
#define | OPTSTRING "bcdf:ikm:nsvzCL" |
Functions | |
const char * | rcsid (const char *p) |
void | unwrap (fmagic fm, char *fn) |
void | usage (void) |
int | main (int argc, char **argv) |
Variables | |
int | nobuffer = 0 |
|
Definition at line 49 of file file.c. Referenced by unwrap(). |
|
|
|
Definition at line 40 of file file.c. Referenced by usage(). |
|
Definition at line 157 of file file.c. References __progname, argv, CHECK, COMPILE, fmagic_s::flags, FMAGIC_FLAGS_BRIEF, FMAGIC_FLAGS_CONTINUE, FMAGIC_FLAGS_DEBUG, FMAGIC_FLAGS_FOLLOW, FMAGIC_FLAGS_MIME, FMAGIC_FLAGS_SPECIAL, FMAGIC_FLAGS_UNCOMPRESS, fmagicProcess(), fmagicSetup(), getenv(), fmagic_s::magicfile, fmagic_s::nob, nobuffer, fmagic_s::obp, fmagic_s::obuf, setlocale, unwrap(), usage(), and xmalloc(). |
|
|
|
Definition at line 61 of file file.c. References errno, error(), EXIT_FAILURE, fmagicProcess(), MAXPATHLEN, fmagic_s::nob, fmagic_s::obp, fmagic_s::obuf, and strerror(). Referenced by main(). |
|
Definition at line 108 of file file.c. References __progname, EXIT_FAILURE, and USAGE. Referenced by main(). |
|
Definition at line 54 of file file.c. Referenced by main(). |