*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> ERR_GET_LIB (3)              



NAME    [Toc]    [Back]

       ERR_GET_LIB,  ERR_GET_FUNC,  ERR_GET_REASON - Get library,
       function and reason code

SYNOPSIS    [Toc]    [Back]

       #include <openssl/err.h>

       int ERR_GET_LIB(
               unsigned long e ); int ERR_GET_FUNC(
               unsigned long e ); int ERR_GET_REASON(
               unsigned long e );

DESCRIPTION    [Toc]    [Back]

       The error code returned by  the  ERR_get_error()  function
       consists  of  a  library  number, function code and reason
       code. The ERR_GET_LIB(), ERR_GET_FUNC(), and  ERR_GET_REASON()
 macros can be used to extract these.

       The  library  number  and function code describe where the
       error occurred.  The reason code is the information  about
       what went wrong.

       Each  sublibrary  of  OpenSSL has a unique library number;
       function and reason codes are unique  within  each  sublibrary.
  Different libraries may use the same value to signal
 different functions and reasons.

       The ERR_R_...  reason codes, such as ERR_R_MALLOC_FAILURE,
       are globally unique. However, when checking for sublibrary
       specific reason codes, be sure to compare the library number.

RETURN VALUES    [Toc]    [Back]

       These  functions return the library number, function code,
       and reason code respectively.

HISTORY    [Toc]    [Back]

       ERR_GET_LIB(), ERR_GET_FUNC(),  and  ERR_GET_REASON()  are
       available in all versions of SSLeay and OpenSSL.

SEE ALSO    [Toc]    [Back]

       Functions: err(3), ERR_get_error(3)

[ Back ]
 Similar pages
Name OS Title
pthread_use_only_cpu Tru64 Restricts a thread to running only on the specified CPU. If that CPU is unavailable for any reason, ...
iconv IRIX code conversion function
iconv_close IRIX code conversion deallocation function
iconv_open IRIX code conversion allocation function
alGetErrorString IRIX get a string corresponding to an Audio Library error code
ipsec_strerror NetBSD error code for IPsec policy manipulation library
sconv HP-UX hp9000 utility for Simplified-Chinese code code-converter
dmFS1016Decode IRIX implements the US Federal Standard 1016 4800/7200/9600 bits/s CELP (Code Excited Linear Predictive) Voice Code
dmFS1016Encode IRIX implements the US Federal Standard 1016 4800/7200/9600 bits/s CELP (Code Excited Linear Predictive) Voice Code
xsubpp OpenBSD compiler to convert Perl XS code into C code
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service