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)  

rsCloseCollection.cpp
Go to the documentation of this file.
1 
3 /* rsCloseCollection.c
4  */
5 
6 #include "openCollection.h"
7 #include "closeCollection.h"
8 #include "objMetaOpr.hpp"
9 #include "rcGlobalExtern.h"
10 #include "rsGlobalExtern.hpp"
11 #include "rsCloseCollection.hpp"
12 
13 int
14 rsCloseCollection( rsComm_t*, int *handleInxInp ) {
15  int status;
16  int handleInx = *handleInxInp;
17 
18  if ( handleInx < 0 || static_cast<std::size_t>(handleInx) >= CollHandle.size() ||
19  CollHandle[handleInx].inuseFlag != FD_INUSE ) {
21  "rsCloseCollection: handleInx %d out of range",
22  handleInx );
24  }
25 
26  status = freeCollHandle( handleInx );
27 
28  return status;
29 }
rodsLog
void rodsLog(int level, const char *formatStr,...)
Definition: rodsLog.cpp:86
rsCloseCollection
int rsCloseCollection(rsComm_t *, int *handleInxInp)
Definition: rsCloseCollection.cpp:14
rsComm_t
Definition: rcConnect.h:145
CollHandle
std::vector< collHandle_t > CollHandle
Definition: irods_server_globals.cpp:31
rcGlobalExtern.h
freeCollHandle
int freeCollHandle(int handleInx)
Definition: objDesc.cpp:608
closeCollection.h
rsGlobalExtern.hpp
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
SYS_FILE_DESC_OUT_OF_RANGE
@ SYS_FILE_DESC_OUT_OF_RANGE
Definition: rodsErrorTable.h:87
rsCloseCollection.hpp
objMetaOpr.hpp