MGE General C Library - Full Internal Documentation v1.8.4
Library of general C functions.
|
Details for mge_errno system. More...
Go to the source code of this file.
Macros | |
#define | MGE_ERRNO 1 |
Error is represented by errno. More... | |
#define | MGE_GAI 2 |
sav_errno holds the getaddrinfo error. More... | |
#define | MGE_GAI_BIND 3 |
Bind / Connect failed on GAI data. More... | |
#define | MGE_PARAM 4 |
Error in parameters passed. More... | |
#define | MGE_DUPLICATE_NODE 5 |
Duplicate node found. More... | |
#define | MGE_NODE_NOT_FOUND 6 |
Node not found. More... | |
#define | MGE_CONFIG_PARAM 7 |
Invalid config file param. More... | |
#define | MGE_CONFIG_PARSE 8 |
Cannot parse config file. More... | |
#define | MGE_INVAL_MSG 9 |
Invalid message received. More... | |
#define | MGE_SSH 10 |
SSH error. More... | |
#define | MGE_LOCK_NOT_FOUND 11 |
Lock does not exist. More... | |
#define | MGE_CLIENT_BLOCKED 12 |
Client is blocked on the server. More... | |
#define | MGE_SERVER_BLOCKED 13 |
Server is blocked. More... | |
#define | MGE_ID 14 |
Identification error. More... | |
#define | MGE_PROTO 15 |
Protocol error. More... | |
#define | MGE_GENERAL 16 |
General error. More... | |
Functions | |
const char * | mge_strerror (const int mge_err) |
Return a string describing the error number. More... | |
Variables | |
BEGIN_C_DECLS int | mge_errno |
Error number. More... | |
int | sav_errno |
Used to store errno, gai_errno etc. More... | |
Details for mge_errno system.
Specification of mge_errno values and all mge_errno related information.
Released under the GPLv3 only.
SPDX-License-Identifier: GPL-3.0-only
#define MGE_CLIENT_BLOCKED 12 |
Client is blocked on the server.
#define MGE_CONFIG_PARAM 7 |
Invalid config file param.
#define MGE_CONFIG_PARSE 8 |
Cannot parse config file.
#define MGE_DUPLICATE_NODE 5 |
Duplicate node found.
#define MGE_ERRNO 1 |
Error is represented by errno.
#define MGE_GAI 2 |
sav_errno holds the getaddrinfo error.
#define MGE_GAI_BIND 3 |
Bind / Connect failed on GAI data.
#define MGE_GENERAL 16 |
General error.
#define MGE_ID 14 |
Identification error.
#define MGE_INVAL_MSG 9 |
Invalid message received.
#define MGE_LOCK_NOT_FOUND 11 |
Lock does not exist.
#define MGE_NODE_NOT_FOUND 6 |
Node not found.
#define MGE_PARAM 4 |
Error in parameters passed.
#define MGE_PROTO 15 |
Protocol error.
#define MGE_SERVER_BLOCKED 13 |
Server is blocked.
#define MGE_SSH 10 |
SSH error.
const char * mge_strerror | ( | const int | mge_err | ) |
Return a string describing the error number.
If necessary look to errno, gai_errno etc.
mge_err | The error number to look up. |
|
extern |
Error number.
|
extern |
Used to store errno, gai_errno etc.