irods  4.2.8
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.
  Fossies Dox: irods-4.2.8.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

rcMisc.h File Reference
#include "rods.h"
#include "rodsError.h"
#include "objInfo.h"
#include "rodsPath.h"
#include "bulkDataObjPut.h"
#include <netinet/in.h>
Include dependency graph for rcMisc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void clearModAccessControlInp (void *)
 
void clearModAVUMetadataInp (void *)
 
void clearDataObjCopyInp (void *)
 
void clearUnregDataObj (void *)
 
void clearModDataObjMetaInp (void *)
 
void clearRegReplicaInp (void *voidInp)
 
int isPath (char *path)
 
rodsLong_t getFileSize (char *path)
 
int addRErrorMsg (rError_t *myError, int status, const char *msg)
 
int freeBBuf (bytesBuf_t *myBBuf)
 
int clearBBuf (bytesBuf_t *myBBuf)
 
int freeRError (rError_t *myError)
 
int replErrorStack (rError_t *srcRError, rError_t *destRError)
 
int freeRErrorContent (rError_t *myError)
 
int parseUserName (const char *fullUserNameIn, char *userName, char *userZone)
 
int myHtonll (rodsLong_t inlonglong, rodsLong_t *outlonglong)
 
int myNtohll (rodsLong_t inlonglong, rodsLong_t *outlonglong)
 
int statToRodsStat (rodsStat_t *rodsStat, struct stat *myFileStat)
 
int rodsStatToStat (struct stat *myFileStat, rodsStat_t *rodsStat)
 
int direntToRodsDirent (rodsDirent_t *rodsDirent, struct dirent *fileDirent)
 
int getLine (FILE *fp, char *buf, int bufsz)
 
int getStrInBuf (char **inbuf, char *outbuf, int *inbufLen, int outbufLen)
 
int getNextEleInStr (char **inbuf, char *outbuf, int *inbufLen, int maxOutLen)
 
int getZoneNameFromHint (const char *rcatZoneHint, char *zoneName, int len)
 
int freeDataObjInfo (dataObjInfo_t *dataObjInfo)
 
int freeAllDataObjInfo (dataObjInfo_t *dataObjInfoHead)
 
char * getValByKey (const keyValPair_t *condInput, const char *keyWord)
 
int getIvalByInx (inxIvalPair_t *inxIvalPair, int inx, int *outValue)
 
char * getValByInx (inxValPair_t *inxValPair, int inx)
 
int replKeyVal (const keyValPair_t *srcCondInput, keyValPair_t *destCondInput)
 
int copyKeyVal (const keyValPair_t *srcCondInput, keyValPair_t *destCondInput)
 
int replDataObjInp (dataObjInp_t *srcDataObjInp, dataObjInp_t *destDataObjInp)
 
int replSpecColl (specColl_t *inSpecColl, specColl_t **outSpecColl)
 
int addKeyVal (keyValPair_t *condInput, const char *keyWord, const char *value)
 
int addInxIval (inxIvalPair_t *inxIvalPair, int inx, int value)
 
int addInxVal (inxValPair_t *inxValPair, int inx, const char *value)
 
int addStrArray (strArray_t *strArray, char *value)
 
int resizeStrArray (strArray_t *strArray, int newSize)
 
int queDataObjInfo (dataObjInfo_t **dataObjInfoHead, dataObjInfo_t *dataObjInfo, int singleInfoFlag, int topFlag)
 
int dequeDataObjInfo (dataObjInfo_t **dataObjInfoHead, dataObjInfo_t *dataObjInfo)
 
int clearKeyVal (keyValPair_t *condInput)
 
int clearInxIval (inxIvalPair_t *inxIvalPair)
 
int clearInxVal (inxValPair_t *inxValPair)
 
int moveKeyVal (keyValPair_t *destKeyVal, keyValPair_t *srcKeyVal)
 
int rmKeyVal (keyValPair_t *condInput, const char *keyWord)
 
int sendTranHeader (int sock, int oprType, int flags, rodsLong_t offset, rodsLong_t length)
 
int freeGenQueryOut (genQueryOut_t **genQueryOut)
 
int freeGenQueryInp (genQueryInp_t **genQueryInp)
 
void clearGenQueryInp (void *voidInp)
 
sqlResult_tgetSqlResultByInx (genQueryOut_t *genQueryOut, int attriInx)
 
void clearGenQueryOut (void *)
 
int catGenQueryOut (genQueryOut_t *targGenQueryOut, genQueryOut_t *genQueryOut, int maxRowCnt)
 
void clearBulkOprInp (void *)
 
int getUnixUid (char *userName)
 
int getUnixUsername (int uid, char *username, int username_len)
 
int getUnixGroupname (int gid, char *groupname, int groupname_len)
 
int parseMultiStr (char *strInput, strArray_t *strArray)
 
void getNowStr (char *timeStr)
 
int getLocalTimeFromRodsTime (const char *timeStrIn, char *timeStrOut)
 
int getLocalTimeStr (struct tm *mytm, char *timeStr)
 
void getOffsetTimeStr (char *timeStr, const char *offSet)
 
void updateOffsetTimeStr (char *timeStr, int offset)
 
int checkDateFormat (char *s)
 
int localToUnixTime (char *localTime, char *unixTime)
 
int printErrorStack (rError_t *rError)
 
int getDataObjInfoCnt (dataObjInfo_t *dataObjInfoHead)
 
int appendRandomToPath (char *trashPath)
 
int isBundlePath (char *myPath)
 
int isTrashPath (char *myPath)
 
orphanPathType_t isOrphanPath (char *myPath)
 
int isHomeColl (char *myPath)
 
int isTrashHome (char *myPath)
 
int openRestartFile (char *restartFile, rodsRestart_t *rodsRestart)
 
int setStateForResume (rcComm_t *conn, rodsRestart_t *rodsRestart, char *restartPath, objType_t objType, keyValPair_t *condInput, int deleteFlag)
 
int writeRestartFile (rodsRestart_t *rodsRestart, char *lastDonePath)
 
int procAndWriteRestartFile (rodsRestart_t *rodsRestart, char *donePath)
 
int setStateForRestart (rodsRestart_t *rodsRestart, rodsPath_t *targPath, rodsArguments_t *rodsArgs)
 
int chkStateForResume (rcComm_t *conn, rodsRestart_t *rodsRestart, char *targPath, rodsArguments_t *rodsArgs, objType_t objType, keyValPair_t *condInput, int deleteFlag)
 
int addTagStruct (tagStruct_t *condInput, char *preTag, char *postTag, char *keyWord)
 
void clearFileOpenInp (void *voidInp)
 
void clearDataObjInp (void *)
 
void clearCollInp (void *)
 
void clearAuthResponseInp (void *myInStruct)
 
int isInteger (const char *inStr)
 
int addIntArray (intArray_t *intArray, int value)
 
int getMountedSubPhyPath (char *logMountPoint, char *phyMountPoint, char *logSubPath, char *phySubPathOut)
 
int resolveSpecCollType (char *type, char *collection, char *collInfo1, char *collInfo2, specColl_t *specColl)
 
int getSpecCollTypeStr (specColl_t *specColl, char *outStr)
 
int getErrno (int errCode)
 
int getIrodsErrno (int irodError)
 
structFileOprType_t getSpecCollOpr (keyValPair_t *condInput, specColl_t *specColl)
 
void resolveStatForStructFileOpr (keyValPair_t *condInput, rodsObjStat_t *rodsObjStatOut)
 
int keyValToString (keyValPair_t *list, char **string)
 
int keyValFromString (char *string, keyValPair_t **list)
 
int convertDateFormat (char *s, char *currTime)
 
int getNextRepeatTime (char *currTime, char *delayStr, char *nextTime)
 
int printError (rcComm_t *Conn, int status, char *routineName)
 
int fillGenQueryInpFromStrCond (char *str, genQueryInp_t *genQueryInp)
 
int printGenQueryOut (FILE *fd, char *format, char *hint, genQueryOut_t *genQueryOut)
 
int appendToByteBuf (bytesBuf_t *bytesBuf, char *str)
 
char * getAttrNameFromAttrId (int cid)
 
int getAttrIdFromAttrName (char *cname)
 
int showAttrNames ()
 
int separateSelFuncFromAttr (char *t, char **aggOp, char **colNm)
 
int getSelVal (char *c)
 
int clearSendXmsgInfo (sendXmsgInfo_t *sendXmsgInfo)
 
int parseCachedStructFileStr (char *collInfo2, specColl_t *specColl)
 
int makeCachedStructFileStr (char *collInfo2, specColl_t *specColl)
 
int getLineInBuf (char **inbuf, char *outbuf, int bufLen)
 
int freeRodsObjStat (rodsObjStat_t *rodsObjStat)
 
int parseHostAddrStr (char *hostAddr, rodsHostAddr_t *addr)
 
void printReleaseInfo (char *cmdName)
 
unsigned int seedRandom ()
 
int initBulkDataObjRegInp (genQueryOut_t *bulkDataObjRegInp)
 
int initBulkDataObjRegOut (genQueryOut_t **bulkDataObjRegOut)
 
int untarBuf (char *phyBunDir, bytesBuf_t *tarBBuf)
 
int tarToBuf (char *phyBunDir, bytesBuf_t *tarBBuf)
 
int readToByteBuf (int fd, bytesBuf_t *bytesBuf)
 
int writeFromByteBuf (int fd, bytesBuf_t *bytesBuf)
 
int initAttriArrayOfBulkOprInp (bulkOprInp_t *bulkOprInp)
 
int fillAttriArrayOfBulkOprInp (char *objPath, int dataMode, char *inpChksum, int offset, bulkOprInp_t *bulkOprInp)
 
int getPhyBunPath (const char *collection, const char *objPath, const char *phyBunDir, char *outPhyBunPath)
 
int unbunBulkBuf (char *phyBunDir, bulkOprInp_t *bulkOprInp, bytesBuf_t *bulkBBuf)
 
int mySetenvStr (const char *envname, const char *envval)
 
int mySetenvInt (char *envname, int envval)
 
int getNumFilesInDir (const char *mydir)
 
int getRandomArray (int **randomArray, int size)
 
int isPathSymlink_err (rodsArguments_t *rodsArgs, const char *path)
 
int isPathSymlink (rodsArguments_t *rodsArgs, const char *path)
 
int getAttriInAttriArray (const char *objPath, genQueryOut_t *attriArray, int *outDataMode, char **outChksum)
 
char * trimSpaces (char *str)
 
char * trimPrefix (char *str)
 
int convertListToMultiString (char *strInput, int input)
 
int startsWith (const char *str, const char *prefix)
 
int splitMultiStr (char *strInput, strArray_t *strArray)
 
int hasSymlinkInDir (const char *mydir)
 
int hasSymlinkInPath (const char *myPath)
 
int hasSymlinkInPartialPath (const char *myPath, int pos)
 
int myWrite (int sock, void *buf, int len, int *bytesWritten)
 
int myRead (int sock, void *buf, int len, int *bytesRead, struct timeval *tv)
 
int getPathStMode (const char *p)
 
int getaddrinfo_with_retry (const char *_node, const char *_service, const struct addrinfo *_hints, struct addrinfo **_res)
 
int get_canonical_name (const char *_hostname, char *_buf, size_t _len)
 
int load_in_addr_from_hostname (const char *_hostname, struct in_addr *_out)
 

Variables

static const int STDOUT_STATUS = 1000000
 

Function Documentation

◆ addIntArray()

int addIntArray ( intArray_t intArray,
int  value 
)

◆ addInxIval()

int addInxIval ( inxIvalPair_t inxIvalPair,
int  inx,
int  value 
)

◆ addInxVal()

◆ addKeyVal()

int addKeyVal ( keyValPair_t condInput,
const char *  keyWord,
const char *  value 
)

Definition at line 789 of file rcMisc.cpp.

Referenced by _call_file_modified_for_modification(), _call_file_modified_for_replica(), _modDataObjSize(), _rsCollRsync(), _rsDataObjChksum(), _rsDataObjClose(), _rsDataObjCreateWithResc(), _rsDataObjGet(), _rsDataObjOpen(), _rsDataObjPut(), _rsDataObjReplS(), _rsDataObjReplUpdate(), _rsPhyBundleColl(), _rsPhyRmColl(), _rsProcStat(), _rsProcStatAll(), _rsStructFileBundle(), _rsSyncMountedColl(), _rsUnbunAndRegPhyBunfile(), _unbunAndStageBunfileObj(), add_global_re_params_to_kvp_for_dynpep(), irods::add_key_val(), bundleAndRegSubFiles(), checkCollAccessPerm(), chkAndHandleOrphanFile(), chkOrphanFile(), chksumUtil(), collStatAllKinds(), irods::experimental::filesystem::client::copy_data_object(), cpUtil(), irods::experimental::filesystem::client::create_collections(), createEmptyRepl(), createPhyBundleDataObj(), irods::experimental::filesystem::client::data_object_checksum(), dataObjChksumAndReg(), dataObjChksumAndRegInfo(), dataObjCopy(), dataObjOpenForRepl(), dataObjTruncateS(), dataOpen(), dirPathReg(), exec_rule(), filePathRegRepl(), fillSubmitConditions(), irods::query< connection_type >::gen_query_impl::gen_query_impl(), genCollResInColl(), genDataResInColl(), getAllSessionVarValue(), getDataObjInfo(), getFileMetadataFromVault(), getNumSubfilesInBunfileObj(), getRemoteZoneHost(), getUtil(), getZoneType(), initCondForBunOpr(), initCondForChksum(), initCondForCp(), initCondForGet(), initCondForIrodsToIrodsRsync(), initCondForMcoll(), initCondForPhybunOpr(), initCondForPhymv(), initCondForPut(), initCondForReg(), initCondForRepl(), initCondForRm(), initCondForRmtrash(), initCondForRsync(), initCondForTrim(), initDataObjInfoQuery(), initDataOprInp(), irods::experimental::key_value_proxy::insert(), irods::experimental::key_value_proxy::insert_or_assign(), irsDataObjClose(), irsPhyPathReg(), l3DataPutSingleBuf(), l3FileSync(), irods::experimental::filesystem::client::last_write_time(), lfRestartPutWithInfo(), linkCollReg(), lsSubfilesInBundle(), matchPattern(), mcollUtil(), mkdirUtil(), modCollInfo2(), modDataObjSizeMeta(), mountFileDir(), msiAddKeyVal(), msiCollCreate(), msiDataObjRsync(), msiExecCmd(), msiExtractTemplateMDFromBuf(), msiListEnabledMS(), msiPhyBundleColl(), msiRmColl(), msiSetDataTypeFromExt(), msiSetReplComment(), msiString2KeyValPair(), msisync_to_archive(), msiSysMetaModify(), msiTarFileCreate(), msiTarFileExtract(), irods::experimental::io::client::basic_transport< CharT >::open(), irods::experimental::key_value_proxy::handle::operator=(), parseMsKeyValStrForCollInp(), parseMsKeyValStrForDataObjInp(), parseMsKeyValStrForStructFileExtAndRegInp(), parseMspForCondInp(), parseMspForCondKw(), parseMspForPhyPathReg(), phyBundle(), phymvUtil(), phyPathRegNoChkPerm(), preProcParaGet(), preProcParaPut(), procChksumForClose(), putFileUtil(), putUtil(), queryCollAcl(), queryCollAclSpecific(), queryDataObjAcl(), rcChksumLocFile(), rcDataObjPut(), regNewObjSize(), regPhySubFile(), regSubfile(), regUnbunPhySubfiles(), regUtil(), remoteExec(), repl_object(), replDataObjForBundle(), irods::create_write_replicator::replicate(), replUtil(), resolveDataObjReplStatus(), resolveLinkedPath(), irods::resource_to_kvp(), rsBulkDataObjPut(), rsDataCopy(), rsDataGet(), rsDataObjChksum(), rsDataObjCopy(), rsDataObjCreate(), rsDataObjGet(), rsDataObjOpen(), rsDataObjPhymv(), rsDataObjPut(), rsDataObjRename(), rsDataObjRepl(), rsDataObjRsync(), rsDataObjTrim(), rsDataObjUnlink(), rsDataPut(), rsExecCmd(), rsGetHostForGet(), rsGetHostForPut(), rsGetRemoteZoneResc(), rsMkOrphanPath(), rsModDataObjMeta(), rsMvDataObjToTrash(), rsPhyBundleColl(), rsQueryDataObjInCollReCur(), rsQuerySpecColl(), rsRegReplica(), rsReplAndRequeDataObjInfo(), rsRsyncDataToData(), rsRsyncDataToFile(), rsRsyncFileToData(), rsRuleExecSubmit(), rsStructFileBundle(), rsStructFileExtAndReg(), rsStructFileExtract(), rsyncDataToDataUtil(), rsyncDataToFileUtil(), rsyncFileToDataUtil(), rsyncUtil(), setStateForResume(), smsi_remoteExec(), irods::query< connection_type >::spec_query_impl::spec_query_impl(), specCollSubStat(), stageBundledData(), structFileReg(), svrUnregColl(), syncDataObjPhyPathS(), trimDataObjInfo(), trimUtil(), unbunBulkBuf(), unbunPhyBunFile(), unmountFileDir(), irods::reg_repl::verify_and_update_replica(), and verifyDatObjChksum().

◆ addRErrorMsg()

int addRErrorMsg ( rError_t myError,
int  status,
const char *  msg 
)

Definition at line 121 of file rcMisc.cpp.

References ERR_MSG_LEN, rError_t::errMsg, rError_t::len, rErrMsg_t::msg, NULL, PTR_ARRAY_MALLOC_LEN, rErrMsg_t::status, irods.pypyodbc::status, and SYS_INTERNAL_NULL_INPUT_ERR.

Referenced by _addChildToResource(), _check_rebalance_timestamp_avu_on_resource(), _delColl(), _listRescTypes(), _resolveHostName(), _rsRuleExecDel(), _rsSpecificQuery(), checkAndGetObjectId(), computeExpressionWithParams(), convertResToMsParam(), db_add_child_resc_op(), db_del_coll_by_admin_op(), db_del_resc_op(), db_del_user_re_op(), db_del_zone_op(), db_mod_coll_op(), db_mod_data_obj_meta_op(), db_mod_resc_data_paths_op(), db_mod_resc_op(), db_mod_user_op(), db_mod_zone_op(), db_reg_coll_by_admin_op(), db_reg_coll_op(), db_reg_data_obj_op(), db_reg_resc_op(), db_reg_user_re_op(), db_reg_zone_op(), db_unreg_replica_op(), decodePw(), dirPathReg(), evaluateActions(), evaluateExpression3(), evaluateFunctionApplication(), evaluateVar3(), exec_rule_expression(), exec_rule_text(), execAction3(), execMicroService3(), execRule(), execRuleFromCondIndex(), execRuleNodeRes(), matchPattern(), msiExit(), msiGetSessionVarValue(), parseAndComputeExpression(), parseAndComputeRule(), processCoercion(), readRuleSetFromLocalFile(), replErrorStack(), irods::create_write_replicator::replicate(), irods::impostor_resource::report_error(), rodsLogAndErrorMsg(), rsCollCreate(), rsDataObjTrim(), rsDataObjUnlink(), rsExecMyRule(), rsGetHierFromLeafId(), rsStructFileExtAndReg(), setVariableValue(), simplify(), smsi_datetime(), smsi_matchExec(), smsi_timestr(), test_source_replica_for_write_permissions(), typeExpression3(), typeFunction3(), typeNode(), typeRule(), typeRuleSet(), typeTypeAscription(), irods::update_out_of_date_replicas(), verify_non_root_vault_path(), and verifyDatObjChksum().

◆ addStrArray()

int addStrArray ( strArray_t strArray,
char *  value 
)

Definition at line 959 of file rcMisc.cpp.

References StrArray::len, LOG_ERROR, NAME_LEN, NULL, PTR_ARRAY_MALLOC_LEN, rodsLog(), rstrcpy(), StrArray::size, size, SYS_INTERNAL_NULL_INPUT_ERR, StrArray::value, and get_irods_version::value.

Referenced by parseMultiStr(), pushStack(), and splitMultiStr().

Here is the call graph for this function:

◆ addTagStruct()

int addTagStruct ( tagStruct_t condInput,
char *  preTag,
char *  postTag,
char *  keyWord 
)

◆ appendRandomToPath()

int appendRandomToPath ( char *  trashPath)

Definition at line 2348 of file rcMisc.cpp.

References MAX_NAME_LEN, and SYS_INVALID_FILE_PATH.

Referenced by rsMkCollR(), rsMvCollToTrash(), and rsMvDataObjToTrash().

◆ appendToByteBuf()

int appendToByteBuf ( bytesBuf_t bytesBuf,
char *  str 
)

Definition at line 3048 of file rcMisc.cpp.

References BytesBuf::buf, BytesBuf::len, MAX_NAME_LEN, and NULL.

Referenced by msiPrintGenQueryOutToBuffer().

◆ catGenQueryOut()

int catGenQueryOut ( genQueryOut_t targGenQueryOut,
genQueryOut_t genQueryOut,
int  maxRowCnt 
)

Definition at line 1172 of file rcMisc.cpp.

References GenQueryOut::attriCnt, SqlResult::attriInx, SqlResult::len, LOG_ERROR, NULL, rodsLog(), GenQueryOut::rowCnt, GenQueryOut::sqlResult, SYS_MALLOC_ERR, SYS_STRUCT_ELEMENT_MISMATCH, USER__NULL_INPUT_ERR, and SqlResult::value.

Referenced by _rsProcStatAll().

Here is the call graph for this function:

◆ checkDateFormat()

int checkDateFormat ( char *  s)

Definition at line 2129 of file rcMisc.cpp.

References DATE_FORMAT_ERR, isInteger(), localToUnixTime(), rstrcpy(), irods.pypyodbc::status, and TIME_LEN.

Referenced by convertDateFormat(), fillSubmitConditions(), and msiSysMetaModify().

Here is the call graph for this function:

◆ chkStateForResume()

int chkStateForResume ( rcComm_t conn,
rodsRestart_t rodsRestart,
char *  targPath,
rodsArguments_t rodsArgs,
objType_t  objType,
keyValPair_t condInput,
int  deleteFlag 
)

Definition at line 34 of file putUtil.cpp.

References rodsRestart_t::curCnt, DATA_OBJ_T, rodsRestart_t::doneCnt, LAST_PATH_MATCHED, rodsRestart_t::lastDonePath, LOCAL_FILE_T, LOG_ERROR, MATCHED_RESTART_COLL, PATH_MATCHING, RESTART_OPR_FAILED, rodsRestart_t::restartState, rodsLog(), setStateForResume(), irods.pypyodbc::status, True, and rodsArguments_t::verbose.

Referenced by putDirUtil().

Here is the call graph for this function:

◆ clearAuthResponseInp()

void clearAuthResponseInp ( void *  myInStruct)

Definition at line 4131 of file rcMisc.cpp.

References NULL, authResponseInp_t::response, and authResponseInp_t::username.

◆ clearBBuf()

◆ clearBulkOprInp()

void clearBulkOprInp ( void *  )

Definition at line 1248 of file rcMisc.cpp.

References bulkOprInp_t::attriArray, clearGenQueryOut(), clearKeyVal(), bulkOprInp_t::condInput, and NULL.

Here is the call graph for this function:

◆ clearCollInp()

void clearCollInp ( void *  )

Definition at line 1492 of file rcMisc.cpp.

References clearKeyVal(), CollInp::condInput, and NULL.

Here is the call graph for this function:

◆ clearDataObjCopyInp()

void clearDataObjCopyInp ( void *  )

Definition at line 1507 of file rcMisc.cpp.

References clearKeyVal(), DataObjInp::condInput, DataObjCopyInp::destDataObjInp, NULL, DataObjInp::specColl, and DataObjCopyInp::srcDataObjInp.

Here is the call graph for this function:

◆ clearDataObjInp()

void clearDataObjInp ( void *  )

Definition at line 1475 of file rcMisc.cpp.

References clearKeyVal(), DataObjInp::condInput, NULL, and DataObjInp::specColl.

Referenced by freeL1desc(), freeRuleExecInfoInternals(), msiDataObjGet(), and msiDataObjPut().

Here is the call graph for this function:

◆ clearFileOpenInp()

void clearFileOpenInp ( void *  voidInp)

Definition at line 1463 of file rcMisc.cpp.

References clearKeyVal(), fileOpenInp_t::condInput, and NULL.

Here is the call graph for this function:

◆ clearGenQueryInp()

◆ clearGenQueryOut()

void clearGenQueryOut ( void *  )

◆ clearInxIval()

int clearInxIval ( inxIvalPair_t inxIvalPair)

Definition at line 1069 of file rcMisc.cpp.

References InxIvalPair::inx, InxIvalPair::len, NULL, and InxIvalPair::value.

Referenced by clearGenQueryInp().

◆ clearInxVal()

int clearInxVal ( inxValPair_t inxValPair)

◆ clearKeyVal()

int clearKeyVal ( keyValPair_t condInput)

Definition at line 1047 of file rcMisc.cpp.

References KeyValPair::keyWord, KeyValPair::len, NULL, and KeyValPair::value.

Referenced by _l3Open(), _rsDataObjClose(), _rsDataObjPut(), _rsDataObjRepl(), _rsDataObjReplS(), _rsPhyBundleColl(), _rsPhyRmColl(), _rsRegColl(), _rsRmCollRecur(), _rsStructFileBundle(), irods::apply_policy_for_create_operation(), applyPreprocRuleForOpen(), bundleAndRegSubFiles(), chkAndHandleOrphanFile(), chkPreProcDeleteRule(), chkRescQuotaPolicy(), irods::experimental::key_value_proxy::clear(), clearBulkOprInp(), clearCollHandle(), clearCollInp(), clearDataObjCopyInp(), clearDataObjInp(), clearFileOpenInp(), clearGenQueryInp(), clearModDataObjMetaInp(), clearRegReplicaInp(), clearUnregDataObj(), createEmptyRepl(), createPhyBundleDataObj(), dataObjChksumAndReg(), dataObjChksumAndRegInfo(), dataObjCopy(), dataObjOpenForRepl(), dataObjTruncateS(), dataObjUnlinkS(), dirPathReg(), filePathReg(), filePathRegRepl(), freeDataObjInfo(), getchkPathPerm(), getNumThreads(), getRescForCreate(), getVaultPathPolicy(), irsDataObjClose(), l3CreateByObjInfo(), l3FileGetSingleBuf(), l3FilePutSingleBuf(), modDataObjSizeMeta(), msiCollCreate(), msiCollRsync(), msiDataObjChksum(), msiDataObjCopy(), msiDataObjCreate(), msiDataObjPhymv(), msiDataObjRepl(), msiDataObjRsync(), msiDataObjTrim(), msiExecCmd(), msiExtractTemplateMDFromBuf(), msiGetSessionVarValue(), msiPhyPathReg(), msiRmColl(), postProcBulkPut(), preProcParaGet(), preProcParaPut(), rcDataObjRsync(), rcExecMyRule(), regPhySubFile(), regSubfile(), regUnbunPhySubfiles(), reIterable_genQuery_next(), repl_object(), replDataObjForBundle(), resolveDataObjReplStatus(), rsDataCopy(), rsDataGet(), rsDataObjCopy(), rsDataObjPhymv(), rsDataObjUnlink(), rsDataPut(), rsMkCollR(), rsMvCollToTrash(), rsReplAndRequeDataObjInfo(), rsRmColl(), rsRsyncDataToData(), sendAndProcApiReply(), setStateForResume(), stageBundledData(), svrRegDataObj(), syncDataObjPhyPathS(), test_source_replica_for_write_permissions(), trimDataObjInfo(), unbunPhyBunFile(), irods::data_object::~data_object(), irods::file_object::~file_object(), and irods::experimental::lifetime_manager< T >::~lifetime_manager().

◆ clearModAccessControlInp()

void clearModAccessControlInp ( void *  )

◆ clearModAVUMetadataInp()

◆ clearModDataObjMetaInp()

void clearModDataObjMetaInp ( void *  )

Definition at line 1403 of file rcMisc.cpp.

References clearKeyVal(), modDataObjMeta_t::dataObjInfo, freeDataObjInfo(), NULL, and modDataObjMeta_t::regParam.

Referenced by plugin_factory().

Here is the call graph for this function:

◆ clearRegReplicaInp()

void clearRegReplicaInp ( void *  voidInp)

Definition at line 1441 of file rcMisc.cpp.

References clearKeyVal(), regReplica_t::condInput, regReplica_t::destDataObjInfo, freeDataObjInfo(), NULL, and regReplica_t::srcDataObjInfo.

Here is the call graph for this function:

◆ clearSendXmsgInfo()

◆ clearUnregDataObj()

void clearUnregDataObj ( void *  )

Definition at line 1422 of file rcMisc.cpp.

References clearKeyVal(), unregDataObj_t::condInput, unregDataObj_t::dataObjInfo, freeDataObjInfo(), and NULL.

Here is the call graph for this function:

◆ convertDateFormat()

int convertDateFormat ( char *  s,
char *  currTime 
)

Definition at line 2091 of file rcMisc.cpp.

References checkDateFormat(), isInteger(), NULL, and rstrcpy().

Referenced by getNextRepeatTime().

Here is the call graph for this function:

◆ convertListToMultiString()

int convertListToMultiString ( char *  strInput,
int  input 
)

Definition at line 4186 of file rcMisc.cpp.

References pid_age::p.

◆ copyKeyVal()

int copyKeyVal ( const keyValPair_t srcCondInput,
keyValPair_t destCondInput 
)

Definition at line 751 of file rcMisc.cpp.

References addKeyVal(), KeyValPair::keyWord, KeyValPair::len, and KeyValPair::value.

Referenced by _l3Open(), _rsDataObjGet(), _rsDataObjOpenWithObjInfo(), l3CreateByObjInfo(), l3FileGetSingleBuf(), l3FilePutSingleBuf(), repl_object(), irods::create_write_replicator::replicate(), rsStructFileBundle(), and test_source_replica_for_write_permissions().

Here is the call graph for this function:

◆ dequeDataObjInfo()

int dequeDataObjInfo ( dataObjInfo_t **  dataObjInfoHead,
dataObjInfo_t dataObjInfo 
)

Definition at line 635 of file rcMisc.cpp.

References DataObjInfo::next, and NULL.

Referenced by procDataObjOpenForWrite(), and resolveSingleReplCopy().

◆ direntToRodsDirent()

int direntToRodsDirent ( rodsDirent_t rodsDirent,
struct dirent *  fileDirent 
)

◆ fillAttriArrayOfBulkOprInp()

int fillAttriArrayOfBulkOprInp ( char *  objPath,
int  dataMode,
char *  inpChksum,
int  offset,
bulkOprInp_t bulkOprInp 
)

Definition at line 3763 of file rcMisc.cpp.

References bulkOprInp_t::attriArray, COL_D_DATA_CHECKSUM, getSqlResultByInx(), LOG_ERROR, MAX_NAME_LEN, MAX_NUM_BULK_OPR_FILES, NAME_LEN, NULL, rodsLog(), GenQueryOut::rowCnt, rstrcpy(), GenQueryOut::sqlResult, SYS_BULK_REG_COUNT_EXCEEDED, UNMATCHED_KEY_OR_INDEX, USER__NULL_INPUT_ERR, and SqlResult::value.

Referenced by bulkPutFileUtil().

Here is the call graph for this function:

◆ fillGenQueryInpFromStrCond()

int fillGenQueryInpFromStrCond ( char *  str,
genQueryInp_t genQueryInp 
)

Definition at line 2921 of file rcMisc.cpp.

References addInxIval(), addInxVal(), getAttrIdFromAttrName(), getCondFromString(), getSelVal(), INPUT_ARG_NOT_WELL_FORMED_ERR, NULL, pid_age::p, GenQueryInp::selectInp, separateSelFuncFromAttr(), GenQueryInp::sqlCondInp, trimWS(), and irods.six::u().

Referenced by irods::query< connection_type >::gen_query_impl::gen_query_impl(), msiExecStrCondQuery(), and msiMakeGenQuery().

Here is the call graph for this function:

◆ freeAllDataObjInfo()

◆ freeBBuf()

◆ freeDataObjInfo()

int freeDataObjInfo ( dataObjInfo_t dataObjInfo)

◆ freeGenQueryInp()

int freeGenQueryInp ( genQueryInp_t **  genQueryInp)

Definition at line 1101 of file rcMisc.cpp.

References clearGenQueryInp(), and NULL.

Referenced by msiMakeGenQuery(), reIterable_genQuery_finalize(), smsi_query(), and irods::experimental::lifetime_manager< T >::~lifetime_manager().

Here is the call graph for this function:

◆ freeGenQueryOut()

int freeGenQueryOut ( genQueryOut_t **  genQueryOut)

Definition at line 1133 of file rcMisc.cpp.

References clearGenQueryOut(), and NULL.

