brlapi_misc(3)

πŸ“¦
version 6.9.1 Β· 6 versions
, in fedora 43, fedora 44, opensuse-leap 16.0, ubuntu resolute, ubuntu stonking

✨ brlapi_misc β€” Miscellaneous functions ✨

okay bestie, welcome to brlapi_misc, straight out of the Library Functions Manual πŸ’– this one's the grab-bag page β€” it's literally just called "Miscellaneous functions" and honestly? it's giving little drawer of useful things. two whole functions. tiny page. enormous energy. let's go πŸŽ€


🌸 SYNOPSIS 🌸

Functions

int BRLAPI_STDCALL brlapi_pause (int timeout_ms)
int BRLAPI_STDCALL brlapi__pause (brlapi_handle_t *handle, int timeout_ms)
int BRLAPI_STDCALL brlapi_sync (void)
int BRLAPI_STDCALL brlapi__sync (brlapi_handle_t *handle)

look at those return types. int everywhere. consistent queen πŸ’…


πŸ¦‹ Detailed Description

no cap, the detailed description section is just sitting there with nothing in it 😭 so there's no extra lore to spill here. moving on to the good stuff, which is the function docs. periodt.


πŸ‘‘ Function Documentation

int BRLAPI_STDCALL brlapi__pause (brlapi_handle_t * handle, int timeout_ms)

bestie this one is shy πŸ™ˆ the entire documentation for it is just a reference note: it references BRLAPI_STDCALL. that's it. that's the whole entry. iconic in a minimalist way honestly ✨

int BRLAPI_STDCALL brlapi__sync (brlapi_handle_t * handle)

same vibe, same energy πŸ’œ the whole documented content is that it references BRLAPI_STDCALL. the double-underscore versions are keeping it mysterious. iykyk.

int BRLAPI_STDCALL brlapi_pause (int timeout_ms)

okay so THIS one actually does something and i'm obsessed πŸ”₯

it waits until an event is received from the BrlAPI server. that's the whole job. it just. sits there. patiently. waiting for the server to send something 🫢 main character patience.

Parameters

  • timeout_ms β€” this specifies an optional timeout. it can be 0 for polling πŸ‘€, or -1 for an infinite wait 🌈 (yes, infinite, she will wait FOREVER, no thoughts head empty).

Returns

  • 0 on timeout πŸŽ€
  • -1 on error, or on interruption by a signal or a parameter change notification β€” and in that interruption case, brlapi_errno will be BRLAPI_ERROR_LIBCERR and errno will be EINTR πŸ’€ so check those, bestie, don't get caught lacking

and yes, it also references BRLAPI_STDCALL. that reference tag is everywhere on this page, it's the moment ✨

int BRLAPI_STDCALL brlapi_sync (void )

this one is lowkey the MVP ⭐ what it does: it synchronizes against any pending exception, and returns it. like, it goes and fetches the exception for you. this is how you can synchronously catch exception raised by brlapi_write calls β€” which, if you've ever been jumpscared by an async exception from a write, you know why this matters 😭

how does it pull that off? it works by temporarily replacing the current exception handler by its own handler. sneaky. swap in, grab the exception, done 🧚

Returns

  • 0 if no exception was pending πŸ“
  • -1 if an exception was caught πŸ’…

and yep β€” references BRLAPI_STDCALL again. we been knew.

⚠️ tiny heads-up, bestie: brlapi_sync swaps your current exception handler out for its own while it does its thing. that's literally the mechanism, not a rumor. don't say i didn't tell you πŸ’–

πŸ’œ Author

Generated automatically by Doxygen for BrlAPI from the source code. so no human author to thank, the robots did this one πŸ€–βœ¨


okay that's the whole page, we ate and left no crumbs πŸ‘‘

cute little sign-off for you: this was BrlAPI, Version 0.8, and the page is brlapi_misc(3) πŸŽ€ mwah, go read the other manpages, love u bye πŸ’–πŸŒΈ

πŸ“¦ where this page comes from