Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

rawapin.c File Reference

Go to the source code of this file.

Functions

int rfio_open (char *pcFile, int iFlags, int iMode)
int rfio_close (int iFileId)
int rfio_read (int iFileId, char *pcBuffer, int iItems)
int rfio_write (int iFileId, char *pcBuffer, int iItems)
int rfio_lseek (int iFileId, int ilocOffset, int ilocSeekMode)
RFILE * rfio_fopen (char *pcFile, char *pcOptions)
int rfio_fread (char *pcBuffer, int iSize, int iItems, RFILE *pRemFile)
int rfio_fwrite (char *pcBuffer, int iSize, int iItems, RFILE *pRemFile)
int rfio_fclose (RFILE *pRemFile)
int rfio_access (char *pcFile, int iMode)
int rfio_fstat (int iFileId, void *fBufStat)
int rfio_parse (char *pcFile, char **pcNode, char **pcPath)
void rfio_perror (const char *pUMsg)
char * rfio_serror ()
int rfio_unlink (char *pcFile)
int rfiosetopt (int iopt, int *pival, int ilen)
int rfio_mkdir (const char *path, int mode)
void * rfio_opendir (const char *dirpath)
void * rfio_readdir (void *dirp)
int rfio_closedir (void *dirp)
int rfio_stat (const char *path, struct stat *statbuf)
int rfio_gsi_query (int iFileId, int iFull, char *pInfo)

Variables

int * piEntryList
int imySigS
FILE * fLogFile
int serrno
int rfio_errno
static char rfio_errmsg [256] = ""
static int iint = sizeof(int)
static int irawComm = sizeof(srawComm)
static int irawFileSystem = sizeof(srawFileSystem)
static int irawAPIFile = sizeof(srawAPIFile)
static int iFileCount = 0
static int iFileMax = 10
static RFILE * pAPIFile [10]


Function Documentation

int rfio_open char *  pcFile,
int  iFlags,
int  iMode
 

Definition at line 97 of file rawapin.c.

References ARCH_DISK, ARCHIVE, ARCHIVE_RECORD, srawComm::cApplType, cApplType, srawFileSystem::cArchiveDate, srawFileSystem::cArchiveUser, srawObjAttr::cDate, srawComm::cliNode, cNamefs, srawComm::cNamefs, cNamehl, srawComm::cNamehl, srawComm::cNamell, srawObjAttr::cNode, srawFileSystem::cNode, srawDataMoverAttr::cNode, cNodeMaster, srawAPIFile::cNodeMaster, cNodeMaster1, srawAPIFile::cNodeMover, srawComm::cOS, srawFileSystem::cOS, srawComm::cOwner, srawObjAttr::cOwner, srawStatus::cStatus, srawComm::cTapeLib, DSM_MAX_OWNER_LENGTH, fLogFile, GSI_MEDIA_CACHE, GSI_MEDIA_INCOMPLETE, GSI_MEDIA_LOCKED, GSI_MEDIA_STAGE, HEAD_LEN, srawComm::iAction, srawComm::iArchDev, srawAPIFile::iBufnoServ, srawAPIFile::iBufsizeAct, srawComm::iBufsizeFile, srawObjAttr::iBufsizeFile, srawComm::iCommLen, srawAPIFile::iDataServ, IDENT_COMM, IDENT_MOVER_ATTR, srawDataMoverAttr::iExecStatus, srawComm::iExecStatus, iFileCount, srawAPIFile::iFileId, iFileMax, srawComm::iFileSize, srawObjAttr::iFileSize, srawFileSystem::iFileSystem, srawComm::iFileType, srawObjAttr::iFileType, srawAPIFile::iFlags, srawObjAttr::iFS, srawComm::iIdent, srawObjAttr::iMediaClass, srawAPIFile::iMode, srawComm::iObjHigh, srawObjAttr::iObjHigh, srawComm::iObjLow, srawObjAttr::iObjLow, srawAPIFile::iOffset, iPortMaster, iPortMover, irawAPIFile, irawComm, irawFileSystem, srawAPIFile::iSeekMode, srawAPIFile::iSockMaster, srawAPIFile::iSockMover, srawComm::iStageFSid, srawStatus::iStatus, srawDataMover::iStatusLen, srawComm::iSynchId, srawDataMoverAttr::iSynchId, srawDataMoverAttr::iWaitTime, srawComm::iWaitTime, MAX_NODE, MAX_OBJ_FS, MAX_OBJ_HL, MAX_OBJ_LL, srawQueryResult::objAttr, pAPIFile, pcDevDelim, pcPerc, pcQM, pcStar, PORT_RFIO_SERV, QUERY_ARCHIVE_RECORD, QUERY_RETRIEVE_API, rawGetFSName(), rawGetHLName(), rawGetLLName(), rawGetUserid(), rawQueryFile(), rawQueryString(), rawRecvHeadC(), rawRecvStatus(), rawSendStatus(), rconnect(), RETRIEVE_RECORD, rfio_errmsg, srawAPIFile::sCommAPI, srawAPIFile::sCommServ, srawDataMover::sDataMoverAttr, srawAPIFile::sQueryAPI, STA_END_OF_SESSION, STA_SWITCH_SERVER, and STREAM.

Referenced by rfio_fopen().

int rfio_close int  iFileId  ) 
 

Definition at line 1126 of file rawapin.c.

References iFileCount, iFileMax, srawAPIFile::iSockMover, pAPIFile, rawSendStatus(), and STA_END_OF_SESSION.

Referenced by rfio_fclose().

int rfio_read int  iFileId,
char *  pcBuffer,
int  iItems
 

Definition at line 1212 of file rawapin.c.

References srawComm::cNamefs, srawComm::cNamehl, srawComm::cNamell, HEAD_LEN, srawAPIFile::iBufnoServ, srawAPIFile::iBufsizeAct, srawAPIFile::iDataServ, IDENT_STATUS, iFileCount, iFileMax, iint, srawAPIFile::iOffset, srawAPIFile::iSeekMode, srawAPIFile::iSockMover, pAPIFile, rawRecvError(), rawSendRequest(), srawAPIFile::sCommAPI, srawAPIFile::sCommServ, STA_END_OF_FILE, STA_END_OF_SESSION, STA_ERROR, and STA_ERROR_EOF.

Referenced by rfio_fread().

int rfio_write int  iFileId,
char *  pcBuffer,
int  iItems
 

Definition at line 1493 of file rawapin.c.

References srawAPIFile::iBufnoServ, srawAPIFile::iBufsizeAct, srawComm::iBufsizeFile, srawAPIFile::iDataServ, iFileCount, iFileMax, iint, srawAPIFile::iSockMover, pAPIFile, srawAPIFile::sCommAPI, and srawAPIFile::sCommServ.

Referenced by rfio_fwrite().

int rfio_lseek int  iFileId,
int  ilocOffset,
int  ilocSeekMode
 

Definition at line 1662 of file rawapin.c.

References srawAPIFile::iOffset, srawAPIFile::iSeekMode, srawAPIFile::iSockMover, pAPIFile, and rawSendRequest().

RFILE* rfio_fopen char *  pcFile,
char *  pcOptions
 

Definition at line 1724 of file rawapin.c.

References pAPIFile, and rfio_open().

int rfio_fread char *  pcBuffer,
int  iSize,
int  iItems,
RFILE *  pRemFile
 

Definition at line 1761 of file rawapin.c.

References rfio_read().

int rfio_fwrite char *  pcBuffer,
int  iSize,
int  iItems,
RFILE *  pRemFile
 

Definition at line 1799 of file rawapin.c.

References rfio_write().

int rfio_fclose RFILE *  pRemFile  ) 
 

Definition at line 1837 of file rawapin.c.

References rfio_close(), and STA_END_OF_SESSION.

int rfio_access char *  pcFile,
int  iMode
 

Definition at line 1863 of file rawapin.c.

int rfio_fstat int  iFileId,
void *  fBufStat
 

Definition at line 1885 of file rawapin.c.

int rfio_parse char *  pcFile,
char **  pcNode,
char **  pcPath
 

Definition at line 1907 of file rawapin.c.

void rfio_perror const char *  pUMsg  ) 
 

Definition at line 1930 of file rawapin.c.

References rfio_errmsg.

char* rfio_serror  ) 
 

Definition at line 1954 of file rawapin.c.

References rfio_errmsg.

int rfio_unlink char *  pcFile  ) 
 

Definition at line 1977 of file rawapin.c.

int rfiosetopt int  iopt,
int *  pival,
int  ilen
 

Definition at line 1997 of file rawapin.c.

int rfio_mkdir const char *  path,
int  mode
 

Definition at line 2017 of file rawapin.c.

void* rfio_opendir const char *  dirpath  ) 
 

Definition at line 2037 of file rawapin.c.

void* rfio_readdir void *  dirp  ) 
 

Definition at line 2057 of file rawapin.c.

int rfio_closedir void *  dirp  ) 
 

Definition at line 2077 of file rawapin.c.

int rfio_stat const char *  path,
struct stat *  statbuf
 

Definition at line 2097 of file rawapin.c.

int rfio_gsi_query int  iFileId,
int  iFull,
char *  pInfo
 

Definition at line 2117 of file rawapin.c.

References iFileCount, iFileMax, pAPIFile, rawQueryString(), and srawAPIFile::sQueryAPI.


Variable Documentation

int* piEntryList
 

Definition at line 69 of file rawapin.c.

Referenced by rawGetFilelistEntries().

int imySigS
 

Definition at line 70 of file rawapin.c.

Referenced by rconnect().

FILE* fLogFile
 

Definition at line 71 of file rawapin.c.

int serrno
 

Definition at line 74 of file rawapin.c.

int rfio_errno
 

Definition at line 75 of file rawapin.c.

char rfio_errmsg[256] = "" [static]
 

Definition at line 77 of file rawapin.c.

Referenced by rfio_open(), rfio_perror(), and rfio_serror().

int iint = sizeof(int) [static]
 

Definition at line 79 of file rawapin.c.

int irawComm = sizeof(srawComm) [static]
 

Definition at line 80 of file rawapin.c.

Referenced by rfio_open().

int irawFileSystem = sizeof(srawFileSystem) [static]
 

Definition at line 81 of file rawapin.c.

Referenced by rfio_open().

int irawAPIFile = sizeof(srawAPIFile) [static]
 

Definition at line 82 of file rawapin.c.

Referenced by rfio_open().

int iFileCount = 0 [static]
 

Definition at line 85 of file rawapin.c.

Referenced by rfio_close(), rfio_gsi_query(), rfio_open(), rfio_read(), and rfio_write().

int iFileMax = 10 [static]
 

Definition at line 86 of file rawapin.c.

Referenced by rfio_close(), rfio_gsi_query(), rfio_open(), rfio_read(), and rfio_write().

RFILE* pAPIFile[10] [static]
 

Initial value:

      
   {NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL}

Definition at line 87 of file rawapin.c.

Referenced by rfio_close(), rfio_fopen(), rfio_gsi_query(), rfio_lseek(), rfio_open(), rfio_read(), and rfio_write().


Generated on Fri Nov 28 13:00:18 2008 for Go4-v3.04-1 by  doxygen 1.4.2