|
MALOC 0.1
|
A bourne-compatible shell. More...
Files | |
| file | psh.h |
| Header file for a simple parallel extension of ALOC's VSH. | |
| file | vsh.h |
| Header file for vsh, a bourne-compatible shell. | |
Classes | |
| struct | sVsh |
| Contains public data members for Vsh class. More... | |
Typedefs | |
| typedef struct sVsh | Vsh |
| Declaration of the Vsh class as the Vsh structure. | |
Functions | |
| int | Vsh_pshell (Vsh *thee, char *pPR, void *pthee, int(*builtin)(void *thee, int argc, char **argv)) |
| Drop-in replacement for Vsh_shell giving parallel extensions. | |
| Vsh * | Vsh_ctor (Vmem *vmem, int argc, char **argv) |
| Create the shell. | |
| void | Vsh_dtor (Vsh **thee) |
| Destroy the shell. | |
| int | Vsh_shell (Vsh *thee, char *pPR, void *pthee, int(*builtin)(void *thee, int argc, char **argv)) |
| A bash-like shell with user-definable extensions. | |
| int | Vsh_putenv (Vsh *thee, const char *envi, const char *valu) |
| Place a variable with a value in the environment. | |
| int | Vsh_putenvInfo (Vsh *thee, const char *envi, const char *valu) |
| Place a variable with an info string in the environment. | |
| int | Vsh_putenvInt (Vsh *thee, const char *envi, const int valu) |
| Place a variable with a value (integer) in the environment. | |
| int | Vsh_putenvReal (Vsh *thee, const char *envi, const double valu) |
| Place a variable with a value (real) in the environment. | |
| char * | Vsh_getenv (Vsh *thee, const char *envi) |
| Get a value of variable in the environment. | |
| char * | Vsh_getenvInfo (Vsh *thee, const char *envi) |
| Get info associated with a variable in the environment. | |
| int | Vsh_getenvInt (Vsh *thee, const char *envi) |
| Get a value of variable in the environment as an integer. | |
| double | Vsh_getenvReal (Vsh *thee, const char *envi) |
| Get a value of variable in the environment as a real. | |
| void | Vsh_remove (Vsh *thee, const char *envi) |
| Remove a variable from the environment. | |
| void | Vsh_wipe (Vsh *thee) |
| Wipe the environment. | |
| void | Vsh_memChk (Vsh *thee) |
| Print the exact current malloc usage. | |
| Vio * | Vsh_ioSetup (Vsh *thee, char *key) |
| Setup for an I/O command. | |
| void | Vsh_ioCleanup (Vsh *thee, Vio **sock) |
| Cleanup an I/O command. | |
A bourne-compatible shell.
Create the shell.
| vmem | Memory management object |
| argc | number of the command line arguments |
| argv | the command line arguments |
| void Vsh_dtor | ( | Vsh ** | thee | ) |
Destroy the shell.
| thee | Pointer to the Vsh object |
| char * Vsh_getenv | ( | Vsh * | thee, |
| const char * | envi ) |
Get a value of variable in the environment.
| thee | Pointer to the Vsh object |
| envi | environment string |
| char * Vsh_getenvInfo | ( | Vsh * | thee, |
| const char * | envi ) |
Get info associated with a variable in the environment.
| thee | Pointer to the Vsh object |
| envi | environment string |
| int Vsh_getenvInt | ( | Vsh * | thee, |
| const char * | envi ) |
Get a value of variable in the environment as an integer.
| thee | Pointer to the Vsh object |
| envi | environment string |
| double Vsh_getenvReal | ( | Vsh * | thee, |
| const char * | envi ) |
Get a value of variable in the environment as a real.
| thee | Pointer to the Vsh object |
| envi | environment string |
Cleanup an I/O command.
| thee | Pointer to the Vsh object |
| sock | socket for reading/writing the external data |
Setup for an I/O command.
| thee | Pointer to the Vsh object |
| key | Pointer to different read/write option |
| void Vsh_memChk | ( | Vsh * | thee | ) |
Print the exact current malloc usage.
| thee | Pointer to the Vsh object |
| int Vsh_pshell | ( | Vsh * | thee, |
| char * | pPR, | ||
| void * | pthee, | ||
| int(* | builtin )(void *thee, int argc, char **argv) ) |
Drop-in replacement for Vsh_shell giving parallel extensions.
| thee | Pointer to the Vsh object |
| pPR | minimal prompt |
| pthee | the externally supplied builtin object pointer |
| builtin | external supershell builtin function |
| int Vsh_putenv | ( | Vsh * | thee, |
| const char * | envi, | ||
| const char * | valu ) |
Place a variable with a value in the environment.
| thee | Pointer to the Vsh object |
| envi | environment string |
| valu | value string |
| int Vsh_putenvInfo | ( | Vsh * | thee, |
| const char * | envi, | ||
| const char * | valu ) |
Place a variable with an info string in the environment.
| thee | Pointer to the Vsh object |
| envi | environment string |
| valu | value string |
| int Vsh_putenvInt | ( | Vsh * | thee, |
| const char * | envi, | ||
| const int | valu ) |
Place a variable with a value (integer) in the environment.
| thee | Pointer to the Vsh object |
| envi | environment string |
| valu | value string |
| int Vsh_putenvReal | ( | Vsh * | thee, |
| const char * | envi, | ||
| const double | valu ) |
Place a variable with a value (real) in the environment.
| thee | Pointer to the Vsh object |
| envi | environment string |
| valu | value string |
| void Vsh_remove | ( | Vsh * | thee, |
| const char * | envi ) |
Remove a variable from the environment.
| thee | Pointer to the Vsh object |
| envi | environment string |
| int Vsh_shell | ( | Vsh * | thee, |
| char * | pPR, | ||
| void * | pthee, | ||
| int(* | builtin )(void *thee, int argc, char **argv) ) |
A bash-like shell with user-definable extensions.
| thee | Pointer to the Vsh object |
| pPR | minimal prompt |
| pthee | the externally supplied builtin object pointer |
| builtin | external supershell builtin function |
| void Vsh_wipe | ( | Vsh * | thee | ) |
Wipe the environment.
| thee | Pointer to the Vsh object |