Referenced by _check_rebalance_timestamp_avu_on_resource(), _rsBulkDataObjReg(), _rsGetRescQuota(), _rsProcStatAll(), _rsRuleExecDel(), bulkRegSubfile(), bulkRegUnbunSubfiles(), checkCollAccessPerm(), checkDupReplica(), checkIsMount(), checkPermissionByObjType(), checkPermitForCollection(), checkPermitForDataObject(), checkPermitForResource(), chkObjConsistency(), chkObjExist(), chkOrphanFile(), collStat(), dataObjStat(), genCollResInColl(), genDataResInColl(), get_load_lists(), get_query_array(), irods::server_control_executor::get_resource_host_names(), getDataObjInfo(), getListOfResc(), getNextCollMetaInfo(), getNextDataObjMetaInfo(), getNumSubfilesInBunfileObj(), getPhyPath(), getSpecCollCache(), getTokenId(), getUserId(), getZoneType(), irods::resource_manager::init_from_catalog(), initZone(), isColl(), isData(), isResc(), isUser(), lsSubfilesInBundle(), msiCheckHostAccessControl(), msiCloseGenQuery(), msiDigestMonStat(), msiExecGenQuery(), msiGetMoreRows(), msiSetDataTypeFromExt(), printCollAcl(), printCollInheritance(), printDataAcl(), readDVMapStructFromDB(), readFNMapStructFromDB(), readICatUserInfo(), readMsrvcStructFromDB(), readRuleSetFromDB(), readRuleStructFromDB(), irods::query< connection_type >::gen_query_impl::reset_for_page_boundary(), irods::query< connection_type >::spec_query_impl::reset_for_page_boundary(), rodsMonPerfLog(), rsMvCollToTrash(), rsQuerySpecColl(), scanObjCol(), smsi_query(), syncCollPhyPath(), irods::query< connection_type >::gen_query_impl::~gen_query_impl(), irods::GenQueryOutPtrWrapper::~GenQueryOutPtrWrapper(), irods::experimental::lifetime_manager< T >::~lifetime_manager(), and irods::query< connection_type >::spec_query_impl::~spec_query_impl().

Here is the call graph for this function:

◆ freeRError()

int freeRError ( rError_t myError)

Definition at line 170 of file rcMisc.cpp.

References freeRErrorContent(), and NULL.

Referenced by chksumDataObjUtil(), cleanRcComm(), procApiRequest(), and irods::experimental::lifetime_manager< T >::~lifetime_manager().

Here is the call graph for this function:

◆ freeRErrorContent()

◆ freeRodsObjStat()

◆ get_canonical_name()

int get_canonical_name ( const char *  _hostname,
char *  _buf,
size_t  _len 
)

Definition at line 4580 of file rcMisc.cpp.

References getaddrinfo_with_retry().

Referenced by createSrvPortal(), and queAddr().

Here is the call graph for this function:

◆ getaddrinfo_with_retry()

int getaddrinfo_with_retry ( const char *  _node,
const char *  _service,
const struct addrinfo *  _hints,
struct addrinfo **  _res 
)

Definition at line 4537 of file rcMisc.cpp.

References LOG_DEBUG, LOG_ERROR, resolve_hostname_from_hosts_config(), rodsLog(), stringify_addrinfo_hints(), and USER_RODS_HOSTNAME_ERR.

Referenced by convert_hostname_to_dotted_decimal_ipv4_and_store_in_buffer(), get_canonical_name(), hostname_resolves_to_ipv4(), and load_in_addr_from_hostname().

Here is the call graph for this function:

◆ getAttrIdFromAttrName()

◆ getAttriInAttriArray()

int getAttriInAttriArray ( const char *  objPath,
genQueryOut_t attriArray,
int outDataMode,
char **  outChksum 
)

Definition at line 3810 of file rcMisc.cpp.

References COL_D_DATA_CHECKSUM, COL_DATA_MODE, COL_DATA_NAME, GenQueryOut::continueInx, getSqlResultByInx(), SqlResult::len, LOG_NOTICE, NULL, rodsLog(), GenQueryOut::rowCnt, UNMATCHED_KEY_OR_INDEX, USER__NULL_INPUT_ERR, and SqlResult::value.

Referenced by bulkProcAndRegSubfile().

Here is the call graph for this function:

◆ getAttrNameFromAttrId()

char* getAttrNameFromAttrId ( int  cid)

Definition at line 2826 of file rcMisc.cpp.

◆ getDataObjInfoCnt()

int getDataObjInfoCnt ( dataObjInfo_t dataObjInfoHead)

Definition at line 661 of file rcMisc.cpp.

References DataObjInfo::next, and NULL.

Referenced by resolveInfoForTrim().

◆ getErrno()

◆ getFileSize()

rodsLong_t getFileSize ( char *  path)

Definition at line 74 of file rcMisc.cpp.

References irods::experimental::administration::client::v1::exists(), and pid_age::p.

Referenced by printTiming(), and rcDataObjPut().

Here is the call graph for this function:

◆ getIrodsErrno()

int getIrodsErrno ( int  irodError)

Definition at line 3272 of file rcMisc.cpp.

Referenced by _rcConnect(), _rsDataObjUnlink(), isReadMsgError(), scanObjCol(), and statPhysFile().

◆ getIvalByInx()

int getIvalByInx ( inxIvalPair_t inxIvalPair,
int  inx,
int outValue 
)

◆ getLine()

int getLine ( FILE *  fp,
char *  buf,
int  bufsz 
)

Definition at line 484 of file rcMisc.cpp.

References buf, LOG_ERROR, and rodsLog().

Here is the call graph for this function:

◆ getLineInBuf()

int getLineInBuf ( char **  inbuf,
char *  outbuf,
int  bufLen 
)

Definition at line 2642 of file rcMisc.cpp.

Referenced by openRestartFile().

◆ getLocalTimeFromRodsTime()

int getLocalTimeFromRodsTime ( const char *  timeStrIn,
char *  timeStrOut 
)

Definition at line 1602 of file rcMisc.cpp.

References getLocalTimeStr().

Referenced by msiGetIcatTime(), msiGetSystemTime(), and printDataCollEntLong().

Here is the call graph for this function:

◆ getLocalTimeStr()

int getLocalTimeStr ( struct tm *  mytm,
char *  timeStr 
)

Definition at line 1630 of file rcMisc.cpp.

References TIME_LEN.

Referenced by getLocalTimeFromRodsTime(), and iCommandProgStat().

◆ getMountedSubPhyPath()

int getMountedSubPhyPath ( char *  logMountPoint,
char *  phyMountPoint,
char *  logSubPath,
char *  phySubPathOut 
)

Definition at line 3078 of file rcMisc.cpp.

References LOG_ERROR, MAX_NAME_LEN, rodsLog(), and SYS_INTERNAL_NULL_INPUT_ERR.

Referenced by createBunDirForBulkPut(), resolveLinkedPath(), and specCollSubStat().

Here is the call graph for this function:

◆ getNextEleInStr()

int getNextEleInStr ( char **  inbuf,
char *  outbuf,
int inbufLen,
int  maxOutLen 
)

Definition at line 433 of file rcMisc.cpp.

References False, LOG_ERROR, rodsLog(), and True.

Here is the call graph for this function:

◆ getNextRepeatTime()

int getNextRepeatTime ( char *  currTime,
char *  delayStr,
char *  nextTime 
)

Definition at line 1768 of file rcMisc.cpp.

References convertDateFormat(), NULL, and irods.six::u().

Here is the call graph for this function:

◆ getNowStr()

◆ getNumFilesInDir()

int getNumFilesInDir ( const char *  mydir)

Definition at line 2183 of file miscUtil.cpp.

References irods::experimental::administration::client::v1::exists(), LOG_ERROR, MAX_NAME_LEN, pid_age::p, rodsLogError(), irods.pypyodbc::status, and USER_INPUT_PATH_ERR.

Referenced by localProcStat().

Here is the call graph for this function:

◆ getOffsetTimeStr()

void getOffsetTimeStr ( char *  timeStr,
const char *  offSet 
)

Definition at line 1659 of file rcMisc.cpp.

References NULL, and TIME_LEN.

Referenced by fillSubmitConditions(), and msiSysMetaModify().

◆ getPathStMode()

int getPathStMode ( const char *  p)

Definition at line 4354 of file rcMisc.cpp.

References pid_age::p.

Referenced by _bulkRegUnbunSubfiles(), putDirUtil(), and rsyncDirToCollUtil().

◆ getPhyBunPath()

int getPhyBunPath ( const char *  collection,
const char *  objPath,
const char *  phyBunDir,
char *  outPhyBunPath 
)

Definition at line 3996 of file rcMisc.cpp.

References LOG_ERROR, MAX_NAME_LEN, rodsLogError(), and USER_INPUT_PATH_ERR.

Here is the call graph for this function:

◆ getRandomArray()

int getRandomArray ( int **  randomArray,
int  size 
)

Definition at line 4062 of file rcMisc.cpp.

References NULL, and size.

◆ getSelVal()

int getSelVal ( char *  c)

◆ getSpecCollOpr()

structFileOprType_t getSpecCollOpr ( keyValPair_t condInput,
specColl_t specColl 
)

Definition at line 3278 of file rcMisc.cpp.

References SpecColl::collClass, getValByKey(), NON_STRUCT_FILE_SPEC_COLL_OPR, NORMAL_OPR_ON_STRUCT_FILE_COLL, NOT_SPEC_COLL_OPR, NULL, STRUCT_FILE_COLL, STRUCT_FILE_OPR_KW, and STRUCT_FILE_SPEC_COLL_OPR.

