globus_xio...iver_cntls(3)
β¨ NAME β¨
globus_xio_file_driver_cntls β Attributes and Cntls.
no cap, that's it. attributes and cntls. the file driver's whole personality is right here π
π¦ SYNOPSIS π¦
Enumerations
enum globus_xio_file_attr_cmd_t {
GLOBUS_XIO_FILE_SET_MODE,
GLOBUS_XIO_FILE_GET_MODE,
GLOBUS_XIO_FILE_SET_FLAGS,
GLOBUS_XIO_FILE_GET_FLAGS,
GLOBUS_XIO_FILE_SET_TRUNC_OFFSET,
GLOBUS_XIO_FILE_GET_TRUNC_OFFSET,
GLOBUS_XIO_FILE_SET_HANDLE,
GLOBUS_XIO_FILE_GET_HANDLE,
GLOBUS_XIO_FILE_SET_BLOCKING_IO,
GLOBUS_XIO_FILE_GET_BLOCKING_IO,
GLOBUS_XIO_FILE_SEEK
}
Functions
okay so these are all the overloaded flavours of globus_xio_attr_cntl and globus_xio_handle_cntl, and yes there are a LOT of them, we're listing every single one, nobody gets left behind π«Ά
globus_result_t globus_xio_attr_cntl (attr, driver,
GLOBUS_XIO_FILE_SET_MODE, int mode)
globus_result_t globus_xio_attr_cntl (attr, driver,
GLOBUS_XIO_FILE_GET_MODE, int *mode_out)
globus_result_t globus_xio_attr_cntl (attr, driver,
GLOBUS_XIO_FILE_SET_FLAGS, int flags)
globus_result_t globus_xio_attr_cntl (attr, driver,
GLOBUS_XIO_FILE_GET_FLAGS, int *flags_out)
globus_result_t globus_xio_attr_cntl (attr, driver,
GLOBUS_XIO_FILE_SET_TRUNC_OFFSET, globus_off_t offset)
globus_result_t globus_xio_attr_cntl (attr, driver,
GLOBUS_XIO_FILE_GET_TRUNC_OFFSET, globus_off_t *offset_out)
globus_result_t globus_xio_attr_cntl (attr, driver,
GLOBUS_XIO_FILE_SET_HANDLE, globus_xio_system_file_t handle)
globus_result_t globus_xio_attr_cntl (attr, driver,
GLOBUS_XIO_FILE_GET_HANDLE, globus_xio_system_file_t *handle_out)
globus_result_t globus_xio_handle_cntl (handle, driver,
GLOBUS_XIO_FILE_GET_HANDLE, globus_xio_system_file_t *handle_out)
globus_result_t globus_xio_attr_cntl (attr, driver,
GLOBUS_XIO_FILE_SET_BLOCKING_IO, globus_bool_t use_blocking_io)
globus_result_t globus_xio_handle_cntl (handle, driver,
GLOBUS_XIO_FILE_SET_BLOCKING_IO, globus_bool_t use_blocking_io)
globus_result_t globus_xio_attr_cntl (attr, driver,
GLOBUS_XIO_FILE_GET_BLOCKING_IO, globus_bool_t *use_blocking_io_out)
globus_result_t globus_xio_handle_cntl (handle, driver,
GLOBUS_XIO_FILE_GET_BLOCKING_IO, globus_bool_t *use_blocking_io_out)
globus_result_t globus_xio_handle_cntl (handle, driver,
GLOBUS_XIO_FILE_SEEK, globus_off_t *in_out_offset,
globus_xio_file_whence_t whence)
πΈ Detailed Description πΈ
Attributes and Cntls.
File driver specific attrs and cntls. it's giving "everything you'd ever wanna poke at on a file driver, in one place" β¨
See also
globus_xio_attr_cntl()globus_xio_handle_cntl()
π Enumeration Type Documentation π
enum globus_xio_file_attr_cmd_t
doxygen varargs filter stuff β File driver specific cntls.
here's the lineup of every enumerator, bestie, and each one just points you back at its function:
GLOBUS_XIO_FILE_SET_MODEβ See usage for:globus_xio_attr_cntlGLOBUS_XIO_FILE_GET_MODEβ See usage for:globus_xio_attr_cntlGLOBUS_XIO_FILE_SET_FLAGSβ See usage for:globus_xio_attr_cntlGLOBUS_XIO_FILE_GET_FLAGSβ See usage for:globus_xio_attr_cntlGLOBUS_XIO_FILE_SET_TRUNC_OFFSETβ See usage for:globus_xio_attr_cntlGLOBUS_XIO_FILE_GET_TRUNC_OFFSETβ See usage for:globus_xio_attr_cntlGLOBUS_XIO_FILE_SET_HANDLEβ See usage for:globus_xio_attr_cntlGLOBUS_XIO_FILE_GET_HANDLEβ See usage for:globus_xio_attr_cntl,globus_xio_handle_cntlGLOBUS_XIO_FILE_SET_BLOCKING_IOβ See usage for:globus_xio_attr_cntl,globus_xio_handle_cntlGLOBUS_XIO_FILE_GET_BLOCKING_IOβ See usage for:globus_xio_attr_cntl,globus_xio_handle_cntlGLOBUS_XIO_FILE_SEEKβ See usage for:globus_xio_handle_cntl
π Function Documentation π
globus_result_t globus_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. π
Parameters
- use_blocking_io_out β The flag will be set here.
GLOBUS_TRUEfor enabled.
string opt: blocking=bool
globus_result_t globus_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.
Parameters
- flags_out β The current flags will be stored here.
globus_result_t globus_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.
Parameters
- handle_out β The file handle (fd or
HANDLE) will be stored here. If none is set,GLOBUS_XIO_TCP_INVALID_HANDLEwill be set.
globus_result_t globus_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.
Parameters
- mode_out β The current mode will be stored here.
globus_result_t globus_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.
Parameters
- offset_out β The offset will be stored here.
globus_result_t globus_xio_attr_cntl (attr, driver, GLOBUS_XIO_FILE_SET_BLOCKING_IO, globus_bool_t use_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. like, the WHOLE app. dead. π
Parameters
- use_blocking_io β If
GLOBUS_TRUE, true blocking io will be enabled.GLOBUS_FALSEwill disable it (default);
globus_result_t globus_xio_attr_cntl (attr, driver, GLOBUS_XIO_FILE_SET_FLAGS, int flags)
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. π
Parameters
- flags β A bitwise OR of all the flags desired
See also
globus_xio_file_flag_t
string opt: flags=int
globus_result_t globus_xio_attr_cntl (attr, driver, GLOBUS_XIO_FILE_SET_HANDLE, globus_xio_system_file_t handle)
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.
Parameters
- handle β Use this handle (fd or
HANDLE) for the file.
β οΈ Note: close() will not be called on this handle. so don't come for me when you're the one who has to clean it up π
globus_result_t globus_xio_attr_cntl (attr, driver, GLOBUS_XIO_FILE_SET_MODE, int mode)
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. π
Parameters
- mode β A bitwise OR of all the modes desired
See also
globus_xio_file_mode_t
string opt: mode=int
globus_result_t globus_xio_attr_cntl (attr, driver, GLOBUS_XIO_FILE_SET_TRUNC_OFFSET, globus_off_t offset)
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)
π fr fr, the extra data is GONE. not archived, not backed up, lost. respect the offset.
Parameters
- offset β The desired size of the file.
globus_result_t globus_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.
Parameters
- use_blocking_io_out β The flag will be set here.
GLOBUS_TRUEfor enabled.
string opt: blocking=bool
globus_result_t globus_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.
Parameters
- handle_out β The file handle (fd or
HANDLE) will be stored here. If none is set,GLOBUS_XIO_TCP_INVALID_HANDLEwill be set.
globus_result_t globus_xio_handle_cntl (handle, driver, GLOBUS_XIO_FILE_SEEK, globus_off_t * in_out_offset, globus_xio_file_whence_t whence)
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. π¦
Parameters
- in_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.
See also
globus_xio_file_whence_tGLOBUS_XIO_SEEK
globus_result_t globus_xio_handle_cntl (handle, driver, GLOBUS_XIO_FILE_SET_BLOCKING_IO, globus_bool_t use_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. yes, again. it's that serious. main character energy but for deadlocks π
Parameters
- use_blocking_io β If
GLOBUS_TRUE, true blocking io will be enabled.GLOBUS_FALSEwill disable it (default);
π§ Author π§
Generated automatically by Doxygen for globus_xio from the source code.
okay bestie that's the whole page, you ate it π and for the cute lil sign-off: this whole thing is globus_xio, Version 6.6, straight out of the Library Functions Manual. go forth and cntl your files, no cap ππ
π¦ where this page comes from
- epel 10: globus-xio-doc 6.6-4.el10_0 Β· Apache-2.0
- fedora 43: globus-xio-doc 6.6-9.fc43 Β· Apache-2.0
- fedora 44: globus-xio-doc 6.6-10.fc44 Β· Apache-2.0
- ubuntu resolute: libglobus-xio-doc 6.6-3build2 Β· Apache-2.0
- ubuntu stonking: libglobus-xio-doc 6.6-4 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms