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

ven41.c File Reference


Detailed Description

Client/Kernel RunTime: ipc_resources.

Author:
JoergM
See also:
Create and Delete IPC Resources

Definition in file ven41.c.

#include "heo41.h"
#include "gen41.h"
#include "hen40.h"
#include "hsp77.h"
#include <errno.h>
#include <unistd.h>
#include <fcntl.h>
#include "heo01.h"
#include <sys/mman.h>
#include <dirent.h>
#include "geo007_1.h"
#include "SAPDBCommon/SAPDB_Names.h"
#include "RunTime/RTE_IniFileHandling.h"
#include "RunTime/RTE_UNIXAuthenticate.h"

Go to the source code of this file.

Defines

#define __USE_LARGEFILE64
#define IPC_KEY_MAX_OFFSET_EN41   (0x800000)
#define IPC_KEY_START_VALUE_EN41   (key_t)( 'D' << 24 )
#define IPC_KEY_STEP_EN41   (0x10000)
#define MAX_NUMBER_BUFFER_LEN_EN41   16
#define MAX_SPEED_BUFFER_LEN_EN41   16
#define MF__   MOD__"sqlFreeSharedMem"
#define MF__   MOD__"sqlAllocSharedMem"
#define MF__   MOD__"sql41_remove_ipc_and_dir"
#define MF__   MOD__"sql41_remove_ipc_resources"
#define MF__   MOD__"en41_get_spool_dir"
#define MF__   MOD__"en41_GetDbSpeedDirectory"
#define MF__   MOD__"en41_GetPipeFDDirectory"
#define MF__   MOD__"en41GetPPIDDirectory"
#define MF__   MOD__"en41GetPIDDirectory"
#define MF__   MOD__"en41_get_fifo_dir"
#define MF__   MOD__"en41_get_diag_dir"
#define MF__   MOD__"en41_get_ipc_dir"
#define MF__   MOD__"en41_ReadTagFile"
#define MF__   MOD__"en41_CreateTagFile"
#define MF__   MOD__"sql41_get_idfile_name"
#define MF__   MOD__"sql41_get_server_key"
#define MF__   MOD__"en41CreateServerKeyAndFirstSegment"
#define MF__   MOD__"en41_SearchFreeKeyAndAllocInitialShm"
#define MF__   MOD__"sql41_remove_idfile"
#define MF__   MOD__"sql41_create_idfile"
#define MF__   MOD__"sql41_get_reply_fifo_name"
#define MF__   MOD__"sql41_get_request_fifo_name"
#define MF__   MOD__"sql41_remove_fifo"
#define MF__   MOD__"sql41_create_fifo"
#define MF__   MOD__"sql41_stat_shm"
#define MF__   MOD__"sql41_stat_sem"
#define MF__   MOD__"sql41_detach_shm"
#define MF__   MOD__"sql41_attach_shm"
#define MF__   MOD__"sql41AttachShm"
#define MF__   MOD__"sql41_remove_shm"
#define MF__   MOD__"sql41_create_shm"
#define MF__   MOD__"en41_CreateShm"
#define MF__   MOD__"sql41_remove_sem"
#define MF__   MOD__"sql41_create_sem"
#define MF__   MOD__"en41_CreateSem"
#define MOD__   "ven41.c:"

Functions

