GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
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)
 
int rawGetFileSize (char *pcFile, unsigned long *piSize, unsigned int *piRecl)
 
char * rawGetFSpName (char *pcUser)
 
char * rawGetHLName (char *pcPath)
 
int rawGetLLName (char *pcFile, const char *pcDelimiter, char *pcObject)
 
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

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

Function Documentation

◆ rawAddStrings()

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.

◆ rawCheckClientFile()

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.

◆ rawGetFileSize()

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

Definition at line 787 of file rawProcn.c.

References fLogFile.

Referenced by rawTestFileName().

◆ rawGetFSpName()

char * rawGetFSpName ( char * pcUser)

Definition at line 600 of file rawProcn.c.

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

Referenced by rfio_open_gsidaq().

◆ rawGetHLName()

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().

◆ rawGetLLName()

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().

◆ rawGetPathName()

char * rawGetPathName ( char * pcNamehl)

Definition at line 901 of file rawProcn.c.

References cPath, fLogFile, and pcNull.

Referenced by rawQueryPrint(), and rawQueryString().

◆ rawQueryFile()

◆ rawRecvError()

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().

◆ rawRecvHead()

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().

◆ rawRecvHeadC()

int rawRecvHeadC ( int iSocket,
char * pcBuf,
int iIdentReq,
int iStatusReq,
char * pcMsg )

◆ rawRecvRequest()

◆ rawRecvStatus()

int rawRecvStatus ( int iSocket,
char * pcBuf )

◆ rawSendRequest()

int rawSendRequest ( int iSocket,
int iSeekMode,
int iOffset,
int iBufferSize )

◆ rawSendStatus()

int rawSendStatus ( int iSocket,
int iStatus,
char * pcMsg )

◆ rawTestFileName()

int rawTestFileName ( char * pcFile)

Definition at line 2188 of file rawProcn.c.

References fLogFile, and rawGetFileSize().

Referenced by rawGetFileList().

Variable Documentation

◆ cNamefs

char cNamefs[MAX_OBJ_FS] = ""
static

Definition at line 166 of file rawProcn.c.

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

◆ cNamehl

char cNamehl[MAX_OBJ_HL] = ""
static

Definition at line 167 of file rawProcn.c.

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

◆ cPath

char cPath[MAX_FULL_FILE] = ""
static

Definition at line 165 of file rawProcn.c.

◆ fLogFile

FILE* fLogFile
extern

Definition at line 185 of file rawapin.c.

◆ iObjAttr

int iObjAttr = sizeof(srawObjAttr)
static

Definition at line 171 of file rawProcn.c.

◆ pcNull

char* pcNull = (char *) ""
static

Definition at line 168 of file rawProcn.c.

Referenced by rawGetFSpName(), and rawGetPathName().