Files
modules/xref/ModuleCmd_Load.c.html
2000-06-28 02:45:38 +00:00

136 lines
4.3 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 ModuleCmd_Load.c
CPP : gcc -E -C -dD -dI
-->
<HTML>
<HEAD>
<TITLE>Cross reference for ModuleCmd_Load.c of cxref.</TITLE>
</HEAD>
<BODY>
<h1><a name="file">File ModuleCmd_Load.c</a></h1>
<pre>
** ** Module Header ******************************************************* **
** **
** Modules Revision 3.0 **
** Providing a flexible user environment **
** **
** File: ModuleCmd_Load.c **
** First Edition: 91/10/23 **
** **
** Authors: John Furlan, jlf@behere.com **
** Jens Hamisch, jens@Strawberry.COM **
** **
** Description: The load and unload procedure that takes care of **
** adding and removing modulefiles to and from the **
** user's environment. **
** **
** Exports: ModuleCmd_Load **
** **
** Notes: **
** **
** ************************************************************************ **
</pre>
<table>
<tr><td>References Variables:
<td><a href="ModuleCmd_Load.c.html#var-Id">Id</a><td><a href="ModuleCmd_Load.c.html#var-Id">ModuleCmd_Load.c</a>
</table>
<hr>
<h2>Included Files</h2>
<ul>
<li><tt><a href="modules_def.h.html#file">#include &quot;modules_def.h&quot;</a></tt>
<ul>
<li><tt>#include &lt;stdio.h&gt;</tt>
<li><tt>#include &lt;tcl.h&gt;</tt>
<li><tt><a href="config.h.html#file">#include &quot;config.h&quot;</a></tt>
<li><tt>#include &lt;stdlib.h&gt;</tt>
<li><tt>#include &lt;string.h&gt;</tt>
<li><tt>#include &lt;unistd.h&gt;</tt>
<li><tt>#include &lt;sys/types.h&gt;</tt>
<li><tt>#include &lt;ctype.h&gt;</tt>
<li><tt>#include &lt;sys/stat.h&gt;</tt>
<li><tt>#include &lt;sys/termios.h&gt;</tt>
<li><tt>#include &lt;fcntl.h&gt;</tt>
<li><tt>#include &lt;sys/ioctl.h&gt;</tt>
<li><tt>#include &lt;dirent.h&gt;</tt>
<li><tt>#include &lt;errno.h&gt;</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>&nbsp;<td><a href="ModuleCmd_Load.c.html#file">ModuleCmd_Load.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-ModuleCmd_Load">ModuleCmd_Load()</a>
</table>
<hr>
<h2><a name="func-ModuleCmd_Load">Global Function ModuleCmd_Load()</a></h2>
<pre>
** ** Function-Header ***************************************************** **
** **
** Function: ModuleCmd_Load **
** **
** Description: Execution of the module-commands 'load' and 'unload' **
** **
** First Edition: 91/10/23 **
** **
** Parameters: Tcl_Interp *interp Attached Tcl Interp. **
** int load Controls 'load' or **
** 'unload' to be done **
** int argc Number of arguments **
** char *argv[] Argument list **
** **
** Result: int 0 None of the passed modules **
** has been load **
** 1 At least one module has been **
** read **
** **
** Attached Globals: specified_module The module name from the **
** command line **
** **
** ************************************************************************ **
</pre>
<tt>int ModuleCmd_Load ( Tcl_Interp* interp, int load, int argc, char* argv[] )</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>Copy_Hash_Tables(), Delete_Hash_Tables(), InitializeModuleCommands(), IsLoaded(), Locate_ModuleFile(), Module_Error(), Read_Modulefile(), Tcl_CreateInterp(), Tcl_DeleteInterp(), Unwind_Modulefile_Changes(), Update_LoadedList(), strcpy()
<tr><td>References Variables:
<td><a href="ModuleCmd_Load.c.html#var-module_name">module_name</a><td><a href="ModuleCmd_Load.c.html#var-module_name">ModuleCmd_Load.c</a>
<tr><td>&nbsp;
<td colspan=2>current_module, flags, specified_module
</table>
</BODY>
</HTML>