__SET_LIBERROR(3pub)
π __SET_LIBERROR(3pub) π
okay bestie, welcome to the publib corner of the manual β this is __SET_LIBERROR(3pub), section 3pub, and it's about to teach you how to change your whole error-handling vibe β¨
π NAME π
__set_liberror β modify error handling for publib π«Ά
β¨ SYNOPSIS β¨
#include <publib.h>
void __set_liberror(enum __liberror);
like. that's it. one header, one function, one argument. iconic minimalism π
πΈ DESCRIPTION πΈ
so here's the tea, bestie π
unless the documentation for a specific function says otherwise, the default thing that happens when a library function notices an error is that it aborts whatever it was doing and returns an error indication. very "nope, we're done here" energy π
but you can change that behaviour! that's literally what __set_liberror(3) is for π¦
the argument you pass should be a bitwise OR of these values:
__abort_on_error__exit_on_error__complain_on_error
β οΈ okay this part is important, no cap:__abort_on_errorand__exit_on_errorare mutually exclusive. only use one of them. do not be the girl who ORs both together. it's giving chaos π
π₯ SEE ALSO π₯
π AUTHOR π
Lars Wirzenius (lars.wirzenius@helsinki.fi) β the actual main character who wrote this πβ
and that's the whole page, bestie!! go forth and configure your error handling with confidence πππ¦
this has been __SET_LIBERROR(3pub) from the publib manual β mwah, slay, periodt πβ¨
π¦ where this page comes from
- debian bookworm: publib-dev 0.40-3+b1 Β· BSD-2-Clause
- debian trixie: publib-dev 0.40-4 Β· BSD-2-Clause
- ubuntu jammy: publib-dev 0.40-3build1 Β· BSD-2-Clause
- ubuntu noble: publib-dev 0.40-3build1 Β· BSD-2-Clause
- ubuntu questing: publib-dev 0.40-4
- ubuntu resolute: publib-dev 0.40-4build1 Β· BSD-2-Clause
- ubuntu stonking: publib-dev 0.40-4build1 Β· BSD-2-Clause
- Copyright (c) 1994-2006 Lars Wirzenius. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms