vsh.h File Reference
Vsh class

Header file for vsh, a bourne-compatible shell. More...

`#include <maloc/maloc_base.h>`
`#include <maloc/vsys.h>`
Include dependency graph for vsh.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## 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. More...

## Functions

Vsh * | Vsh_ctor (Vmem *vmem, int argc, char **argv)
| Create the shell. More...
void | Vsh_dtor (Vsh **thee)
| Destroy the shell. More...
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. More...
int | Vsh_putenv (Vsh *thee, const char *envi, const char *valu)
| Place a variable with a value in the environment. More...
int | Vsh_putenvInfo (Vsh *thee, const char *envi, const char *valu)
| Place a variable with an info string in the environment. More...
int | Vsh_putenvInt (Vsh *thee, const char *envi, const int valu)
| Place a variable with a value (integer) in the environment. More...
int | Vsh_putenvReal (Vsh *thee, const char *envi, const double valu)
| Place a variable with a value (real) in the environment. More...
char * | Vsh_getenv (Vsh *thee, const char *envi)
| Get a value of variable in the environment. More...
char * | Vsh_getenvInfo (Vsh *thee, const char *envi)
| Get info associated with a variable in the environment. More...
int | Vsh_getenvInt (Vsh *thee, const char *envi)
| Get a value of variable in the environment as an integer. More...
double | Vsh_getenvReal (Vsh *thee, const char *envi)
| Get a value of variable in the environment as a real. More...
void | Vsh_remove (Vsh *thee, const char *envi)
| Remove a variable from the environment. More...
void | Vsh_wipe (Vsh *thee)
| Wipe the environment. More...
void | Vsh_memChk (Vsh *thee)
| Print the exact current malloc usage. More...
Vio * | Vsh_ioSetup (Vsh *thee, char *key)
| Setup for an I/O command. More...
void | Vsh_ioCleanup (Vsh *thee, Vio **sock)
| Cleanup an I/O command. More...

## Detailed Description

Header file for vsh, a bourne-compatible shell.

Author
  Michael Holst

Note
  None

Version

Id
  vsh.h,v 1.30 2010/08/12 05:40:29 fetk Exp

Attention

      *
      * MALOC = < Minimal Abstraction Layer for Object-oriented C >
      * Copyright (C) 1994-- Michael Holst
      *
      * This library is free software; you can redistribute it and/or
      * modify it under the terms of the GNU Lesser General Public
      * License as published by the Free Software Foundation; either
      * version 2.1 of the License, or (at your option) any later version.
      *
      * This library is distributed in the hope that it will be useful,
      * but WITHOUT ANY WARRANTY; without even the implied warranty of
      * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
      * Lesser General Public License for more details.
      *
      * You should have received a copy of the GNU Lesser General Public
      * License along with this library; if not, write to the Free Software
      * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
      *
      *