GSI Object Oriented Online Offline (Go4)  GO4-6.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Functions | Variables
rawProcn.c File Reference
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <sys/stat.h>
#include <ctype.h>
#include <stdlib.h>
#include <unistd.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include "rawapitd.h"
#include "rawapitd-gsin.h"
#include "rawcommn.h"
#include "rawdefn.h"
#include "rawentn.h"
#include "rawapplcli.h"

Go to the source code of this file.

Functions

int rawAddStrings (char *pcMsg1, int iMaxLength1, char *pcMsg2, int iMaxLength2, int iErrno, char *pcMsgE, int iMaxLengthE)
 
int rawCheckClientFile (char *pcFile0, char **pcFile, char **pcTape)
 
char * rawGetFSpName (char *pcUser)
 
char * rawGetHLName (char *pcPath)
 
int rawGetLLName (char *pcFile, const char *pcDelimiter, char *pcObject)
 
int rawGetFileSize (char *pcFile, unsigned long *piSize, unsigned int *piRecl)
 
char * rawGetPathName (char *pcNamehl)
 
int rawQueryFile (int iSocket, int iAltMaster, srawComm *pCommBuf, void **pQueryBuf)
 
int rawRecvError (int iSocket, int iLen, char *pcMsg)
 
int rawRecvHead (int iSocket, char *pcBuf)
 
int rawRecvHeadC (int iSocket, char *pcBuf, int iIdentReq, int iStatusReq, char *pcMsg)
 
int rawRecvRequest (int iSocket, int *piSeekMode, int *piOffset, int *piBufferSize)
 
int rawRecvStatus (int iSocket, char *pcBuf)
 
int rawSendRequest (int iSocket, int iSeekMode, int iOffset, int iBufferSize)
 
int rawSendStatus (int iSocket, int iStatus, char *pcMsg)
 
int rawTestFileName (char *pcFile)
 

Variables

FILE * fLogFile
 
static char cPath [MAX_FULL_FILE] = ""
 
static char cNamefs [MAX_OBJ_FS] = ""
 
static char cNamehl [MAX_OBJ_HL] = ""
 
static char * pcNull = (char *) ""
 
static int iObjAttr = sizeof(srawObjAttr)
 

Function Documentation

int rawAddStrings ( char *  pcMsg1,
int  iMaxLength1,
char *  pcMsg2,
int  iMaxLength2,
int  iErrno,
char *  pcMsgE,
int  iMaxLengthE 
)

Definition at line 180 of file rawProcn.c.

References fLogFile, and STATUS_LEN.

int rawCheckClientFile ( char *  pcFile0,
char **  pcFile,
char **  pcTape 
)

Definition at line 345 of file rawProcn.c.

References bFalse, bTrue, fLogFile, MAX_FULL_FILE, MAX_OBJ_LL, MAX_TAPE_FILE, pcDevDelim, pcQM, and pcStar.

int rawGetFileSize ( char *  pcFile,
unsigned long *  piSize,
unsigned int *  piRecl 
)

Definition at line 787 of file rawProcn.c.

References fLogFile.

Referenced by rawTestFileName().

char* rawGetFSpName ( char *  pcUser)

Definition at line 600 of file rawProcn.c.

References cNamefs, fLogFile, pcNull, pcQM, and pcStar.

Referenced by rfio_open_gsidaq().

char* rawGetHLName ( char *  pcPath)

Definition at line 657 of file rawProcn.c.

References cNamehl, fLogFile, and MAX_OBJ_HL.

Referenced by rfio_newfile(), and rfio_open_gsidaq().

int rawGetLLName ( char *  pcFile,
const char *  pcDelimiter,
char *  pcObject 
)

Definition at line 736 of file rawProcn.c.

References fLogFile, MAX_OBJ_LL, and pcDevDelim.

Referenced by rawCheckFilelist(), rawDelList(), and rfio_open_gsidaq().

char* rawGetPathName ( char *  pcNamehl)

Definition at line 901 of file rawProcn.c.

References cPath, fLogFile, and pcNull.

Referenced by rawQueryPrint(), and rawQueryString().

int rawQueryFile ( int  iSocket,
int  iAltMaster,
srawComm pCommBuf,
void **  pQueryBuf 
)
int rawRecvError ( int  iSocket,
int  iLen,
char *  pcMsg 
)

Definition at line 1286 of file rawProcn.c.

References fLogFile.

Referenced by rawGetWSInfo(), rawQueryFile(), rawRecvHeadC(), and rfio_read().

int rawRecvHead ( int  iSocket,
char *  pcBuf 
)

Definition at line 1398 of file rawProcn.c.

References fLogFile, HEAD_LEN, IDENT_STATUS, STA_ERROR, and STA_ERROR_EOF.

Referenced by rawGetWSInfo(), and rawQueryFile().

int rawRecvHeadC ( int  iSocket,
char *  pcBuf,
int  iIdentReq,
int  iStatusReq,
char *  pcMsg 
)
int rawRecvRequest ( int  iSocket,
int *  piSeekMode,
int *  piOffset,
int *  piBufferSize 
)
int rawRecvStatus ( int  iSocket,
char *  pcBuf 
)
int rawSendRequest ( int  iSocket,
int  iSeekMode,
int  iOffset,
int  iBufferSize 
)
int rawSendStatus ( int  iSocket,
int  iStatus,
char *  pcMsg 
)
int rawTestFileName ( char *  pcFile)

Definition at line 2188 of file rawProcn.c.

References fLogFile, and rawGetFileSize().

Referenced by rawGetFileList().

Variable Documentation

char cNamefs[MAX_OBJ_FS] = ""
static

Definition at line 166 of file rawProcn.c.

Referenced by rawGetFSpName(), rfio_newfile(), and rfio_open_gsidaq().

char cNamehl[MAX_OBJ_HL] = ""
static

Definition at line 167 of file rawProcn.c.

Referenced by rawGetHLName(), rfio_newfile(), and rfio_open_gsidaq().

char cPath[MAX_FULL_FILE] = ""
static

Definition at line 165 of file rawProcn.c.

Referenced by rawGetPathName().

FILE* fLogFile
int iObjAttr = sizeof(srawObjAttr)
static

Definition at line 171 of file rawProcn.c.

char* pcNull = (char *) ""
static

Definition at line 168 of file rawProcn.c.

Referenced by rawGetFSpName(), and rawGetPathName().