Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

err_get_lib(3) [osx man page]

ERR_GET_LIB(3)							      OpenSSL							    ERR_GET_LIB(3)

NAME
ERR_GET_LIB, ERR_GET_FUNC, ERR_GET_REASON - get library, function and reason code SYNOPSIS
#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
The error code returned by ERR_get_error() consists of a library number, function code and reason code. ERR_GET_LIB(), ERR_GET_FUNC() and ERR_GET_REASON() 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 sub-library of OpenSSL has a unique library number; function and reason codes are unique within each sub-library. Note that different libraries may use the same value to signal different functions and reasons. ERR_R_... reason codes such as ERR_R_MALLOC_FAILURE are globally unique. However, when checking for sub-library specific reason codes, be sure to also compare the library number. ERR_GET_LIB(), ERR_GET_FUNC() and ERR_GET_REASON() are macros. RETURN VALUES
The library number, function code and reason code respectively. SEE ALSO
err(3), ERR_get_error(3) HISTORY
ERR_GET_LIB(), ERR_GET_FUNC() and ERR_GET_REASON() are available in all versions of SSLeay and OpenSSL. 50 2013-03-05 ERR_GET_LIB(3)

Check Out this Related Man Page

ERR_GET_LIB(3)							      OpenSSL							    ERR_GET_LIB(3)

NAME
ERR_GET_LIB, ERR_GET_FUNC, ERR_GET_REASON - get library, function and reason code SYNOPSIS
#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
The error code returned by ERR_get_error() consists of a library number, function code and reason code. ERR_GET_LIB(), ERR_GET_FUNC() and ERR_GET_REASON() 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 sub-library of OpenSSL has a unique library number; function and reason codes are unique within each sub-library. Note that different libraries may use the same value to signal different functions and reasons. ERR_R_... reason codes such as ERR_R_MALLOC_FAILURE are globally unique. However, when checking for sub-library specific reason codes, be sure to also compare the library number. ERR_GET_LIB(), ERR_GET_FUNC() and ERR_GET_REASON() are macros. RETURN VALUES
The library number, function code and reason code respectively. SEE ALSO
err(3), ERR_get_error(3) HISTORY
ERR_GET_LIB(), ERR_GET_FUNC() and ERR_GET_REASON() are available in all versions of SSLeay and OpenSSL. 1.0.1e 2013-02-11 ERR_GET_LIB(3)
Man Page

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sending "Shift-F1" to a process

Hi, I need to find out the ASCII code for ALT-F1. The reason is that I'm using Expect to interact with an application and although I have the codes for keys such as 'Escape' (/033); F1 (\033\117\120) and ALT-F1 (\033\133\064\071\176) I have no idea where to find the code for Shift-F1. The... (2 Replies)
Discussion started by: pbritta
2 Replies

2. UNIX for Dummies Questions & Answers

"Make" source code

I'm looking for the source code for the "make" function. The reason being, I need to design my own version of it. Is there a way of viewing it? (3 Replies)
Discussion started by: hi_ted
3 Replies

3. UNIX for Dummies Questions & Answers

Locating C source code

Hi, I'm trying to locate where on the filesystem I can find the source code for C standard libraries. The reason why is I'd like to look at the implementation of "'atoi"'. I've tried a brutal search of "grep -r "atoi" *" from root as root but the search took too long. I'm running redhat 7.3... (3 Replies)
Discussion started by: chadwick0
3 Replies

4. Programming

C++ library in C

Hi, I have a bunch of C++ files whose functionality needs to be included in another piece of C code. Is it possible to create a C++ library and link it with C code? (2 Replies)
Discussion started by: smanu
2 Replies

5. Homework & Coursework Questions

Please help with the following fork code..with complete explanation

I have the following piece of codes. Please explain it to me in great detail how are these codes working. 1. #include <stdio.h> int main(){ int x; x=0; while (x<2 && fork()){ if (!fork()) execlp("echo","x++","x",0); x++; system("echo x+x"); } } 2. #include <stdio.h> int i;... (1 Reply)
Discussion started by: prakashabii
1 Replies

6. UNIX for Dummies Questions & Answers

Code not worked,as expected

Hi All, OS :- HPUX.. I have a following code, which I wrote to meet date and time condition. The below code refuse to work for some reason, I still don't have any idea, why ? the below code, should exit out, if the day happens to be sat and time greater the 04:00 pm. I am bit surprised, that... (2 Replies)
Discussion started by: alok.behria
2 Replies

7. UNIX for Dummies Questions & Answers

[Solved] How to extract single and duplicate lines from file?

Hi, I need help! I have two files, one containing a list of codes and the other a list of codes and their meaning. I need to extract from file 2 all the codes from file 1 into a new file. These are my files: File1: Metbo Metbo Memar Mth Metbo File2: Metbo Methanoculleus... (3 Replies)
Discussion started by: Lokaps
3 Replies