Rizin
unix-like reverse engineering framework and cli tools
file_opts.h
Go to the documentation of this file.
1 /* $OpenBSD: file_opts.h,v 1.2 2009/04/26 14:17:45 chl Exp $ */
2 /*
3  * Table of command-line options
4  *
5  * The first column specifies the short name, if any, or 0 if none.
6  * The second column specifies the long name.
7  * The third column specifies whether it takes a parameter.
8  * The fourth column is the documentation.
9  *
10  * N.B. The long options' order must correspond to the code in file.c,
11  * and OPTSTRING must be kept up-to-date with the short options.
12  * Pay particular attention to the numbers of long-only options in the
13  * switch statement!
14  */
15 
16 OPT_LONGONLY("help", 0, " display this help and exit\n")
17 OPT('v', "version", 0, " output version information and exit\n")
18 OPT('m', "magic-file", 1, " LIST use LIST as a colon-separated list of magic\n"
19  " number files\n")
20 OPT('z', "uncompress", 0, " try to look inside compressed files\n")
21 OPT('b', "brief", 0, " do not prepend filenames to output lines\n")
22 OPT('c', "checking-printout", 0, " print the parsed form of the magic file, use in\n"
23  " conjunction with -m to debug a new magic file\n"
24  " before installing it\n")
25 OPT('e', "exclude", 1, " TEST exclude TEST from the list of test to be\n"
26  " performed for file. Valid tests are:\n"
27  " ascii, apptype, compress, elf, soft, tar, tokens, troff\n")
28 OPT('f', "files-from", 1, " FILE read the filenames to be examined from FILE\n")
29 OPT('F', "separator", 1, " STRING use string as separator instead of `:'\n")
30 OPT('i', "mime", 0, " output MIME type strings (--mime-type and\n"
31  " --mime-encoding)\n")
32 OPT_LONGONLY("mime-type", 0, " output the MIME type\n")
33 OPT_LONGONLY("mime-encoding", 0, " output the MIME encoding\n")
34 OPT('k', "keep-going", 0, " don't stop at the first match\n")
35 #ifdef S_IFLNK
36 OPT('L', "dereference", 0, " follow symlinks (default)\n")
37 OPT('h', "no-dereference", 0, " don't follow symlinks\n")
38 #endif
39 OPT('n', "no-buffer", 0, " do not buffer output\n")
40 OPT('N', "no-pad", 0, " do not pad output\n")
41 OPT('0', "print0", 0, " terminate filenames with ASCII NUL\n")
42 #if defined(HAVE_UTIME) || defined(HAVE_UTIMES)
43 OPT('p', "preserve-date", 0, " preserve access times on files\n")
44 #endif
45 OPT('r', "raw", 0, " don't translate unprintable chars to \\ooo\n")
46 OPT('s', "special-files", 0, " treat special (block/char devices) files as\n"
47  " ordinary ones\n")
48 OPT('C', "compile", 0, " compile file specified by -m\n")
49 OPT('d', "debug", 0, " print debugging messages\n")
#define e(frag)
lzma_index ** i
Definition: index.h:629
#define C(x)
Definition: arc.h:167
static RzBinSourceLineInfo * lines(RzBinFile *bf)
Definition: bin_symbols.c:427
const lzma_allocator const uint8_t * in
Definition: block.h:527
int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
Definition: compress.c:68
const char * k
Definition: dsignal.c:11
const char * v
Definition: dsignal.c:12
OPT('m', "magic-file", 1, " LIST use LIST as a colon-separated list of magic\n" " number files\n") OPT('c'
checking print the parsed form of the magic use in n conjunction with m to debug a new magic file n before installing it n output MIME type strings(--mime-type and\n" " --mime-encoding)\n") OPT('s'
checking print the parsed form of the magic use in n conjunction with m to debug a new magic file n before installing it n mime
Definition: file_opts.h:30
checking printout
Definition: file_opts.h:22
checking print the parsed form of the magic use in n conjunction with m to debug a new magic file n before installing it n output MIME type special files
Definition: file_opts.h:46
static void list(RzEgg *egg)
Definition: rz-gg.c:52
static void terminate(RZ_UNUSED int sig)
Definition: main.c:18
int n
Definition: mipsasm.c:19
int type
Definition: mipsasm.c:17
string FILE
Definition: benchmark.py:21
-lz4-versions
static void pad(RzStrBuf *sb, ut32 count)
Definition: protobuf.c:36
static void ordinary(struct parse *, int)
Definition: regcomp.c:1062
static void special(struct parse *, int)
Definition: regcomp.c:1076
static RzSocket * s
Definition: rtr.c:28
static struct sockaddr static addrlen static backlog const void static flags void struct sockaddr from
Definition: sfsocketcall.h:123
static struct sockaddr static addrlen static backlog const void static flags void struct sockaddr socklen_t static fromlen const void const struct sockaddr to
Definition: sfsocketcall.h:125
#define d(i)
Definition: sha256.c:44
#define b(i)
Definition: sha256.c:42
#define f(i)
Definition: sha256.c:46
#define c(i)
Definition: sha256.c:43
#define a(i)
Definition: sha256.c:41
#define h(i)
Definition: sha256.c:48
Definition: gzappend.c:170
Definition: engine.c:71
static uint8_t compressed[1024]
in[] after compression
#define F(x)
Definition: tricore.h:111
int ZEXPORT uncompress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
Definition: uncompr.c:86
int tar(gzFile in, int action, int arg, int argc, char **argv)
Definition: untgz.c:386
static int debug
Definition: visual.c:21
#define N
Definition: zip_err_str.c:8
diff_output_t output
Definition: zipcmp.c:237
int read(izstream &zs, T *x, Items items)
Definition: zstream.h:115