Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

/RawAPI/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
char rfio_errmsg [256] = ""
int iint = sizeof(int)
int irawComm = sizeof(srawComm)
int irawFileSystem = sizeof(srawFileSystem)
int irawAPIFile = sizeof(srawAPIFile)
int iFileCount = 0
int iFileMax = 10
RFILE * pAPIFile [10]


Function Documentation

int rfio_open char *    pcFile,
int    iFlags,
int    iMode
 

Definition at line 90 of file rawapin.c.

References ARCH_DISK, ARCHIVE, ARCHIVE_RECORD, srawComm::cApplType, srawFileSystem::cArchiveDate, srawFileSystem::cArchiveUser, srawObjAttr::cDate, srawComm::cliNode, srawComm::cNamefs, srawComm::cNamehl, srawComm::cNamell, srawObjAttr::cNode, srawFileSystem::cNode, srawDataMoverAttr::cNode, srawAPIFile::cNodeMaster, 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, 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, PORT_RFIO_SERV, QUERY_ARCHIVE_RECORD, QUERY_RETRIEVE_API, 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 1119 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 1205 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 1486 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 1655 of file rawapin.c.

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

RFILE* rfio_fopen char *    pcFile,
char *    pcOptions
 

Definition at line 1717 of file rawapin.c.

References pAPIFile, and rfio_open().

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

Definition at line 1754 of file rawapin.c.

References rfio_read().

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

Definition at line 1792 of file rawapin.c.

References rfio_write().

int rfio_fclose RFILE *    pRemFile
 

Definition at line 1830 of file rawapin.c.

References rfio_close(), and STA_END_OF_SESSION.

int rfio_access char *    pcFile,
int    iMode
 

Definition at line 1856 of file rawapin.c.

int rfio_fstat int    iFileId,
void *    fBufStat
 

Definition at line 1878 of file rawapin.c.

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

Definition at line 1900 of file rawapin.c.

void rfio_perror const char *    pUMsg
 

Definition at line 1923 of file rawapin.c.

References rfio_errmsg.

char* rfio_serror  
 

Definition at line 1947 of file rawapin.c.

References rfio_errmsg.

int rfio_unlink char *    pcFile
 

Definition at line 1970 of file rawapin.c.

int rfiosetopt int    iopt,
int *    pival,
int    ilen
 

Definition at line 1990 of file rawapin.c.

int rfio_mkdir const char *    path,
int    mode
 

Definition at line 2010 of file rawapin.c.

void* rfio_opendir const char *    dirpath
 

Definition at line 2030 of file rawapin.c.

void* rfio_readdir void *    dirp
 

Definition at line 2050 of file rawapin.c.

int rfio_closedir void *    dirp
 

Definition at line 2070 of file rawapin.c.

int rfio_stat const char *    path,
struct stat *    statbuf
 

Definition at line 2090 of file rawapin.c.

int rfio_gsi_query int    iFileId,
int    iFull,
char *    pInfo
 

Definition at line 2110 of file rawapin.c.

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


Variable Documentation

int* piEntryList
 

Definition at line 62 of file rawapin.c.

Referenced by rawGetFilelistEntries().

int imySigS
 

Definition at line 63 of file rawapin.c.

FILE* fLogFile
 

Definition at line 64 of file rawapin.c.

Referenced by rfio_open().

int serrno
 

Definition at line 67 of file rawapin.c.

int rfio_errno
 

Definition at line 68 of file rawapin.c.

char rfio_errmsg[256] = "" [static]
 

Definition at line 70 of file rawapin.c.

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

int iint = sizeof(int) [static]
 

Definition at line 72 of file rawapin.c.

Referenced by rfio_read(), and rfio_write().

int irawComm = sizeof(srawComm) [static]
 

Definition at line 73 of file rawapin.c.

Referenced by rfio_open().

int irawFileSystem = sizeof(srawFileSystem) [static]
 

Definition at line 74 of file rawapin.c.

Referenced by rfio_open().

int irawAPIFile = sizeof(srawAPIFile) [static]
 

Definition at line 75 of file rawapin.c.

Referenced by rfio_open().

int iFileCount = 0 [static]
 

Definition at line 78 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 79 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 80 of file rawapin.c.

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


Generated on Tue Nov 8 10:56:24 2005 for Go4-v2.10-5 by doxygen1.2.15