Go to the source code of this file.
Data Structures | |
| struct | pathfixlist |
| struct | ppdef |
Functions | |
| double | GetClock (void) |
| int | probefile (char *path) |
| char * | mylogin (void) |
| void | ping_developers () |
| pathfixlist | pathfix_append (char *s1, char *s2, pathfixlist l) |
| char * | pathfix (char *path, pathfixlist fixes) |
| char * | pathextfix (char *path, pathfixlist fixes, char *ext) |
| int | is_quote (char c) |
| void | zap_newline (char *s) |
| char * | substr (char *lo, char *hi) |
| int | subeqs (char *lo, char *hi, char *str) |
| char * | skipblanks (char *p) |
| char * | skipstuff (char *p) |
| char * | getenv_rsh () |
| char * | getenv_display () |
| char * | getenv_display_no_tamper () |
| static ppdef | pparam_find (char *lname) const |
| static ppdef | pparam_cell (char *lname) const |
| void | pparam_int (int *where, int defValue, const char *arg, const char *doc) |
| void | pparam_flag (int *where, int defValue, const char *arg, const char *doc) |
| void | pparam_real (double *where, double defValue, const char *arg, const char *doc) |
| void | pparam_str (char **where, char *defValue, const char *arg, const char *doc) |
| static int | pparam_setdef (ppdef def, char *value) |
| int | pparam_set (char *lname, char *value) |
| char * | pparam_getdef (ppdef def) |
| void | pparam_printdocs () |
| void | pparam_delarg (int i) |
| int | pparam_countargs (char **argv) |
| int | pparam_parseopt () |
| int | pparam_parsecmd (char optchr, char **argv) |
| void | arg_init (int argc, char **argv) |
Variables | |
| static double | ftTimer |
| static ppdef | ppdefs |
| static int | pparam_pos |
| static char ** | pparam_argv |
| static char | pparam_optc = '-' |
| char | pparam_error [100] |
| char ** | arg_argv |
| int | arg_argc |
| int | arg_requested_pes |
| int | arg_timeout |
| int | arg_verbose |
| char * | arg_nodelist |
| char * | arg_nodegroup |
| char * | arg_runscript |
| char * | arg_charmrunip |
| char * | arg_vmispecfile |
| int | arg_debug |
| int | arg_debug_no_pause |
| int | arg_charmdebug |
| int | arg_local |
| int | arg_batch_spawn |
| int | arg_help |
| int | arg_ppn |
| int | arg_usehostname |
| int | arg_maxrsh |
| char * | arg_shell |
| int | arg_in_xterm |
| char * | arg_debugger |
| char * | arg_xterm |
| char * | arg_display |
| int | arg_ssh_display |
| char * | arg_mylogin |
| char * | arg_nodeprog_a |
| char * | arg_nodeprog_r |
| char * | arg_currdir_a |
| char * | arg_currdir_r |
| int | arg_server |
| int | arg_server_port = 0 |
| char * | arg_server_auth = NULL |
| int | arg_startpe |
| int | arg_endpe |
| int | arg_singlemaster |
| int | arg_skipmaster |
| double GetClock | ( | void | ) |
Definition at line 88 of file charmrun.c.
Referenced by arg_init(), CommunicationsClock(), CommunicationServer(), and KillOnAllSigs().
| int probefile | ( | char * | path | ) |
| char* mylogin | ( | void | ) |
| void ping_developers | ( | ) |
Definition at line 137 of file charmrun.c.
References mylogin(), skt_build_addr(), skt_close(), and skt_lookup_ip().
Referenced by arg_init().
| pathfixlist pathfix_append | ( | char * | s1, | |
| char * | s2, | |||
| pathfixlist | l | |||
| ) |
Definition at line 169 of file charmrun.c.
References malloc(), pathfixlist::next, pathfixlist::s1, and pathfixlist::s2.
Referenced by arg_init().
| char* pathfix | ( | char * | path, | |
| pathfixlist | fixes | |||
| ) |
Definition at line 178 of file charmrun.c.
References pathfixlist::next, pathfixlist::s1, and pathfixlist::s2.
Referenced by arg_init(), and pathextfix().
| char* pathextfix | ( | char * | path, | |
| pathfixlist | fixes, | |||
| char * | ext | |||
| ) |
Definition at line 201 of file charmrun.c.
References malloc(), and pathfix().
Referenced by arg_init().
| int is_quote | ( | char | c | ) |
| void zap_newline | ( | char * | s | ) |
| char* substr | ( | char * | lo, | |
| char * | hi | |||
| ) |
Definition at line 234 of file charmrun.c.
References is_quote(), and malloc().
Referenced by arg_init().
| int subeqs | ( | char * | lo, | |
| char * | hi, | |||
| char * | str | |||
| ) |
| char* skipblanks | ( | char * | p | ) |
| char* skipstuff | ( | char * | p | ) |
| char* getenv_rsh | ( | ) |
| char* getenv_display | ( | ) |
| char* getenv_display_no_tamper | ( | ) |
| static ppdef pparam_find | ( | char * | lname | ) | const [static] |
Definition at line 349 of file charmrun.c.
References ppdef::lname, ppdef::next, and ppdefs.
Referenced by pparam_cell(), and pparam_parseopt().
| static ppdef pparam_cell | ( | char * | lname | ) | const [static] |
Definition at line 359 of file charmrun.c.
References ppdef::doc, ppdef::lname, malloc(), ppdef::next, pparam_find(), ppdefs, and ppdef::type.
Referenced by pparam_flag(), pparam_int(), pparam_real(), pparam_set(), and pparam_str().
Definition at line 375 of file charmrun.c.
References ppdef::doc, ppdef::i, ppdef::lname, pparam_cell(), ppdef::type, and ppdef::where.
Referenced by arg_init().
Definition at line 385 of file charmrun.c.
References ppdef::doc, ppdef::f, ppdef::lname, pparam_cell(), ppdef::type, and ppdef::where.
Referenced by arg_init().
| void pparam_real | ( | double * | where, | |
| double | defValue, | |||
| const char * | arg, | |||
| const char * | doc | |||
| ) |
Definition at line 395 of file charmrun.c.
References ppdef::doc, ppdef::lname, pparam_cell(), ppdef::r, ppdef::type, and ppdef::where.
| void pparam_str | ( | char ** | where, | |
| char * | defValue, | |||
| const char * | arg, | |||
| const char * | doc | |||
| ) |
Definition at line 404 of file charmrun.c.
References ppdef::doc, ppdef::lname, pparam_cell(), ppdef::s, ppdef::type, and ppdef::where.
Referenced by arg_init().
Definition at line 414 of file charmrun.c.
References p.
Referenced by pparam_parseopt(), and pparam_set().
| int pparam_set | ( | char * | lname, | |
| char * | value | |||
| ) |
| char* pparam_getdef | ( | ppdef | def | ) |
| void pparam_printdocs | ( | ) |
Definition at line 460 of file charmrun.c.
References ppdef::doc, ppdef::lname, ppdef::next, pparam_getdef(), pparam_optc, and ppdefs.
Referenced by arg_init().
| void pparam_delarg | ( | int | i | ) |
| int pparam_countargs | ( | char ** | argv | ) |
| int pparam_parseopt | ( | ) |
Definition at line 498 of file charmrun.c.
References ppdef::f, pparam_argv, pparam_delarg(), pparam_error, pparam_find(), pparam_pos, pparam_setdef(), ppdef::type, and ppdef::where.
Referenced by pparam_parsecmd().
| int pparam_parsecmd | ( | char | optchr, | |
| char ** | argv | |||
| ) |
Definition at line 570 of file charmrun.c.
References pparam_argv, pparam_error, pparam_optc, pparam_parseopt(), and pparam_pos.
Referenced by arg_init().
| void arg_init | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 653 of file charmrun.c.
References _skt_invalid_ip, abort(), arg_argc, arg_argv, arg_batch_spawn, arg_charmdebug, arg_charmrunip, arg_currdir_a, arg_currdir_r, arg_debug, arg_debug_no_pause, arg_debugger, arg_display, arg_endpe, arg_help, arg_in_xterm, arg_local, arg_maxrsh, arg_mylogin, arg_nodegroup, arg_nodelist, arg_nodeprog_a, arg_nodeprog_r, arg_ppn, arg_requested_pes, arg_runscript, arg_server, arg_server_auth, arg_server_port, arg_shell, arg_singlemaster, arg_skipmaster, arg_ssh_display, arg_startpe, arg_timeout, arg_usehostname, arg_verbose, arg_vmispecfile, arg_xterm, taskStruct::argLength, c, CcsServer_fd(), CcsServer_new(), CcsServer_recvRequest(), CcsServer_sendReply(), ChMessage_free(), ChMessage_recv(), ChMessageData_recv(), ChMessageHeader_new(), ChMessageHeader_recv(), ChMessageInt(), ChMessageInt_new(), crashed_node, taskStruct::cwd, daemon_status2msg(), ChMessage::data, data, ChNodeinfo::dataport, dataport, dest, taskStruct::env, envCat(), errno, ppdef::f, free(), ftTimer, GetClock(), getenv_display_no_tamper(), getenv_rsh(), group, ChMessage::header, host, ppdef::i, ChSingleNodeinfo::info, ChNodeinfo::IP, ChMessage::len, taskStruct::magic, main(), malloc(), mylogin(), ChSingleNodeinfo::nodeNo, ChNodeinfo::nPE, p, pathextfix(), pathfix(), pathfix_append(), taskStruct::pgm, ping_developers(), pparam_argv, pparam_countargs(), pparam_error, pparam_flag(), pparam_int(), pparam_parsecmd(), pparam_printdocs(), pparam_str(), printf(), probefile(), ChNodeinfo::qpList, realloc(), reply_abortFn(), s, skipblanks(), skipstuff(), skt_accept(), skt_close(), skt_connect(), skt_init(), skt_innode_lookup_ip(), skt_innode_my_ip(), skt_ip_match(), skt_lookup_ip(), skt_print_ip(), skt_recvN(), skt_select1(), skt_sendN(), skt_sendV(), skt_server(), skt_set_abort(), skt_set_idle(), sleep(), status(), statusCode, subeqs(), substr(), stats::time(), ChMessageHeader::type, type, warned, and zap_newline().
double ftTimer [static] |
Definition at line 342 of file charmrun.c.
Referenced by pparam_cell(), pparam_find(), and pparam_printdocs().
int pparam_pos [static] |
char** pparam_argv [static] |
Definition at line 345 of file charmrun.c.
Referenced by arg_init(), pparam_delarg(), pparam_parsecmd(), and pparam_parseopt().
char pparam_optc = '-' [static] |
| char pparam_error[100] |
Definition at line 347 of file charmrun.c.
Referenced by arg_init(), pparam_parsecmd(), and pparam_parseopt().
| char** arg_argv |
Definition at line 601 of file charmrun.c.
Definition at line 602 of file charmrun.c.
| char* arg_nodelist |
| char* arg_nodegroup |
| char* arg_runscript |
| char* arg_charmrunip |
| char* arg_vmispecfile |
| char* arg_shell |
| char* arg_debugger |
| char* arg_xterm |
| char* arg_display |
| char* arg_mylogin |
| char* arg_nodeprog_a |
| char* arg_nodeprog_r |
| char* arg_currdir_a |
| char* arg_currdir_r |
| int arg_server_port = 0 |
| char* arg_server_auth = NULL |
1.5.1