mirror of
https://github.com/envmodules/modules.git
synced 2026-06-18 00:06:53 +08:00
196 lines
5.6 KiB
HTML
196 lines
5.6 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 cmdMisc.c
|
|
CPP : gcc -E -C -dD -dI
|
|
-->
|
|
|
|
<HTML>
|
|
|
|
<HEAD>
|
|
<TITLE>Cross reference for cmdMisc.c of cxref.</TITLE>
|
|
</HEAD>
|
|
|
|
<BODY>
|
|
|
|
<h1><a name="file">File cmdMisc.c</a></h1>
|
|
<pre>
|
|
** ** Module Header ******************************************************* **
|
|
** **
|
|
** Modules Revision 3.0 **
|
|
** Providing a flexible user environment **
|
|
** **
|
|
** File: cmdMisc.c **
|
|
** First Edition: 91/10/23 **
|
|
** **
|
|
** Authors: John Furlan, jlf@behere.com **
|
|
** Jens Hamisch, jens@Strawberry.COM **
|
|
** **
|
|
** Description: The Tcl 'system' command **
|
|
** **
|
|
** Exports: cmdSystem **
|
|
** **
|
|
** Notes: The Following code was written by Don Libes, NIST **
|
|
** It was taken from his tool, 'expect' ... **
|
|
** I have edited parts of it... **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<table>
|
|
<tr><td>References Variables:
|
|
<td><a href="cmdMisc.c.html#var-Id">Id</a><td><a href="cmdMisc.c.html#var-Id">cmdMisc.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 <stdarg.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 __VERSION__ "2.96 20000731 (Red Hat Linux 7.1 2.96-98)"</tt><br>
|
|
<p>
|
|
<tt>#define __USER_LABEL_PREFIX__</tt><br>
|
|
<p>
|
|
<tt>#define __REGISTER_PREFIX__</tt><br>
|
|
<p>
|
|
<tt>#define __HAVE_BUILTIN_SETJMP__ 1</tt><br>
|
|
<p>
|
|
<tt>#define __SIZE_TYPE__</tt><br>
|
|
<p>
|
|
<tt>#define __PTRDIFF_TYPE__ int</tt><br>
|
|
<p>
|
|
<tt>#define __WCHAR_TYPE__</tt><br>
|
|
<p>
|
|
<tt>#define __WINT_TYPE__</tt><br>
|
|
<p>
|
|
<tt>#define __GNUC__ 2</tt><br>
|
|
<p>
|
|
<tt>#define __GNUC_MINOR__ 96</tt><br>
|
|
<p>
|
|
<tt>#define __GNUC_PATCHLEVEL__ 0</tt><br>
|
|
<p>
|
|
<tt>#define __ELF__ 1</tt><br>
|
|
<p>
|
|
<tt>#define unix 1</tt><br>
|
|
<p>
|
|
<tt>#define linux 1</tt><br>
|
|
<p>
|
|
<tt>#define __ELF__ 1</tt><br>
|
|
<p>
|
|
<tt>#define __unix__ 1</tt><br>
|
|
<p>
|
|
<tt>#define __linux__ 1</tt><br>
|
|
<p>
|
|
<tt>#define __unix 1</tt><br>
|
|
<p>
|
|
<tt>#define __linux 1</tt><br>
|
|
<p>
|
|
<tt>#define __NO_INLINE__ 1</tt><br>
|
|
<p>
|
|
<tt>#define i386 1</tt><br>
|
|
<p>
|
|
<tt>#define __i386 1</tt><br>
|
|
<p>
|
|
<tt>#define __i386__ 1</tt><br>
|
|
<p>
|
|
<tt>#define __tune_i386__ 1</tt><br>
|
|
<p>
|
|
<tt>#define MAX_ARGLIST 10240</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="cmdMisc.c.html#file">cmdMisc.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-cmdSystem">cmdSystem()</a>
|
|
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-cmdSystem">Global Function cmdSystem()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: cmdSystem **
|
|
** **
|
|
** Description: Callback function for 'system' **
|
|
** **
|
|
** 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: g_flags These are set up accordingly before **
|
|
** this function is called in order to **
|
|
** control everything **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt>int cmdSystem ( ClientData clientData, 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-Module_Error">Module_Error()</a><td><a href="error.c.html#func-Module_Error">error.c</a>
|
|
<tr><td>
|
|
<td><a href="init.c.html#func-TieStdout">TieStdout()</a><td><a href="init.c.html#func-TieStdout">init.c</a>
|
|
<tr><td>
|
|
<td><a href="init.c.html#func-UnTieStdout">UnTieStdout()</a><td><a href="init.c.html#func-UnTieStdout">init.c</a>
|
|
<tr><td>
|
|
<td colspan=2>Tcl_SetResult(), fprintf(), memcpy(), sprintf(), strlen(), system()
|
|
<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="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="cmdMisc.c.html#var-module_name">module_name</a><td><a href="cmdMisc.c.html#var-module_name">cmdMisc.c</a>
|
|
|
|
</table>
|
|
|
|
</BODY>
|
|
</HTML>
|