static int en41_CreateSem (int mode, uid_t uid, char *type, char *dbname)
static int en41_CreateShm (key_t key, int ref, int size, int mode, uid_t uid, char *type, char *dbname)
static int en41_CreateTagFile (const char *dbname, tsp00_Pathc path, tsp00_TaskId pid)
static void en41_GetDbSpeedDirectory (tsp00_Pathc file)
static void en41_GetPipeFDDirectory (tsp00_Pathc file)
static int en41_ReadTagFile (const char *dbname, tsp00_Pathc path, tsp00_TaskId *pid)
static int en41_RemoveSemaphore (int semid)
static int en41_SearchFreeKeyAndAllocInitialShm (SAPDB_Int4 initialSize, key_t *pShmKey, int *pShmId)
static int en41_Unlink (char *dir, char *entry)
static key_t en41_ValidateKey (key_t key)
int en41BuildDatabaseProcessScan (const char *DbName, char *Buffer, int BufferSize)
int en41BuildXShowCommand (const char *PgmPath, char *cmdline, int size)
const char * en41CheckFifo (const char *file, int mode)
externC int en41CreateServerKeyAndFirstSegment (tsp00_DbNamec dbname, SAPDB_Int4 initialSize, key_t *pBaseKey, int *pBaseShmId)
int en41FindDatabaseProcess (const char *Source, const char *DbName, const char *kernelpgm)
externC int en41GetDbSpeedFromFile (const char *dbname, char *speed, int size)
externC void en41GetPIDDirectory (tsp00_Pathc file)
externC int en41GetPIDFromFile (const char *dbname, tsp00_TaskId *pid)
externC int en41GetPipeFDFromFile (const char *dbname, int *pipeFD)
externC void en41GetPPIDDirectory (tsp00_Pathc file)
externC int en41GetPPIDFromFile (const char *dbname, tsp00_TaskId *pid)
externC int en41RemovePipeFDFile (char *dbname)
externC int en41SetDbSpeedInFile (const char *dbname, const char *speed)
externC int en41SetPIDInFile (const char *dbname, tsp00_TaskId pid)
externC int en41SetPipeFDInFile (const char *dbname, SAPDB_Int pipeFD)
externC int en41SetPPIDInFile (const char *dbname, tsp00_TaskId pid)
externC char * sql41_attach_shm (int shmid, char *address)
externC int sql41_check_dir (tsp00_Pathc Vfile)
externC int sql41_check_spool_dirs ()
externC int sql41_check_unprotected_dir (tsp00_Pathc Vfile)
externC int sql41_create_fifo (tsp00_Pathc file, int perm)
externC int sql41_create_idfile (char *usertype, char *dbname, char restype, int ipcid)
externC int sql41_create_sem (key_t key, int ref, int range, int mode, uid_t uid, char *type, char *dbname)
externC int sql41_create_shm (key_t key, int ref, int range, int size, int mode, uid_t uid, char *type, char *dbname)
externC int sql41_detach_shm (char **address)
externC void sql41_get_diag_dir (tsp00_Pathc file)
externC void sql41_get_fifo_dir (tsp00_Pathc file)
externC void sql41_get_idfile_name (tsp00_Pathc Vfile, char *usertype, char *dbname, char restype, int ipcid)
externC void sql41_get_ipc_dir (tsp00_Pathc file)
externC void sql41_get_reply_fifo_name (tsp00_Pathc file, char *dbname, pid_t pid, tsp00_Int4 ref)
externC void sql41_get_request_fifo_name (tsp00_Pathc file, char *dbname)
externC key_t sql41_get_server_key (tsp00_DbNamec dbname)
externC void sql41_get_spool_dir (tsp00_Pathc file)
externC int sql41_remove_fifo (tsp00_Pathc file)
externC int sql41_remove_idfile (char *usertype, char *dbname, char restype, int ipcid)
static int sql41_remove_ipc_and_dir (char *dir)
externC int sql41_remove_ipc_resources (char *dbname)
externC int sql41_remove_sem (int *semid, char *type, char *dbname)
externC int sql41_remove_shm (int *shmid, char *type, char *dbname)
externC void sql41_stat_sem (int semid)
externC void sql41_stat_shm (int shmid)
externC char * sql41AttachShm (int shmid, char *address, int shmflag)
void * sqlAllocSharedMem (const char *Path, const unsigned int SizeInBytes)
void sqlFreeSharedMem (void *ShmAddress, const unsigned int SizeInBytes)


Generated by  Doxygen 1.6.0   Back to index