|
milk
1.01
Modular Image processing Library toolKit
|
main C file More...
#include <stdint.h>#include <string.h>#include <malloc.h>#include <stdio.h>#include <stdlib.h>#include <pthread.h>#include <unistd.h>#include <stddef.h>#include <sys/resource.h>#include <termios.h>#include <sys/time.h>#include <math.h>#include <errno.h>#include <sys/types.h>#include <getopt.h>#include <ncurses.h>#include <sys/stat.h>#include <fcntl.h>#include <stdbool.h>#include <sys/prctl.h>#include <sched.h>#include <signal.h>#include <readline/readline.h>#include <readline/history.h>#include <gsl/gsl_rng.h>#include <fitsio.h>#include "CommandLineInterface/CLIcore.h"#include "ImageStreamIO/ImageStreamIO.h"#include "COREMOD_memory/COREMOD_memory.h"#include "COREMOD_iofits/COREMOD_iofits.h"#include "COREMOD_arith/COREMOD_arith.h"#include "CommandLineInterface/CLIcore_UI.h"#include "CommandLineInterface/CLIcore_checkargs.h"#include "CommandLineInterface/CLIcore_datainit.h"#include "CommandLineInterface/CLIcore_help.h"#include "CommandLineInterface/CLIcore_memory.h"#include "CommandLineInterface/CLIcore_modules.h"#include "CommandLineInterface/CLIcore_setSHMdir.h"#include "CommandLineInterface/CLIcore_signals.h"
Functions | |
CLIcore functions | |
| int | user_function () |
| void | fnExit1 (void) |
| void | runCLI_cmd_init () |
| static void | runCLI_free () |
| static int | command_line_process_options (int argc, char **argv) |
| static int | exitCLI () |
| CLI commands. More... | |
| static errno_t | load_so__cli () |
| static errno_t | load_module__cli () |
| static errno_t | CLIcore__load_module_as__cli () |
| errno_t | set_processinfoON () |
| errno_t | set_processinfoOFF () |
| errno_t | set_default_precision_single () |
| errno_t | set_default_precision_double () |
| errno_t | milk_usleep__cli () |
| errno_t | functionparameter_CTRLscreen__cli () |
| errno_t | function_parameter_structure_load__cli () |
| errno_t | processinfo_CTRLscreen__cli () |
| errno_t | streamCTRL_CTRLscreen__cli () |
| void | fnExit_fifoclose () |
| static errno_t | runCLI_initialize () |
| errno_t | runCLI (int argc, char *argv[], char *promptstring) |
| Command Line Interface (CLI) main . More... | |
Variables | |
| pid_t | CLIPID |
| important directories and info | |
| int | C_ERRNO |
| int | Verbose = 0 |
| int | Listimfile = 0 |
| char | CLIstartupfilename [200] = "CLIstartup.txt" |
| static int | fifofd |
| static fd_set | cli_fdin_set |
main C file
|
static |
CLI commands.
CLI functions.
| errno_t runCLI | ( | int | argc, |
| char * | argv[], | ||
| char * | promptstring | ||
| ) |
Command Line Interface (CLI) main
.
Uses readline to read user input
parsing done with bison and flex
becomes 1 after startup