tclenv.c File Reference

#include "nsd.h"

Functions

char ** Ns_CopyEnviron (Ns_DString *dsPtr)
int NsTclEnvCmd (ClientData dummy, Tcl_Interp *interp, int argc, char **argv)
char ** Ns_GetEnviron (void)

Variables

char ** environ

Function Documentation

char** Ns_CopyEnviron ( Ns_DString *  dsPtr  ) 

----------------------------------------------------------------------

Ns_CopyEnviron --

Copy the environment to the given dstring along with an argv vector.

Results: Pointer to dsPtr->string.

Side effects: None.

----------------------------------------------------------------------

char** Ns_GetEnviron ( void   ) 

----------------------------------------------------------------------

Ns_GetEnviron --

Return the environment vector.

Results: Pointer to environment.

Side effects: None.

----------------------------------------------------------------------

int NsTclEnvCmd ( ClientData  dummy,
Tcl_Interp *  interp,
int  argc,
char **  argv 
)

----------------------------------------------------------------------

NsTclEnvCmd --

Implement the "env" command. Read the code to see what it does. NOTE: The getenv() and putenv() routines are assumed MT safe and there's no attempt to avoid the race condition between finding a variable and using it. The reason is it's assumed the environment would only be modified, if ever, at startup.

Results: A standard Tcl result.

Side effects: Environment variables may be updated.

----------------------------------------------------------------------


Variable Documentation

char** environ


Generated on Tue Sep 4 19:58:56 2007 by  doxygen 1.5.1