logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

tlsrpt_errno_from_error_code - returns the `errno` part of an errorcode

Author(S)

BorisLohner
           Author(s).

tlsrpt_errno_from_error_code                       2024-11-06                    TLSRPT_ERRNO_FROM_ERROR_CODE(3)

Description

       The tlsrpt_errno_from_error_code function returns the errno part of an errorcode. In case of internal
       library errors from the TLSRPT_ERR_TLSRPT block the returned value will be a high number to avoid clashes
       with existing errno values. I.e. TLSRPT_ERR_TLSRPT_NESTEDPOLICY is 10731 instead of 10031 to avoid the
       errno part being decoded as EMLINK.

Name

       tlsrpt_errno_from_error_code - returns the `errno` part of an errorcode

Return Value

       The tlsrpt_errno_from_error_code function returns 0 on success and a combined error code on failure. The
       combined error code can be analyzed with the tlsrpt_strerror function.

See Also

tlsrpt_error_code_is_internal(3), tlsrpt_strerror(3)

Synopsis

       #include <tlsrpt.h>

       int tlsrpt_errno_from_error_code(int errorcode)

See Also