XCB_SELINUX_SET_PROPERTY_CREATE_CONTEXT(3)

πŸ“¦
version 1.17.0 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

xcb_selinux_set_property_create_context β€” bestie, that's the whole name, and the description slot is literally empty 😭 (we'll get to why in a sec). This one lives in section 3 of the manual, so consider this your xcb_selinux_s...create_context(3) era πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

First thing, the include. Don't forget it or you'll be sad:

#include <xcb/xselinux.h>

πŸŽ€ Request function

xcb_void_cookie_t
       xcb_selinux_set_property_create_context(xcb_connection_t *conn,
       uint32_t context_len, const char *context);

That's the whole vibe. Three args, one void cookie, no cap ✨


πŸ’– REQUEST ARGUMENTS πŸ’–

  • conn β€” the XCB connection to X11. Your lil hotline to the X server, she's the main character here πŸ‘‘
  • context_len β€” TODO: NOT YET DOCUMENTED. yeah. the docs said "we'll do it later" and then never did πŸ™ˆ
  • context β€” also TODO: NOT YET DOCUMENTED. twin flops fr fr πŸ’€
Not me reading the manpage and getting two whole TODOs. They're in the original, so they're staying in. That's the rules bestie 🫢

🌸 DESCRIPTION 🌸

Okay so here's the thing: this section is empty in the source. Like, genuinely nothing. No prose, no lore, no nothing. She's giving mysterious. She's giving "the documentation is a group project and nobody did their part" 😭

What we do know lives in the sections around it β€” the args, the return value, the error situation. Go read those. I got you ✨


🌈 RETURN VALUE 🌈

She hands you back an xcb_void_cookie_t πŸ’–

Now listen, because this part matters: errors (if any) have to be handled in the event loop. So don't just take the cookie and ghost it β€” you've gotta actually check in the event loop, okay?

If you'd rather handle errors directly with xcb_request_check instead? Then use xcb_selinux_set_property_create_context_checked β€” note the _checked at the end, that's the one that'll give you the receipts πŸ”₯

For all the deets, go read xcb-requests(3). Periodt πŸ’…


⭐ ERRORS ⭐

Good news era, actually:

This request does never generate any errors.

Zero. None. Not a single one. Iconic behaviour honestly πŸ‘‘


🧚 SEE ALSO 🧚

Also empty in the original. No cross-references listed, no friends tagged, she's solo in here 🌸


πŸ’œ AUTHOR πŸ’œ

Generated from xselinux.xml. So if something's wrong, it's not a human's fault, it's the XML's fault 😭

Want to fix something or make it better? Contact xcb@lists.freedesktop.org for corrections and improvements. They're accepting bestie applications 🫢


And that's a wrap! This page came to you from the libxcb 1.17.0 era, stamped X Version 11, and it is so yours now. Go forth, pass conn, context_len, and context, and slay πŸ’–βœ¨πŸŽ€πŸ¦‹