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.
186 lines
5.8 KiB
HTML
186 lines
5.8 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 cmdLog.c
|
|
CPP : gcc -E -C -dD -dI
|
|
-->
|
|
|
|
<HTML>
|
|
|
|
<HEAD>
|
|
<TITLE>Cross reference for cmdLog.c of cxref.</TITLE>
|
|
</HEAD>
|
|
|
|
<BODY>
|
|
|
|
<h1><a name="file">File cmdLog.c</a></h1>
|
|
<pre>
|
|
** ** Module Header ******************************************************* **
|
|
** **
|
|
** Modules Revision 3.0 **
|
|
** Providing a flexible user environment **
|
|
** **
|
|
** File: cmdLog.c **
|
|
** First Edition: 95/12/26 **
|
|
** **
|
|
** Authors: Jens Hamisch, jens@Strawberry.COM **
|
|
** **
|
|
** Description: The Tcl module-trace routine which provides a con- **
|
|
** trolling interface to the modulecmd tracing feature **
|
|
** **
|
|
** Exports: cmdModuleLog **
|
|
** **
|
|
** Notes: **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<table>
|
|
<tr><td>References Variables:
|
|
<td><a href="cmdLog.c.html#var-Id">Id</a><td><a href="cmdLog.c.html#var-Id">cmdLog.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>Preprocessor definitions</h2>
|
|
|
|
<tt>#define PART_LEN 256</tt><br>
|
|
|
|
<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="cmdLog.c.html#file">cmdLog.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-cmdModuleLog">cmdModuleLog()</a>
|
|
|
|
</table>
|
|
<p>
|
|
<b><a name="var-_stderr">_stderr</a></b><br>
|
|
<tt>static char _stderr[]</tt><br>
|
|
<table>
|
|
<tr><td>Used in:
|
|
<td><a href="#func-cmdModuleLog">cmdModuleLog()</a>
|
|
|
|
</table>
|
|
<p>
|
|
<b><a name="var-_stdout">_stdout</a></b><br>
|
|
<tt>static char _stdout[]</tt><br>
|
|
<table>
|
|
<tr><td>Used in:
|
|
<td><a href="#func-cmdModuleLog">cmdModuleLog()</a>
|
|
|
|
</table>
|
|
<p>
|
|
<b><a name="var-_null">_null</a></b><br>
|
|
<tt>static char _null[]</tt><br>
|
|
<table>
|
|
<tr><td>Used in:
|
|
<td><a href="#func-cmdModuleLog">cmdModuleLog()</a>
|
|
|
|
</table>
|
|
<p>
|
|
<b><a name="var-_none">_none</a></b><br>
|
|
<tt>static char _none[]</tt><br>
|
|
<table>
|
|
<tr><td>Used in:
|
|
<td><a href="#func-cmdModuleLog">cmdModuleLog()</a>
|
|
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-cmdModuleLog">Global Function cmdModuleLog()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: cmdModuleLog **
|
|
** **
|
|
** Description: Callback function for 'log' **
|
|
** **
|
|
** First Edition: 91/10/23 **
|
|
** **
|
|
** Parameters: ClientData client_data **
|
|
** Tcl_Interp *interp According Tcl interp.**
|
|
** int argc Number of arguments **
|
|
** char *argv[] Argument array **
|
|
** **
|
|
** Result: int TCL_OK Successfull completion **
|
|
** TCL_ERROR Any error **
|
|
** **
|
|
** Attached Globals: tracelist List containing all tracing settings **
|
|
** g_flags These are set up accordingly before **
|
|
** this function is called in order to **
|
|
** control everything **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt>int cmdModuleLog ( ClientData client_data, Tcl_Interp* interp, 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><a href="error.c.html#func-CheckFacility">CheckFacility()</a><td><a href="error.c.html#func-CheckFacility">error.c</a>
|
|
<tr><td>
|
|
<td><a href="error.c.html#func-GetFacilityPtr">GetFacilityPtr()</a><td><a href="error.c.html#func-GetFacilityPtr">error.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 colspan=2>fprintf(), malloc(), realloc(), strcmp(), strcpy(), strlen(), strtok()
|
|
<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="cmdLog.c.html#var-_none">_none</a><td><a href="cmdLog.c.html#var-_none">cmdLog.c</a>
|
|
<tr><td>
|
|
<td><a href="cmdLog.c.html#var-_null">_null</a><td><a href="cmdLog.c.html#var-_null">cmdLog.c</a>
|
|
<tr><td>
|
|
<td><a href="cmdLog.c.html#var-_stderr">_stderr</a><td><a href="cmdLog.c.html#var-_stderr">cmdLog.c</a>
|
|
<tr><td>
|
|
<td><a href="cmdLog.c.html#var-_stdout">_stdout</a><td><a href="cmdLog.c.html#var-_stdout">cmdLog.c</a>
|
|
<tr><td>
|
|
<td><a href="main.c.html#var-g_flags">g_flags</a><td><a href="main.c.html#var-g_flags">main.c</a>
|
|
<tr><td>
|
|
<td><a href="cmdLog.c.html#var-module_name">module_name</a><td><a href="cmdLog.c.html#var-module_name">cmdLog.c</a>
|
|
|
|
</table>
|
|
|
|
</BODY>
|
|
</HTML>
|