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
Go to the documentation of this file.
1 
4 /* rcMisc.h - header file for rcMisc.c
5  */
6 
7 
8 
9 #ifndef RC_MISC_H__
10 #define RC_MISC_H__
11 
12 #include "rods.h"
13 #include "rodsError.h"
14 #include "objInfo.h"
15 #include "rodsPath.h"
16 #include "bulkDataObjPut.h"
17 #include <netinet/in.h>
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 void
24 void
25 clearModAVUMetadataInp( void* );
26 void
27 clearDataObjCopyInp( void* );
28 void
29 clearUnregDataObj( void* );
30 void
31 clearModDataObjMetaInp( void* );
32 void
33 clearRegReplicaInp( void *voidInp );
34 int isPath( char *path );
36 getFileSize( char *path );
37 int
38 addRErrorMsg( rError_t *myError, int status, const char *msg );
39 int freeBBuf( bytesBuf_t *myBBuf );
40 int
41 clearBBuf( bytesBuf_t *myBBuf );
42 int
43 freeRError( rError_t *myError );
44 int
45 replErrorStack( rError_t *srcRError, rError_t *destRError );
46 int
47 freeRErrorContent( rError_t *myError );
48 int
49 parseUserName( const char *fullUserNameIn, char *userName, char *userZone );
50 int
51 myHtonll( rodsLong_t inlonglong, rodsLong_t *outlonglong );
52 int
53 myNtohll( rodsLong_t inlonglong, rodsLong_t *outlonglong );
54 int
55 statToRodsStat( rodsStat_t *rodsStat, struct stat *myFileStat );
56 int
57 rodsStatToStat( struct stat *myFileStat, rodsStat_t *rodsStat );
58 int
59 direntToRodsDirent( rodsDirent_t *rodsDirent, struct dirent *fileDirent );
60 int
61 getLine( FILE *fp, char *buf, int bufsz );
62 int
63 getStrInBuf( char **inbuf, char *outbuf, int *inbufLen, int outbufLen );
64 int
65 getNextEleInStr( char **inbuf, char *outbuf, int *inbufLen, int maxOutLen );
66 int
67 getZoneNameFromHint( const char *rcatZoneHint, char *zoneName, int len );
68 int
69 freeDataObjInfo( dataObjInfo_t *dataObjInfo );
70 int
71 freeAllDataObjInfo( dataObjInfo_t *dataObjInfoHead );
72 char *
73 getValByKey( const keyValPair_t *condInput, const char *keyWord );
74 int
75 getIvalByInx( inxIvalPair_t *inxIvalPair, int inx, int *outValue );
76 char *
77 getValByInx( inxValPair_t *inxValPair, int inx );
78 int
79 replKeyVal( const keyValPair_t *srcCondInput, keyValPair_t *destCondInput );
80 int
81 copyKeyVal( const keyValPair_t *srcCondInput, keyValPair_t *destCondInput );
82 int
83 replDataObjInp( dataObjInp_t *srcDataObjInp, dataObjInp_t *destDataObjInp );
84 int
85 replSpecColl( specColl_t *inSpecColl, specColl_t **outSpecColl );
86 int
87 addKeyVal( keyValPair_t *condInput, const char *keyWord, const char *value );
88 int
89 addInxIval( inxIvalPair_t *inxIvalPair, int inx, int value );
90 int
91 addInxVal( inxValPair_t *inxValPair, int inx, const char *value );
92 int
93 addStrArray( strArray_t *strArray, char *value );
94 int
95 resizeStrArray( strArray_t *strArray, int newSize );
96 int
97 queDataObjInfo( dataObjInfo_t **dataObjInfoHead, dataObjInfo_t *dataObjInfo,
98  int singleInfoFlag, int topFlag );
99 int
100 dequeDataObjInfo( dataObjInfo_t **dataObjInfoHead, dataObjInfo_t *dataObjInfo ); // JMC - backport 4590
101 int
102 clearKeyVal( keyValPair_t *condInput );
103 int
104 clearInxIval( inxIvalPair_t *inxIvalPair );
105 int
106 clearInxVal( inxValPair_t *inxValPair );
107 int
108 moveKeyVal( keyValPair_t *destKeyVal, keyValPair_t *srcKeyVal );
109 int
110 rmKeyVal( keyValPair_t *condInput, const char *keyWord );
111 int
112 sendTranHeader( int sock, int oprType, int flags, rodsLong_t offset,
113  rodsLong_t length );
114 int
115 freeGenQueryOut( genQueryOut_t **genQueryOut );
116 int
117 freeGenQueryInp( genQueryInp_t **genQueryInp );
118 void
119 clearGenQueryInp( void * voidInp );
120 sqlResult_t *
121 getSqlResultByInx( genQueryOut_t *genQueryOut, int attriInx );
122 void
123 clearGenQueryOut( void * );
124 int
125 catGenQueryOut( genQueryOut_t *targGenQueryOut, genQueryOut_t *genQueryOut,
126  int maxRowCnt );
127 void
128 clearBulkOprInp( void * );
129 int
130 getUnixUid( char *userName );
131 int
132 getUnixUsername( int uid, char *username, int username_len );
133 int
134 getUnixGroupname( int gid, char *groupname, int groupname_len );
135 int
136 parseMultiStr( char *strInput, strArray_t *strArray );
137 void
138 getNowStr( char *timeStr );
139 int
140 getLocalTimeFromRodsTime( const char *timeStrIn, char *timeStrOut );
141 int
142 getLocalTimeStr( struct tm *mytm, char *timeStr );
143 void
144 getOffsetTimeStr( char *timeStr, const char *offSet );
145 void
146 updateOffsetTimeStr( char *timeStr, int offset );
147 int
148 checkDateFormat( char *s );
149 int
150 localToUnixTime( char *localTime, char *unixTime );
151 int
152 printErrorStack( rError_t *rError );
153 int
154 getDataObjInfoCnt( dataObjInfo_t *dataObjInfoHead );
155 int
156 appendRandomToPath( char *trashPath );
157 int
158 isBundlePath( char *myPath ); // JMC - backport 4552
159 int
160 isTrashPath( char *myPath );
162 isOrphanPath( char *myPath );
163 int
164 isHomeColl( char *myPath );
165 int
166 isTrashHome( char *myPath );
167 int
168 openRestartFile( char *restartFile, rodsRestart_t *rodsRestart );
169 int
170 setStateForResume( rcComm_t *conn, rodsRestart_t *rodsRestart,
171  char *restartPath, objType_t objType, keyValPair_t *condInput,
172  int deleteFlag );
173 int
174 writeRestartFile( rodsRestart_t *rodsRestart, char *lastDonePath );
175 int
176 procAndWriteRestartFile( rodsRestart_t *rodsRestart, char *donePath );
177 int
178 setStateForRestart( rodsRestart_t *rodsRestart, rodsPath_t *targPath,
179  rodsArguments_t *rodsArgs );
180 int
181 chkStateForResume( rcComm_t *conn, rodsRestart_t *rodsRestart,
182  char *targPath, rodsArguments_t *rodsArgs, objType_t objType,
183  keyValPair_t *condInput, int deleteFlag );
184 int
185 addTagStruct( tagStruct_t *condInput, char *preTag, char *postTag,
186  char *keyWord );
187 void
188 clearFileOpenInp( void* voidInp );
189 void
190 clearDataObjInp( void* );
191 void
192 clearCollInp( void* );
193 void
194 clearAuthResponseInp( void * myInStruct );
195 int
196 isInteger( const char *inStr );
197 int
198 addIntArray( intArray_t *intArray, int value );
199 int
200 getMountedSubPhyPath( char *logMountPoint, char *phyMountPoint,
201  char *logSubPath, char *phySubPathOut );
202 int
203 resolveSpecCollType( char *type, char *collection, char *collInfo1,
204  char *collInfo2, specColl_t *specColl );
205 int
206 getSpecCollTypeStr( specColl_t *specColl, char *outStr );
207 int
208 getErrno( int errCode );
209 int
210 getIrodsErrno( int irodError );
212 getSpecCollOpr( keyValPair_t *condInput, specColl_t *specColl );
213 void
215  rodsObjStat_t *rodsObjStatOut );
216 int keyValToString( keyValPair_t* list, char** string );
217 int keyValFromString( char* string, keyValPair_t** list );
218 int
219 convertDateFormat( char *s, char *currTime );
220 int
221 getNextRepeatTime( char *currTime, char *delayStr, char *nextTime );
222 int
223 printError( rcComm_t *Conn, int status, char *routineName );
224 int
225 fillGenQueryInpFromStrCond( char *str, genQueryInp_t *genQueryInp );
226 int
227 printGenQueryOut( FILE *fd, char *format, char *hint,
228  genQueryOut_t *genQueryOut );
229 
230 int appendToByteBuf( bytesBuf_t *bytesBuf, char *str );
231 
232 char * getAttrNameFromAttrId( int cid );
233 int getAttrIdFromAttrName( char *cname );
234 int showAttrNames();
235 
236 int
237 separateSelFuncFromAttr( char *t, char **aggOp, char **colNm );
238 
239 int
240 getSelVal( char *c );
241 
242 int
243 clearSendXmsgInfo( sendXmsgInfo_t *sendXmsgInfo );
244 
245 int
246 parseCachedStructFileStr( char *collInfo2, specColl_t *specColl );
247 int
248 makeCachedStructFileStr( char *collInfo2, specColl_t *specColl );
249 int
250 getLineInBuf( char **inbuf, char *outbuf, int bufLen );
251 int
253 int
254 parseHostAddrStr( char *hostAddr, rodsHostAddr_t *addr );
255 void
256 printReleaseInfo( char *cmdName );
257 unsigned int
258 seedRandom();
259 int
260 initBulkDataObjRegInp( genQueryOut_t *bulkDataObjRegInp );
261 int
262 initBulkDataObjRegOut( genQueryOut_t **bulkDataObjRegOut );
263 int
264 untarBuf( char *phyBunDir, bytesBuf_t *tarBBuf );
265 int
266 tarToBuf( char *phyBunDir, bytesBuf_t *tarBBuf );
267 int
268 readToByteBuf( int fd, bytesBuf_t *bytesBuf );
269 int
270 writeFromByteBuf( int fd, bytesBuf_t *bytesBuf );
271 int
273 int
274 fillAttriArrayOfBulkOprInp( char *objPath, int dataMode, char *inpChksum,
275  int offset, bulkOprInp_t *bulkOprInp );
276 int
277 getPhyBunPath( const char *collection, const char *objPath, const char *phyBunDir,
278  char *outPhyBunPath );
279 int
280 unbunBulkBuf( char *phyBunDir, bulkOprInp_t *bulkOprInp, bytesBuf_t *bulkBBuf );
281 int
282 mySetenvStr( const char *envname, const char *envval );
283 int
284 mySetenvInt( char *envname, int envval );
285 int
286 getNumFilesInDir( const char *mydir );
287 int
288 getRandomArray( int **randomArray, int size );
289 
290 // Issue 3988: replaces isPathSymlink() function below which is soon to be deprecated.
291 // Returns:
292 // 0 - treat the parameter path as NOT a symlink
293 // 1 - treat the parameter path as a symlink
294 // <0 - Error code (message in the message stack)
295 int
296 isPathSymlink_err( rodsArguments_t* rodsArgs, const char* path );
297 
298 // Issue 3988: will be DEPRECATED in a future release in favor of the
299 // function above (isPathSymlink_err). The isPathSymlink() function does not return error
300 // codes, although it will print error messages as needed.
301 // Returns:
302 // 0 - treat the parameter path as NOT a symlink
303 // 1 - treat the parameter path as a symlink
304 int
305 isPathSymlink( rodsArguments_t *rodsArgs, const char *path ); // DEPRECATED in a future release
306 int
307 getAttriInAttriArray( const char *objPath, genQueryOut_t *attriArray,
308  int *outDataMode, char **outChksum );
309 
310 char *trimSpaces( char *str );
311 char *trimPrefix( char *str );
312 int convertListToMultiString( char *strInput, int input );
313 int startsWith( const char *str, const char *prefix );
314 int splitMultiStr( char *strInput, strArray_t *strArray );
315 
316 int
317 hasSymlinkInDir( const char *mydir );
318 int
319 hasSymlinkInPath( const char *myPath );
320 int
321 hasSymlinkInPartialPath( const char *myPath, int pos );
322 
323 int myWrite( int sock, void *buf, int len, int *bytesWritten );
324 int myRead( int sock, void *buf, int len, int *bytesRead, struct timeval *tv );
325 
326 // Special status that supresses reError header printing
327 static const int STDOUT_STATUS = 1000000;
328 
329 int
330 getPathStMode( const char* p );
331 
332 int getaddrinfo_with_retry(const char *_node, const char *_service, const struct addrinfo *_hints, struct addrinfo **_res);
333 int get_canonical_name(const char *_hostname, char* _buf, size_t _len);
334 int load_in_addr_from_hostname(const char* _hostname, struct in_addr* _out);
335 
336 #ifdef __cplusplus
337 }
338 #endif
339 #endif // RC_MISC_H__
readToByteBuf
int readToByteBuf(int fd, bytesBuf_t *bytesBuf)
Definition: rcMisc.cpp:3892
getValByKey
char * getValByKey(const keyValPair_t *condInput, const char *keyWord)
Definition: rcMisc.cpp:675
writeRestartFile
int writeRestartFile(rodsRestart_t *rodsRestart, char *lastDonePath)
Definition: rcMisc.cpp:2677
convertDateFormat
int convertDateFormat(char *s, char *currTime)
Definition: rcMisc.cpp:2091
rcComm_t
Definition: rcConnect.h:95
appendRandomToPath
int appendRandomToPath(char *trashPath)
Definition: rcMisc.cpp:2348
clearSendXmsgInfo
int clearSendXmsgInfo(sendXmsgInfo_t *sendXmsgInfo)
Definition: rcMisc.cpp:3473
getValByInx
char * getValByInx(inxValPair_t *inxValPair, int inx)
addKeyVal
int addKeyVal(keyValPair_t *condInput, const char *keyWord, const char *value)
Definition: rcMisc.cpp:789
getLocalTimeStr
int getLocalTimeStr(struct tm *mytm, char *timeStr)
Definition: rcMisc.cpp:1630
myRead
int myRead(int sock, void *buf, int len, int *bytesRead, struct timeval *tv)
Definition: rcMisc.cpp:4651
chkStateForResume
int chkStateForResume(rcComm_t *conn, rodsRestart_t *rodsRestart, char *targPath, rodsArguments_t *rodsArgs, objType_t objType, keyValPair_t *condInput, int deleteFlag)
Definition: putUtil.cpp:34
rodsPath.h
TagStruct
Definition: objInfo.h:309
getSpecCollTypeStr
int getSpecCollTypeStr(specColl_t *specColl, char *outStr)
Definition: rcMisc.cpp:3099
clearBulkOprInp
void clearBulkOprInp(void *)
Definition: rcMisc.cpp:1248
bulkOprInp_t
Definition: bulkDataObjPut.h:17
moveKeyVal
int moveKeyVal(keyValPair_t *destKeyVal, keyValPair_t *srcKeyVal)
Definition: rcMisc.cpp:1259
rodsArguments_t
Definition: parseCommandLine.h:14
tarToBuf
int tarToBuf(char *phyBunDir, bytesBuf_t *tarBBuf)
initAttriArrayOfBulkOprInp
int initAttriArrayOfBulkOprInp(bulkOprInp_t *bulkOprInp)
Definition: rcMisc.cpp:3716
clearDataObjCopyInp
void clearDataObjCopyInp(void *)
Definition: rcMisc.cpp:1507
dequeDataObjInfo
int dequeDataObjInfo(dataObjInfo_t **dataObjInfoHead, dataObjInfo_t *dataObjInfo)
Definition: rcMisc.cpp:635
SendXmsgInfo
Definition: rodsXmsg.h:30
resolveSpecCollType
int resolveSpecCollType(char *type, char *collection, char *collInfo1, char *collInfo2, specColl_t *specColl)
Definition: rcMisc.cpp:3127
procAndWriteRestartFile
int procAndWriteRestartFile(rodsRestart_t *rodsRestart, char *donePath)
Definition: rcMisc.cpp:2700
isPath
int isPath(char *path)
Definition: rcMisc.cpp:60
clearCollInp
void clearCollInp(void *)
Definition: rcMisc.cpp:1492
getAttrNameFromAttrId
char * getAttrNameFromAttrId(int cid)
Definition: rcMisc.cpp:2826
makeCachedStructFileStr
int makeCachedStructFileStr(char *collInfo2, specColl_t *specColl)
Definition: rcMisc.cpp:3242
isInteger
int isInteger(const char *inStr)
Definition: rcMisc.cpp:2070
clearRegReplicaInp
void clearRegReplicaInp(void *voidInp)
Definition: rcMisc.cpp:1441
mySetenvStr
int mySetenvStr(const char *envname, const char *envval)
Definition: rcMisc.cpp:4011
freeRError
int freeRError(rError_t *myError)
Definition: rcMisc.cpp:170
GenQueryInp
Definition: rodsGenQuery.h:24
keyValFromString
int keyValFromString(char *string, keyValPair_t **list)
Definition: rcMisc.cpp:3370
pid_age.p
p
Definition: pid_age.py:13
freeDataObjInfo
int freeDataObjInfo(dataObjInfo_t *dataObjInfo)
Definition: rcMisc.cpp:544
freeGenQueryInp
int freeGenQueryInp(genQueryInp_t **genQueryInp)
Definition: rcMisc.cpp:1101
parseMultiStr
int parseMultiStr(char *strInput, strArray_t *strArray)
Definition: rcMisc.cpp:1539
isOrphanPath
orphanPathType_t isOrphanPath(char *myPath)
Definition: rcMisc.cpp:2473
bulkDataObjPut.h
addIntArray
int addIntArray(intArray_t *intArray, int value)
initBulkDataObjRegOut
int initBulkDataObjRegOut(genQueryOut_t **bulkDataObjRegOut)
Definition: rcMisc.cpp:3688
SpecColl
Definition: objInfo.h:76
getNowStr
void getNowStr(char *timeStr)
Definition: rcMisc.cpp:1590
structFileOprType_t
structFileOprType_t
Definition: objInfo.h:59
getPathStMode
int getPathStMode(const char *p)
Definition: rcMisc.cpp:4354
addInxVal
int addInxVal(inxValPair_t *inxValPair, int inx, const char *value)
Definition: rcMisc.cpp:921
checkDateFormat
int checkDateFormat(char *s)
Definition: rcMisc.cpp:2129
getSpecCollOpr
structFileOprType_t getSpecCollOpr(keyValPair_t *condInput, specColl_t *specColl)
Definition: rcMisc.cpp:3278
clearDataObjInp
void clearDataObjInp(void *)
Definition: rcMisc.cpp:1475
hasSymlinkInPartialPath
int hasSymlinkInPartialPath(const char *myPath, int pos)
Definition: rcMisc.cpp:4416
unbunBulkBuf
int unbunBulkBuf(char *phyBunDir, bulkOprInp_t *bulkOprInp, bytesBuf_t *bulkBBuf)
resizeStrArray
int resizeStrArray(strArray_t *strArray, int newSize)
Definition: rcMisc.cpp:1017
rodsError.h
freeRodsObjStat
int freeRodsObjStat(rodsObjStat_t *rodsObjStat)
Definition: rcMisc.cpp:3537
isHomeColl
int isHomeColl(char *myPath)
Definition: rcMisc.cpp:2508
hasSymlinkInDir
int hasSymlinkInDir(const char *mydir)
Definition: rcMisc.cpp:4368
statToRodsStat
int statToRodsStat(rodsStat_t *rodsStat, struct stat *myFileStat)
Definition: rcMisc.cpp:280
getNextRepeatTime
int getNextRepeatTime(char *currTime, char *delayStr, char *nextTime)
Definition: rcMisc.cpp:1768
printErrorStack
int printErrorStack(rError_t *rError)
Definition: rcMisc.cpp:2327
rodsStat
Definition: rodsType.h:52
rError_t
Definition: rodsError.h:24
trimSpaces
char * trimSpaces(char *str)
Definition: rcMisc.cpp:4158
getLocalTimeFromRodsTime
int getLocalTimeFromRodsTime(const char *timeStrIn, char *timeStrOut)
Definition: rcMisc.cpp:1602
clearGenQueryOut
void clearGenQueryOut(void *)
Definition: rcMisc.cpp:1150
writeFromByteBuf
int writeFromByteBuf(int fd, bytesBuf_t *bytesBuf)
Definition: rcMisc.cpp:3954
getSqlResultByInx
sqlResult_t * getSqlResultByInx(genQueryOut_t *genQueryOut, int attriInx)
Definition: rcMisc.cpp:1387
addTagStruct
int addTagStruct(tagStruct_t *condInput, char *preTag, char *postTag, char *keyWord)
Definition: rcMisc.cpp:831
separateSelFuncFromAttr
int separateSelFuncFromAttr(char *t, char **aggOp, char **colNm)
Definition: rcMisc.cpp:2772
startsWith
int startsWith(const char *str, const char *prefix)
Definition: rcMisc.cpp:4182
freeAllDataObjInfo
int freeAllDataObjInfo(dataObjInfo_t *dataObjInfoHead)
Definition: rcMisc.cpp:561
parseCachedStructFileStr
int parseCachedStructFileStr(char *collInfo2, specColl_t *specColl)
Definition: rcMisc.cpp:3184
updateOffsetTimeStr
void updateOffsetTimeStr(char *timeStr, int offset)
Definition: rcMisc.cpp:1676
get_canonical_name
int get_canonical_name(const char *_hostname, char *_buf, size_t _len)
Definition: rcMisc.cpp:4580
myWrite
int myWrite(int sock, void *buf, int len, int *bytesWritten)
Definition: rcMisc.cpp:4610
getSelVal
int getSelVal(char *c)
Definition: rcMisc.cpp:2792
appendToByteBuf
int appendToByteBuf(bytesBuf_t *bytesBuf, char *str)
Definition: rcMisc.cpp:3048
resolveStatForStructFileOpr
void resolveStatForStructFileOpr(keyValPair_t *condInput, rodsObjStat_t *rodsObjStatOut)
untarBuf
int untarBuf(char *phyBunDir, bytesBuf_t *tarBBuf)
mySetenvInt
int mySetenvInt(char *envname, int envval)
Definition: rcMisc.cpp:4036
getIrodsErrno
int getIrodsErrno(int irodError)
Definition: rcMisc.cpp:3272
setStateForRestart
int setStateForRestart(rodsRestart_t *rodsRestart, rodsPath_t *targPath, rodsArguments_t *rodsArgs)
Definition: rcMisc.cpp:2714
setStateForResume
int setStateForResume(rcComm_t *conn, rodsRestart_t *rodsRestart, char *restartPath, objType_t objType, keyValPair_t *condInput, int deleteFlag)
Definition: putUtil.cpp:95
isTrashHome
int isTrashHome(char *myPath)
Definition: rcMisc.cpp:2427
DataObjInp
Definition: dataObjInpOut.h:65
myNtohll
int myNtohll(rodsLong_t inlonglong, rodsLong_t *outlonglong)
Definition: rcMisc.cpp:256
isPathSymlink
int isPathSymlink(rodsArguments_t *rodsArgs, const char *path)
Definition: rcMisc.cpp:4115
clearModDataObjMetaInp
void clearModDataObjMetaInp(void *)
Definition: rcMisc.cpp:1403
getZoneNameFromHint
int getZoneNameFromHint(const char *rcatZoneHint, char *zoneName, int len)
Definition: rcMisc.cpp:514
getErrno
int getErrno(int errCode)
Definition: rcMisc.cpp:3261
addStrArray
int addStrArray(strArray_t *strArray, char *value)
Definition: rcMisc.cpp:959
getOffsetTimeStr
void getOffsetTimeStr(char *timeStr, const char *offSet)
Definition: rcMisc.cpp:1659
addInxIval
int addInxIval(inxIvalPair_t *inxIvalPair, int inx, int value)
Definition: rcMisc.cpp:883
rmKeyVal
int rmKeyVal(keyValPair_t *condInput, const char *keyWord)
Definition: rcMisc.cpp:710
GenQueryOut
Definition: rodsGenQuery.h:67
addRErrorMsg
int addRErrorMsg(rError_t *myError, int status, const char *msg)
Definition: rcMisc.cpp:121
clearModAVUMetadataInp
void clearModAVUMetadataInp(void *)
Definition: rcMisc.cpp:3516
get_irods_version.value
dictionary value
Definition: get_irods_version.py:27
catGenQueryOut
int catGenQueryOut(genQueryOut_t *targGenQueryOut, genQueryOut_t *genQueryOut, int maxRowCnt)
Definition: rcMisc.cpp:1172
irods.pypyodbc.status
status
Definition: pypyodbc.py:467
STDOUT_STATUS
static const int STDOUT_STATUS
Definition: rcMisc.h:327
showAttrNames
int showAttrNames()
Definition: rcMisc.cpp:2763
printGenQueryOut
int printGenQueryOut(FILE *fd, char *format, char *hint, genQueryOut_t *genQueryOut)
Definition: rcMisc.cpp:3001
hasSymlinkInPath
int hasSymlinkInPath(const char *myPath)
Definition: rcMisc.cpp:4454
rodsStatToStat
int rodsStatToStat(struct stat *myFileStat, rodsStat_t *rodsStat)
Definition: rcMisc.cpp:305
rodsDirent
Definition: rodsType.h:70
initBulkDataObjRegInp
int initBulkDataObjRegInp(genQueryOut_t *bulkDataObjRegInp)
Definition: rcMisc.cpp:3612
getNumFilesInDir
int getNumFilesInDir(const char *mydir)
Definition: miscUtil.cpp:2183
getLine
int getLine(FILE *fp, char *buf, int bufsz)
Definition: rcMisc.cpp:484
getFileSize
rodsLong_t getFileSize(char *path)
Definition: rcMisc.cpp:74
rodsRestart_t
Definition: rodsDef.h:317
clearAuthResponseInp
void clearAuthResponseInp(void *myInStruct)
Definition: rcMisc.cpp:4131
getUnixUid
int getUnixUid(char *userName)
Definition: rcMisc.cpp:1270
BytesBuf
Definition: rodsDef.h:197
keyValToString
int keyValToString(keyValPair_t *list, char **string)
Definition: rcMisc.cpp:3304
myHtonll
int myHtonll(rodsLong_t inlonglong, rodsLong_t *outlonglong)
Definition: rcMisc.cpp:232
getRandomArray
int getRandomArray(int **randomArray, int size)
Definition: rcMisc.cpp:4062
getaddrinfo_with_retry
int getaddrinfo_with_retry(const char *_node, const char *_service, const struct addrinfo *_hints, struct addrinfo **_res)
Definition: rcMisc.cpp:4537
objInfo.h
isTrashPath
int isTrashPath(char *myPath)
Definition: rcMisc.cpp:2395
clearUnregDataObj
void clearUnregDataObj(void *)
Definition: rcMisc.cpp:1422
getAttriInAttriArray
int getAttriInAttriArray(const char *objPath, genQueryOut_t *attriArray, int *outDataMode, char **outChksum)
Definition: rcMisc.cpp:3810
clearInxIval
int clearInxIval(inxIvalPair_t *inxIvalPair)
Definition: rcMisc.cpp:1069
clearModAccessControlInp
void clearModAccessControlInp(void *)
Definition: rcMisc.cpp:3505
getLineInBuf
int getLineInBuf(char **inbuf, char *outbuf, int bufLen)
Definition: rcMisc.cpp:2642
getDataObjInfoCnt
int getDataObjInfoCnt(dataObjInfo_t *dataObjInfoHead)
Definition: rcMisc.cpp:661
seedRandom
unsigned int seedRandom()
Definition: rcMisc.cpp:3586
SqlResult
Definition: rodsGenQuery.h:61
direntToRodsDirent
int direntToRodsDirent(rodsDirent_t *rodsDirent, struct dirent *fileDirent)
Definition: rcMisc.cpp:330
openRestartFile
int openRestartFile(char *restartFile, rodsRestart_t *rodsRestart)
Definition: rcMisc.cpp:2552
getUnixUsername
int getUnixUsername(int uid, char *username, int username_len)
Definition: rcMisc.cpp:1296
clearInxVal
int clearInxVal(inxValPair_t *inxValPair)
Definition: rcMisc.cpp:1082
InxIvalPair
Definition: objInfo.h:205
convertListToMultiString
int convertListToMultiString(char *strInput, int input)
Definition: rcMisc.cpp:4186
replDataObjInp
int replDataObjInp(dataObjInp_t *srcDataObjInp, dataObjInp_t *destDataObjInp)
Definition: rcMisc.cpp:765
getNextEleInStr
int getNextEleInStr(char **inbuf, char *outbuf, int *inbufLen, int maxOutLen)
Definition: rcMisc.cpp:433
replSpecColl
int replSpecColl(specColl_t *inSpecColl, specColl_t **outSpecColl)
Definition: rcMisc.cpp:778
fillAttriArrayOfBulkOprInp
int fillAttriArrayOfBulkOprInp(char *objPath, int dataMode, char *inpChksum, int offset, bulkOprInp_t *bulkOprInp)
Definition: rcMisc.cpp:3763
replErrorStack
int replErrorStack(rError_t *srcRError, rError_t *destRError)
Definition: rcMisc.cpp:152
load_in_addr_from_hostname
int load_in_addr_from_hostname(const char *_hostname, struct in_addr *_out)
Definition: rcMisc.cpp:4594
localToUnixTime
int localToUnixTime(char *localTime, char *unixTime)
Definition: rcMisc.cpp:2035
isPathSymlink_err
int isPathSymlink_err(rodsArguments_t *rodsArgs, const char *path)
Definition: rcMisc.cpp:4085
rodsObjStat
Definition: objStat.h:8
getPhyBunPath
int getPhyBunPath(const char *collection, const char *objPath, const char *phyBunDir, char *outPhyBunPath)
Definition: rcMisc.cpp:3996
isBundlePath
int isBundlePath(char *myPath)
Definition: rcMisc.cpp:2368
freeBBuf
int freeBBuf(bytesBuf_t *myBBuf)
Definition: rcMisc.cpp:88
size
long long size
Definition: filesystem.cpp:102
RodsPath
Definition: rodsPath.h:18
parseHostAddrStr
int parseHostAddrStr(char *hostAddr, rodsHostAddr_t *addr)
Definition: rcMisc.cpp:3552
printReleaseInfo
void printReleaseInfo(char *cmdName)
Definition: rcMisc.cpp:3575
getAttrIdFromAttrName
int getAttrIdFromAttrName(char *cname)
Definition: rcMisc.cpp:2751
clearFileOpenInp
void clearFileOpenInp(void *voidInp)
Definition: rcMisc.cpp:1463
freeGenQueryOut
int freeGenQueryOut(genQueryOut_t **genQueryOut)
Definition: rcMisc.cpp:1133
clearBBuf
int clearBBuf(bytesBuf_t *myBBuf)
Definition: rcMisc.cpp:101
KeyValPair
Definition: objInfo.h:120
clearKeyVal
int clearKeyVal(keyValPair_t *condInput)
Definition: rcMisc.cpp:1047
getUnixGroupname
int getUnixGroupname(int gid, char *groupname, int groupname_len)
Definition: rcMisc.cpp:1333
getIvalByInx
int getIvalByInx(inxIvalPair_t *inxIvalPair, int inx, int *outValue)
Definition: rcMisc.cpp:692
getMountedSubPhyPath
int getMountedSubPhyPath(char *logMountPoint, char *phyMountPoint, char *logSubPath, char *phySubPathOut)
Definition: rcMisc.cpp:3078
buf
static char buf[64+50+1]
Definition: rsAuthRequest.cpp:21
parseUserName
int parseUserName(const char *fullUserNameIn, char *userName, char *userZone)
Definition: rcMisc.cpp:204
trimPrefix
char * trimPrefix(char *str)
Definition: rcMisc.cpp:4146
type
int type
Definition: filesystem.cpp:103
DataObjInfo
Definition: objInfo.h:129
orphanPathType_t
orphanPathType_t
Definition: rodsDef.h:171
splitMultiStr
int splitMultiStr(char *strInput, strArray_t *strArray)
Definition: rcMisc.cpp:4285
clearGenQueryInp
void clearGenQueryInp(void *voidInp)
Definition: rcMisc.cpp:1118
InxValPair
Definition: objInfo.h:213
printError
int printError(rcComm_t *Conn, int status, char *routineName)
Definition: clientLogin.cpp:74
queDataObjInfo
int queDataObjInfo(dataObjInfo_t **dataObjInfoHead, dataObjInfo_t *dataObjInfo, int singleInfoFlag, int topFlag)
Definition: rcMisc.cpp:581
fillGenQueryInpFromStrCond
int fillGenQueryInpFromStrCond(char *str, genQueryInp_t *genQueryInp)
Definition: rcMisc.cpp:2921
replKeyVal
int replKeyVal(const keyValPair_t *srcCondInput, keyValPair_t *destCondInput)
Definition: rcMisc.cpp:739
rods.h
list
Definition: irods_list.h:13
freeRErrorContent
int freeRErrorContent(rError_t *myError)
Definition: rcMisc.cpp:182
rodsLong_t
long long rodsLong_t
Definition: rodsType.h:32
StrArray
Definition: objInfo.h:220
objType_t
objType_t
Definition: rodsType.h:36
sendTranHeader
int sendTranHeader(int sock, int oprType, int flags, rodsLong_t offset, rodsLong_t length)
Definition: rcPortalOpr.cpp:36
rodsHostAddr_t
Definition: rodsDef.h:296
getStrInBuf
int getStrInBuf(char **inbuf, char *outbuf, int *inbufLen, int outbufLen)
Definition: rcMisc.cpp:393
IntArray
Definition: objInfo.h:227
copyKeyVal
int copyKeyVal(const keyValPair_t *srcCondInput, keyValPair_t *destCondInput)
Definition: rcMisc.cpp:751