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)  

rcFileOpen.cpp
Go to the documentation of this file.
1 #include "fileOpen.h"
2 #include "procApiRequest.h"
3 #include "apiNumber.h"
4 
22 int
23 rcFileOpen( rcComm_t *conn, fileOpenInp_t *fileOpenInp ) {
24  int status;
25 
26 #if defined(osx_platform)
27  if ( fileOpenInp->flags & O_TRUNC ) {
28  fileOpenInp->flags = fileOpenInp->flags ^ O_TRUNC;
29  fileOpenInp->flags = fileOpenInp->flags | 0x200;
30  }
31 #endif
32  status = procApiRequest( conn, FILE_OPEN_AN, fileOpenInp, NULL,
33  ( void ** ) NULL, NULL );
34 
35  return status;
36 }
37 
rcComm_t
Definition: rcConnect.h:95
NULL
#define NULL
Definition: rodsDef.h:70
fileOpen.h
FILE_OPEN_AN
#define FILE_OPEN_AN
Definition: apiNumber.h:14
fileOpenInp_t::flags
int flags
Definition: fileOpen.h:21
rcFileOpen
int rcFileOpen(rcComm_t *conn, fileOpenInp_t *fileOpenInp)
Definition: rcFileOpen.cpp:23
procApiRequest.h
irods.pypyodbc.status
status
Definition: pypyodbc.py:467
apiNumber.h
procApiRequest
int procApiRequest(rcComm_t *conn, int apiNumber, void *inputStruct, bytesBuf_t *inputBsBBuf, void **outStruct, bytesBuf_t *outBsBBuf)
Definition: procApiRequest.cpp:55
fileOpenInp_t
Definition: fileOpen.h:14