brlapi_misc(3)
β¨ 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 be0for polling π, or-1for an infinite wait π (yes, infinite, she will wait FOREVER, no thoughts head empty).
Returns
0on timeout π-1on error, or on interruption by a signal or a parameter change notification β and in that interruption case,brlapi_errnowill beBRLAPI_ERROR_LIBCERRanderrnowill beEINTRπ 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
0if no exception was pending π-1if 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
- fedora 43: brlapi-devel 0.8.7-4.fc43 Β· LGPL-2.0-or-later AND LGPL-2.1-or-later AND GPL-2.0-or-later
- fedora 43: brlapi-devel 0.8.7-4.fc43 Β· LGPL-2.0-or-later AND LGPL-2.1-or-later AND GPL-2.0-or-later
- fedora 44: brlapi-devel 0.8.7-8.fc44 Β· LGPL-2.0-or-later AND LGPL-2.1-or-later AND GPL-2.0-or-later
- fedora 44: brlapi-devel 0.8.7-8.fc44 Β· LGPL-2.0-or-later AND LGPL-2.1-or-later AND GPL-2.0-or-later
- opensuse-leap 16.0: brlapi-devel 6.8-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: brlapi-devel 6.8-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: brlapi-devel 6.8-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: brlapi-devel 6.8-160000.2.2 Β· LGPL-2.1-or-later
- ubuntu resolute: libbrlapi-dev 6.7-1ubuntu6
- ubuntu stonking: libbrlapi-dev 6.9.1+repack-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms