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)  

miscUtil.h File Reference
#include "rodsPath.h"
#include "parseCommandLine.h"
#include "guiProgressCallback.h"
Include dependency graph for miscUtil.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CollSqlResult
 
struct  CollMetaInfo
 
struct  DataObjSqlResult
 
struct  DataObjMetaInfo
 
struct  QueryHandle
 
struct  collHandle_t
 
struct  CollEnt
 
struct  pathnamePatterns_t
 

Macros

#define INIT_UMASK_VAL   99999999
 
#define LONG_METADATA_FG   0x1
 
#define VERY_LONG_METADATA_FG   0x2
 
#define RECUR_QUERY_FG   0x4
 
#define DATA_QUERY_FIRST_FG   0x8
 
#define NO_TRIM_REPL_FG   0x10
 
#define INCLUDE_CONDINPUT_IN_QUERY   0x20
 

Typedefs

typedef struct CollSqlResult collSqlResult_t
 
typedef struct CollMetaInfo collMetaInfo_t
 
typedef struct DataObjSqlResult dataObjSqlResult_t
 
typedef struct DataObjMetaInfo dataObjMetaInfo_t
 
typedef struct QueryHandle queryHandle_t
 
typedef struct CollEnt collEnt_t
 

Enumerations

enum  collState_t { COLL_CLOSED, COLL_OPENED, COLL_DATA_OBJ_QUERIED, COLL_COLL_OBJ_QUERIED }
 
enum  connType_t { RC_COMM, RS_COMM }
 

Functions

int mkdirR (char *startDir, char *destDir, int mode)
 
int rmdirR (char *startDir, char *destDir)
 
int mkColl (rcComm_t *conn, char *collection)
 
int mkCollR (rcComm_t *conn, char *startColl, char *destColl)
 
int getRodsObjType (rcComm_t *conn, rodsPath_t *rodsPath)
 
int genAllInCollQCond (char *collection, char *collQCond)
 
int queryCollInColl (queryHandle_t *queryHandle, char *collection, int flags, genQueryInp_t *genQueryInp, genQueryOut_t **genQueryOut)
 
int queryDataObjInColl (queryHandle_t *queryHandle, char *collection, int flags, genQueryInp_t *genQueryInp, genQueryOut_t **genQueryOut, keyValPair_t *condInput)
 
int setQueryInpForData (int flags, genQueryInp_t *genQueryInp)
 
int printTiming (rcComm_t *conn, char *objPath, rodsLong_t fileSize, char *localFile, struct timeval *startTime, struct timeval *endTime)
 
int printTime (char *objPath, struct timeval *startTime, struct timeval *endTime)
 
int initSysTiming (char *procName, char *action, int envVarFlag)
 
int printSysTiming (char *procName, char *action, int envVarFlag)
 
int printNoSync (char *objPath, rodsLong_t fileSize, char *reason)
 
int queryDataObjAcl (rcComm_t *conn, char *dataId, char *zoneHint, genQueryOut_t **genQueryOut)
 
int queryCollAcl (rcComm_t *conn, char *collName, char *zoneHint, genQueryOut_t **genQueryOut)
 
int queryCollAclSpecific (rcComm_t *conn, char *collName, char *zoneHint, genQueryOut_t **genQueryOut)
 
int queryCollInheritance (rcComm_t *conn, char *collName, genQueryOut_t **genQueryOut)
 
int extractRodsObjType (rodsPath_t *rodsPath, sqlResult_t *dataId, sqlResult_t *replStatus, sqlResult_t *chksum, sqlResult_t *dataSize, int inx, int rowCnt)
 
int genQueryOutToCollRes (genQueryOut_t **genQueryOut, collSqlResult_t *collSqlResult)
 
int setSqlResultValue (sqlResult_t *sqlResult, int attriInx, char *valueStr, int rowCnt)
 
int clearCollSqlResult (collSqlResult_t *collSqlResult)
 
int clearDataObjSqlResult (dataObjSqlResult_t *dataObjSqlResult)
 
int genQueryOutToDataObjRes (genQueryOut_t **genQueryOut, dataObjSqlResult_t *dataObjSqlResult)
 
int rclOpenCollection (rcComm_t *conn, char *collection, int flag, collHandle_t *collHandle)
 
int rclReadCollection (rcComm_t *conn, collHandle_t *collHandle, collEnt_t *collEnt)
 
int readCollection (collHandle_t *collHandle, collEnt_t *collEnt)
 
int clearCollHandle (collHandle_t *collHandle, int freeSpecColl)
 
int rclCloseCollection (collHandle_t *collHandle)
 
int getNextCollMetaInfo (collHandle_t *collHandle, collEnt_t *outCollEnt)
 
int getNextDataObjMetaInfo (collHandle_t *collHandle, collEnt_t *outCollEnt)
 
int genCollResInColl (queryHandle_t *queryHandle, collHandle_t *collHandle)
 
int genDataResInColl (queryHandle_t *queryHandle, collHandle_t *collHandle)
 
int setQueryFlag (rodsArguments_t *rodsArgs)
 
int rclInitQueryHandle (queryHandle_t *queryHandle, rcComm_t *conn)
 
int freeCollEnt (collEnt_t *collEnt)
 
int clearCollEnt (collEnt_t *collEnt)
 
int myChmod (char *inPath, uint dataMode)
 
char * getZoneHintForGenQuery (genQueryInp_t *genQueryInp)
 
int getZoneType (rcComm_t *conn, char *icatZone, char *inZoneName, char *outZoneType)
 
int getCollSizeForProgStat (rcComm_t *conn, char *srcColl, operProgress_t *operProgress)
 
int getDirSizeForProgStat (rodsArguments_t *rodsArgs, char *srcDir, operProgress_t *operProgress)
 
guiProgressCallback iCommandProgStat (operProgress_t *operProgress)
 
int getOpenedCollLen (collHandle_t *collHandle)
 
int rmSubDir (char *mydir)
 
int rmFilesInDir (char *mydir)
 
int mkdirForFilePath (char *filePath)
 
int getFileMetaFromPath (char *srcPath, keyValPair_t *condInput)
 
int getFileMetaFromStat (rodsStat_t *statbuf, keyValPair_t *condInput)
 
pathnamePatterns_treadPathnamePatterns (char *buf, int buflen)
 
void freePathnamePatterns (pathnamePatterns_t *pp)
 
int matchPathname (pathnamePatterns_t *pp, char *name, char *dirname)
 
int get_resc_hier_from_leaf_id (queryHandle_t *_query_handle, rodsLong_t _resc_id, char *_resc_hier)
 
int resolveRodsTarget (rcComm_t *conn, rodsPathInp_t *rodsPathInp, int oprType)
 

Macro Definition Documentation

◆ DATA_QUERY_FIRST_FG

#define DATA_QUERY_FIRST_FG   0x8

Definition at line 94 of file miscUtil.h.

◆ INCLUDE_CONDINPUT_IN_QUERY

#define INCLUDE_CONDINPUT_IN_QUERY   0x20

Definition at line 96 of file miscUtil.h.

◆ INIT_UMASK_VAL

#define INIT_UMASK_VAL   99999999

Definition at line 13 of file miscUtil.h.

◆ LONG_METADATA_FG

#define LONG_METADATA_FG   0x1

Definition at line 91 of file miscUtil.h.

◆ NO_TRIM_REPL_FG

#define NO_TRIM_REPL_FG   0x10

Definition at line 95 of file miscUtil.h.

◆ RECUR_QUERY_FG

#define RECUR_QUERY_FG   0x4

Definition at line 93 of file miscUtil.h.

◆ VERY_LONG_METADATA_FG

#define VERY_LONG_METADATA_FG   0x2

Definition at line 92 of file miscUtil.h.

Typedef Documentation

◆ collEnt_t

typedef struct CollEnt collEnt_t

◆ collMetaInfo_t

typedef struct CollMetaInfo collMetaInfo_t

