mirror of
https://github.com/envmodules/modules.git
synced 2026-06-10 00:56:30 +08:00
for "module use", "module use --append", and "module unuse". * Changed the global variable names (flags,current_module) to (g_flags, g_current_module) to identify their ubiquity in the module source.
511 lines
21 KiB
HTML
511 lines
21 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
|
|
<!-- This HTML file generated by cxref. -->
|
|
<!-- cxref program (c) Andrew M. Bishop 1995,96,97,98,99. -->
|
|
|
|
<!--
|
|
Cxref: cxref -block-comments -verbatim-comments -xref-all -index-all -html -Oxref init.c
|
|
CPP : gcc -E -C -dD -dI
|
|
-->
|
|
|
|
<HTML>
|
|
|
|
<HEAD>
|
|
<TITLE>Cross reference for init.c of cxref.</TITLE>
|
|
</HEAD>
|
|
|
|
<BODY>
|
|
|
|
<h1><a name="file">File init.c</a></h1>
|
|
<pre>
|
|
** ** Module Header ******************************************************* **
|
|
** **
|
|
** Modules Revision 3.0 **
|
|
** Providing a flexible user environment **
|
|
** **
|
|
** File: init.c **
|
|
** First Edition: 91/10/23 **
|
|
** **
|
|
** Authors: John Furlan, jlf@behere.com **
|
|
** Jens Hamisch, jens@Strawberry.COM **
|
|
** **
|
|
** Description: The initialization routines for Tcl Modules. **
|
|
** Primarily the setup of the different Tcl module **
|
|
** commands and the global hash tables are initialized **
|
|
** here. The initial storage of the begining **
|
|
** environment is here as well. **
|
|
** **
|
|
** Exports: Initialize_Tcl **
|
|
** Module_Tcl_ExitCmd **
|
|
** InitializeModuleCommands **
|
|
** Setup_Environment **
|
|
** TieStdout **
|
|
** UnTieStdout **
|
|
** SetStartupFiles **
|
|
** **
|
|
** Notes: **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<table>
|
|
<tr><td>References Variables:
|
|
<td><a href="init.c.html#var-Id">Id</a><td><a href="init.c.html#var-Id">init.c</a>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2>Included Files</h2>
|
|
|
|
<ul>
|
|
<li><tt><a href="modules_def.h.html#file">#include "modules_def.h"</a></tt>
|
|
<ul>
|
|
<li><tt>#include <stdio.h></tt>
|
|
<li><tt>#include <tcl.h></tt>
|
|
<li><tt><a href="config.h.html#file">#include "config.h"</a></tt>
|
|
<li><tt>#include <stdlib.h></tt>
|
|
<li><tt>#include <string.h></tt>
|
|
<li><tt>#include <unistd.h></tt>
|
|
<li><tt>#include <sys/types.h></tt>
|
|
<li><tt>#include <ctype.h></tt>
|
|
<li><tt>#include <sys/stat.h></tt>
|
|
<li><tt>#include <sys/termios.h></tt>
|
|
<li><tt>#include <fcntl.h></tt>
|
|
<li><tt>#include <sys/ioctl.h></tt>
|
|
<li><tt>#include <dirent.h></tt>
|
|
<li><tt>#include <errno.h></tt>
|
|
</ul>
|
|
</ul>
|
|
|
|
<hr>
|
|
<h2>Local Variables</h2>
|
|
|
|
<b><a name="var-Id">Id</a></b><br>
|
|
<tt>static char Id[]</tt><br>
|
|
<table>
|
|
<tr><td>Used in:
|
|
<td> <td><a href="init.c.html#file">init.c</a>
|
|
|
|
</table>
|
|
<p>
|
|
<b><a name="var-UseId">UseId</a></b><br>
|
|
<tt>static void* UseId[]</tt><br>
|
|
<p>
|
|
<b><a name="var-module_name">module_name</a></b><br>
|
|
<tt>static char module_name[]</tt><br>
|
|
<table>
|
|
<tr><td>Used in:
|
|
<td><a href="#func-InitializeModuleCommands">InitializeModuleCommands()</a>
|
|
<tr><td>
|
|
<td><a href="#func-Initialize_Tcl">Initialize_Tcl()</a>
|
|
<tr><td>
|
|
<td><a href="#func-Module_Tcl_ExitCmd">Module_Tcl_ExitCmd()</a>
|
|
<tr><td>
|
|
<td><a href="#func-Setup_Environment">Setup_Environment()</a>
|
|
<tr><td>
|
|
<td><a href="#func-TieStdout">TieStdout()</a>
|
|
<tr><td>
|
|
<td><a href="#func-UnTieStdout">UnTieStdout()</a>
|
|
|
|
</table>
|
|
<p>
|
|
<b><a name="var-cshStartUps">cshStartUps</a></b><br>
|
|
<tt>static char* cshStartUps[]</tt><br>
|
|
<table>
|
|
<tr><td>Used in:
|
|
<td><a href="#func-SetStartupFiles">SetStartupFiles()</a>
|
|
|
|
</table>
|
|
<p>
|
|
<b><a name="var-tcshStartUps">tcshStartUps</a></b><br>
|
|
<tt>static char* tcshStartUps[]</tt><br>
|
|
<table>
|
|
<tr><td>Used in:
|
|
<td><a href="#func-SetStartupFiles">SetStartupFiles()</a>
|
|
|
|
</table>
|
|
<p>
|
|
<b><a name="var-shStartUps">shStartUps</a></b><br>
|
|
<tt>static char* shStartUps[]</tt><br>
|
|
<table>
|
|
<tr><td>Used in:
|
|
<td><a href="#func-SetStartupFiles">SetStartupFiles()</a>
|
|
|
|
</table>
|
|
<p>
|
|
<b><a name="var-bashStartUps">bashStartUps</a></b><br>
|
|
<tt>static char* bashStartUps[]</tt><br>
|
|
<table>
|
|
<tr><td>Used in:
|
|
<td><a href="#func-SetStartupFiles">SetStartupFiles()</a>
|
|
|
|
</table>
|
|
<p>
|
|
<b><a name="var-zshStartUps">zshStartUps</a></b><br>
|
|
<tt>static char* zshStartUps[]</tt><br>
|
|
<table>
|
|
<tr><td>Used in:
|
|
<td><a href="#func-SetStartupFiles">SetStartupFiles()</a>
|
|
|
|
</table>
|
|
<p>
|
|
<b><a name="var-genericStartUps">genericStartUps</a></b><br>
|
|
<tt>static char* genericStartUps[]</tt><br>
|
|
<table>
|
|
<tr><td>Used in:
|
|
<td><a href="#func-SetStartupFiles">SetStartupFiles()</a>
|
|
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-InitializeModuleCommands">Global Function InitializeModuleCommands()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: InitializeModuleCommands **
|
|
** **
|
|
** Description: Initialization of the passed Tcl interpreter. At **
|
|
** first the standard Tcl and (if required) TclX initi- **
|
|
** alization is called. Thereafter all module commands **
|
|
** callback function are defined. **
|
|
** **
|
|
** First Edition: 91/10/23 **
|
|
** **
|
|
** Parameters: Tcl_Interp *interp The Tcl Interpreter **
|
|
** to be initilized **
|
|
** **
|
|
** Result: int TCL_OK All done, Success **
|
|
** TCL_ERROR Failure anywhere **
|
|
** **
|
|
** Attached Globals: - **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt>int InitializeModuleCommands ( Tcl_Interp* interp )</tt><br>
|
|
<table>
|
|
<tr><td>Prototyped in:
|
|
<td colspan=2><a href="modules_def.h.html#file">modules_def.h</a>
|
|
<tr><td>Calls:
|
|
<td><a href="error.c.html#func-Module_Error">Module_Error()</a><td><a href="error.c.html#func-Module_Error">error.c</a>
|
|
<tr><td>
|
|
<td colspan=2>Tcl_CreateCommand(), Tcl_Init()
|
|
<tr><td>Called by:
|
|
<td><a href="init.c.html#func-Initialize_Tcl">Initialize_Tcl()</a><td><a href="init.c.html#func-Initialize_Tcl">init.c</a>
|
|
<tr><td>
|
|
<td><a href="ModuleCmd_Display.c.html#func-ModuleCmd_Display">ModuleCmd_Display()</a><td><a href="ModuleCmd_Display.c.html#func-ModuleCmd_Display">ModuleCmd_Display.c</a>
|
|
<tr><td>
|
|
<td><a href="ModuleCmd_Load.c.html#func-ModuleCmd_Load">ModuleCmd_Load()</a><td><a href="ModuleCmd_Load.c.html#func-ModuleCmd_Load">ModuleCmd_Load.c</a>
|
|
<tr><td>
|
|
<td><a href="ModuleCmd_Whatis.c.html#func-ModuleCmd_Whatis">ModuleCmd_Whatis()</a><td><a href="ModuleCmd_Whatis.c.html#func-ModuleCmd_Whatis">ModuleCmd_Whatis.c</a>
|
|
<tr><td>
|
|
<td><a href="ModuleCmd_Help.c.html#func-PerModuleHelp">PerModuleHelp()</a><td><a href="ModuleCmd_Help.c.html#func-PerModuleHelp">ModuleCmd_Help.c</a>
|
|
<tr><td>
|
|
<td><a href="ModuleCmd_Whatis.c.html#func-whatis_dir">whatis_dir()</a><td><a href="ModuleCmd_Whatis.c.html#func-whatis_dir">ModuleCmd_Whatis.c</a>
|
|
<tr><td>References Functions:
|
|
<td><a href="init.c.html#func-Module_Tcl_ExitCmd">Module_Tcl_ExitCmd()</a><td><a href="init.c.html#func-Module_Tcl_ExitCmd">init.c</a>
|
|
<tr><td>
|
|
<td><a href="cmdConflict.c.html#func-cmdConflict">cmdConflict()</a><td><a href="cmdConflict.c.html#func-cmdConflict">cmdConflict.c</a>
|
|
<tr><td>
|
|
<td><a href="cmdIsLoaded.c.html#func-cmdIsLoaded">cmdIsLoaded()</a><td><a href="cmdIsLoaded.c.html#func-cmdIsLoaded">cmdIsLoaded.c</a>
|
|
<tr><td>
|
|
<td><a href="cmdModule.c.html#func-cmdModule">cmdModule()</a><td><a href="cmdModule.c.html#func-cmdModule">cmdModule.c</a>
|
|
<tr><td>
|
|
<td><a href="cmdVersion.c.html#func-cmdModuleAlias">cmdModuleAlias()</a><td><a href="cmdVersion.c.html#func-cmdModuleAlias">cmdVersion.c</a>
|
|
<tr><td>
|
|
<td><a href="cmdInfo.c.html#func-cmdModuleInfo">cmdModuleInfo()</a><td><a href="cmdInfo.c.html#func-cmdModuleInfo">cmdInfo.c</a>
|
|
<tr><td>
|
|
<td><a href="cmdLog.c.html#func-cmdModuleLog">cmdModuleLog()</a><td><a href="cmdLog.c.html#func-cmdModuleLog">cmdLog.c</a>
|
|
<tr><td>
|
|
<td><a href="cmdTrace.c.html#func-cmdModuleTrace">cmdModuleTrace()</a><td><a href="cmdTrace.c.html#func-cmdModuleTrace">cmdTrace.c</a>
|
|
<tr><td>
|
|
<td><a href="cmdUlvl.c.html#func-cmdModuleUser">cmdModuleUser()</a><td><a href="cmdUlvl.c.html#func-cmdModuleUser">cmdUlvl.c</a>
|
|
<tr><td>
|
|
<td><a href="cmdVerbose.c.html#func-cmdModuleVerbose">cmdModuleVerbose()</a><td><a href="cmdVerbose.c.html#func-cmdModuleVerbose">cmdVerbose.c</a>
|
|
<tr><td>
|
|
<td><a href="cmdVersion.c.html#func-cmdModuleVersion">cmdModuleVersion()</a><td><a href="cmdVersion.c.html#func-cmdModuleVersion">cmdVersion.c</a>
|
|
<tr><td>
|
|
<td><a href="cmdWhatis.c.html#func-cmdModuleWhatis">cmdModuleWhatis()</a><td><a href="cmdWhatis.c.html#func-cmdModuleWhatis">cmdWhatis.c</a>
|
|
<tr><td>
|
|
<td><a href="cmdConflict.c.html#func-cmdPrereq">cmdPrereq()</a><td><a href="cmdConflict.c.html#func-cmdPrereq">cmdConflict.c</a>
|
|
<tr><td>
|
|
<td><a href="cmdPath.c.html#func-cmdRemovePath">cmdRemovePath()</a><td><a href="cmdPath.c.html#func-cmdRemovePath">cmdPath.c</a>
|
|
<tr><td>
|
|
<td><a href="cmdAlias.c.html#func-cmdSetAlias">cmdSetAlias()</a><td><a href="cmdAlias.c.html#func-cmdSetAlias">cmdAlias.c</a>
|
|
<tr><td>
|
|
<td><a href="cmdSetenv.c.html#func-cmdSetEnv">cmdSetEnv()</a><td><a href="cmdSetenv.c.html#func-cmdSetEnv">cmdSetenv.c</a>
|
|
<tr><td>
|
|
<td><a href="cmdPath.c.html#func-cmdSetPath">cmdSetPath()</a><td><a href="cmdPath.c.html#func-cmdSetPath">cmdPath.c</a>
|
|
<tr><td>
|
|
<td><a href="cmdMisc.c.html#func-cmdSystem">cmdSystem()</a><td><a href="cmdMisc.c.html#func-cmdSystem">cmdMisc.c</a>
|
|
<tr><td>
|
|
<td><a href="cmdUname.c.html#func-cmdUname">cmdUname()</a><td><a href="cmdUname.c.html#func-cmdUname">cmdUname.c</a>
|
|
<tr><td>
|
|
<td><a href="cmdSetenv.c.html#func-cmdUnsetEnv">cmdUnsetEnv()</a><td><a href="cmdSetenv.c.html#func-cmdUnsetEnv">cmdSetenv.c</a>
|
|
<tr><td>
|
|
<td><a href="cmdXResource.c.html#func-cmdXResource">cmdXResource()</a><td><a href="cmdXResource.c.html#func-cmdXResource">cmdXResource.c</a>
|
|
<tr><td>References Variables:
|
|
<td><a href="init.c.html#var-module_name">module_name</a><td><a href="init.c.html#var-module_name">init.c</a>
|
|
<tr><td>
|
|
<td><a href="main.c.html#var-shell_derelict">shell_derelict</a><td><a href="main.c.html#var-shell_derelict">main.c</a>
|
|
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-Initialize_Tcl">Global Function Initialize_Tcl()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: Initialize_Tcl **
|
|
** **
|
|
** Description: This procedure is called from 'main' in order to ini-**
|
|
** tialize the whole thing. The arguments specified on **
|
|
** the invoking command line are passed to here. **
|
|
** **
|
|
** First Edition: 91/10/23 **
|
|
** **
|
|
** Parameters: Tcl_Interp **interp Buffer to store the **
|
|
** Tcl interpr. handle **
|
|
** int argc Number od args and **
|
|
** char *argv[] arg. array from the **
|
|
** shell command line **
|
|
** char *environ[] Process environment **
|
|
** **
|
|
** Result: int **
|
|
** **
|
|
** Attached Globals: *Ptr will be initialized **
|
|
** *HashTable will be allocated and initialized **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt>int Initialize_Tcl ( Tcl_Interp** interp, int argc, char* argv[], char* environ[] )</tt><br>
|
|
<table>
|
|
<tr><td>Prototyped in:
|
|
<td colspan=2><a href="modules_def.h.html#file">modules_def.h</a>
|
|
<tr><td>Calls:
|
|
<td><a href="init.c.html#func-InitializeModuleCommands">InitializeModuleCommands()</a><td><a href="init.c.html#func-InitializeModuleCommands">init.c</a>
|
|
<tr><td>
|
|
<td><a href="error.c.html#func-Module_Error">Module_Error()</a><td><a href="error.c.html#func-Module_Error">error.c</a>
|
|
<tr><td>
|
|
<td><a href="cmdSetenv.c.html#func-moduleSetenv">moduleSetenv()</a><td><a href="cmdSetenv.c.html#func-moduleSetenv">cmdSetenv.c</a>
|
|
<tr><td>
|
|
<td><a href="utility.c.html#func-set_derelict">set_derelict()</a><td><a href="utility.c.html#func-set_derelict">utility.c</a>
|
|
<tr><td>
|
|
<td colspan=2>Tcl_CreateInterp(), Tcl_InitHashTable(), fclose(), fopen(), fprintf(), getenv(), malloc(), strcat(), strcpy(), strlen()
|
|
<tr><td>Called by:
|
|
<td><a href="main.c.html#func-main">main()</a><td><a href="main.c.html#func-main">main.c</a>
|
|
<tr><td>References Variables:
|
|
<td><a href="main.c.html#var-aliasSetHashTable">aliasSetHashTable</a><td><a href="main.c.html#var-aliasSetHashTable">main.c</a>
|
|
<tr><td>
|
|
<td><a href="main.c.html#var-aliasUnsetHashTable">aliasUnsetHashTable</a><td><a href="main.c.html#var-aliasUnsetHashTable">main.c</a>
|
|
<tr><td>
|
|
<td><a href="main.c.html#var-markAliasHashTable">markAliasHashTable</a><td><a href="main.c.html#var-markAliasHashTable">main.c</a>
|
|
<tr><td>
|
|
<td><a href="main.c.html#var-markVariableHashTable">markVariableHashTable</a><td><a href="main.c.html#var-markVariableHashTable">main.c</a>
|
|
<tr><td>
|
|
<td><a href="init.c.html#var-module_name">module_name</a><td><a href="init.c.html#var-module_name">init.c</a>
|
|
<tr><td>
|
|
<td><a href="main.c.html#var-setenvHashTable">setenvHashTable</a><td><a href="main.c.html#var-setenvHashTable">main.c</a>
|
|
<tr><td>
|
|
<td><a href="main.c.html#var-shell_name">shell_name</a><td><a href="main.c.html#var-shell_name">main.c</a>
|
|
<tr><td>
|
|
<td><a href="main.c.html#var-unsetenvHashTable">unsetenvHashTable</a><td><a href="main.c.html#var-unsetenvHashTable">main.c</a>
|
|
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-Module_Tcl_ExitCmd">Global Function Module_Tcl_ExitCmd()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: Module_Tcl_ExitCmd **
|
|
** **
|
|
** Description: Error (???) exit routine **
|
|
** **
|
|
** First Edition: 91/10/23 **
|
|
** **
|
|
** Parameters: ClientData client_data **
|
|
** Tcl_Interp* interp The attached Tcl **
|
|
** interpreter **
|
|
** int argc Number of arguments **
|
|
** char *argv[] Array of arguments **
|
|
** to the module command**
|
|
** **
|
|
** Result: int TCL_ERROR Exit on error **
|
|
** **
|
|
** Attached Globals: **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt>int Module_Tcl_ExitCmd ( ClientData client_data, Tcl_Interp* interp, int argc, char* argv[] )</tt><br>
|
|
<table>
|
|
<tr><td>Calls:
|
|
<td><a href="error.c.html#func-Module_Error">Module_Error()</a><td><a href="error.c.html#func-Module_Error">error.c</a>
|
|
<tr><td>
|
|
<td colspan=2>Tcl_GetInt(), Tcl_SetResult(), malloc(), sprintf()
|
|
<tr><td>Used in:
|
|
<td><a href="init.c.html#func-InitializeModuleCommands">InitializeModuleCommands()</a><td><a href="init.c.html#func-InitializeModuleCommands">init.c</a>
|
|
<tr><td>References Variables:
|
|
<td><a href="init.c.html#var-module_name">module_name</a><td><a href="init.c.html#var-module_name">init.c</a>
|
|
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-SetStartupFiles">Global Function SetStartupFiles()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: SetStartupFiles **
|
|
** **
|
|
** Description: Collects all startupfiles used by the various shells **
|
|
** in the array 'shell_startups'. This function does not**
|
|
** take care, if the startup file do exist! **
|
|
** **
|
|
** First Edition: 91/10/23 **
|
|
** **
|
|
** Parameters: - **
|
|
** Result: - **
|
|
** Attached Globals: shell_startups will be set up with a list of all **
|
|
** startup files used by the shell **
|
|
** specified in 'shell_name' **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt>int SetStartupFiles ( void )</tt><br>
|
|
<table>
|
|
<tr><td>Prototyped in:
|
|
<td colspan=2><a href="modules_def.h.html#file">modules_def.h</a>
|
|
<tr><td>Calls:
|
|
<td colspan=2>strcmp()
|
|
<tr><td>Called by:
|
|
<td><a href="ModuleCmd_Init.c.html#func-ModuleCmd_Init">ModuleCmd_Init()</a><td><a href="ModuleCmd_Init.c.html#func-ModuleCmd_Init">ModuleCmd_Init.c</a>
|
|
<tr><td>References Variables:
|
|
<td><a href="init.c.html#var-bashStartUps">bashStartUps</a><td><a href="init.c.html#var-bashStartUps">init.c</a>
|
|
<tr><td>
|
|
<td><a href="init.c.html#var-cshStartUps">cshStartUps</a><td><a href="init.c.html#var-cshStartUps">init.c</a>
|
|
<tr><td>
|
|
<td><a href="init.c.html#var-genericStartUps">genericStartUps</a><td><a href="init.c.html#var-genericStartUps">init.c</a>
|
|
<tr><td>
|
|
<td><a href="init.c.html#var-shStartUps">shStartUps</a><td><a href="init.c.html#var-shStartUps">init.c</a>
|
|
<tr><td>
|
|
<td><a href="main.c.html#var-shell_name">shell_name</a><td><a href="main.c.html#var-shell_name">main.c</a>
|
|
<tr><td>
|
|
<td><a href="main.c.html#var-shell_startups">shell_startups</a><td><a href="main.c.html#var-shell_startups">main.c</a>
|
|
<tr><td>
|
|
<td><a href="init.c.html#var-tcshStartUps">tcshStartUps</a><td><a href="init.c.html#var-tcshStartUps">init.c</a>
|
|
<tr><td>
|
|
<td><a href="init.c.html#var-zshStartUps">zshStartUps</a><td><a href="init.c.html#var-zshStartUps">init.c</a>
|
|
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-Setup_Environment">Global Function Setup_Environment()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: Setup_Environment **
|
|
** **
|
|
** Description:Define all variables to be found in the current **
|
|
** shell environment as Tcl variables in the passed **
|
|
** Tcl interpreter. **
|
|
** Assign as value 0 to all of them. ??? Why ??? **
|
|
** **
|
|
** First Edition: 91/10/23 **
|
|
** **
|
|
** Parameters: Tcl_Interp *interp Attched Tcl interpr. **
|
|
** **
|
|
** Result: int TCL_ERROR Variable could not be set up **
|
|
** 0 Success ??? TCL_OK ??? **
|
|
** **
|
|
** Attached Globals: environ **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt>int Setup_Environment ( Tcl_Interp* interp )</tt><br>
|
|
<table>
|
|
<tr><td>Prototyped in:
|
|
<td colspan=2><a href="modules_def.h.html#file">modules_def.h</a>
|
|
<tr><td>Calls:
|
|
<td><a href="error.c.html#func-Module_Error">Module_Error()</a><td><a href="error.c.html#func-Module_Error">error.c</a>
|
|
<tr><td>
|
|
<td><a href="utility.c.html#func-getLMFILES">getLMFILES()</a><td><a href="utility.c.html#func-getLMFILES">utility.c</a>
|
|
<tr><td>
|
|
<td colspan=2>Tcl_SetVar(), Tcl_SetVar2(), strlen()
|
|
<tr><td>Called by:
|
|
<td><a href="main.c.html#func-main">main()</a><td><a href="main.c.html#func-main">main.c</a>
|
|
<tr><td>References Variables:
|
|
<td><a href="init.c.html#var-module_name">module_name</a><td><a href="init.c.html#var-module_name">init.c</a>
|
|
<tr><td>
|
|
<td colspan=2>environ
|
|
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-TieStdout">Global Function TieStdout()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: TieStdout, UnTieStdout **
|
|
** **
|
|
** Description: TieStdout closes the 'stdout' handle and reopens it **
|
|
** as 'stderr'. The original 'stdout' handle is passed **
|
|
** back to the caller. **
|
|
** UnTieStdout reverts this by reopening 'stdout' as the**
|
|
** handle passed as parameter **
|
|
** **
|
|
** First Edition: 91/10/23 **
|
|
** **
|
|
** Parameters: int saved_stdout Handle to be used for rein- **
|
|
** stalling stdout **
|
|
** **
|
|
** Result: int The (just reinstalled or saved) stdout handle**
|
|
** **
|
|
** Attached Globals: - **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt>int TieStdout ( void )</tt><br>
|
|
<table>
|
|
<tr><td>Prototyped in:
|
|
<td colspan=2><a href="modules_def.h.html#file">modules_def.h</a>
|
|
<tr><td>Calls:
|
|
<td><a href="error.c.html#func-Module_Error">Module_Error()</a><td><a href="error.c.html#func-Module_Error">error.c</a>
|
|
<tr><td>
|
|
<td colspan=2>close(), dup()
|
|
<tr><td>Called by:
|
|
<td><a href="cmdMisc.c.html#func-cmdSystem">cmdSystem()</a><td><a href="cmdMisc.c.html#func-cmdSystem">cmdMisc.c</a>
|
|
<tr><td>References Variables:
|
|
<td><a href="cmdModule.c.html#var-_fil_stderr">_fil_stderr</a><td><a href="cmdModule.c.html#var-_fil_stderr">cmdModule.c</a>
|
|
<tr><td>
|
|
<td><a href="cmdModule.c.html#var-_fil_stdout">_fil_stdout</a><td><a href="cmdModule.c.html#var-_fil_stdout">cmdModule.c</a>
|
|
<tr><td>
|
|
<td><a href="init.c.html#var-module_name">module_name</a><td><a href="init.c.html#var-module_name">init.c</a>
|
|
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-UnTieStdout">Global Function UnTieStdout()</a></h2>
|
|
<tt>int UnTieStdout ( int saved_stdout )</tt><br>
|
|
<table>
|
|
<tr><td>Prototyped in:
|
|
<td colspan=2><a href="modules_def.h.html#file">modules_def.h</a>
|
|
<tr><td>Calls:
|
|
<td><a href="error.c.html#func-Module_Error">Module_Error()</a><td><a href="error.c.html#func-Module_Error">error.c</a>
|
|
<tr><td>
|
|
<td colspan=2>close(), dup()
|
|
<tr><td>Called by:
|
|
<td><a href="cmdMisc.c.html#func-cmdSystem">cmdSystem()</a><td><a href="cmdMisc.c.html#func-cmdSystem">cmdMisc.c</a>
|
|
<tr><td>References Variables:
|
|
<td><a href="cmdModule.c.html#var-_fil_stdout">_fil_stdout</a><td><a href="cmdModule.c.html#var-_fil_stdout">cmdModule.c</a>
|
|
<tr><td>
|
|
<td><a href="init.c.html#var-module_name">module_name</a><td><a href="init.c.html#var-module_name">init.c</a>
|
|
|
|
</table>
|
|
|
|
</BODY>
|
|
</HTML>
|