MGE General C Library - Full Internal Documentation  v1.7.4
Library of general C functions.
mge-errno.h File Reference

Details for mge_errno system. More...

#include <sys/types.h>
#include <libmgec/mge-portability.h>
Include dependency graph for mge-errno.h:
This graph shows which files directly or indirectly include this file:

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_ID   13
 Identification error. More...
 
#define MGE_PROTO   14
 Protocol error. More...
 
#define MGE_GENERAL   15
 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...
 

Detailed Description

Details for mge_errno system.

Specification of mge_errno values and all mge_errno related information.

Author
Copyright (C) 2017-2022 Mark Grant

Released under the GPLv3 only.
SPDX-License-Identifier: GPL-3.0-only

Version
v1.0.15 ==== 16/09/2022

Macro Definition Documentation

◆ MGE_CLIENT_BLOCKED

#define MGE_CLIENT_BLOCKED   12

Client is blocked on the server.

◆ MGE_CONFIG_PARAM

#define MGE_CONFIG_PARAM   7

Invalid config file param.

◆ MGE_CONFIG_PARSE

#define MGE_CONFIG_PARSE   8

Cannot parse config file.

◆ MGE_DUPLICATE_NODE

#define MGE_DUPLICATE_NODE   5

Duplicate node found.

◆ MGE_ERRNO

#define MGE_ERRNO   1

Error is represented by errno.

◆ MGE_GAI

#define MGE_GAI   2

sav_errno holds the getaddrinfo error.

◆ MGE_GAI_BIND

#define MGE_GAI_BIND   3

Bind / Connect failed on GAI data.

◆ MGE_GENERAL

#define MGE_GENERAL   15

General error.

◆ MGE_ID

#define MGE_ID   13

Identification error.

◆ MGE_INVAL_MSG

#define MGE_INVAL_MSG   9

Invalid message received.

◆ MGE_LOCK_NOT_FOUND

#define MGE_LOCK_NOT_FOUND   11

Lock does not exist.

◆ MGE_NODE_NOT_FOUND

#define MGE_NODE_NOT_FOUND   6

Node not found.

◆ MGE_PARAM

#define MGE_PARAM   4

Error in parameters passed.

◆ MGE_PROTO

#define MGE_PROTO   14

Protocol error.

◆ MGE_SSH

#define MGE_SSH   10

SSH error.

Function Documentation

◆ mge_strerror()

const char* mge_strerror ( const int  mge_err)

Return a string describing the error number.

If necessary look to errno, gai_errno etc.

Parameters
mge_errThe error number to look up.
Returns
The error message.

Variable Documentation

◆ mge_errno

BEGIN_C_DECLS int mge_errno
extern

Error number.

◆ sav_errno

int sav_errno
extern

Used to store errno, gai_errno etc.