◆ collSqlResult_t

◆ dataObjMetaInfo_t

◆ dataObjSqlResult_t

◆ queryHandle_t

typedef struct QueryHandle queryHandle_t

Enumeration Type Documentation

◆ collState_t

Enumerator
COLL_CLOSED 
COLL_OPENED 
COLL_DATA_OBJ_QUERIED 
COLL_COLL_OBJ_QUERIED 

Definition at line 68 of file miscUtil.h.

◆ connType_t

enum connType_t
Enumerator
RC_COMM 
RS_COMM 

Definition at line 75 of file miscUtil.h.

Function Documentation

◆ clearCollEnt()

◆ clearCollHandle()

int clearCollHandle ( collHandle_t collHandle,
int  freeSpecColl 
)

◆ clearCollSqlResult()

◆ clearDataObjSqlResult()

◆ extractRodsObjType()

int extractRodsObjType ( rodsPath_t rodsPath,
sqlResult_t dataId,
sqlResult_t replStatus,
sqlResult_t chksum,
sqlResult_t dataSize,
int  inx,
int  rowCnt 
)

◆ freeCollEnt()

int freeCollEnt ( collEnt_t collEnt)

Definition at line 1759 of file miscUtil.cpp.

References clearCollEnt(), and NULL.

Referenced by _rsCollRsync(), _rsPhyBundleColl(), irods::experimental::filesystem::client::collection_iterator::operator++(), and rsCollRepl().

Here is the call graph for this function:

◆ freePathnamePatterns()

void freePathnamePatterns ( pathnamePatterns_t pp)

Definition at line 2282 of file miscUtil.cpp.

References NULL, pathnamePatterns_t::pattern_buf, and pathnamePatterns_t::patterns.

Referenced by _rsPhyPathReg().

◆ genAllInCollQCond()

int genAllInCollQCond ( char *  collection,
char *  collQCond 
)

◆ genCollResInColl()

◆ genDataResInColl()

◆ genQueryOutToCollRes()

◆ genQueryOutToDataObjRes()

◆ get_resc_hier_from_leaf_id()

int get_resc_hier_from_leaf_id ( queryHandle_t _query_handle,
rodsLong_t  _resc_id,
char *  _resc_hier 
)

Definition at line 1495 of file miscUtil.cpp.

References QueryHandle::conn, QueryHandle::getHierForId, LOG_ERROR, MAX_NAME_LEN, NULL, manual_cleanup::out, get_hier_inp_t::resc_id_, rodsLog(), rstrcpy(), irods.pypyodbc::status, SYS_INTERNAL_NULL_INPUT_ERR, and SYS_INVALID_INPUT_PARAM.

Here is the call graph for this function:

◆ getCollSizeForProgStat()

int getCollSizeForProgStat ( rcComm_t conn,
char *  srcColl,
operProgress_t operProgress 
)

Definition at line 1920 of file miscUtil.cpp.

References CAT_NO_ROWS_FOUND, COLL_OBJ_T, SpecColl::collClass, CollEnt::collName, DATA_OBJ_T, CollEnt::dataSize, LOG_ERROR, NO_SPEC_COLL, CollEnt::objType, rclOpenCollection(), rclReadCollection(), RECUR_QUERY_FG, rodsLog(), CollEnt::specColl, irods.pypyodbc::status, OperProgress::totalFileSize, and OperProgress::totalNumFiles.

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

Here is the call graph for this function:

◆ getDirSizeForProgStat()

int getDirSizeForProgStat ( rodsArguments_t rodsArgs,
char *  srcDir,
operProgress_t operProgress 
)

Definition at line 1967 of file miscUtil.cpp.

References irods::exception::client_display_what(), irods::experimental::administration::client::v1::exists(), irods::is_path_valid_for_recursion(), LOG_ERROR, MAX_NAME_LEN, pid_age::p, rodsLog(), irods.pypyodbc::status, OperProgress::totalFileSize, OperProgress::totalNumFiles, and USER_INPUT_PATH_ERR.

Referenced by putUtil().

