arch/net/charmrun/charmrun.c File Reference

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


Function Documentation

double GetClock ( void   ) 

Definition at line 88 of file charmrun.c.

Referenced by arg_init(), CommunicationsClock(), CommunicationServer(), and KillOnAllSigs().

int probefile ( char *  path  ) 

Definition at line 103 of file charmrun.c.

Referenced by arg_init().

char* mylogin ( void   ) 

Definition at line 112 of file charmrun.c.

Referenced by arg_init(), and ping_developers().

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  ) 

Definition at line 218 of file charmrun.c.

Referenced by substr().

void zap_newline ( char *  s  ) 

Definition at line 223 of file charmrun.c.

References p.

Referenced by arg_init().

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 
)

Definition at line 247 of file charmrun.c.

Referenced by arg_init().

char* skipblanks ( char *  p  ) 

Definition at line 256 of file charmrun.c.

Referenced by arg_init().

char* skipstuff ( char *  p  ) 

Definition at line 263 of file charmrun.c.

Referenced by arg_init().

char* getenv_rsh (  ) 

Definition at line 281 of file charmrun.c.

Referenced by arg_init().

char* getenv_display (  ) 

Definition at line 291 of file charmrun.c.

References p, skt_my_ip(), and skt_print_ip().

char* getenv_display_no_tamper (  ) 

Definition at line 306 of file charmrun.c.

References p.

Referenced by arg_init().

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().

void pparam_int ( int where,
int  defValue,
const char *  arg,
const char *  doc 
)

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().

void pparam_flag ( int where,
int  defValue,
const char *  arg,
const char *  doc 
)

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().

static int pparam_setdef ( ppdef  def,
char *  value 
) [static]

Definition at line 414 of file charmrun.c.

References p.

Referenced by pparam_parseopt(), and pparam_set().

int pparam_set ( char *  lname,
char *  value 
)

Definition at line 439 of file charmrun.c.

References pparam_cell(), and pparam_setdef().

char* pparam_getdef ( ppdef  def  ) 

Definition at line 446 of file charmrun.c.

Referenced by pparam_printdocs().

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  ) 

Definition at line 482 of file charmrun.c.

References pparam_argv.

Referenced by pparam_parseopt().

int pparam_countargs ( char **  argv  ) 

Definition at line 490 of file charmrun.c.

Referenced by arg_init().

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().


Variable Documentation

double ftTimer [static]

Definition at line 86 of file charmrun.c.

Referenced by arg_init().

ppdef ppdefs [static]

Definition at line 342 of file charmrun.c.

Referenced by pparam_cell(), pparam_find(), and pparam_printdocs().

int pparam_pos [static]

Definition at line 344 of file charmrun.c.

Referenced by pparam_parsecmd(), and pparam_parseopt().

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]

Definition at line 346 of file charmrun.c.

Referenced by pparam_parsecmd(), and pparam_printdocs().

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.

int arg_argc

Definition at line 602 of file charmrun.c.

int arg_requested_pes

Definition at line 604 of file charmrun.c.

Referenced by arg_init().

int arg_timeout

Definition at line 605 of file charmrun.c.

Referenced by arg_init().

int arg_verbose

Definition at line 606 of file charmrun.c.

Referenced by arg_init().

char* arg_nodelist

Definition at line 607 of file charmrun.c.

Referenced by arg_init().

char* arg_nodegroup

Definition at line 608 of file charmrun.c.

Referenced by arg_init().

char* arg_runscript

Definition at line 609 of file charmrun.c.

Referenced by arg_init().

char* arg_charmrunip

Definition at line 610 of file charmrun.c.

Referenced by arg_init().

char* arg_vmispecfile

Definition at line 612 of file charmrun.c.

Referenced by arg_init().

int arg_debug

Definition at line 615 of file charmrun.c.

Referenced by arg_init().

int arg_debug_no_pause

Definition at line 616 of file charmrun.c.

Referenced by arg_init().

int arg_charmdebug

Definition at line 617 of file charmrun.c.

Referenced by arg_init().

int arg_local

Definition at line 619 of file charmrun.c.

Referenced by arg_init().

int arg_batch_spawn

Definition at line 620 of file charmrun.c.

Referenced by arg_init().

int arg_help

Definition at line 622 of file charmrun.c.

Referenced by arg_init().

int arg_ppn

Definition at line 623 of file charmrun.c.

Referenced by arg_init().

int arg_usehostname

Definition at line 624 of file charmrun.c.

Referenced by arg_init().

int arg_maxrsh

Definition at line 627 of file charmrun.c.

Referenced by arg_init().

char* arg_shell

Definition at line 628 of file charmrun.c.

Referenced by arg_init().

int arg_in_xterm

Definition at line 629 of file charmrun.c.

Referenced by arg_init().

char* arg_debugger

Definition at line 630 of file charmrun.c.

Referenced by arg_init().

char* arg_xterm

Definition at line 631 of file charmrun.c.

Referenced by arg_init().

char* arg_display

Definition at line 632 of file charmrun.c.

Referenced by arg_init().

int arg_ssh_display

Definition at line 633 of file charmrun.c.

Referenced by arg_init().

char* arg_mylogin

Definition at line 634 of file charmrun.c.

Referenced by arg_init().

char* arg_nodeprog_a

Definition at line 637 of file charmrun.c.

Referenced by arg_init().

char* arg_nodeprog_r

Definition at line 638 of file charmrun.c.

Referenced by arg_init().

char* arg_currdir_a

Definition at line 639 of file charmrun.c.

Referenced by arg_init().

char* arg_currdir_r

Definition at line 640 of file charmrun.c.

Referenced by arg_init().

int arg_server

Definition at line 642 of file charmrun.c.

Referenced by arg_init().

int arg_server_port = 0

Definition at line 643 of file charmrun.c.

Referenced by arg_init().

char* arg_server_auth = NULL

Definition at line 644 of file charmrun.c.

Referenced by arg_init().

int arg_startpe

Definition at line 647 of file charmrun.c.

Referenced by arg_init().

int arg_endpe

Definition at line 648 of file charmrun.c.

Referenced by arg_init().

int arg_singlemaster

Definition at line 649 of file charmrun.c.

Referenced by arg_init().

int arg_skipmaster

Definition at line 650 of file charmrun.c.

Referenced by arg_init().


Generated on Sun Jun 29 13:29:32 2008 for Charm++ by  doxygen 1.5.1