|
cfitsTK
|
main C file More...
Functions | |
| static int | clock_gettime (int clk_id, struct mach_timespec *t) |
| int | yy_scan_string (const char *) |
| int | yylex_destroy (void) |
CLIcore functions | |
| int | user_function () |
| void | fnExit1 (void) |
| void | main_init () |
| void | main_free () |
| static char ** | CLI_completion (const char *, int, int) |
| char * | CLI_generator (const char *, int) |
| char * | dupstr (char *) |
| void * | xmalloc (int) |
| int | re_alloc () |
| int | command_line (int argc, char **argv) |
| static int_fast8_t | exitCLI () |
| CLI commands. More... | |
| static int_fast8_t | help () |
| static int_fast8_t | list_commands () |
| static int_fast8_t | list_commands_module (char *modulename) |
| static int_fast8_t | help_command (char *cmdkey) |
| command help More... | |
| void | sig_handler (int signo) |
| signal catching More... | |
| static int_fast8_t | printInfo () |
| static int_fast8_t | helpreadline () |
| static int_fast8_t | help_cmd () |
| static int_fast8_t | help_module () |
| int_fast8_t | set_default_precision_single () |
| int_fast8_t | set_default_precision_double () |
| int_fast8_t | cfits_usleep_cli () |
| static int_fast8_t | CLI_execute_line () |
| void | rl_cb (char *linein) |
| Readline callback. More... | |
| uint_fast16_t | RegisterCLIcommand (char *CLIkey, char *CLImodule, int_fast8_t(*CLIfptr)(), char *CLIinfo, char *CLIsyntax, char *CLIexample, char *CLICcall) |
| int_fast8_t | main (int argc, char *argv[]) |
| Command Line Interface (CLI) main . More... | |
| int | CLI_checkarg0 (int argnum, int argtype, int errmsg) |
| int | CLI_checkarg (int argnum, int argtype) |
| int | CLI_checkarg_noerrmsg (int argnum, int argtype) |
Variables | |
| pid_t | CLIPID |
| important directories and info More... | |
| char | DocDir [200] |
| char | SrcDir [200] |
| char | BuildFile [200] |
| char | BuildDate [200] |
| char | BuildTime [200] |
| uid_t | euid_real |
| uid_t | euid_called |
| uid_t | suid |
| uint8_t | TYPESIZE [32] |
| int | C_ERRNO |
| int | Verbose = 0 |
| int | Listimfile = 0 |
| DATA | data |
| System includes. More... | |
| char * | line |
| int | rlquit = false |
| int | CLIexecuteCMDready = 0 |
| char | calctmpimname [200] |
| char | CLIstartupfilename [200] = "CLIstartup.txt" |
| int | CLImatchMode = 0 |
| int_fast8_t cfits_usleep_cli | ( | ) |
| int CLI_checkarg | ( | int | argnum, |
| int | argtype | ||
| ) |
| int CLI_checkarg0 | ( | int | argnum, |
| int | argtype, | ||
| int | errmsg | ||
| ) |
| int CLI_checkarg_noerrmsg | ( | int | argnum, |
| int | argtype | ||
| ) |
|
static |
|
static |
| char * CLI_generator | ( | const char * | text, |
| int | state | ||
| ) |
|
static |
| int command_line | ( | int | argc, |
| char ** | argv | ||
| ) |
| char * dupstr | ( | char * | s | ) |
|
static |
CLI commands.
CLI functions.
| void fnExit1 | ( | void | ) |
|
static |
|
static |
|
static |
command help
| [in] | cmdkey | Commmand name |
|
static |
|
static |
|
static |
|
static |
| int_fast8_t main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Command Line Interface (CLI) main
.
uses readline to read user input
parsing done with bison and flex
becomes 1 after startup
If fifo is on and file CLIstatup.txt exists, load it
| void main_free | ( | ) |
| void main_init | ( | ) |
defaults to floating point type
|
static |
| int re_alloc | ( | ) |
| uint_fast16_t RegisterCLIcommand | ( | char * | CLIkey, |
| char * | CLImodule, | ||
| int_fast8_t(*)() | CLIfptr, | ||
| char * | CLIinfo, | ||
| char * | CLIsyntax, | ||
| char * | CLIexample, | ||
| char * | CLICcall | ||
| ) |
| void rl_cb | ( | char * | linein | ) |
Readline callback.
| int_fast8_t set_default_precision_double | ( | ) |
| int_fast8_t set_default_precision_single | ( | ) |
| void sig_handler | ( | int | signo | ) |
signal catching
| int user_function | ( | ) |
| void * xmalloc | ( | int | size | ) |
| int yy_scan_string | ( | const char * | ) |
| int yylex_destroy | ( | void | ) |
| char BuildDate[200] |
| char BuildFile[200] |
| char BuildTime[200] |
| int C_ERRNO |
| char calctmpimname[200] |
| int CLIexecuteCMDready = 0 |
| int CLImatchMode = 0 |
| pid_t CLIPID |
important directories and info
| char CLIstartupfilename[200] = "CLIstartup.txt" |
| DATA data |
System includes.
All global images and variables.
External libraries
| char DocDir[200] |
| uid_t euid_called |
| uid_t euid_real |
| char* line |
| int Listimfile = 0 |
| int rlquit = false |
| char SrcDir[200] |
| uid_t suid |
| uint8_t TYPESIZE[32] |
| int Verbose = 0 |