Here is the call graph for this function:

◆ getFileMetaFromPath()

int getFileMetaFromPath ( char *  srcPath,
keyValPair_t condInput 
)

◆ getFileMetaFromStat()

int getFileMetaFromStat ( rodsStat_t statbuf,
keyValPair_t condInput 
)

◆ getNextCollMetaInfo()

◆ getNextDataObjMetaInfo()

int getNextDataObjMetaInfo ( collHandle_t collHandle,
collEnt_t outCollEnt 
)

Definition at line 1547 of file miscUtil.cpp.

References CAT_NO_ROWS_FOUND, DataObjSqlResult::chksum, CollEnt::chksum, clearDataObjSqlResult(), SpecColl::collClass, DataObjSqlResult::collName, CollEnt::collName, QueryHandle::conn, DataObjSqlResult::continueInx, GenQueryInp::continueInx, DataObjSqlResult::createTime, CollEnt::createTime, DATA_OBJ_T, DataObjSqlResult::dataId, CollEnt::dataId, DataObjSqlResult::dataMode, CollEnt::dataMode, DataObjSqlResult::dataName, CollEnt::dataName, collHandle_t::dataObjInp, collHandle_t::dataObjSqlResult, DataObjSqlResult::dataSize, CollEnt::dataSize, DataObjSqlResult::dataType, CollEnt::dataType, collHandle_t::flags, freeGenQueryOut(), QueryHandle::genQuery, collHandle_t::genQueryInp, genQueryOutToDataObjRes(), SqlResult::len, LINKED_COLL, LOG_ERROR, DataObjSqlResult::modifyTime, CollEnt::modifyTime, NAME_LEN, NEWLY_CREATED_COPY, NO_TRIM_REPL_FG, NULL, CollEnt::objType, DataObjInp::openFlags, rodsObjStat::ownerName, DataObjSqlResult::ownerName, CollEnt::ownerName, DataObjSqlResult::phyPath, CollEnt::phyPath, collHandle_t::prevdataId, collHandle_t::queryHandle, QueryHandle::querySpecColl, DataObjSqlResult::replNum, CollEnt::replNum, DataObjSqlResult::replStatus, CollEnt::replStatus, DataObjSqlResult::resc_hier, CollEnt::resc_hier, SpecColl::rescHier, DataObjSqlResult::resource, CollEnt::resource, SpecColl::resource, rodsLogError(), collHandle_t::rodsObjStat, DataObjSqlResult::rowCnt, collHandle_t::rowInx, rstrcpy(), DataObjInp::specColl, rodsObjStat::specColl, CollEnt::specColl, irods.pypyodbc::status, USER__NULL_INPUT_ERR, SqlResult::value, and get_irods_version::value.

Referenced by readCollection().

Here is the call graph for this function:

◆ getOpenedCollLen()

◆ getRodsObjType()

◆ getZoneHintForGenQuery()

char* getZoneHintForGenQuery ( genQueryInp_t genQueryInp)

Definition at line 1835 of file miscUtil.cpp.

References COL_COLL_NAME, COL_COLL_PARENT_NAME, COL_ZONE_NAME, GenQueryInp::condInput, getValByKey(), InxValPair::inx, InxValPair::len, NON_ROOT_COLL_CHECK_STR, NULL, GenQueryInp::sqlCondInp, InxValPair::value, ZONE_KW, and zoneHint.

Referenced by rsGenQuery().

Here is the call graph for this function:

◆ getZoneType()

int getZoneType ( rcComm_t conn,
char *  icatZone,
char *  inZoneName,
char *  outZoneType 
)

Definition at line 1869 of file miscUtil.cpp.

References addInxIval(), addInxVal(), addKeyVal(), COL_ZONE_NAME, COL_ZONE_TYPE, GenQueryInp::condInput, freeGenQueryOut(), getSqlResultByInx(), LOG_NOTICE, MAX_NAME_LEN, MAX_SQL_ROWS, GenQueryInp::maxRows, NULL, rcGenQuery(), rodsLog(), rstrcpy(), GenQueryInp::selectInp, GenQueryInp::sqlCondInp, irods.pypyodbc::status, UNMATCHED_KEY_OR_INDEX, USER__NULL_INPUT_ERR, SqlResult::value, and ZONE_KW.

Referenced by rmtrashUtil().

Here is the call graph for this function:

◆ iCommandProgStat()

guiProgressCallback iCommandProgStat ( operProgress_t operProgress)

◆ initSysTiming()

int initSysTiming ( char *  procName,
char *  action,
int  envVarFlag 
)

◆ matchPathname()

int matchPathname ( pathnamePatterns_t pp,
char *  name,
char *  dirname 
)

Definition at line 2297 of file miscUtil.cpp.

References LOG_DEBUG, MAX_NAME_LEN, generate_iadmin_commands_for_41_to_42_upgrade::name, NULL, pathnamePatterns_t::num_patterns, pathnamePatterns_t::patterns, and rodsLog().

Referenced by dirPathReg().

Here is the call graph for this function:

◆ mkColl()

int mkColl ( rcComm_t conn,
char *  collection 
)

Definition at line 31 of file miscUtil.cpp.

References CATALOG_ALREADY_HAS_ITEM_BY_THAT_NAME, CollInp::collName, MAX_NAME_LEN, rcCollCreate(), rstrcpy(), and irods.pypyodbc::status.

Referenced by mkCollR(), putDirUtil(), resolveRodsTarget(), and rsyncCollToCollUtil().

Here is the call graph for this function:

◆ mkCollR()

int mkCollR ( rcComm_t conn,
char *  startColl,
char *  destColl 
)

Definition at line 51 of file miscUtil.cpp.

References clearRodsPath(), COLL_OBJ_T, EXIST_ST, getRodsObjType(), LOG_NOTICE, MAX_NAME_LEN, mkColl(), RodsPath::objState, RodsPath::objType, RodsPath::outPath, rodsLog(), rstrcpy(), irods.pypyodbc::status, and UNKNOWN_ST.

Referenced by cpCollUtil(), and rsyncDirToCollUtil().

Here is the call graph for this function:

◆ mkdirForFilePath()

int mkdirForFilePath ( char *  filePath)

Definition at line 157 of file miscUtil.cpp.

References DEFAULT_DIR_MODE, LOG_ERROR, MAX_NAME_LEN, mkdirR(), rodsLogError(), splitPathByKey(), and irods.pypyodbc::status.

Here is the call graph for this function:

◆ mkdirR()

int mkdirR ( char *  startDir,
char *  destDir,
int  mode 
)

Definition at line 106 of file miscUtil.cpp.

References irods::experimental::administration::client::v1::exists(), LOG_NOTICE, MAX_NAME_LEN, mode, pid_age::p, rodsLog(), rstrcpy(), irods.pypyodbc::status, and UNIX_FILE_MKDIR_ERR.

Referenced by getCollUtil(), mkdirForFilePath(), and rsyncCollToDirUtil().

Here is the call graph for this function:

◆ myChmod()

int myChmod ( char *  inPath,
uint  dataMode 
)

Definition at line 1815 of file miscUtil.cpp.

References INIT_UMASK_VAL, LOG_ERROR, Myumask, and rodsLog().

Referenced by getDataObjUtil(), and rsyncDataToFileUtil().

Here is the call graph for this function:

◆ printNoSync()

int printNoSync ( char *  objPath,
rodsLong_t  fileSize,
char *  reason 
)

Definition at line 491 of file miscUtil.cpp.

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

Referenced by ageExceeded(), rsyncDataToDataUtil(), rsyncDataToFileUtil(), and rsyncFileToDataUtil().

Here is the call graph for this function:

◆ printSysTiming()

int printSysTiming ( char *  procName,
char *  action,
int  envVarFlag 
)

◆ printTime()

int printTime ( char *  objPath,
struct timeval *  startTime,
struct timeval *  endTime 
)

Definition at line 460 of file miscUtil.cpp.

References LOG_NOTICE, MAX_NAME_LEN, rodsLogError(), splitPathByKey(), and irods.pypyodbc::status.

Here is the call graph for this function:

◆ printTiming()

int printTiming ( rcComm_t conn,
char *  objPath,
rodsLong_t  fileSize,
char *  localFile,
struct timeval *  startTime,
struct timeval *  endTime 
)

Definition at line 396 of file miscUtil.cpp.

References getFileSize(), LOG_NOTICE, MAX_NAME_LEN, NULL, transferStat_t::numThreads, rodsLogError(), splitPathByKey(), irods.pypyodbc::status, and rcComm_t::transStat.

Referenced by chksumDataObjUtil(), cpFileUtil(), getDataObjUtil(), mvObjUtil(), phymvDataObjUtil(), putFileUtil(), replDataObjUtil(), rmDataObjUtil(), rmtrashDataObjUtil(), rsyncDataToDataUtil(), rsyncDataToFileUtil(), rsyncFileToDataUtil(), and sendBulkPut().

Here is the call graph for this function:

◆ queryCollAcl()

int queryCollAcl ( rcComm_t conn,
char *  collName,
char *  zoneHint,
genQueryOut_t **  genQueryOut 
)

Definition at line 581 of file miscUtil.cpp.

References addInxIval(), addInxVal(), addKeyVal(), clearGenQueryInp(), COL_COLL_ACCESS_NAME, COL_COLL_NAME, COL_COLL_TOKEN_NAMESPACE, COL_COLL_USER_NAME, COL_COLL_USER_ZONE, GenQueryInp::condInput, MAX_NAME_LEN, MAX_SQL_ROWS, GenQueryInp::maxRows, NULL, rcGenQuery(), GenQueryInp::selectInp, GenQueryInp::sqlCondInp, irods.pypyodbc::status, USER__NULL_INPUT_ERR, ZONE_KW, and zoneHint.

Referenced by printCollAcl().

Here is the call graph for this function:

◆ queryCollAclSpecific()

int queryCollAclSpecific ( rcComm_t conn,
char *  collName,
char *  zoneHint,
genQueryOut_t **  genQueryOut 
)

Definition at line 552 of file miscUtil.cpp.

References addKeyVal(), specificQueryInp_t::args, specificQueryInp_t::condInput, specificQueryInp_t::continueInx, MAX_SQL_ROWS, specificQueryInp_t::maxRows, NULL, rcSpecificQuery(), specificQueryInp_t::sql, irods.pypyodbc::status, USER__NULL_INPUT_ERR, ZONE_KW, and zoneHint.

Referenced by printCollAcl().

Here is the call graph for this function:

◆ queryCollInColl()

int queryCollInColl ( queryHandle_t queryHandle,
char *  collection,
int  flags,
genQueryInp_t genQueryInp,
genQueryOut_t **  genQueryOut 
)

◆ queryCollInheritance()

int queryCollInheritance ( rcComm_t conn,
char *  collName,
genQueryOut_t **  genQueryOut 
)

Definition at line 625 of file miscUtil.cpp.

References addInxIval(), addInxVal(), clearGenQueryInp(), COL_COLL_INHERITANCE, COL_COLL_NAME, MAX_NAME_LEN, MAX_SQL_ROWS, GenQueryInp::maxRows, NULL, rcGenQuery(), GenQueryInp::selectInp, GenQueryInp::sqlCondInp, irods.pypyodbc::status, and USER__NULL_INPUT_ERR.

Referenced by printCollInheritance().

Here is the call graph for this function:

◆ queryDataObjAcl()

int queryDataObjAcl ( rcComm_t conn,
char *  dataId,
char *  zoneHint,
genQueryOut_t **  genQueryOut 
)

Definition at line 515 of file miscUtil.cpp.

