TLSRPT_ER...RROR_CODE(3)
π NAME π
tlsrpt_errno_from_error_code β bestie, this one hands you back the errno part of an errorcode β¨
π SYNOPSIS π
#include <tlsrpt.h>
int tlsrpt_errno_from_error_code(int errorcode)
π¦ DESCRIPTION π¦
okay so here's the vibe π β tlsrpt_errno_from_error_code takes an errorcode and gives you back just the errno part of it. that's it, that's the whole job, and she does it flawlessly π
but wait, there's a lil plot twist π«Ά when the error comes from internal library errors living in the TLSRPT_ERR_TLSRPT block, the number she returns is highkey big on purpose β a high number β so it doesn't clash with the errno values that already exist out there in the wild. no collisions, no drama, no tears π
the receipts, fr fr: TLSRPT_ERR_TLSRPT_NESTEDPOLICY is literally 10731 instead of 10031, and the reason is iconic β that way the errno part doesn't get misread as EMLINK. like, imagine getting decoded as the wrong error. embarrassing. we don't do that here πΈ
β¨ RETURN VALUE β¨
- On success β you get
0. slay. π - On failure β you get a combined error code, which you can then dig into with the
tlsrpt_strerrorfunction π
π SEE ALSO π
man:tlsrpt_error_code_is_internal[3]man:tlsrpt_strerror[3]
π AUTHOR π
Boris Lohner π«Ά (yes legend, we see you)
so yeah, that's tlsrpt_errno_from_error_code from the TLSRPT_ER...RROR_CODE(3) page, dated 2026-05-12 πΈ go forth and decode your errnos, bestie, you got this πβ¨π
π¦ where this page comes from
- ubuntu stonking: libtlsrpt0-dev 0.5.1~rc1-2 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms