gensio_err(3)
π gensio_err β error reporting values for gensio functions π
okay bestie, we're in the Library Functions Manual section and this is the page about all the little error codes gensio throws at you. no cap, it's lowkey the most important list you'll ever read. β¨
πΈ NAME πΈ
gensio_err β error reporting values for gensio functions
π¦ SYNOPSIS π¦
#include <gensio/gensio_err.h>
const char *gensio_err_to_str(int err)
β¨ DESCRIPTION β¨
so here's the tea π«: every gensio function that returns an error, and every value that shows up in a callback from the gensio library, is handing you a gensio error. that's it, that's the whole vibe. possible values are:
GE_NOERRβ no error πGE_NOMEMβ out of memory πGE_NOTSUPβ operation not supported πGE_INVALβ invalid data to parameterGE_NOTFOUNDβ value or file not found πGE_EXISTSβ value already existsGE_OUTOFRANGEβ value out of rangeGE_INCONSISTENTβ parameters inconsistent in callGE_NODATAβ no data was available for the functionGE_OSERRβ OS error, see logs πGE_INUSEβ object was already in useGE_INPROGRESSβ operation is in progress β³GE_NOTREADYβ object was not ready for operationGE_TOOBIGβ value was too large for dataGE_TIMEDOUTβ operation timed out βGE_RETRYβ retry operation later πGE_KEYNOTFOUNDβ unable to find the given key πGE_CERTREVOKEDβ key was revokedGE_CERTEXPIREDβ key was expiredGE_KEYINVALIDβ key is not validGE_NOCERTβ certificate not providedGE_CERTINVALIDβ certificate is not validGE_PROTOERRβ protocol errorGE_COMMERRβ communication error π‘GE_IOERRβ internal I/O errorGE_REMCLOSEβ remote end closed connection πGE_HOSTDOWNβ host could not be reachedGE_CONNREFUSEβ connection refused π«GE_DATAMISSINGβ data was missingGE_CERTNOTFOUNDβ unable to find given certificateGE_AUTHREJECTβ authentication tokens rejectedGE_ADDRINUSEβ address already in useGE_INTERRUPTEDβ operation was interrupted by a signal β‘GE_SHUTDOWNβ operation on shutdown file descriptorGE_LOCALCLOSEDβ local side closed connectionGE_PERMβ permission denied πGE_APPERRβ application errorGE_UNKNOWN_NAME_ERRORβ unknown name server lookup failureGE_NAME_ERRORβ unable to find a valid name on the name serverGE_NAME_SERVER_FAILUREβ serious name server failure πGE_NAME_INVALIDβ invalid name server informationGE_NAME_NET_NOT_UPβ network address for the given name is not available
and then there's gensio_err_to_str, which is the glow-up function: it converts an integer error value into the given string. so you can actually read what went wrong instead of staring at a number like it's a cryptic text from your ex. iconic behavior, honestly. π
π SEE ALSO π
gensio(5), gensio_err(3), gensio_log(3)
that's the whole page, bestie!! go forth and handle your errors with main character energy π
this was the gensio_err(3) page from the Library Functions Manual, dated 24 Feb 2019 β mwah, love u, bye π
π¦ where this page comes from
- alpine 3.22: gensio-doc 2.8.14-r0 Β· GPL-2.0-only AND LGPL-2.1-only AND Apache-2.0
- alpine 3.23: gensio-doc 2.8.14-r0 Β· GPL-2.0-only AND LGPL-2.1-only AND Apache-2.0
- alpine 3.24: gensio-doc 2.8.14-r0 Β· GPL-2.0-only AND LGPL-2.1-only AND Apache-2.0
- arch rolling: gensio 3.0.4-1 Β· GPL
- debian trixie: libgensio-dev 2.8.13-7 Β· GPL-2.0-only
- epel 9: libgensio-devel 2.8.15-1.el9 Β· GPL-2.0-only AND LGPL-2.1-only AND Apache-2.0
- fedora 43: libgensio-devel 2.8.15-5.fc43 Β· GPL-2.0-only AND LGPL-2.1-only AND Apache-2.0
- fedora 43: libgensio-devel 2.8.15-5.fc43 Β· GPL-2.0-only AND LGPL-2.1-only AND Apache-2.0
- fedora 43: libgensio-devel 3.0.4-1.fc43 Β· GPL-2.0-only AND LGPL-2.1-only AND Apache-2.0
- fedora 43: libgensio-devel 3.0.4-1.fc43 Β· GPL-2.0-only AND LGPL-2.1-only AND Apache-2.0
- fedora 44: libgensio-devel 3.0.2-1.fc44 Β· GPL-2.0-only AND LGPL-2.1-only AND Apache-2.0
- fedora 44: libgensio-devel 3.0.2-1.fc44 Β· GPL-2.0-only AND LGPL-2.1-only AND Apache-2.0
- fedora 44: libgensio-devel 3.0.4-1.fc44 Β· GPL-2.0-only AND LGPL-2.1-only AND Apache-2.0
- fedora 44: libgensio-devel 3.0.4-1.fc44 Β· GPL-2.0-only AND LGPL-2.1-only AND Apache-2.0
- nixos 26.05: gensio 3.0.2
- nixpkgs unstable: gensio 3.0.2
- opensuse-leap 16.0: gensio-devel 2.8.2-bp160.1.13 Β· Apache-2.0 AND GPL-2.0-only AND LGPL-2.1-only
- opensuse-leap 16.0: gensio-devel 2.8.2-bp160.1.13 Β· Apache-2.0 AND GPL-2.0-only AND LGPL-2.1-only
- opensuse-leap 16.0: gensio-devel 2.8.2-bp160.1.13 Β· Apache-2.0 AND GPL-2.0-only AND LGPL-2.1-only
- opensuse-leap 16.0: gensio-devel 2.8.2-bp160.1.13 Β· Apache-2.0 AND GPL-2.0-only AND LGPL-2.1-only
- ubuntu noble: libgensio-dev 2.8.2-6.1build1 Β· GPL-2.0-only
- ubuntu questing: libgensio-dev 2.8.13-7
- ubuntu resolute: libgensio-dev 3.0.0-1build1 Β· GPL-2.0-only
- ubuntu stonking: libgensio-dev 3.0.0-1ubuntu1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms