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

veo01.c File Reference


Detailed Description

Author:
JoergM area general Path / Environment functions
See also:
example.html ...

Definition in file veo01.c.

#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <pwd.h>
#include "gsp09.h"
#include "RunTime/RTE_IniFileHandling.h"
#include "hsp100.h"
#include "heo01.h"
#include "heo46.h"
#include "gip00.h"
#include "hsp77.h"
#include "SAPDBCommon/SAPDB_Names.h"

Go to the source code of this file.

Defines

#define _INLINE   __inline
#define DBROOT_BIN_EO01   "bin"
#define DBROOT_ENV_EO01   "env"
#define DBROOT_ENV_VAR_EO01   "DBROOT"
#define DBROOT_ETC_EO01   "etc"
#define DBROOT_INCL_EO01   "incl"
#define DBROOT_LIB_EO01   "lib"
#define DBROOT_MISC_EO01   "misc"
#define DBROOT_PGM_EO01   "pgm"
#define DBROOT_SAP_EO01   "sap"
#define DBROOT_SERVICE_EO01   "serv"
#define DBROOT_WRK_EO01   "wrk"
#define DEC_SPECIAL_SETUID_INTRODUCER   0xFF
#define ENV_PATH_DELIMITER_EO01   ':'
#define GET_INDEP_PATH(_Key, _Path, _MaxPathLen, _RteError)   eo01_getglobal( _Key, _Path, _MaxPathLen, _RteError)
#define INSTROOT_ENV_VAR_EO01   "INSTROOT"
#define MF__   MOD__"eo01_getglobal"
#define MF__   MOD__"eo01_putglobal"
#define NEW_ENV_DBNAME_ID   "SERVERDB"
#define OLD_SERVICE_PARAMFILE_HEADER_EO01   "SVP"
#define OLD_VERSION_TRAILER_LEN_EO01   5
#define SAPDB_NO_INDEPPATH_EO01   "SAPDB_NO_INDEPPATH"
#define SET_INDEP_PATH(_Key, _Path, _RteError)   eo01_putglobal( _Key, _Path, _RteError )
#define SUBPATH_INDEP_BIN_EO01   "bin"
#define SUBPATH_INDEP_CONFIG_EO01   "config"
#define SUBPATH_INDEP_ENV_EO01   "env"
#define SUBPATH_INDEP_LIB_EO01   "lib"
#define SUBPATH_INDEP_PGM_EO01   "pgm"
#define SUBPATH_INDEP_PROT_EO01   "prot"
#define SUBPATH_INDEP_TERMINFO_EO01   "terminfo"
#define SUBPATH_INDEP_WRK_EO01   "wrk"

Enumerations

enum  DbrootSubPath {
  DbrootBin, DbrootEtc, DbrootEnv, DbrootIncl,
  DbrootLib, DbrootMisc, DbrootPgm, DbrootSap,
  DbrootWrk
}
enum  IndependentPathType { IndependentPrograms, IndependentData, IndependentPrograms, IndependentData }

Functions

static int en01_SearchSubPath (const char *GivenPath, const char *SubPath)
static char * eo01_CheckPathEndingForDelimiter (tsp00_Pathc Path, int TerminateWithDelimiter)
static tsp00_Bool eo01_GetDbrootEnvVar (tsp00_Pathc Dbroot, int TerminateWithDelimiter, tsp01_RteError *pRteError)
static tsp00_Bool eo01_GetDbrootSubPath (tsp00_Pathc Path, enum DbrootSubPath PathType, int TerminateWithDelimiter, tsp01_RteError *pRteError)
static tsp00_Bool eo01_getglobal (const char *GlobalKey, char *GlobalValue, int MaxValueLen, tsp01_RteError *RteError)
static tsp00_Bool eo01_GetIndependentDataSubPath (tsp00_Pathc FullPath, tsp00_Pathc SubPath, int TerminateWithDelimiter, tsp01_RteError *pRteError)
static tsp00_Bool eo01_GetIndependentPath (char *Key, tsp00_Pathc Path, int TerminateWithDelimiter, tsp01_RteError *pRteError)
static tsp00_Bool eo01_GetIndependentSubPath (tsp00_Pathc FullPath, tsp00_Pathc SubPath, enum IndependentPathType PathType, int TerminateWithDelimiter, tsp01_RteError *pRteError)
externC boolean eo01_IsEnvVarDoNotUseIndepPathSet ()
static tsp00_Bool eo01_IsIndependentPathAvailable (char *Key)
externC void eo01_PutEnvVarDoNotUseIndepPath ()
static tsp00_Bool eo01_putglobal (const char *GlobalKey, char *GlobalValue, tsp01_RteError *RteError)
externC void eo01_RemoveEnvVarDoNotUseIndepPath ()
static tsp00_Bool eo01_SetIndependentPath (char *Key, tsp00_Pathc Path, tsp01_RteError *pRteError)
static SAPDB_Char * eo01_TrimLDLIBPATH (SAPDB_Char *currentLDLIBPATH)
static int eo01CheckFilenameForRelativePath (char const *RelFilename, char *RelPath, char *AbsPath, int MaxAbsPathLen)
static char * eo01GetModuleFilename (char const *Filename, char *FullPath, int MaxPathLen)
char * sqlGetConfigPath (tsp00_Pathc ConfigPath, int TerminateWithDelimiter)
char * sqlGetDbNameFromEnv (void)
tsp00_Bool sqlGetDbrootBinPath (tsp00_Pathc BinPath, int TerminateWithDelimiter, tsp01_RteError *pRteError)
tsp00_Bool sqlGetDbrootEnvPath (tsp00_Pathc EnvPath, int TerminateWithDelimiter, tsp01_RteError *pRteError)
externC char * sqlGetDBrootFromExecPath (tsp00_Pathc ExecPath, tsp00_Pathc Dbroot, int TerminateWithDelimiter)
tsp00_Bool sqlGetDbrootLibPath (tsp00_Pathc LibPath, int TerminateWithDelimiter, tsp01_RteError *pRteError)
tsp00_Bool sqlGetDbrootPath (tsp00_Pathc Path, int TerminateWithDelimiter, tsp01_RteError *pRteError)
tsp00_Bool sqlGetDbrootPgmPath (tsp00_Pathc PgmPath, int TerminateWithDelimiter, tsp01_RteError *pRteError)
tsp00_Bool sqlGetDbrootSapPath (tsp00_Pathc SapPath, int TerminateWithDelimiter, tsp01_RteError *pRteError)
tsp00_Bool sqlGetDbrootWrkPath (tsp00_Pathc WrkPath, int TerminateWithDelimiter, tsp01_RteError *pRteError)
externC void sqlgetenv (tsp00_C64 envname, tsp00_C64 envvalue, tsp00_BoolAddr envfound)
externC tsp00_Bool sqlGetEnv (char *EnvName, char *EnvValue, int MaxEnvValueLen)
tsp00_Bool sqlGetIndependentBinPath (tsp00_Pathc BINPath, int TerminateWithDelimiter, tsp01_RteError *pRteError)
tsp00_Bool sqlGetIndependentConfigPath (tsp00_Pathc ConfigPath, int TerminateWithDelimiter, tsp01_RteError *pRteError)
tsp00_Bool sqlGetIndependentDataPath (tsp00_Pathc DataPath, int TerminateWithDelimiter, tsp01_RteError *pRteError)
tsp00_Bool sqlGetIndependentEnvPath (tsp00_Pathc ENVPath, int TerminateWithDelimiter, tsp01_RteError *pRteError)
tsp00_Bool sqlGetIndependentLibPath (tsp00_Pathc LIBPath, int TerminateWithDelimiter, tsp01_RteError *pRteError)
tsp00_Bool sqlGetIndependentPgmPath (tsp00_Pathc PGMPath, int TerminateWithDelimiter, tsp01_RteError *pRteError)
tsp00_Bool sqlGetIndependentProgramsPath (tsp00_Pathc ProgramsPath, int TerminateWithDelimiter, tsp01_RteError *pRteError)
tsp00_Bool sqlGetIndependentProtPath (tsp00_Pathc PROTPath, int TerminateWithDelimiter, tsp01_RteError *pRteError)
tsp00_Bool sqlGetIndependentServiceProtPath (tsp00_Pathc PROTPath, int TerminateWithDelimiter, tsp01_RteError *pRteError)
tsp00_Bool sqlGetIndependentTerminfoPath (tsp00_Pathc TerminfoPath, int TerminateWithDelimiter, tsp01_RteError *pRteError)
tsp00_Bool sqlGetIndependentWrkPath (tsp00_Pathc WrkPath, int TerminateWithDelimiter, tsp01_RteError *pRteError)
externC char * sqlGetInstallationPathFromExecPath (tsp00_Pathc ExecPath, tsp00_Pathc InstPath, int TerminateWithDelimiter)
externC tsp00_Bool sqlGetMyModuleFilename (const char *Filename, char *FullPath, int MaxPathLen, tsp01_RteError *pRteError)
char * sqlGetWrkPath (tsp00_Pathc WrkPath, int TerminateWithDelimiter)
tsp00_Bool sqlIsIndependentDataPathInRegistry ()
tsp00_Bool sqlIsIndependentProgramsPathInRegistry ()
tsp00_Bool sqlPutDbNameToEnv (tsp00_DbNamec dbname)
tsp00_Bool sqlSetIndependentDataPath (tsp00_Pathc DataPath, tsp01_RteError *pRteError)
tsp00_Bool sqlSetIndependentProgramsPath (tsp00_Pathc ProgramsPath, tsp01_RteError *pRteError)
tsp00_Bool sqlUpdateLibPathEnvironment (tsp01_RteError *pRteError)
 Update LIBPATH environment.
externC tsp00_Bool sqlUpdateNiLibPathEnvironment (tsp01_RteError *pRteError)
 Update LIBPATH environment for NI.


Generated by  Doxygen 1.6.0   Back to index