xcb_glx_copy_context(3)
β¨ xcb_glx_copy_context β¨
okay so bestie, we're diving into a page from the XCB Requests corner of the Unix manual β it's xcb_glx_copy_context(3) and honestly? it's giving mysterious. π¦ the name itself is basically just xcb_glx_copy_context - with literally nothing after the dash, so buckle up, we're reading the vibes AND the facts. π
πΈ NAME πΈ
xcb_glx_copy_context β and that's it. no little tagline, no "does the thing with the contexts," nothing. the manpage left it blank. iconic behaviour, honestly. π
π SYNOPSIS π
first, the include. you gotta bring in the GLX header, no skips:
#include <xcb/glx.h>
β¨ Request function β¨
and here's the actual function signature, character for character, no cap:
xcb_void_cookie_t xcb_glx_copy_context(xcb_connection_t *conn,
xcb_glx_context_t src, xcb_glx_context_t dest, uint32_t mask,
xcb_glx_context_tag_t src_context_tag);
π«Ά REQUEST ARGUMENTS π«Ά
every single one, in order, with their real types β here's the rundown:
connβ yourxcb_connection_t *, aka the XCB connection to X11. this one's the only arg the page actually explains, and it explains it as "The XCB connection to X11." periodt.srcβ anxcb_glx_context_t. the page says, and I quote:TODO: NOT YET DOCUMENTED.πdestβ also anxcb_glx_context_t. and also:TODO: NOT YET DOCUMENTED.maskβ auint32_t. you guessed it:TODO: NOT YET DOCUMENTED.πsrc_context_tagβ anxcb_glx_context_tag_t. and once more, for the people in the back:TODO: NOT YET DOCUMENTED.
not me pointing out that four out of five arguments are literally undocumented in the source material. I'm not gonna make up what they do β that would be lying to you, and lying is NOT the vibe. if the manpage doesn't say it, I don't say it. π«‘
π DESCRIPTION π
okay so here's the tea: the DESCRIPTION section in the original is... empty. nothing. a void. a little blank space where the lore should be. π
β RETURN VALUE β
this one's got actual content, slay. it returns an xcb_void_cookie_t. and here's the important part β errors (if any) have to be handled in the event loop. π₯
if you'd rather handle errors directly with xcb_request_check instead, use xcb_glx_copy_context_checked. the details live in xcb-requests(3), so go read that one too, bestie. π
π ERRORS π
good news, genuinely: this request does never generate any errors. that's the whole section. clean. pristine. no drama. β¨
π§ SEE ALSO π§
...it's empty. the section exists, the heading is there, and underneath it there is nothing. not a single reference. I'm keeping it exactly as empty as I found it because that's the rule. π
π AUTHOR π
generated from glx.xml. and if you've got corrections or improvements, hit up xcb@lists.freedesktop.org β they explicitly want the feedback. π«Ά
and that's the whole page, babe! this one came from X Version 11, libxcb 1.17.0 β go forth and copy those contexts (whatever that means, since the manpage won't tell us π). mwah, stay hydrated, and may all your cookies be void. π ππ
π¦ where this page comes from
- alpine 3.22: libxcb-doc 1.17.0-r0 Β· MIT
- alpine 3.23: libxcb-doc 1.17.0-r1 Β· MIT
- alpine 3.24: libxcb-doc 1.17.0-r2 Β· MIT
- arch rolling: libxcb 1.17.0-1 Β· X11
- centos-stream 10: libxcb-devel 1.17.0-3.el10 Β· X11
- debian trixie: libxcb-doc 1.17.0-2
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- nixpkgs unstable: libxcb 1.17.0
- opensuse-leap 16.0: libxcb-devel-doc 1.17.0-160000.2.2 Β· MIT
- ubuntu questing: libxcb-doc 1.17.0-2build1
- ubuntu resolute: libxcb-doc 1.17.0-2ubuntu1
- ubuntu stonking: libxcb-doc 1.17.0-2ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms