GLOBUS_XIO_FILE_DRIVER_INSTANCE(3)
β¨ NAME β¨
globus_xio_file_driver_instance β Opening/Closing π
okay bestie, this is the Opening/Closing page, like literally that's the whole vibe β¨
πΈ SYNOPSIS πΈ
π« Detailed Description π«
Opening/Closing. yes queen, that's the summary, we move π
So here's the tea π β you can make an XIO handle with the file driver by calling:
globus_xio_handle_create()
Now, if there's no handle set on the attr you pass into the globus_xio_open() call? It just does the equivalent of an open() call. Periodt. In that case your contact string has to contain either:
- a pathname, or
- one of
stdin://,stdout://, orstderr://π«Ά
If you go with a pathname, that path gets opened, simple as. If you use one of those schemes instead, the corresponding stdio handle gets used β and it's retrieved with fileno(). iykyk π
Either way, the most efficient move is to call the blocking version of globus_xio_open(). Not me telling you to be efficient, it's just literally facts π It's also totally safe to call inside a locked critical section, so no stress there π₯
And when the XIO handle gets closed? The file driver destroys its internal resources and closes the fd β unless that fd was set on an attr, or it got converted from one of the stdio handles. Those ones are not it, they stay put π
π friendly reminder that the fd situation at close time depends on where the fd came from β attr-set or stdio-converted fds are the exception, no cap.
π Author π
Generated automatically by Doxygen for globus_xio from the source code. iconic behaviour honestly, the robots did that π
and that's the whole page bestie, mwah π
signing off from globus_xio Version 6.6, manual section 3 β stay slay, drink water, close your fds π¦β¨
π¦ 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