MGE General C Library - Full Internal Documentation  v1.3.5
Library of general C functions.
errno.c File Reference

Defines mge error variables. More...

#include <sys/types.h>
#include "internal.h"
#include <mge-errno.h>
#include <mge-internal.h>
Include dependency graph for errno.c:

Variables

int mge_errno
 Error number. More...
 
int sav_errno
 Used to store errno, gai_errno etc. More...
 
const char * errno_desc []
 Global array of mge-errno descriptions. More...
 
const size_t errno_desc_size = ARRAY_SIZE(errno_desc)
 Size of the error description array. More...
 

Detailed Description

Defines mge error variables.

Definition of mge_errno error descriptions and global error variables.

Author
Copyright (C) 2017-2020 Mark Grant

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

Version
v1.0.12 ==== 29/06/2020

Variable Documentation

◆ errno_desc

const char* errno_desc[]
Initial value:
= { "Success.",
"sav_errno contains the errno error.",
"sav_errno contains the getaddrinfo error.",
"Bind or Connect failed on getaddrinfo data.",
"Error in parameters passed.",
"Duplicate node found.",
"Node not found.",
"Invalid config file parameter.",
"Cannot parse config file.",
"Invalid message received.",
"SSH error.",
"No such lock.",
"Client is blocked.",
"Identification error." }

Global array of mge-errno descriptions.

◆ errno_desc_size

const size_t errno_desc_size = ARRAY_SIZE(errno_desc)

Size of the error description array.

◆ mge_errno

int mge_errno

Error number.

◆ sav_errno

int sav_errno

Used to store errno, gai_errno etc.