Logo Search packages:      
Sourcecode: maxdb-7.5.00 version File versions

heo95.h File Reference


Detailed Description

description ...

Author:
JoergM area application startup Program
See also:
example.html ...

Definition in file heo95.h.

#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
#include <utime.h>
#include <errno.h>
#include <termio.h>
#include <termios.h>
#include "heo01.h"

Go to the source code of this file.

Classes

struct  program_id

Defines

#define ADABAS_GATEWAYS   { "fstgwada","qckgwada","slwgwada" }
#define ADABAS_KERNELS   { "kernel","quickknl","slowknl", "omststknl" }
#define ALTERNATE_HELP_ID   "?"
#define BEG_ENV_VAR   '{'
#define CNULL   (char *) 0
#define DBG0(x)   { if ( debug ) { printf x; } }
#define DBTERM   "DBTERM"
#define END_ENV_VAR   '}'
#define EXPORT
#define F_EX   0
#define F_READ   S_IRUSR
#define F_RW   0600
#define F_RWX   0700
#define F_WRITE   0400
#define FALSE   0
#define GET_TERMIO(f, t)   ioctl(f,TCGETA,t)
#define HELP_ID   "h"
#define IMPORT   extern
#define INIT_TERM   TRUE
#define INIT_WIN   2
#define IS_OPT_CHR(c)   ( c == '-' )
#define MAX_DBNAME_LEN   8
#define MAX_HLP_FILES   10
#define MAX_HLP_LINE_LEN   80
#define NO_ALTERN   CNULL
#define NO_HELP   (char **) 0
#define NO_TERM   FALSE
#define NOT_AVAIL   ""
#define NOTOK   -1
#define ORACLE_GATEWAYS   { "fstgwora","qckgwora","slwgwora" }
#define PRI_USAGE(x)   { { printf x; } }
#define SAPDB_GET_DBROOT_OF_DB   "_gdbr" , NO_ALTERN , DbrootSAP, "\0", NO_TERM
#define SAPDB_GET_INDEP_DATA   "_gid" , NO_ALTERN , DbrootSAP, "\0", NO_TERM
#define SAPDB_GET_INDEP_PROGRAMS   "_gip" , NO_ALTERN , DbrootSAP, "\0", NO_TERM
#define SAPDB_GET_INSTALLATION_INFO   "xinstinfo" , NO_ALTERN , DbrootSAP, "\0", NO_TERM
#define SAPDB_GET_RUNDIR_OF_DB   "_grd" , NO_ALTERN , DbrootSAP, "\0", NO_TERM
#define SAPDB_GET_SYSRC   "xsysrc" , NO_ALTERN , DbrootSAP, "\0", NO_TERM
#define SET_TERMIO(f, t)   ioctl(f,TCSETAW,t)
#define SQL_HELP_HEADER   "\ncorrect use of %s is:\n\n"
#define SQL_USAGE   "USAGE: "
#define SQLDB_ANALYS   "x_analys" , NO_ALTERN , DbrootSAP, "analys\0" , NO_TERM
#define SQLDB_AUDIT   "xaudit" , NO_ALTERN, DbrootPGM, "audit\0" , INIT_TERM
#define SQLDB_BACKUP   "xbackup" , NO_ALTERN , DbrootPGM, "backup\0", NO_TERM
#define SQLDB_CI   "xci" , NO_ALTERN, DbrootPGM, "slowci\0" , INIT_TERM
#define SQLDB_CI_O   "xoldci" , NO_ALTERN, DbrootPGM, "oldci\0" , INIT_TERM
#define SQLDB_CLEAR   "x_clear", NO_ALTERN, DbrootPGM, "clr_kernel\0clr_ps_ipc\0",NO_TERM
#define SQLDB_CONS   "x_cons" , NO_ALTERN, DbrootPGM, "cons\0console\0" , NO_TERM
#define SQLDB_CPC   NOT_AVAIL, NO_ALTERN, DbrootBIN, "cpc\0" , NO_TERM
#define SQLDB_DIAG   "x_diagnose", NO_ALTERN, DbrootPGM, "diagnose\0" , INIT_TERM
#define SQLDB_EASY   "xeasy" , NO_ALTERN, DbrootPGM, "easy\0" , INIT_TERM
#define SQLDB_FILTER   "xsql" , NO_ALTERN, DbrootPGM, "sqlfilter\0" , NO_TERM
#define SQLDB_FILTER_RO   "xsqlro", NO_ALTERN, DbrootPGM, "sqlfiltern\0" , NO_TERM
#define SQLDB_GWSTART   "x_gwstart", NO_ALTERN, DbrootPGM, "start\0" , NO_TERM
#define SQLDB_KERNPROT   "xkernprot", NO_ALTERN, DbrootPGM, "diagnose\0", NO_TERM
#define SQLDB_LOAD   "xload" , "xdbload", DbrootPGM, "load\0" , INIT_TERM
#define SQLDB_MAKETI   "x_maketi",NO_ALTERN, IndependentPGM, "maketi\0" , INIT_TERM
#define SQLDB_NISERV   "x_niserver",NO_ALTERN, IndependentPGM, "niserver\0" , NO_TERM
#define SQLDB_PING   "x_ping" , NO_ALTERN, DbrootPGM, "sqlping\0" , NO_TERM
#define SQLDB_PL   "xpl" , NO_ALTERN, DbrootPGM, "sqlpl\0" , INIT_TERM
#define SQLDB_PLRUN   "xplrun" , NO_ALTERN, DbrootPGM, "plrun\0" , INIT_TERM
#define SQLDB_PYTHON   "x_python",NO_ALTERN, DbrootPGM, "python\0" , NO_TERM
#define SQLDB_PYTHON23   "x_python23",NO_ALTERN, DbrootPGM, "python23\0" , NO_TERM
#define SQLDB_QUERY   "xquery" , NO_ALTERN, DbrootPGM, "query\0" , INIT_TERM
#define SQLDB_REGCOMP   "xregcomp", NO_ALTERN, DbrootPGM, "regcomp\0" , NO_TERM
#define SQLDB_RESTORE   "xrestore" , NO_ALTERN , DbrootPGM, "restore\0", NO_TERM
#define SQLDB_SERV   "x_server",NO_ALTERN, IndependentPGM, "vserver\0" , NO_TERM
#define SQLDB_SHOW   "x_show" , NO_ALTERN, DbrootBIN, "x_show\0" , NO_TERM
#define SQLDB_START   "x_start", NO_ALTERN, DbrootPGM, "start\0" , NO_TERM
#define SQLDB_STOP   "x_stop" , NO_ALTERN, DbrootPGM, "stop\0" , NO_TERM
#define SQLDB_SYSMON   "sysmon" , NO_ALTERN , DbrootSAP, "sysmon\0" , NO_TERM
#define SQLDB_TOPL   "xtopl" , NO_ALTERN, DbrootPGM, "topl\0" , INIT_TERM
#define SQLDB_TOPLR   "xtplrun", NO_ALTERN, DbrootPGM, "tplrun\0" , INIT_TERM
#define SQLDB_TRACESORT   "xtracesort", NO_ALTERN, DbrootPGM, "tracesort\0", NO_TERM
#define SQLDB_USER   "xuser" , NO_ALTERN, IndependentBIN, "xuserUnicode\0" , NO_TERM
#define SQLDB_VTTEST   "xvttest", NO_ALTERN, IndependentPGM, "vttest\0" , INIT_TERM
#define SQLDB_WIZ   "x_wiz" , NO_ALTERN , DbrootSAP, "wiz\0" , NO_TERM
#define SQLDB_WIZARD   "x_wizard" , NO_ALTERN , DbrootPGM, "wizard\0" , NO_TERM
#define SQLDB_WIZSTOP   "x_wizstop" , NO_ALTERN , DbrootSAP, "wizstop\0", NO_TERM
#define SQLDB_WIZTRC   "x_wiztrc" , NO_ALTERN , DbrootPGM, "wiztrc\0" , NO_TERM
#define SQLDB_XPU   "xpu" , NO_ALTERN , DbrootPGM, "pu\0" , NO_TERM
#define TERM   "TERM"
#define TERMIO_INFO   struct termio
#define TRUE   1
#define USAGE_CLEAR(progname)   PRI_USAGE (("\n%s %s <serverdb>\n", SQL_USAGE, progname ))
#define USAGE_CONS(progname)
#define USAGE_SERVER(progname)
#define USAGE_SHOW(progname)   PRI_USAGE (("\n%s %s [-c]\n", SQL_USAGE, progname ))

