globus_result_tglobus_xio_attr_cntl(attr,driver,GLOBUS_XIO_FILE_GET_BLOCKING_IO,globus_bool_t*use_blocking_io_out)
This is an overloaded member function, provided for convenience. It differs from the above function only
in what argument(s) it accepts. Get the blocking io status in use or in attr.
Parametersuse_blocking_io_out The flag will be set here. GLOBUS_TRUE for enabled.
string opt: blocking=boolglobus_result_tglobus_xio_attr_cntl(attr,driver,GLOBUS_XIO_FILE_GET_FLAGS,int*flags_out)
This is an overloaded member function, provided for convenience. It differs from the above function only
in what argument(s) it accepts. Get the file open flags.
Parametersflags_out The current flags will be stored here.
globus_result_tglobus_xio_attr_cntl(attr,driver,GLOBUS_XIO_FILE_GET_HANDLE,globus_xio_system_file_t*handle_out)
This is an overloaded member function, provided for convenience. It differs from the above function only
in what argument(s) it accepts. Get the file handle in use or in attr.
Parametershandle_out The file handle (fd or HANDLE) will be stored here. If none is set,
GLOBUS_XIO_TCP_INVALID_HANDLE will be set.
globus_result_tglobus_xio_attr_cntl(attr,driver,GLOBUS_XIO_FILE_GET_MODE,int*mode_out)
This is an overloaded member function, provided for convenience. It differs from the above function only
in what argument(s) it accepts. Get the file create mode.
Parametersmode_out The current mode will be stored here.
globus_result_tglobus_xio_attr_cntl(attr,driver,GLOBUS_XIO_FILE_GET_TRUNC_OFFSET,globus_off_t*offset_out)
This is an overloaded member function, provided for convenience. It differs from the above function only
in what argument(s) it accepts. Get the file truncate offset.
Parametersoffset_out The offset will be stored here.
globus_result_tglobus_xio_attr_cntl(attr,driver,GLOBUS_XIO_FILE_SET_BLOCKING_IO,globus_bool_tuse_blocking_io)
This is an overloaded member function, provided for convenience. It differs from the above function only
in what argument(s) it accepts. Enable true blocking io when making globus_xio_read/write() calls. Note:
use with caution. You can deadlock an entire app with this.
Parametersuse_blocking_io If GLOBUS_TRUE, true blocking io will be enabled. GLOBUS_FALSE will disable it
(default);
globus_result_tglobus_xio_attr_cntl(attr,driver,GLOBUS_XIO_FILE_SET_FLAGS,intflags)
This is an overloaded member function, provided for convenience. It differs from the above function only
in what argument(s) it accepts. Set the file open flags.
The default flags specify to create the file if it doesn't exist, open it for reading and writing, and
interpret it as a binary file.
Parametersflags A bitwise OR of all the flags desired
Seealsoglobus_xio_file_flag_t
string opt: flags=intglobus_result_tglobus_xio_attr_cntl(attr,driver,GLOBUS_XIO_FILE_SET_HANDLE,globus_xio_system_file_thandle)
This is an overloaded member function, provided for convenience. It differs from the above function only
in what argument(s) it accepts. Set the file handle to use.
Do not open a new file, use this pre-opened handle instead.
Parametershandle Use this handle (fd or HANDLE) for the file. Note: close() will not be called on this handle.
globus_result_tglobus_xio_attr_cntl(attr,driver,GLOBUS_XIO_FILE_SET_MODE,intmode)
This is an overloaded member function, provided for convenience. It differs from the above function only
in what argument(s) it accepts. Set the file create mode.
Use this to set the permissions a non-existent file is created with, The default mode is 0644.
Parametersmode A bitwise OR of all the modes desired
Seealsoglobus_xio_file_mode_t
string opt: mode=intglobus_result_tglobus_xio_attr_cntl(attr,driver,GLOBUS_XIO_FILE_SET_TRUNC_OFFSET,globus_off_toffset)
This is an overloaded member function, provided for convenience. It differs from the above function only
in what argument(s) it accepts. Set the file truncate offset.
Use this in conjunction with the GLOBUS_XIO_FILE_TRUNC flag to truncate a file to a non-zero offset. If
the file was larger than offset bytes, the extra data is lost. If the file was shorter or non-existent,
it is extended and the extended part reads as zeros. (default is 0)
Parametersoffset The desired size of the file.
globus_result_tglobus_xio_handle_cntl(handle,driver,GLOBUS_XIO_FILE_GET_BLOCKING_IO,globus_bool_t*use_blocking_io_out)
This is an overloaded member function, provided for convenience. It differs from the above function only
in what argument(s) it accepts. Get the blocking io status in use or in attr.
Parametersuse_blocking_io_out The flag will be set here. GLOBUS_TRUE for enabled.
string opt: blocking=boolglobus_result_tglobus_xio_handle_cntl(handle,driver,GLOBUS_XIO_FILE_GET_HANDLE,globus_xio_system_file_t*handle_out)
This is an overloaded member function, provided for convenience. It differs from the above function only
in what argument(s) it accepts. Get the file handle in use or in attr.
Parametershandle_out The file handle (fd or HANDLE) will be stored here. If none is set,
GLOBUS_XIO_TCP_INVALID_HANDLE will be set.
globus_result_tglobus_xio_handle_cntl(handle,driver,GLOBUS_XIO_FILE_SEEK,globus_off_t*in_out_offset,globus_xio_file_whence_twhence)
This is an overloaded member function, provided for convenience. It differs from the above function only
in what argument(s) it accepts. Reposition read/write file offset.
Parametersin_out_offset Specify the desired offset (according to whence). On success, the actual file offset
will be stored here.
whence Specify how offset should be interpreted.
Seealsoglobus_xio_file_whence_tGLOBUS_XIO_SEEKglobus_result_tglobus_xio_handle_cntl(handle,driver,GLOBUS_XIO_FILE_SET_BLOCKING_IO,globus_bool_tuse_blocking_io)
This is an overloaded member function, provided for convenience. It differs from the above function only
in what argument(s) it accepts. Enable true blocking io when making globus_xio_read/write() calls. Note:
use with caution. You can deadlock an entire app with this.
Parametersuse_blocking_io If GLOBUS_TRUE, true blocking io will be enabled. GLOBUS_FALSE will disable it
(default);