** ** Module Header ******************************************************* **
** **
** Modules Revision 3.0 **
** Providing a flexible user environment **
** **
** File: ModuleCmd_Display.c **
** First Edition: 91/10/23 **
** **
** Authors: John Furlan, jlf@behere.com **
** Jens Hamisch, jens@Strawberry.COM **
** **
** Description: Displays what changes a modulefile will make to the **
** environment including any conflics or prerequisits. **
** **
** Exports: ModuleCmd_Display **
** **
** Notes: **
** **
** ************************************************************************ **
Included Files
- #include "modules_def.h"
- #include <stdio.h>
- #include <tcl.h>
- #include "config.h"
- #include <stdlib.h>
- #include <string.h>
- #include <unistd.h>
- #include <sys/types.h>
- #include <ctype.h>
- #include <sys/stat.h>
- #include <sys/termios.h>
- #include <fcntl.h>
- #include <sys/ioctl.h>
- #include <dirent.h>
- #include <errno.h>
char local_line[]
Local Variables
Id
static char Id[]
UseId
static void* UseId[]
module_name
static char module_name[]
** ** Function-Header ***************************************************** **
** **
** Function: ModuleCmd_Display **
** **
** Description: Execution of the module-command 'display' **
** Display every change a module 'load' would apply to **
** the environment **
** **
** First Edition: 91/10/23 **
** **
** Parameters: Tcl_Interp *interp Attached Tcl Interp. **
** char *argv[] Argument list **
** **
** Result: int TCL_ERROR Failure **
** TCL_OK Successfull operation **
** **
** Attached Globals: specified_module The module name from the **
** command line. **
** g_flags These are set up accordingly before **
** this function is called in order to **
** control everything **
** g_current_module The module which is handled **
** by the current command **
** **
** ************************************************************************ **
int ModuleCmd_Display ( Tcl_Interp* interp, int argc, char* argv[] )