Here is the call graph for this function:

◆ getSpecCollTypeStr()

int getSpecCollTypeStr ( specColl_t specColl,
char *  outStr 
)

Definition at line 3099 of file rcMisc.cpp.

References SpecColl::collClass, LINK_POINT_STR, LINKED_COLL, LOG_ERROR, MOUNT_POINT_STR, MOUNTED_COLL, NAME_LEN, NO_SPEC_COLL, NumStructFileType, rodsLog(), rstrcpy(), SYS_UNMATCHED_SPEC_COLL_TYPE, SpecColl::type, and StructFileTypeDef::type.

Referenced by printCollCollEnt(), printCollOrDir(), printDataCollEntLong(), and rsyncCollToCollUtil().

Here is the call graph for this function:

◆ getSqlResultByInx()

◆ getStrInBuf()

int getStrInBuf ( char **  inbuf,
char *  outbuf,
int inbufLen,
int  outbufLen 
)

Definition at line 393 of file rcMisc.cpp.

References LOG_ERROR, and rodsLog().

Here is the call graph for this function:

◆ getUnixGroupname()

int getUnixGroupname ( int  gid,
char *  groupname,
int  groupname_len 
)

Definition at line 1333 of file rcMisc.cpp.

References LOG_ERROR, NULL, rodsLog(), SYS_GROUP_RETRIEVE_ERR, USER__NULL_INPUT_ERR, and USER_STRLEN_TOOLONG.

Here is the call graph for this function:

◆ getUnixUid()

int getUnixUid ( char *  userName)

Definition at line 1270 of file rcMisc.cpp.

References int(), and NULL.

Referenced by _rsChkNVPathPerm().

Here is the call graph for this function:

◆ getUnixUsername()

int getUnixUsername ( int  uid,
char *  username,
int  username_len 
)

Definition at line 1296 of file rcMisc.cpp.

References LOG_ERROR, NULL, rodsLog(), SYS_USER_RETRIEVE_ERR, USER__NULL_INPUT_ERR, and USER_STRLEN_TOOLONG.

Here is the call graph for this function:

◆ getValByInx()

char* getValByInx ( inxValPair_t inxValPair,
int  inx 
)

◆ getValByKey()

char* getValByKey ( const keyValPair_t condInput,
const char *  keyWord 
)

Definition at line 675 of file rcMisc.cpp.

References KeyValPair::keyWord, KeyValPair::len, NULL, and KeyValPair::value.

Referenced by _call_file_modified_for_modification(), _call_file_modified_for_replica(), _dataObjChksum(), _modDataObjSize(), _rsDataObjChksum(), _rsDataObjClose(), _rsDataObjCreateWithResc(), _rsDataObjGet(), _rsDataObjOpen(), _rsDataObjOpenWithObjInfo(), _rsDataObjPut(), _rsDataObjRename(), _rsDataObjRepl(), _rsDataObjReplNewCopy(), _rsDataObjReplS(), _rsDataObjReplUpdate(), _rsDataObjUnlink(), _rsDataObjUnlock(), _rsExecCmd(), _rsFileSyncToArch(), _rsGenQuery(), _rsModColl(), _rsModDataObjMeta(), _rsObjStat(), _rsPhyBundleColl(), _rsPhyPathReg(), _rsPhyRmColl(), _rsProcStat(), _rsQuerySpecColl(), _rsRegColl(), _rsRegReplica(), _rsRmColl(), _rsRmCollRecur(), _rsStructFileBundle(), _rsStructFileExtract(), _rsStructFileSync(), _rsUnbunAndRegPhyBunfile(), applyACLFromKVP(), applyMetadataFromKVP(), bulkPutFileUtil(), checkCondInputAccess(), chkCollForBundleOpr(), createBunDirForBulkPut(), createEmptyRepl(), dataObjChksumAndRegInfo(), dataObjCopy(), dataObjOpenForRepl(), dataObjUnlinkS(), db_mod_data_obj_meta_op(), db_mod_rule_exec_op(), db_reg_replica_op(), db_unreg_replica_op(), irods::determine_force_write_to_new_resource(), dirPathReg(), irods::file_object_factory(), filePathReg(), filePathRegRepl(), fillL1desc(), get_selected_hierarchy(), getchkPathPerm(), getCopiesFromCond(), getDataObjInfo(), getDataObjInfoIncSpecColl(), getFilePathName(), getLockCmdAndType(), getNumThreads(), getSpecCollOpr(), getZoneHintForGenQuery(), initAttriArrayOfBulkOprInp(), initDataObjInfoQuery(), initDataObjInfoWithInp(), initDataOprInp(), irsPhyPathReg(), l3DataCopySingleBuf(), linkCollReg(), matchDataObjInfoByCondInput(), mountFileDir(), msiCollRsync(), msiDataObjRsync(), msiGetValByKey(), msiSetNoDirectRescInp(), msiStageDataObj(), openSpecColl(), parseMspForDataObjCopyInp(), parseMspForDataObjInp(), procDataObjOpenForWrite(), queryDataObjInColl(), rbudpRemLocCopy(), rcDataObjGet(), rcDataObjPut(), rcDataObjRsync(), rcExecMyRule(), remLocCopy(), remoteExecCmd(), repl_file_modified(), repl_object(), requeDataObjInfoByDestResc(), irods::resolve_resource_hierarchy(), irods::resolve_resource_name(), resolveDataObjReplStatus(), resolveDupFilePath(), resolveInfoForTrim(), resolveLinkedPath(), resolveSingleReplCopy(), rsBulkDataObjPut(), rsCollCreate(), rsDataCopy(), rsDataGet(), rsDataObjChksum(), rsDataObjCreate(), rsDataObjGet(), rsDataObjOpen(), rsDataObjPhymv(), rsDataObjPut(), rsDataObjRepl(), rsDataObjRsync(), rsDataObjTrim(), rsDataObjUnlink(), rsDataObjWrite(), rsDataPut(), rsExecCmd(), rsExecMyRule(), rsGenQuery(), rsGetHostForGet(), rsGetHostForPut(), rsGetRemoteZoneResc(), rsModDataObjMeta(), rsMvDataObjToTrash(), rsPhyBundleColl(), rsPhyPathReg(), rsQuerySpecColl(), rsRegReplica(), rsRmColl(), rsRsyncDataToData(), rsRsyncDataToFile(), rsRsyncFileToData(), rsRuleExecSubmit(), rsSpecificQuery(), rsStructFileBundle(), rsStructFileExtAndReg(), rsStructFileExtract(), rsStructFileSync(), rsUnbunAndRegPhyBunfile(), rsyncDataToFileUtil(), rsyncFileToDataUtil(), sameHostCopy(), irods::set_default_resource(), setForceFlagForRestart(), setStateForResume(), setupSrvPortalForParaOpr(), singleL1Copy(), singleLocToRemCopy(), singleRemToLocCopy(), sortObjInfoForOpen(), specCollSubCreate(), structFileReg(), svrPortalPutGet(), svrPortalPutGetRbudp(), svrUnregColl(), unix_file_create(), unix_file_open(), unix_file_resolve_hierarchy(), and irods::reg_repl::verify_and_update_replica().

◆ getZoneNameFromHint()

int getZoneNameFromHint ( const char *  rcatZoneHint,
char *  zoneName,
int  len 
)

Definition at line 514 of file rcMisc.cpp.

References irods::get_virtual_path_separator().

Referenced by getZoneInfo(), and isSameZone().

Here is the call graph for this function:

◆ hasSymlinkInDir()

int hasSymlinkInDir ( const char *  mydir)

Definition at line 4368 of file rcMisc.cpp.

References LOG_ERROR, MAX_NAME_LEN, NULL, rodsLog(), and irods.pypyodbc::status.

Referenced by stage_tar_struct_file(), and tar_file_extract().

Here is the call graph for this function:

◆ hasSymlinkInPartialPath()

int hasSymlinkInPartialPath ( const char *  myPath,
int  pos 
)

Definition at line 4416 of file rcMisc.cpp.

References LOG_ERROR, NULL, rodsLog(), and irods.pypyodbc::status.

Referenced by hasSymlinkInPath().

Here is the call graph for this function:

◆ hasSymlinkInPath()

int hasSymlinkInPath ( const char *  myPath)

Definition at line 4454 of file rcMisc.cpp.

References hasSymlinkInPartialPath(), MAX_NAME_LEN, rstrcpy(), and irods.pypyodbc::status.

Here is the call graph for this function:

◆ initAttriArrayOfBulkOprInp()

int initAttriArrayOfBulkOprInp ( bulkOprInp_t bulkOprInp)

Definition at line 3716 of file rcMisc.cpp.

References bulkOprInp_t::attriArray, GenQueryOut::attriCnt, SqlResult::attriInx, COL_D_DATA_CHECKSUM, COL_DATA_MODE, COL_DATA_NAME, bulkOprInp_t::condInput, GenQueryOut::continueInx, getValByKey(), SqlResult::len, MAX_NAME_LEN, MAX_NUM_BULK_OPR_FILES, NAME_LEN, NULL, OFFSET_INX, REG_CHKSUM_KW, GenQueryOut::sqlResult, USER__NULL_INPUT_ERR, SqlResult::value, and VERIFY_CHKSUM_KW.

Referenced by initCondForPut().

Here is the call graph for this function:

◆ initBulkDataObjRegInp()

◆ initBulkDataObjRegOut()

◆ isBundlePath()

int isBundlePath ( char *  myPath)

Definition at line 2368 of file rcMisc.cpp.

References False, NULL, and True.

Referenced by _rsPhyRmColl().

◆ isHomeColl()

int isHomeColl ( char *  myPath)

Definition at line 2508 of file rcMisc.cpp.

References NULL.

Referenced by _rsPhyRmColl().

◆ isInteger()

int isInteger ( const char *  inStr)

Definition at line 2070 of file rcMisc.cpp.

Referenced by checkDateFormat(), and convertDateFormat().

◆ isOrphanPath()

orphanPathType_t isOrphanPath ( char *  myPath)

Definition at line 2473 of file rcMisc.cpp.

References is_ORPHAN_HOME, IS_ORPHAN_PATH, NOT_ORPHAN_PATH, and NULL.

Referenced by _rsPhyRmColl(), and dataObjUnlinkS().

◆ isPath()

int isPath ( char *  path)

Definition at line 60 of file rcMisc.cpp.

References irods::experimental::administration::client::v1::exists(), and pid_age::p.

Here is the call graph for this function:

◆ isPathSymlink()

int isPathSymlink ( rodsArguments_t rodsArgs,
const char *  path 
)

Definition at line 4115 of file rcMisc.cpp.

References isPathSymlink_err(), and irods.pypyodbc::status.

Here is the call graph for this function:

◆ isPathSymlink_err()

int isPathSymlink_err ( rodsArguments_t rodsArgs,
const char *  path 
)

Definition at line 4085 of file rcMisc.cpp.

References irods::exception::client_display_what(), irods::exception::code(), irods::is_path_valid_for_recursion(), LOG_ERROR, and rodsLog().

Referenced by isPathSymlink().

Here is the call graph for this function:

◆ isTrashHome()

int isTrashHome ( char *  myPath)

Definition at line 2427 of file rcMisc.cpp.

References NULL.

Referenced by _rsPhyRmColl().

◆ isTrashPath()

int isTrashPath ( char *  myPath)

Definition at line 2395 of file rcMisc.cpp.

References False, NULL, and True.

Referenced by _rsPhyRmColl(), chkAndHandleOrphanFile(), rsDataObjUnlink(), rsMkCollR(), and rsRmColl().

◆ keyValFromString()

int keyValFromString ( char *  string,
keyValPair_t **  list 
)

Parse a property string into a list of keyword-value pairs. The property string is assumed to be well-formed.

Parameters
stringa property string
lista keyword-value pair list
Returns
a status code, 0 on success

Definition at line 3370 of file rcMisc.cpp.

References addKeyVal(), NULL, UNMATCHED_KEY_OR_INDEX, and get_irods_version::value.

Here is the call graph for this function:

◆ keyValToString()

int keyValToString ( keyValPair_t list,
char **  string 
)

Output a list of keyword-value pairs as a property string.

Parameters
lista keyword-value pair list
stringa property string
Returns
a status code, 0 on success

Definition at line 3304 of file rcMisc.cpp.

References LOG_ERROR, NULL, rodsLog(), and SYS_INTERNAL_NULL_INPUT_ERR.

Here is the call graph for this function:

◆ load_in_addr_from_hostname()

int load_in_addr_from_hostname ( const char *  _hostname,
struct in_addr *  _out 
)

Definition at line 4594 of file rcMisc.cpp.

References getaddrinfo_with_retry().

Referenced by cliReconnManager(), and setSockAddr().

Here is the call graph for this function:

◆ localToUnixTime()

int localToUnixTime ( char *  localTime,
char *  unixTime 
)

Definition at line 2035 of file rcMisc.cpp.

References NULL, rstrcpy(), and TIME_LEN.

Referenced by checkDateFormat(), and msiHumanToSystemTime().

Here is the call graph for this function:

◆ makeCachedStructFileStr()

int makeCachedStructFileStr ( char *  collInfo2,
specColl_t specColl 
)

Definition at line 3242 of file rcMisc.cpp.

References SpecColl::cacheDir, SpecColl::cacheDirty, LOG_ERROR, MAX_NAME_LEN, NULL, SpecColl::rescHier, SpecColl::resource, rodsLog(), and SYS_INTERNAL_NULL_INPUT_ERR.

Referenced by modCollInfo2().

Here is the call graph for this function:

◆ moveKeyVal()

int moveKeyVal ( keyValPair_t destKeyVal,
keyValPair_t srcKeyVal 
)

Definition at line 1259 of file rcMisc.cpp.

References NULL.

◆ myHtonll()

int myHtonll ( rodsLong_t  inlonglong,
rodsLong_t outlonglong 
)

Definition at line 232 of file rcMisc.cpp.

References NULL, and SYS_INTERNAL_NULL_INPUT_ERR.

Referenced by sendTranHeader().

◆ myNtohll()

int myNtohll ( rodsLong_t  inlonglong,
rodsLong_t outlonglong 
)

Definition at line 256 of file rcMisc.cpp.

References NULL, and SYS_INTERNAL_NULL_INPUT_ERR.

Referenced by rcvTranHeader().

◆ myRead()

◆ mySetenvInt()

int mySetenvInt ( char *  envname,
int  envval 
)

Definition at line 4036 of file rcMisc.cpp.

References NAME_LEN, NULL, irods.pypyodbc::status, and USER__NULL_INPUT_ERR.

◆ mySetenvStr()

int mySetenvStr ( const char *  envname,
const char *  envval 
)

Definition at line 4011 of file rcMisc.cpp.

References NULL, irods.pypyodbc::status, and USER__NULL_INPUT_ERR.

Referenced by parseCmdLineOpt().

◆ myWrite()

◆ openRestartFile()

int openRestartFile ( char *  restartFile,
rodsRestart_t rodsRestart 
)

◆ parseCachedStructFileStr()

int parseCachedStructFileStr ( char *  collInfo2,
specColl_t specColl 
)

Definition at line 3184 of file rcMisc.cpp.

References SpecColl::cacheDir, SpecColl::cacheDirty, irods::hierarchy_parser::first_resc(), int(), LOG_ERROR, LOG_NOTICE, NULL, SpecColl::rescHier, SpecColl::resource, rodsLog(), irods::hierarchy_parser::set_string(), SYS_COLLINFO_2_FORMAT_ERR, and SYS_INTERNAL_NULL_INPUT_ERR.

Referenced by resolveSpecCollType().

Here is the call graph for this function:

◆ parseHostAddrStr()

int parseHostAddrStr ( char *  hostAddr,
rodsHostAddr_t addr 
)

Definition at line 3552 of file rcMisc.cpp.

References irods.pypyodbc::buffer, rodsHostAddr_t::hostAddr, LONG_NAME_LEN, NULL, rodsHostAddr_t::portNum, rstrcpy(), SHORT_STR_LEN, splitPathByKey(), and SYS_INTERNAL_NULL_INPUT_ERR.

Referenced by initZone(), remoteExec(), and smsi_remoteExec().

Here is the call graph for this function:

◆ parseMultiStr()

int parseMultiStr ( char *  strInput,
strArray_t strArray 
)

Definition at line 1539 of file rcMisc.cpp.

References addStrArray(), StrArray::len, NULL, and SYS_INTERNAL_NULL_INPUT_ERR.

Referenced by msiSetDataObjPreferredResc(), msiSetNoDirectRescInp(), msiSetPublicUserOpr(), msiString2KeyValPair(), msiString2StrArray(), and trimMsParamArray().

Here is the call graph for this function:

◆ parseUserName()

int parseUserName ( const char *  fullUserNameIn,
char *  userName,
char *  userZone 
)

◆ printError()

