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)  

rsReadCollection.cpp
Go to the documentation of this file.
1 
3 /* rsReadCollection.c
4  */
5 
6 #include "openCollection.h"
7 #include "readCollection.h"
8 #include "objMetaOpr.hpp"
9 #include "rcGlobalExtern.h"
10 #include "rsGlobalExtern.hpp"
11 #include "irods_stacktrace.hpp"
12 #include "rsReadCollection.hpp"
13 
14 int
15 rsReadCollection( rsComm_t*, int *handleInxInp,
16  collEnt_t **collEnt ) {
17  int status;
18  collHandle_t *collHandle;
19 
20  int handleInx = *handleInxInp;
21 
22  if ( handleInx < 0 || static_cast<std::size_t>(handleInx) >= CollHandle.size() ||
23  CollHandle[handleInx].inuseFlag != FD_INUSE ) {
25  "rsReadCollection: handleInx %d out of range",
26  handleInx );
28  }
29 
30  collHandle = &CollHandle[handleInx];
31  *collEnt = ( collEnt_t * ) malloc( sizeof( collEnt_t ) );
32 
33  status = readCollection( collHandle, *collEnt );
34 
35  if ( status < 0 ) {
36  free( *collEnt );
37  *collEnt = NULL;
38  }
39 
40  return status;
41 }
rodsLog
void rodsLog(int level, const char *formatStr,...)
Definition: rodsLog.cpp:86
NULL
#define NULL
Definition: rodsDef.h:70
rsComm_t
Definition: rcConnect.h:145
irods_stacktrace.hpp
collHandle_t
Definition: miscUtil.h:97
CollHandle
std::vector< collHandle_t > CollHandle
Definition: irods_server_globals.cpp:31
rcGlobalExtern.h
rsReadCollection.hpp
readCollection.h
rsGlobalExtern.hpp
CollEnt
Definition: miscUtil.h:113
irods.pypyodbc.status
status
Definition: pypyodbc.py:467
LOG_NOTICE
#define LOG_NOTICE
Definition: rodsLog.h:33
FD_INUSE
#define FD_INUSE
Definition: fileOpr.hpp:21
openCollection.h
readCollection
int readCollection(collHandle_t *collHandle, collEnt_t *collEnt)
Definition: miscUtil.cpp:1119
SYS_FILE_DESC_OUT_OF_RANGE
@ SYS_FILE_DESC_OUT_OF_RANGE
Definition: rodsErrorTable.h:87
rsReadCollection
int rsReadCollection(rsComm_t *, int *handleInxInp, collEnt_t **collEnt)
Definition: rsReadCollection.cpp:15
objMetaOpr.hpp