1 /***********************************************************************/ 2 /* Open Visualization Data Explorer */ 3 /* (C) Copyright IBM Corp. 1989,1999 */ 4 /* ALL RIGHTS RESERVED */ 5 /* This code licensed under the */ 6 /* "IBM PUBLIC LICENSE - Open Visualization Data Explorer" */ 7 /***********************************************************************/ 8 /* 9 * $Header: /src/master/dx/src/exec/dpexec/config.h,v 1.7 2004/06/09 16:14:27 davidt Exp $ 10 */ 11 12 #ifndef _CONFIG_H 13 #define _CONFIG_H 14 15 #include <stdio.h> 16 17 #include "utils.h" 18 #include "context.h" 19 #include "license.h" 20 #include "distp.h" 21 #include "cache.h" 22 #include "sfile.h" 23 24 #define MAXPROCESSORS 128 25 26 #define MAXSHMSEGMENTS 32 27 #define MAXSEMAPHORES 128 28 29 #define MAXINCLUDES 32 30 #define MAXDIMS 32 31 #define MAXARGS 128 32 33 #define GBUFSIZE 128 34 35 #define MAXGRAPHS 1 36 37 /* buffer size for sending/receiving parse trees */ 38 #define PTBUFSIZE 1024 39 40 #define DXDIR "/usr/local/dx" 41 #define DXRC ".dxrc" 42 #define SYSDXRC "dxrc" 43 44 typedef LIST(dphosts) DPHOSTS; 45 typedef LIST(dpgraphstat) DPGRAPHSTAT; 46 typedef LIST(pathtag) PATHTAG; 47 typedef LIST(PGassign) PGASSIGN; 48 typedef LIST(SlavePeers) SLAVEPEERS; 49 50 /* 51 * This is a list of all the global variables declared within one file 52 * but made available to others. 53 * 54 */ 55 56 /* Declared in dxmain.c */ 57 58 #if defined(__cplusplus) || defined(c_plusplus) 59 extern "C" { 60 #endif 61 62 /* Only set once in dxmain.c */ 63 extern int _dxd_exShowBells; /* set from command line, used in evalgraph.c */ 64 extern int _dxd_exDebugConnect; /* manually start up remote connections */ 65 extern int _dxd_exErrorPrintLevel; 66 extern int _dxd_exRshInput; 67 extern int _dxd_exIntraGraphSerialize; 68 extern int _dxd_exRemoteUIMsg; /* msgs will display on remote slave */ 69 extern int _dxd_exSkipExecution; 70 extern int _dxd_exEnableDebug; 71 extern int _dxd_exCacheOn; 72 extern PATHTAG _dxd_pathtags; 73 extern DPHOSTS *_dxd_dphosts; 74 extern int _dxd_exGoneMP; 75 extern int _dxd_exRunningSingleProcess; 76 extern int _dxd_exIsatty; 77 extern int _dxd_exPPID; /* processor number of parent processor */ 78 extern int _dxd_exSwapMsg; /* do we need to swap msg from peer? */ 79 extern long _dxd_exMarkMask; 80 81 /* Set in dxmain or callm_init for DXcallm */ 82 extern int _dxd_exDebug; /* debugging enabled */ 83 extern int _dxd_exRemote; /* connected remotely to UI */ 84 extern int _dxd_exRemoteSlave; /* running as a slave to another exec? */ 85 extern int _dxd_exMyPID; /* processor number of current processor */ 86 extern lictype _dxd_exForcedLicense; 87 88 /* really bad-- set in another file as well as dxmain.c */ 89 extern int _dxd_exParseAhead; /* set in command.c as well */ 90 extern DPGRAPHSTAT _dxd_dpgraphstat; 91 extern PGASSIGN _dxd_pgassign; 92 extern SLAVEPEERS _dxd_slavepeers; 93 extern SFILE *_dxd_exSockFD; 94 extern int *_dxd_exTerminating; /* flag set when dx is exiting */ 95 extern int *_dxd_exNSlaves; /* number of slaves connected */ 96 extern int *_dxd_extoplevelloop; 97 extern EXDictionary _dxd_exGlobalDict; 98 extern int _dxd_ExHasLicense; 99 100 /* can't tell--reinvestigate */ 101 extern lock_type _dxd_dphostslock; 102 extern char *_dxd_exHostName; /* name of host program is running on */ 103 extern Context *_dxd_exContext; 104 extern int _dxd_exMasterfd; /* slave to master file descriptor */ 105 extern int _dxd_exSlaveId; /* slave id number, 0 = master */ 106 107 extern void _dxf_ExDie (char *format, ...); 108 109 /* Declared programatically in yuiif.c */ 110 extern SFILE *_dxd_exBaseFD; 111 extern char *_dxd_exParseMesg; 112 extern int _dxd_exParseError; 113 extern struct node *_dxd_exParseTree; 114 extern int yydebug; 115 116 extern void _dxf_ExBeginInput(); 117 extern void _dxf_ExEndInput(); 118 extern Error _dxf_ExParseInit (char *name, SFILE *sf); 119 120 121 /* Declared in optarg.c */ 122 extern char *optarg; 123 124 #if defined(__cplusplus) || defined(c_plusplus) 125 } 126 #endif 127 128 129 #endif /* _CONFIG_H */ 130 131