int printError ( rcComm_t Conn,
int  status,
char *  routineName 
)

Definition at line 74 of file clientLogin.cpp.

References rError_t::errMsg, rError_t::len, rErrMsg_t::msg, NULL, rcComm_t::rError, rodsErrorName(), and irods.pypyodbc::status.

Referenced by clientLogin(), clientLoginPam(), clientLoginTTL(), and clientLoginWithPassword().

Here is the call graph for this function:

◆ printErrorStack()

int printErrorStack ( rError_t rError)

◆ printGenQueryOut()

int printGenQueryOut ( FILE *  fd,
char *  format,
char *  hint,
genQueryOut_t genQueryOut 
)

Definition at line 3001 of file rcMisc.cpp.

References GenQueryOut::attriCnt, getAttrNameFromAttrId(), SqlResult::len, MAX_SQL_ATTR, NO_COLUMN_NAME_FOUND, NULL, GenQueryOut::rowCnt, GenQueryOut::sqlResult, SqlResult::value, and get_irods_version::value.

Referenced by msiPrintGenQueryOutToBuffer().

Here is the call graph for this function:

◆ printReleaseInfo()

void printReleaseInfo ( char *  cmdName)

Definition at line 3575 of file rcMisc.cpp.

◆ procAndWriteRestartFile()

int procAndWriteRestartFile ( rodsRestart_t rodsRestart,
char *  donePath 
)

Definition at line 2700 of file rcMisc.cpp.

References rodsRestart_t::curCnt, rodsRestart_t::fd, irods.pypyodbc::status, and writeRestartFile().

Referenced by cpCollUtil(), getCollUtil(), and replCollUtil().

Here is the call graph for this function:

◆ queDataObjInfo()

◆ readToByteBuf()

int readToByteBuf ( int  fd,
bytesBuf_t bytesBuf 
)

Definition at line 3892 of file rcMisc.cpp.

References BytesBuf::buf, EXEC_CMD_OUTPUT_TOO_LARGE, INIT_SZ_FOR_EXECMD_BUF, BytesBuf::len, MAX_SZ_FOR_EXECMD_BUF, myRead(), NULL, and SYS_REQUESTED_BUF_TOO_LARGE.

Referenced by _rsExecCmd().

Here is the call graph for this function:

◆ replDataObjInp()

int replDataObjInp ( dataObjInp_t srcDataObjInp,
dataObjInp_t destDataObjInp 
)

Definition at line 765 of file rcMisc.cpp.

References DataObjInp::condInput, KeyValPair::keyWord, KeyValPair::len, NULL, replKeyVal(), replSpecColl(), DataObjInp::specColl, and KeyValPair::value.

Referenced by _rsDataObjPut(), allocAndSetL1descForZoneOpr(), fillL1desc(), and rsRsyncDataToData().

Here is the call graph for this function:

◆ replErrorStack()

int replErrorStack ( rError_t srcRError,
rError_t destRError 
)

Definition at line 152 of file rcMisc.cpp.

References addRErrorMsg(), rError_t::errMsg, rError_t::len, rErrMsg_t::msg, NULL, rErrMsg_t::status, and USER__NULL_INPUT_ERR.

Referenced by execMicroService3(), rsGeneralAdmin(), and rsSetRoundRobinContext().

Here is the call graph for this function:

◆ replKeyVal()

int replKeyVal ( const keyValPair_t srcCondInput,
keyValPair_t destCondInput 
)

◆ replSpecColl()

int replSpecColl ( specColl_t inSpecColl,
specColl_t **  outSpecColl 
)

◆ resizeStrArray()

int resizeStrArray ( strArray_t strArray,
int  newSize 
)

Definition at line 1017 of file rcMisc.cpp.

References StrArray::len, NULL, PTR_ARRAY_MALLOC_LEN, rstrcpy(), StrArray::size, and StrArray::value.

Here is the call graph for this function:

◆ resolveSpecCollType()

int resolveSpecCollType ( char *  type,
char *  collection,
char *  collInfo1,
char *  collInfo2,
specColl_t specColl 
)

◆ resolveStatForStructFileOpr()

void resolveStatForStructFileOpr ( keyValPair_t condInput,
rodsObjStat_t rodsObjStatOut 
)

◆ rmKeyVal()

◆ rodsStatToStat()

◆ seedRandom()

unsigned int seedRandom ( )

Definition at line 3586 of file rcMisc.cpp.

References buf, FILE_OPEN_ERR, FILE_READ_ERR, LOG_ERROR, and rodsLog().

Referenced by initCondForRm(), and initCondForRmtrash().

Here is the call graph for this function:

◆ sendTranHeader()

int sendTranHeader ( int  sock,
int  oprType,
int  flags,
rodsLong_t  offset,
rodsLong_t  length 
)

Definition at line 36 of file rcPortalOpr.cpp.

Referenced by partialDataGet(), and partialDataPut().

◆ separateSelFuncFromAttr()

int separateSelFuncFromAttr ( char *  t,
char **  aggOp,
char **  colNm 
)

Definition at line 2772 of file rcMisc.cpp.

References NO_COLUMN_NAME_FOUND, and NULL.

Referenced by fillGenQueryInpFromStrCond().

◆ setStateForRestart()

int setStateForRestart ( rodsRestart_t rodsRestart,
rodsPath_t targPath,
rodsArguments_t rodsArgs 
)

Definition at line 2714 of file rcMisc.cpp.

References rodsRestart_t::collection, rodsRestart_t::curCnt, rodsRestart_t::doneCnt, rodsRestart_t::fd, MATCHED_RESTART_COLL, MAX_NAME_LEN, NULL, RodsPath::outPath, PATH_MATCHING, rodsRestart_t::restartState, rstrcpy(), True, and rodsArguments_t::verbose.

Referenced by cpUtil(), getUtil(), putUtil(), and replUtil().

Here is the call graph for this function:

◆ setStateForResume()

◆ showAttrNames()

int showAttrNames ( )

Definition at line 2763 of file rcMisc.cpp.

References irods.pyparsing::columnName, columnNames, and NumOfColumnNames.

◆ splitMultiStr()

int splitMultiStr ( char *  strInput,
strArray_t strArray 
)

Definition at line 4285 of file rcMisc.cpp.

References addStrArray(), StrArray::len, NULL, pid_age::p, and SYS_INTERNAL_NULL_INPUT_ERR.

Referenced by parseMsParamFromIRFile().

Here is the call graph for this function:

◆ startsWith()

int startsWith ( const char *  str,
const char *  prefix 
)

Definition at line 4182 of file rcMisc.cpp.

◆ statToRodsStat()

◆ tarToBuf()

int tarToBuf ( char *  phyBunDir,
bytesBuf_t tarBBuf 
)

◆ trimPrefix()

char* trimPrefix ( char *  str)

Definition at line 4146 of file rcMisc.cpp.

◆ trimSpaces()

char* trimSpaces ( char *  str)

Definition at line 4158 of file rcMisc.cpp.

References pid_age::p.

◆ unbunBulkBuf()

int unbunBulkBuf ( char *  phyBunDir,
bulkOprInp_t bulkOprInp,
bytesBuf_t bulkBBuf 
)

◆ untarBuf()

int untarBuf ( char *  phyBunDir,
bytesBuf_t tarBBuf 
)

◆ updateOffsetTimeStr()

void updateOffsetTimeStr ( char *  timeStr,
int  offset 
)

Definition at line 1676 of file rcMisc.cpp.

References NULL, rstrcpy(), and TIME_LEN.

Here is the call graph for this function:

◆ writeFromByteBuf()

int writeFromByteBuf ( int  fd,
bytesBuf_t bytesBuf 
)

Definition at line 3954 of file rcMisc.cpp.

References BytesBuf::buf, BytesBuf::len, myWrite(), NULL, and SYS_COPY_LEN_ERR.

Here is the call graph for this function:

◆ writeRestartFile()

int writeRestartFile ( rodsRestart_t rodsRestart,
char *  lastDonePath 
)

Definition at line 2677 of file rcMisc.cpp.

References buf, rodsRestart_t::collection, rodsRestart_t::curCnt, rodsRestart_t::doneCnt, rodsRestart_t::fd, rodsRestart_t::lastDonePath, LOG_ERROR, MAX_NAME_LEN, rodsRestart_t::oprType, rodsLog(), rstrcpy(), irods.pypyodbc::status, and SYS_COPY_LEN_ERR.

Referenced by bulkPutDirUtil(), procAndWriteRestartFile(), and putDirUtil().

Here is the call graph for this function:

Variable Documentation

◆ STDOUT_STATUS

const int STDOUT_STATUS = 1000000
static