Typedefs

typedef int(* INT_FUNC_PTR )()
typedef struct program_id PROG_ID

Enumerations

enum  ProgramExecPathType {
  IndependentPGM, IndependentBIN, DbrootPGM, DbrootBIN,
  DbrootSAP
}

Functions

int e950_call_component (PROG_ID *sel_component, int num_args, char **args)
int e950_call_component ()
int e950_call_help (char *progname, char **helpfiles)
int e950_call_prog (char *progname, int num_params, char **params)
void e950_print_params (char *funcname, int num_params, char **params)
void e950_PutEnvDBRoot (tsp00_Pathc DBRoot)
int e950_search_and_call_sqlprog (char *sql_prog, int num_params, char **params)
int e951_create_path (char *path_to_create, unsigned short mode)
int e951_f_access (char *path, int mode, int pri_err)
char * e951_getparam (char *dbname, char *param_id, char **param)
char * e951_toupper_str (char *str)
int e952_call_backup ()
int e952_call_clear ()
int e952_call_console ()
int e952_call_gwstart ()
int e952_call_regcomp ()
int e952_call_show ()
int e952_call_sqlfilter ()
int e952_call_start ()
int e952_call_stop ()
int e952_call_vserver ()
int e953_call_kernprot ()
int e953_call_PrecompiledTools ()
int e953_call_python ()
int e953_call_python23 ()
int e953_call_tracesort ()
boolean en950_GetProgramExecPath (enum ProgramExecPathType ProgramLocation, char *GetProgramExecPath)
void en950_PrintRteError (char *HeaderInfo, tsp01_RteError *RteError)
int en950ApplStartupProgram (int NumArgs, char **Args)
int en952_GetDbrootPgmPath (char *DbrootPgmPath)
int eo950_ArgC ()
const char ** eo950_ArgV ()
int eo952CallNiServer ()
int eo952CallPing ()
int eo954PrintDBRootOfDB ()
int eo954PrintIndepDataPath ()
int eo954PrintIndepProgramsPath ()
int eo954PrintInstInfo ()
int eo954PrintRundirOfDB ()
int eo954PrintSysRC ()

Variables

IMPORT int debug


Generated by  Doxygen 1.6.0   Back to index