003 File Manager
Current Path:
/usr/src/contrib/file/src
usr
/
src
/
contrib
/
file
/
src
/
📁
..
📄
Makefile.am
(878 B)
📄
Makefile.in
(31.09 KB)
📄
apprentice.c
(73.89 KB)
📄
apptype.c
(4.42 KB)
📄
ascmagic.c
(10.21 KB)
📄
asctime_r.c
(415 B)
📄
asprintf.c
(1.77 KB)
📄
buffer.c
(2.53 KB)
📄
cdf.c
(41.26 KB)
📄
cdf.h
(11.44 KB)
📄
cdf_time.c
(4.38 KB)
📄
compress.c
(22.59 KB)
📄
ctime_r.c
(402 B)
📄
der.c
(10.93 KB)
📄
der.h
(1.46 KB)
📄
dprintf.c
(2.02 KB)
📄
elfclass.h
(3.07 KB)
📄
encoding.c
(19.13 KB)
📄
file.c
(16.25 KB)
📄
file.h
(19.8 KB)
📄
file_opts.h
(3.68 KB)
📄
fmtcheck.c
(5.4 KB)
📄
fsmagic.c
(11.01 KB)
📄
funcs.c
(16.86 KB)
📄
getline.c
(2.74 KB)
📄
getopt_long.c
(12.51 KB)
📄
gmtime_r.c
(436 B)
📄
is_csv.c
(4.41 KB)
📄
is_json.c
(9.47 KB)
📄
is_tar.c
(4.74 KB)
📄
localtime_r.c
(448 B)
📄
magic.c
(14.85 KB)
📄
magic.h.in
(5.64 KB)
📄
mygetopt.h
(2.63 KB)
📄
pread.c
(424 B)
📄
print.c
(7.54 KB)
📄
readcdf.c
(16.25 KB)
📄
readelf.c
(44.75 KB)
📄
readelf.h
(16.76 KB)
📄
seccomp.c
(6.95 KB)
📄
softmagic.c
(54.32 KB)
📄
strcasestr.c
(2.76 KB)
📄
strlcat.c
(1.71 KB)
📄
strlcpy.c
(1.6 KB)
📄
tar.h
(2.56 KB)
📄
vasprintf.c
(19.22 KB)
Editing: file_opts.h
/* * Table of command-line options * * The first column specifies the short name, if any, or 0 if none. * The second column specifies the long name. * The third column specifies whether it takes a parameter. * The fourth colums specifies whether is is marked as "default" * if POSIXLY_CORRECT is defined: 1, * if POSIXLY_CORRECT is not defined: 2. * The fifth column is the documentation. * * N.B. The long options' order must correspond to the code in file.c, * and OPTSTRING must be kept up-to-date with the short options. * Pay particular attention to the numbers of long-only options in the * switch statement! */ OPT_LONGONLY("help", 0, 0, " display this help and exit\n", OPT_HELP) OPT('v', "version", 0, 0, " output version information and exit\n") OPT('m', "magic-file", 1, 0, " LIST use LIST as a colon-separated list of magic\n" " number files\n") OPT('z', "uncompress", 0, 0, " try to look inside compressed files\n") OPT('Z', "uncompress-noreport", 0, 0, " only print the contents of compressed files\n") OPT('b', "brief", 0, 0, " do not prepend filenames to output lines\n") OPT('c', "checking-printout", 0, 0, " print the parsed form of the magic file, use in\n" " conjunction with -m to debug a new magic file\n" " before installing it\n") OPT('e', "exclude", 1, 0, " TEST exclude TEST from the list of test to be\n" " performed for file. Valid tests are:\n" " %e\n") OPT_LONGONLY("exclude-quiet", 1, 0, " TEST like exclude, but ignore unknown tests\n", OPT_EXCLUDE_QUIET) OPT('f', "files-from", 1, 0, " FILE read the filenames to be examined from FILE\n") OPT('F', "separator", 1, 0, " STRING use string as separator instead of `:'\n") OPT('i', "mime", 0, 0, " output MIME type strings (--mime-type and\n" " --mime-encoding)\n") OPT_LONGONLY("apple", 0, 0, " output the Apple CREATOR/TYPE\n", OPT_APPLE) OPT_LONGONLY("extension", 0, 0, " output a slash-separated list of extensions\n", OPT_EXTENSIONS) OPT_LONGONLY("mime-type", 0, 0, " output the MIME type\n", OPT_MIME_TYPE) OPT_LONGONLY("mime-encoding", 0, 0, " output the MIME encoding\n", OPT_MIME_ENCODING) OPT('k', "keep-going", 0, 0, " don't stop at the first match\n") OPT('l', "list", 0, 0, " list magic strength\n") #ifdef S_IFLNK OPT('L', "dereference", 0, 1, " follow symlinks") OPT('h', "no-dereference", 0, 2, " don't follow symlinks") #endif OPT('n', "no-buffer", 0, 0, " do not buffer output\n") OPT('N', "no-pad", 0, 0, " do not pad output\n") OPT('0', "print0", 0, 0, " terminate filenames with ASCII NUL\n") #if defined(HAVE_UTIME) || defined(HAVE_UTIMES) OPT('p', "preserve-date", 0, 0, " preserve access times on files\n") #endif OPT('P', "parameter", 1, 0, " set file engine parameter limits\n" " %P\n") OPT('r', "raw", 0, 0, " don't translate unprintable chars to \\ooo\n") OPT('s', "special-files", 0, 0, " treat special (block/char devices) files as\n" " ordinary ones\n") OPT('S', "no-sandbox", 0, 0, " disable system call sandboxing\n") OPT('C', "compile", 0, 0, " compile file specified by -m\n") OPT('d', "debug", 0, 0, " print debugging messages\n")
Upload File
Create Folder