Include dependency graph for filetype.c:
Classes | |
| struct | FILETYPEAPP_globals |
Defines | |
| #define | FILETYPEAPP_SPECFILE_COUNT_MAXIMUM 100 |
| #define | FILETYPEAPP_FILELIST_COUNT_MAXIMUM 100 |
| #define | FILETYPEAPP_SPEC_FILEPATH_SIZE 1024 |
| #define | DIRECTORY_SEPERATOR '/' |
| #define | SEARCHLIST_SEPARATOR ':' |
Functions | |
| int | FILETYPEAPP_parse_parameters (struct FILETYPEAPP_globals *glb, int argc, char **argv) |
| int | FILETYPEAPP_locate_specfile_home (struct FILETYPEAPP_globals *glb) |
| int | FILETYPEAPP_locate_specfile_cwd (struct FILETYPEAPP_globals *glb) |
| int | FILETYPEAPP_locate_specfile_envvar (struct FILETYPEAPP_globals *glb) |
| int | FILETYPEAPP_locate_specfile (struct FILETYPEAPP_globals *glb) |
| int | FILETYPEAPP_init (struct FILETYPEAPP_globals *glb) |
| int | FILETYPEAPP_filetype_test (struct FILETYPEAPP_globals *glb, int argc, char **argv) |
| int | FILETYPEAPP_done (struct FILETYPEAPP_globals *glb) |
| int | main (int argc, char **argv) |
Variables | |
| char * | spec_locations [] |
| char | version [] = "v0.1.3 - 06-April-2004 (C) PLDaniels http://www.pldaniels.com/filetype" |
| char | help [] |
| #define DIRECTORY_SEPERATOR '/' |
| #define FILETYPEAPP_FILELIST_COUNT_MAXIMUM 100 |
| #define FILETYPEAPP_SPEC_FILEPATH_SIZE 1024 |
| #define FILETYPEAPP_SPECFILE_COUNT_MAXIMUM 100 |
| #define SEARCHLIST_SEPARATOR ':' |
| int FILETYPEAPP_done | ( | struct FILETYPEAPP_globals * | glb | ) |
| int FILETYPEAPP_filetype_test | ( | struct FILETYPEAPP_globals * | glb, | |
| int | argc, | |||
| char ** | argv | |||
| ) |
| int FILETYPEAPP_init | ( | struct FILETYPEAPP_globals * | glb | ) |
| int FILETYPEAPP_locate_specfile | ( | struct FILETYPEAPP_globals * | glb | ) |
| int FILETYPEAPP_locate_specfile_cwd | ( | struct FILETYPEAPP_globals * | glb | ) |
| int FILETYPEAPP_locate_specfile_envvar | ( | struct FILETYPEAPP_globals * | glb | ) |
| int FILETYPEAPP_locate_specfile_home | ( | struct FILETYPEAPP_globals * | glb | ) |
| int FILETYPEAPP_parse_parameters | ( | struct FILETYPEAPP_globals * | glb, | |
| int | argc, | |||
| char ** | argv | |||
| ) |
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
| char help[] |
Initial value:
"Usage:\n" "\tfiletype [ -s filetype-spec file ] [-h|--help] [-v|--version] [-d|--debug] [--log-stdin|--log-stderr|--log-syslog] [-f <filename|->] <file> [file...]\n" "\tOptions available :\n" "\t-f : Specify a file containing a list of files to test,\n" "\t\tmultiple file lists can be used by specifying each one as\n" "\t\ta seperate '-f filelist' paramter. Additionally, use '-f -'\n" "\t\tif you wish to read the file list from STDIN\n" "\t-s : Specify the location of a filetype spec file,\n" "\t\tmultiple spec files can be used by specifying each one as\n" "\t\ta seperate '-s specfile' parameter.\n" "\t-h, --help : This help message\n" "\t-v, --version : Give version information\n" "\t-d, --debug : Turn on debugging\n" "\t--verbose : Display additional runtime information\n" "\t--log-stdout : Send verbose/debug output to stdout\n" "\t--log-stderr : Send verbose/debug output to stderr\n" "\t--log-syslog : Send verbose/debug output to syslog (if available)\n"
| char* spec_locations[] |
Initial value:
{
"$FILESPECPATH",
"/etc/filetype.spec",
"~/.filetypespec",
"filetype.spec",
".",
NULL
}
| char version[] = "v0.1.3 - 06-April-2004 (C) PLDaniels http://www.pldaniels.com/filetype" |
1.5.1-p1