References addInxIval(), addInxVal(), addKeyVal(), COL_DATA_ACCESS_DATA_ID, COL_DATA_ACCESS_NAME, COL_DATA_TOKEN_NAMESPACE, COL_USER_NAME, COL_USER_ZONE, GenQueryInp::condInput, MAX_NAME_LEN, MAX_SQL_ROWS, GenQueryInp::maxRows, NULL, rcGenQuery(), GenQueryInp::selectInp, GenQueryInp::sqlCondInp, irods.pypyodbc::status, USER__NULL_INPUT_ERR, ZONE_KW, and zoneHint.

Referenced by printDataAcl().

Here is the call graph for this function:

◆ queryDataObjInColl()

int queryDataObjInColl ( queryHandle_t queryHandle,
char *  collection,
int  flags,
genQueryInp_t genQueryInp,
genQueryOut_t **  genQueryOut,
keyValPair_t condInput 
)

◆ rclCloseCollection()

int rclCloseCollection ( collHandle_t collHandle)

Definition at line 1354 of file miscUtil.cpp.

References clearCollHandle().

Referenced by chksumCollUtil(), cpCollUtil(), getCollUtil(), lsCollUtil(), phymvCollUtil(), replCollUtil(), rsyncCollToCollUtil(), rsyncCollToDirUtil(), and trimCollUtil().

Here is the call graph for this function:

◆ rclInitQueryHandle()

int rclInitQueryHandle ( queryHandle_t queryHandle,
rcComm_t conn 
)

Definition at line 1744 of file miscUtil.cpp.

References QueryHandle::conn, QueryHandle::connType, QueryHandle::genQuery, QueryHandle::getHierForId, NULL, QueryHandle::querySpecColl, RC_COMM, rcGenQuery(), rcGetHierFromLeafId(), rcQuerySpecColl(), and USER__NULL_INPUT_ERR.

Referenced by printLsLong(), and rclOpenCollection().

Here is the call graph for this function:

◆ rclOpenCollection()

◆ rclReadCollection()

int rclReadCollection ( rcComm_t conn,
collHandle_t collHandle,
collEnt_t collEnt 
)

Definition at line 1108 of file miscUtil.cpp.

References QueryHandle::conn, collHandle_t::queryHandle, readCollection(), and irods.pypyodbc::status.

Referenced by chksumCollUtil(), cpCollUtil(), getCollSizeForProgStat(), getCollUtil(), lsCollUtil(), phymvCollUtil(), replCollUtil(), rsyncCollToCollUtil(), rsyncCollToDirUtil(), and trimCollUtil().

Here is the call graph for this function:

◆ readCollection()

◆ readPathnamePatterns()

pathnamePatterns_t* readPathnamePatterns ( char *  buf,
int  buflen 
)

Definition at line 2220 of file miscUtil.cpp.

References buf, LOG_NOTICE, NULL, pathnamePatterns_t::num_patterns, pathnamePatterns_t::pattern_buf, pathnamePatterns_t::patterns, and rodsLog().

Referenced by readPathnamePatternsFromFile().

Here is the call graph for this function:

◆ resolveRodsTarget()

◆ rmdirR()

int rmdirR ( char *  startDir,
char *  destDir 
)

Definition at line 174 of file miscUtil.cpp.

References MAX_NAME_LEN, and rstrcpy().

Here is the call graph for this function:

◆ rmFilesInDir()

int rmFilesInDir ( char *  mydir)

Definition at line 2149 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 initAndClearProcLog().

Here is the call graph for this function:

◆ rmSubDir()

int rmSubDir ( char *  mydir)

Definition at line 2100 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.

Here is the call graph for this function:

◆ setQueryFlag()

◆ setQueryInpForData()

int setQueryInpForData ( int  flags,
genQueryInp_t genQueryInp 
)

◆ setSqlResultValue()

int setSqlResultValue ( sqlResult_t sqlResult,
int  attriInx,
char *  valueStr,
int  rowCnt 
)

Definition at line 778 of file miscUtil.cpp.

References SqlResult::attriInx, SqlResult::len, NULL, rstrcpy(), and SqlResult::value.

Referenced by genQueryOutToCollRes(), and genQueryOutToDataObjRes().

Here is the call graph for this function: