#include <stdint.h>
#include <unistd.h>
#include "rawcommn.h"
#include "rawclin.h"
Go to the source code of this file.
Defines | |
#define | RFILE srawAPIFile |
Functions | |
RFILE * | rfio_fopen_gsidaq_dm (char *, char *, char *, int *, int, char *, int, int, int) |
RFILE * | rfio_fopen_gsidaq (char *, char *, int, char *, int, int, int) |
RFILE * | rfio_fopen (char *, char *) |
size_t | rfio_fread (char *, size_t, size_t, RFILE *) |
size_t | rfio_fwrite (const char *, size_t, size_t, RFILE *) |
int | rfio_fclose (RFILE *) |
int | rfio_fendfile (RFILE *) |
int | rfio_fnewfile (RFILE *, char *) |
int | rfio_mkdir (const char *, int) |
int | rfio_open_gsidaq (const char *, int, int, int, char *, int, int, int) |
int | rfio_open (const char *, int, int) |
ssize_t | rfio_read (int, char *, size_t) |
ssize_t | rfio_write (int, const char *, size_t) |
int | rfio_close (int) |
int | rfio_endfile (int) |
int | rfio_newfile (int, char *) |
int | rfio_lseek (int, int, int) |
int | rfio_fstat (int, struct stat *) |
void | rfio_perror (const char *) |
char * | rfio_serror () |
int | rfio_cache_stat (const char *) |
int | rfio_gsi_query (int, int, int, char *) |
int | rfio_access (const char *, int) |
int | rfio_stat (const char *, struct stat *) |
int | rfio_parse (char *, char **, char **) |
int | rfio_unlink (const char *) |
int | rfio_closedir (void *) |
Variables | |
FILE * | fLogFile |
#define RFILE srawAPIFile |
int rfio_access | ( | const char * | , | |
int | ||||
) |
Definition at line 4443 of file rawapin.c.
References rfio_close(), and rfio_open().
int rfio_cache_stat | ( | const char * | ) |
Definition at line 5183 of file rawapin.c.
References srawComm::cNamefs, srawComm::cNamehl, srawComm::cNamell, fLogClient, iFileCount, iFileMax, srawComm::iFileSize, srawComm::iFSidWC, iOnlyQuery, srawComm::iStageFSid, pAPIFile, and rfio_open().
int rfio_close | ( | int | ) |
Definition at line 3717 of file rawapin.c.
References ARCH_TAPE, ARCHIVE_RECORD, srawComm::cNamefs, srawComm::cNamehl, srawComm::cNamell, srawAPIFile::cNodeMover, fLogClient, HEAD_LEN, srawComm::iAction, srawComm::iArchDev, iFileCount, iFileMax, srawAPIFile::iMassSto, srawAPIFile::iOpMode, srawAPIFile::iSockMaster, srawAPIFile::iSockMover, srawStatus::iStatus, pAPIFile, rawRecvStatus(), rawSendStatus(), and srawAPIFile::sCommAPI.
Referenced by rfio_access(), and rfio_fclose().
int rfio_closedir | ( | void * | ) |
Definition at line 4931 of file rawapin.c.
References fLogClient.
int rfio_endfile | ( | int | ) |
Definition at line 2395 of file rawapin.c.
References srawComm::cNamefs, srawComm::cNamehl, srawComm::cNamell, srawStatus::cStatus, fLogClient, HEAD_LEN, srawAPIFile::iBufnoServ, iFileCount, iFileMax, srawAPIFile::iMassSto, srawAPIFile::iOpMode, srawAPIFile::iSockMover, srawStatus::iStatus, pAPIFile, rawRecvStatus(), rawSendStatus(), srawAPIFile::sCommAPI, srawAPIFile::sCommServ, srawAPIFile::sCopyCacheServ, STA_CACHE_COPY, and STA_CACHE_COPY_ERROR.
Referenced by rfio_fendfile().
int rfio_fclose | ( | RFILE * | ) |
Definition at line 4415 of file rawapin.c.
References rfio_close().
int rfio_fendfile | ( | RFILE * | ) |
Definition at line 4386 of file rawapin.c.
References rfio_endfile().
int rfio_fnewfile | ( | RFILE * | , | |
char * | ||||
) |
Definition at line 4239 of file rawapin.c.
References fLogClient, iFileCount, iFileMax, pAPIFile, and rfio_newfile().
RFILE* rfio_fopen | ( | char * | , | |
char * | ||||
) |
Definition at line 4003 of file rawapin.c.
References RFILE, and rfio_fopen_gsidaq().
RFILE* rfio_fopen_gsidaq | ( | char * | , | |
char * | , | |||
int | , | |||
char * | , | |||
int | , | |||
int | , | |||
int | ||||
) |
Definition at line 4152 of file rawapin.c.
References pAPIFile, and rfio_open_gsidaq().
Referenced by rfio_fopen().
RFILE* rfio_fopen_gsidaq_dm | ( | char * | , | |
char * | , | |||
char * | , | |||
int * | , | |||
int | , | |||
char * | , | |||
int | , | |||
int | , | |||
int | ||||
) |
Definition at line 4043 of file rawapin.c.
References cNodeMover, pAPIFile, and rfio_open_gsidaq().
size_t rfio_fread | ( | char * | , | |
size_t | , | |||
size_t | , | |||
RFILE * | ||||
) |
Definition at line 4308 of file rawapin.c.
References fLogClient, and rfio_read().
int rfio_fstat | ( | int | , | |
struct stat * | ||||
) |
Definition at line 4646 of file rawapin.c.
References srawComm::cNamefs, srawComm::cNamehl, srawComm::cNamell, fLogClient, iFileCount, iFileMax, srawComm::iFileSize, and pAPIFile.
size_t rfio_fwrite | ( | const char * | , | |
size_t | , | |||
size_t | , | |||
RFILE * | ||||
) |
Definition at line 4346 of file rawapin.c.
References fLogClient, and rfio_write().
int rfio_gsi_query | ( | int | , | |
int | , | |||
int | , | |||
char * | ||||
) |
Definition at line 5311 of file rawapin.c.
References iFileCount, iFileMax, pAPIFile, rawQueryString(), and srawAPIFile::sQueryAPI.
int rfio_lseek | ( | int | , | |
int | , | |||
int | ||||
) |
Definition at line 3940 of file rawapin.c.
References fLogClient, srawAPIFile::iOffset, srawAPIFile::iSeekMode, srawAPIFile::iSockMover, pAPIFile, and rawSendRequest().
int rfio_mkdir | ( | const char * | , | |
int | ||||
) |
Definition at line 4856 of file rawapin.c.
References fLogClient.
int rfio_newfile | ( | int | , | |
char * | ||||
) |
Definition at line 3017 of file rawapin.c.
References ARCH_TAPE, ARCHIVE_RECORD, srawComm::cNamefs, cNamefs, srawComm::cNamehl, cNamehl, srawComm::cNamell, srawAPIFile::cNodeMover, cNodeMover, cPrefix, srawStatus::cStatus, fLogClient, HEAD_LEN, srawComm::iAction, srawAPIFile::iAction, srawComm::iArchDev, srawComm::iATLServer, iATLServer, srawComm::iBufsizeFile, srawComm::iCommLen, srawCopyCache::iCopyLen, srawCopyCache::iCopyMode, iFileCount, iFileMax, srawComm::iIdent, srawAPIFile::iMassSto, iPortMover, irawComm, irawCopyCache, iSleepCacheFull, srawAPIFile::iSockMaster, srawAPIFile::iSockMover, srawStatus::iStatus, iStatusLoopMax, MAX_OBJ_FS, MAX_OBJ_HL, MAX_OBJ_LL, srawQueryResult::objAttr, pAPIFile, pcDevDelim, QUERY_ARCHIVE_RECORD, rawGetHLName(), rawQueryFile(), rawRecvStatus(), rconnect(), RETRIEVE_RECORD, rfio_errmsg, srawAPIFile::sCommAPI, srawAPIFile::sCommServ, srawAPIFile::sCopyCacheServ, STA_CACHE_FULL, STA_ERROR_EOF, and STA_SWITCH_SERVER.
Referenced by rfio_fnewfile().
int rfio_open | ( | const char * | , | |
int | , | |||
int | ||||
) |
Definition at line 275 of file rawapin.c.
References rfio_open_gsidaq().
Referenced by rfio_access(), rfio_cache_stat(), and rfio_stat().
int rfio_open_gsidaq | ( | const char * | , | |
int | , | |||
int | , | |||
int | , | |||
char * | , | |||
int | , | |||
int | , | |||
int | ||||
) |
Definition at line 314 of file rawapin.c.
References cApplType, srawComm::cApplType, srawFileSystem::cArchiveDate, srawFileSystem::cArchiveUser, srawCopyCache::cCopyPath, srawComm::cDataFS, cDataFSHigh1, cDataFSHigh2, srawObjAttr::cDateCreate, srawComm::cliNode, cLogClient, srawComm::cNamefs, cNamefs, srawComm::cNamehl, cNamehl, srawComm::cNamell, srawDataMoverAttr::cNode, srawFileSystem::cNode, srawObjAttr::cNode, srawComm::cNodeCacheMgr, srawAPIFile::cNodeMaster, cNodeMaster, cNodeMaster0, srawAPIFile::cNodeMover, cNodeMover, cNodePrefix, srawComm::cNodeRC, srawComm::cNodeWC, srawFileSystem::cOS, srawComm::cOS, srawObjAttr::cOwner, srawComm::cOwner, cPrefix, srawStatus::cStatus, srawComm::cTapeLib, fLogClient, fLogFile, GSI_CACHE_INCOMPLETE, GSI_CACHE_LOCKED, GSI_MEDIA_CACHE, GSI_MEDIA_INCOMPLETE, GSI_MEDIA_LOCKED, GSI_MEDIA_STAGE, srawComm::iAction, srawAPIFile::iAction, srawComm::iArchDev, srawDataMoverAttr::iATLServer, srawObjAttr::iATLServer, srawComm::iATLServer, iATLServer, srawAPIFile::iBufnoServ, srawAPIFile::iBufsizeAct, srawObjAttr::iBufsizeFile, srawComm::iBufsizeFile, srawComm::iClient32, srawComm::iCommLen, srawCopyCache::iCopyFraction, srawCopyCache::iCopyLen, srawCopyCache::iCopyMode, srawComm::iDataFS, srawAPIFile::iDataServ, IDENT_COPY_CACHE, srawDataMoverAttr::iExecStatus, srawComm::iExecStatus, iFileCount, srawAPIFile::iFileId, iFileMax, srawObjAttr::iFileSize, srawComm::iFileSize, srawObjAttr::iFileSize2, srawComm::iFileSize2, srawFileSystem::iFileSystem, srawObjAttr::iFileType, srawComm::iFileType, srawAPIFile::iFlags, srawObjAttr::iFS, srawComm::iFSidWC, srawCopyCache::iIdent, srawComm::iIdent, iLogFile, srawAPIFile::iMassSto, srawCopyCache::iMaxFile, srawObjAttr::iMediaClass, srawAPIFile::iMode, iObjAttr, srawObjAttr::iObjHigh, srawComm::iObjHigh, srawObjAttr::iObjLow, srawComm::iObjLow, srawAPIFile::iOffset, iOnlyQuery, srawAPIFile::iOpMode, iOS64, srawCopyCache::iPathConvention, srawObjAttr::iPoolId, srawComm::iPoolIdRC, srawComm::iPoolIdWC, iPortMaster, iPortMover, irawAPIFile, irawComm, irawFileSystem, srawAPIFile::iSeekMode, iSleepCacheFull, srawAPIFile::iSockMaster, srawAPIFile::iSockMover, srawComm::iStageFSid, srawStatus::iStatus, iStatusLoopMax, srawComm::iSynchId, srawDataMoverAttr::iWaitTime, srawComm::iWaitTime, MAX_ATLSERVER, MAX_NODE, MAX_OBJ_FS, MAX_OBJ_HL, MAX_OBJ_LL, srawQueryResult::objAttr, pAPIFile, pcDevDelim, pcPerc, pcQM, pcStar, rawGetFSpName(), rawGetHLName(), rawGetLLName(), rawGetUserid(), rawQueryFile(), rawQueryString(), rawRecvHeadC(), rawRecvStatus(), rawSendStatus(), rconnect(), rfio_errmsg, srawAPIFile::sCommAPI, srawAPIFile::sCommServ, srawAPIFile::sCopyCacheServ, SPM_REQUEST_MOVER, srawAPIFile::sQueryAPI, STA_CACHE_FULL, STA_SWITCH_SERVER, and STREAM.
Referenced by rfio_fopen_gsidaq(), rfio_fopen_gsidaq_dm(), and rfio_open().
void rfio_perror | ( | const char * | ) |
Definition at line 4752 of file rawapin.c.
References rfio_errmsg.
ssize_t rfio_read | ( | int | , | |
char * | , | |||
size_t | ||||
) |
Definition at line 2530 of file rawapin.c.
References srawComm::cNamefs, srawComm::cNamehl, srawComm::cNamell, fLogClient, 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().
char* rfio_serror | ( | ) |
Definition at line 4780 of file rawapin.c.
References fLogClient, and rfio_errmsg.
int rfio_stat | ( | const char * | , | |
struct stat * | ||||
) |
Definition at line 5074 of file rawapin.c.
References srawComm::cNamefs, srawComm::cNamehl, srawComm::cNamell, fLogClient, iFileCount, iFileMax, srawComm::iFileSize, iOnlyQuery, pAPIFile, and rfio_open().
int rfio_unlink | ( | const char * | ) |
Definition at line 4809 of file rawapin.c.
References fLogClient.
ssize_t rfio_write | ( | int | , | |
const char * | , | |||
size_t | ||||
) |
Definition at line 2843 of file rawapin.c.
References fLogClient, srawAPIFile::iBufnoServ, srawAPIFile::iBufsizeAct, srawComm::iBufsizeFile, srawAPIFile::iDataServ, iFileCount, iFileMax, iint, srawAPIFile::iSockMover, pAPIFile, srawAPIFile::sCommAPI, and srawAPIFile::sCommServ.
Referenced by rfio_fwrite().