Defines |
#define | MAX_OUTPUT_LEN (1024*1024) |
#define | TRACEBUFFSIZE 1024 |
#define | PROMPTSIZE 64 |
#define | P_shell(_mutex_) pthread_mutex_lock( &_mutex_ ) |
#define | V_shell(_mutex_) pthread_mutex_unlock( &_mutex_ ) |
Functions |
int | shell_BarrierInit (int nb_threads) |
int | shell_Init (int verbose, char *input_file, char *prompt, int shell_index) |
int | shell_Launch () |
int | shell_ParseLine (char *in_out_line, char **out_arglist, int *p_argcount) |
int | shell_SolveArgs (int argc, char **in_out_argv, int *out_allocated) |
void | shell_CleanArgs (int argc, char **in_out_argv, int *in_allocated) |
int | shell_Execute (int argc, char **argv, FILE *output) |
void | shell_PrintError (shell_state_t *context, char *error_msg) |
void | shell_PrintTrace (shell_state_t *context, char *msg) |
int | shell_SetLayer (shell_state_t *context, char *layer_name) |
layer_def_t * | shell_GetLayer (shell_state_t *context) |
int | shell_SetStatus (shell_state_t *context, int returned_status) |
int | shell_GetStatus (shell_state_t *context) |
int | shell_SetVerbose (shell_state_t *context, char *str_verbose) |
int | shell_GetVerbose (shell_state_t *context) |
int | shell_SetDbgLvl (shell_state_t *context, char *str_debug_level) |
int | shell_GetDbgLvl (shell_state_t *context) |
int | shell_SetInput (shell_state_t *context, char *file_name) |
FILE * | shell_GetInputStream (shell_state_t *context) |
int | shell_SetPrompt (shell_state_t *context, char *str_prompt) |
char * | shell_GetPrompt (shell_state_t *context) |
int | shell_SetShellId (shell_state_t *context, int shell_index) |
int | shell_SetLine (shell_state_t *context, int lineno) |
int | shell_GetLine (shell_state_t *context) |
int | shellcmd_help (int argc, char **argv, FILE *output) |
int | shellcmd_if (int argc, char **argv, FILE *output) |
int | shellcmd_interactive (int argc, char **argv, FILE *output) |
int | shellcmd_set (int argc, char **argv, FILE *output) |
int | shellcmd_unset (int argc, char **argv, FILE *output) |
int | shellcmd_print (int argc, char **argv, FILE *output) |
int | shellcmd_varlist (int argc, char **argv, FILE *output) |
int | shellcmd_time (int argc, char **argv, FILE *output) |
int | shellcmd_quit (int argc, char **argv, FILE *output) |
int | shellcmd_barrier (int argc, char **argv, FILE *output) |
Variables |
layer_def_t | layer_list [] |
char * | shell_special_vars [] |
command_def_t | shell_utils [] |
Internal routines for the shell.
- Author:
- Author:
- leibovic
- Date:
- Date:
- 2006/02/24 08:33:44
- Version:
- Revision:
- 1.20
- Log:
- shell.c,v
Revision 1.20 2006/02/24 08:33:44 leibovic shellid is read only.
Revision 1.19 2006/02/23 07:42:53 leibovic Adding -n option to shell.
Revision 1.18 2006/02/08 12:50:00 leibovic changing NIV_EVNMT to NIV_EVENT.
Revision 1.17 2006/01/17 14:56:22 leibovic Adaptation de HPSS 6.2.
Revision 1.15 2005/09/27 09:30:16 leibovic Removing non-thread safe trace buffer.
Revision 1.14 2005/09/27 08:15:13 leibovic Adding traces and changhing readexport prototype.
Revision 1.13 2005/08/12 12:15:33 leibovic Erreur d'init.
Revision 1.12 2005/08/12 11:21:27 leibovic Now, set cat concatenate strings.
Revision 1.11 2005/08/05 07:59:21 leibovic Better help printing.
Revision 1.10 2005/07/29 13:34:28 leibovic Changing _FULL_DEBUG to _DEBUG_SHELL
Revision 1.9 2005/07/26 12:54:47 leibovic Multi-thread shell with synchronisation routines.
Revision 1.8 2005/07/25 12:50:45 leibovic Adding thr_create and thr_join commands.
Revision 1.7 2005/05/11 15:53:37 leibovic Adding time function.
Revision 1.6 2005/05/11 07:25:58 leibovic Escaped char support.
Revision 1.5 2005/05/10 14:02:27 leibovic Fixed bug in log management.
Revision 1.4 2005/05/10 11:38:07 leibovic Adding log initialization.
Revision 1.3 2005/05/10 11:07:21 leibovic Adapting to ganeshell v2.
Revision 1.2 2005/05/09 14:54:59 leibovic Adding if.
Revision 1.1 2005/05/09 12:23:55 leibovic Version 2 of ganeshell.
Definition in file shell.c.