GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
|
#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) |
int rawAddStrings | ( | char * | pcMsg1, |
int | iMaxLength1, | ||
char * | pcMsg2, | ||
int | iMaxLength2, | ||
int | iErrno, | ||
char * | pcMsgE, | ||
int | iMaxLengthE | ||
) |
Definition at line 178 of file rawProcn.c.
References fLogFile, and STATUS_LEN.
int rawCheckClientFile | ( | char * | pcFile0, |
char ** | pcFile, | ||
char ** | pcTape | ||
) |
Definition at line 344 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 | ||
) |
char* rawGetFSpName | ( | char * | pcUser | ) |
Definition at line 599 of file rawProcn.c.
References cNamefs, fLogFile, pcNull, pcQM, and pcStar.
Referenced by rfio_open_gsidaq().
char* rawGetHLName | ( | char * | pcPath | ) |
Definition at line 656 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 735 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 900 of file rawProcn.c.
References cPath, fLogFile, and pcNull.
Referenced by rawQueryPrint(), and rawQueryString().
int rawQueryFile | ( | int | iSocket, |
int | iAltMaster, | ||
srawComm * | pCommBuf, | ||
void ** | pQueryBuf | ||
) |
Definition at line 945 of file rawProcn.c.
References srawComm::cNamefs, srawObjAttr::cNamefs, srawComm::cNamehl, srawObjAttr::cNamehl, srawComm::cNamell, srawObjAttr::cNamell, srawComm::cOwner, fLogFile, HEAD_LEN, srawComm::iAction, iATLServer, srawComm::iATLServer, srawQueryResult::iAttrLen, srawComm::iCommLen, IDENT_QUERY, IDENT_QUERY_ARCHDB, IDENT_QUERY_DONE, IDENT_STATUS, srawQueryResult::iIdent, srawQueryResult::iObjCount, srawObjAttr::iPoolId, srawObjAttr::iVersion, pcPerc, pcQM, pcStar, QUERY, QUERY_ARCHIVE, QUERY_ARCHIVE_MGR, QUERY_ARCHIVE_RECORD, QUERY_ARCHIVE_TO_CACHE, QUERY_REMOVE, QUERY_REMOVE_MGR, QUERY_RETRIEVE, QUERY_RETRIEVE_RECORD, QUERY_STAGE, rawRecvError(), rawRecvHead(), STA_ARCHIVE_NOT_AVAIL, STA_ERROR, STA_ERROR_EOF, STA_NO_ACCESS, and VERSION_SRAWOBJATTR.
Referenced by rfio_newfile(), and rfio_open_gsidaq().
int rawRecvError | ( | int | iSocket, |
int | iLen, | ||
char * | pcMsg | ||
) |
Definition at line 1285 of file rawProcn.c.
References fLogFile.
Referenced by rawGetWSInfo(), rawQueryFile(), rawRecvHeadC(), and rfio_read().
int rawRecvHead | ( | int | iSocket, |
char * | pcBuf | ||
) |
Definition at line 1397 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 | ||
) |
Definition at line 1494 of file rawProcn.c.
References fLogFile, HEAD_LEN, IDENT_STATUS, rawRecvError(), STA_CACHE_FULL, STA_ERROR, STA_ERROR_EOF, and STATUS_LEN.
Referenced by rfio_open_gsidaq().
int rawRecvRequest | ( | int | iSocket, |
int * | piSeekMode, | ||
int * | piOffset, | ||
int * | piBufferSize | ||
) |
Definition at line 1694 of file rawProcn.c.
References fLogFile, HEAD_LEN, srawRequest::iBufferSize, IDENT_NEXT_BUFFER, IDENT_STATUS, srawRequest::iIdent, srawRequest::iOffset, srawRequest::iSeekMode, srawRequest::iStatus, srawRequest::iStatusLen, STA_END_OF_FILE, STA_END_OF_SESSION, STA_ERROR, STA_ERROR_EOF, and STATUS_LEN.
int rawRecvStatus | ( | int | iSocket, |
char * | pcBuf | ||
) |
Definition at line 1903 of file rawProcn.c.
References srawStatus::cStatus, fLogFile, HEAD_LEN, IDENT_STATUS, srawStatus::iIdent, srawStatus::iStatus, and srawStatus::iStatusLen.
Referenced by rawDelFile(), rfio_close(), rfio_endfile(), rfio_newfile(), and rfio_open_gsidaq().
int rawSendRequest | ( | int | iSocket, |
int | iSeekMode, | ||
int | iOffset, | ||
int | iBufferSize | ||
) |
Definition at line 2042 of file rawProcn.c.
References fLogFile, HEAD_LEN, srawRequest::iBufferSize, IDENT_NEXT_BUFFER, srawRequest::iIdent, srawRequest::iOffset, srawRequest::iSeekMode, srawRequest::iStatus, srawRequest::iStatusLen, STA_NEXT_BUFFER, and STA_SEEK_BUFFER.
Referenced by rfio_lseek(), and rfio_read().
int rawSendStatus | ( | int | iSocket, |
int | iStatus, | ||
char * | pcMsg | ||
) |
Definition at line 2112 of file rawProcn.c.
References srawStatus::cStatus, fLogFile, HEAD_LEN, IDENT_STATUS, srawStatus::iIdent, srawStatus::iStatus, and srawStatus::iStatusLen.
Referenced by rfio_close(), rfio_endfile(), and rfio_open_gsidaq().
int rawTestFileName | ( | char * | pcFile | ) |
Definition at line 2187 of file rawProcn.c.
References fLogFile, and rawGetFileSize().
Referenced by rawGetFileList().
|
static |
Definition at line 164 of file rawProcn.c.
Referenced by rawGetFSpName(), rfio_newfile(), and rfio_open_gsidaq().
|
static |
Definition at line 165 of file rawProcn.c.
Referenced by rawGetHLName(), rfio_newfile(), and rfio_open_gsidaq().
|
static |
Definition at line 163 of file rawProcn.c.
Referenced by rawGetPathName().
FILE* fLogFile |
Definition at line 185 of file rawapin.c.
Referenced by rawAddStrings(), rawCheckClientFile(), rawGetFileSize(), rawGetFSpName(), rawGetHLName(), rawGetLLName(), rawGetPathName(), rawQueryFile(), rawRecvError(), rawRecvHead(), rawRecvHeadC(), rawRecvRequest(), rawRecvStatus(), rawSendRequest(), rawSendStatus(), and rawTestFileName().
|
static |
Definition at line 169 of file rawProcn.c.
|
static |
Definition at line 166 of file rawProcn.c.
Referenced by rawGetFSpName(), and rawGetPathName().