mirror of
https://github.com/envmodules/modules.git
synced 2026-06-10 00:56:30 +08:00
300 lines
13 KiB
HTML
300 lines
13 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
|
|
<!-- This HTML file generated by cxref (version 1.6a). -->
|
|
<!-- cxref program (c) Andrew M. Bishop 1995,96,97,98,99,2000,01,02,03,04,05. -->
|
|
|
|
<!--
|
|
Cxref: cxref -block-comments -verbatim-comments -xref-all -index-all -html-src -Oxref ModuleCmd_Use.c
|
|
CPP : cxref-cpp -lang-c -C -dD -dI
|
|
-->
|
|
|
|
<HTML>
|
|
|
|
<HEAD>
|
|
<TITLE>Cross reference for ModuleCmd_Use.c of cxref.</TITLE>
|
|
<LINK rel="stylesheet" href="cxref.css" type="text/css">
|
|
</HEAD>
|
|
|
|
<BODY>
|
|
|
|
<h1><a name="file" href="ModuleCmd_Use.c.src.html">File ModuleCmd_Use.c</a></h1>
|
|
<pre>
|
|
** ** Module Header ******************************************************* **
|
|
** **
|
|
** Modules Revision 3.0 **
|
|
** Providing a flexible user environment **
|
|
** **
|
|
** File: ModuleCmd_Use.c **
|
|
** First Edition: 1991/10/23 **
|
|
** **
|
|
** Authors: John Furlan, jlf@behere.com **
|
|
** Jens Hamisch, jens@Strawberry.COM **
|
|
** **
|
|
** Description: Prepends (and appends) directories to the MODULEPATH **
|
|
** environment variable to enable access to more **
|
|
** modulefiles. **
|
|
** **
|
|
** Exports: ModuleCmd_Use **
|
|
** ModuleCmd_UnUse **
|
|
** **
|
|
** Notes: **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<table>
|
|
<tr>
|
|
<td>References Variables:
|
|
<td><a href="ModuleCmd_Use.c.html#var-Id">Id</a>
|
|
<td><a href="ModuleCmd_Use.c.html#var-Id">ModuleCmd_Use.c</a>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2>Included Files</h2>
|
|
|
|
<ul class="cxref-include">
|
|
<li class="cxref-include-local"><tt><span class="cxref-include-local"><a href="modules_def.h.html#file">#include "modules_def.h"</a></span></tt>
|
|
<ul class="cxref-include">
|
|
<li class="cxref-include-system"><tt><span class="cxref-include-system">#include <stdio.h></span></tt>
|
|
<li class="cxref-include-system"><tt><span class="cxref-include-system">#include <stdarg.h></span></tt>
|
|
<li class="cxref-include-system"><tt><span class="cxref-include-system">#include <tcl.h></span></tt>
|
|
<li class="cxref-include-local"><tt><span class="cxref-include-local"><a href="config.h.html#file">#include "config.h"</a></span></tt>
|
|
<li class="cxref-include-system"><tt><span class="cxref-include-system">#include <stdlib.h></span></tt>
|
|
<li class="cxref-include-system"><tt><span class="cxref-include-system">#include <string.h></span></tt>
|
|
<li class="cxref-include-system"><tt><span class="cxref-include-system">#include <unistd.h></span></tt>
|
|
<li class="cxref-include-system"><tt><span class="cxref-include-system">#include <sys/types.h></span></tt>
|
|
<li class="cxref-include-system"><tt><span class="cxref-include-system">#include <ctype.h></span></tt>
|
|
<li class="cxref-include-system"><tt><span class="cxref-include-system">#include <sys/stat.h></span></tt>
|
|
<li class="cxref-include-system"><tt><span class="cxref-include-system">#include <sys/termios.h></span></tt>
|
|
<li class="cxref-include-system"><tt><span class="cxref-include-system">#include <fcntl.h></span></tt>
|
|
<li class="cxref-include-system"><tt><span class="cxref-include-system">#include <sys/ioctl.h></span></tt>
|
|
<li class="cxref-include-system"><tt><span class="cxref-include-system">#include <dirent.h></span></tt>
|
|
<li class="cxref-include-system"><tt><span class="cxref-include-system">#include <errno.h></span></tt>
|
|
</ul>
|
|
</ul>
|
|
|
|
<hr>
|
|
<h2>Local Variables</h2>
|
|
|
|
<b><a name="var-Id">Id</a></b><br>
|
|
<tt><span class="cxref-variable"><a href="ModuleCmd_Use.c.src.html#line32">static char Id[]</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Used in:
|
|
<td> <td><span class="cxref-reference-local"><a href="ModuleCmd_Use.c.html#file">ModuleCmd_Use.c</a></span>
|
|
</tr>
|
|
</table>
|
|
<p>
|
|
<b><a name="var-UseId">UseId</a></b><br>
|
|
<tt><span class="cxref-variable"><a href="ModuleCmd_Use.c.src.html#line33">static void* UseId[]</a></span></tt><br>
|
|
<p>
|
|
<b><a name="var-module_name">module_name</a></b><br>
|
|
<tt><span class="cxref-variable"><a href="ModuleCmd_Use.c.src.html#line63">static char module_name[]</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Used in:
|
|
<td><a href="#func-ModuleCmd_UnUse">ModuleCmd_UnUse()</a>
|
|
<td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><a href="#func-ModuleCmd_Use">ModuleCmd_Use()</a>
|
|
<td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><a href="#func-append_to_modulesbeginenv">append_to_modulesbeginenv()</a>
|
|
<td>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-ModuleCmd_UnUse">Global Function ModuleCmd_UnUse()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: ModuleCmd_UnUse **
|
|
** **
|
|
** Description: Execution of the module-command 'unuse' **
|
|
** **
|
|
** First Edition: 1991/10/23 **
|
|
** **
|
|
** Parameters: Tcl_Interp *interp Attached Tcl Interp. **
|
|
** int argc Number of arguments **
|
|
** char *argv[] Argument list **
|
|
** **
|
|
** Result: int TCL_ERROR Failure **
|
|
** TCL_OK Successfull operation **
|
|
** **
|
|
** Attached Globals: - **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="ModuleCmd_Use.c.src.html#line286">int ModuleCmd_UnUse ( Tcl_Interp* interp, int argc, char* argv[] )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="modules_def.h.html#file">modules_def.h</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Calls:
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">Module_Error()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">error.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Use.c.html#func-append_to_modulesbeginenv">append_to_modulesbeginenv()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Use.c.html#func-append_to_modulesbeginenv">ModuleCmd_Use.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdPath.c.html#func-cmdRemovePath">cmdRemovePath()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdPath.c.html#func-cmdRemovePath">cmdPath.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Use.c.html#func-ModuleCmd_Use">ModuleCmd_Use()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Use.c.html#func-ModuleCmd_Use">ModuleCmd_Use.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdModule.c.html#func-cmdModule">cmdModule()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdModule.c.html#func-cmdModule">cmdModule.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>References Variables:
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Use.c.html#var-module_name">module_name</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Use.c.html#var-module_name">ModuleCmd_Use.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-ModuleCmd_Use">Global Function ModuleCmd_Use()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: ModuleCmd_Use **
|
|
** **
|
|
** Description: Execution of the module-command 'use' **
|
|
** **
|
|
** First Edition: 1991/10/23 **
|
|
** **
|
|
** Parameters: Tcl_Interp *interp Attached Tcl Interp. **
|
|
** int argc Number of arguments **
|
|
** char *argv[] Argument list **
|
|
** **
|
|
** Result: int TCL_ERROR Failure **
|
|
** TCL_OK Successfull operation **
|
|
** **
|
|
** Attached Globals: g_flags Controllig the callback functions **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="ModuleCmd_Use.c.src.html#line169">int ModuleCmd_Use ( Tcl_Interp* interp, int argc, char* argv[] )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="modules_def.h.html#file">modules_def.h</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Calls:
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Use.c.html#func-ModuleCmd_UnUse">ModuleCmd_UnUse()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Use.c.html#func-ModuleCmd_UnUse">ModuleCmd_Use.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">Module_Error()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">error.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Use.c.html#func-append_to_modulesbeginenv">append_to_modulesbeginenv()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Use.c.html#func-append_to_modulesbeginenv">ModuleCmd_Use.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdPath.c.html#func-cmdSetPath">cmdSetPath()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdPath.c.html#func-cmdSetPath">cmdPath.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td colspan=2><span class="cxref-reference-system">stat(), strcmp()</span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="cmdModule.c.html#func-cmdModule">cmdModule()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdModule.c.html#func-cmdModule">cmdModule.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>References Variables:
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-append_flag">append_flag</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-append_flag">main.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-g_flags">g_flags</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-g_flags">main.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Use.c.html#var-module_name">module_name</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Use.c.html#var-module_name">ModuleCmd_Use.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-append_to_modulesbeginenv">Local Function append_to_modulesbeginenv()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: append_to_modulesbeginenv **
|
|
** **
|
|
** Description: Append the passed variable (with value) to the begin-**
|
|
** ning environment **
|
|
** **
|
|
** First Edition: 1991/10/23 **
|
|
** **
|
|
** Parameters: Tcl_Interp *interp Attached Tcl Interp. **
|
|
** char *var Name of the variable **
|
|
** **
|
|
** Result: - **
|
|
** **
|
|
** Attached Globals: - **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="ModuleCmd_Use.c.src.html#line98">static void append_to_modulesbeginenv ( Tcl_Interp* interp, char* var )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Calls:
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">Module_Error()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">error.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td colspan=2><span class="cxref-reference-system">Tcl_GetVar2(), fclose(), fopen(), fprintf()</span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Use.c.html#func-ModuleCmd_UnUse">ModuleCmd_UnUse()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Use.c.html#func-ModuleCmd_UnUse">ModuleCmd_Use.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Use.c.html#func-ModuleCmd_Use">ModuleCmd_Use()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Use.c.html#func-ModuleCmd_Use">ModuleCmd_Use.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>References Variables:
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Use.c.html#var-module_name">module_name</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Use.c.html#var-module_name">ModuleCmd_Use.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
</BODY>
|
|
</HTML>
|