#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 |
| 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.
----------------------------------------------------------------------
| char** environ |
1.5.1