vsh.h File Reference

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.

Functions

VshVsh_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.
VioVsh_ioSetup (Vsh *thee, char *key)
 Setup for an I/O command.
void Vsh_ioCleanup (Vsh *thee, Vio **sock)
 Cleanup an I/O command.


Detailed Description

Header file for vsh, a bourne-compatible shell.

Author:
Michael Holst
Note:
None
Version:
Id
vsh.h,v 1.29 2009/04/24 22:53:48 fetk Exp

Attention:
 *
 * MALOC = < Minimal Abstraction Layer for Object-oriented C >
 * Copyright (C) 1994--2008 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
 *
 *  

Generated on Mon Aug 9 11:08:03 2010 for MALOC by  doxygen 1.5.6