MGE General C Library - Full Internal Documentation v1.8.4
Library of general C functions.
Loading...
Searching...
No Matches
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.
 
#define MGE_GAI   2
 sav_errno holds the getaddrinfo error.
 
#define MGE_GAI_BIND   3
 Bind / Connect failed on GAI data.
 
#define MGE_PARAM   4
 Error in parameters passed.
 
#define MGE_DUPLICATE_NODE   5
 Duplicate node found.
 
#define MGE_NODE_NOT_FOUND   6
 Node not found.
 
#define MGE_CONFIG_PARAM   7
 Invalid config file param.
 
#define MGE_CONFIG_PARSE   8
 Cannot parse config file.
 
#define MGE_INVAL_MSG   9
 Invalid message received.
 
#define MGE_SSH   10
 SSH error.
 
#define MGE_LOCK_NOT_FOUND   11
 Lock does not exist.
 
#define MGE_CLIENT_BLOCKED   12
 Client is blocked on the server.
 
#define MGE_SERVER_BLOCKED   13
 Server is blocked.
 
#define MGE_ID   14
 Identification error.
 
#define MGE_PROTO   15
 Protocol error.
 
#define MGE_GENERAL   16
 General error.
 

Functions

const char * mge_strerror (const int mge_err)
 Return a string describing the error number.
 

Variables

BEGIN_C_DECLS int mge_errno
 Error number.
 
int sav_errno
 Used to store errno, gai_errno etc.
 

Detailed Description

Details for mge_errno system.

Specification of mge_errno values and all mge_errno related information.

Author
Copyright (C) 2017-2024 Mark Grant

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

Version
v1.1.1 ==== 24/05/2024

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   16

General error.

◆ MGE_ID

#define MGE_ID   14

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   15

Protocol error.

◆ MGE_SERVER_BLOCKED

#define MGE_SERVER_BLOCKED   13

Server is blocked.

◆ 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.