MGE General C Library - API Documentation
Library of general C functions.
mge-errno.h
Go to the documentation of this file.
1
16
/* **********************************************************************
17
* *
18
* Changelog *
19
* *
20
* Date Author Version Description *
21
* *
22
* 23/01/2017 MG 1.0.1 First release. *
23
* 29/01/2017 MG 1.0.2 Add getaddrinfo related errors. Remove *
24
* unnecessary _ERR suffix. *
25
* 03/02/2017 MG 1.0.3 Add config file errors. *
26
* 08/02/2017 MG 1.0.4 Add message errors. *
27
* 28/09/2017 MG 1.0.5 Add SSH error. *
28
* 04/11/2017 MG 1.0.6 Add Doxygen comments. *
29
* 09/11/2017 MG 1.0.7 Add SPDX license tag. *
30
* 02/01/2018 MG 1.0.8 Move to new source directory structure. *
31
* 31/01/2018 MG 1.0.9 Add Lock not found. *
32
* 17/05/2018 MG 1.0.10 Add Client blocked. *
33
* 08/06/2019 MG 1.0.11 clang-format coding style changes. *
34
* 12/03/2020 MG 1.0.12 Add identification error. *
35
* *
36
************************************************************************
37
*/
38
39
#ifndef MGE_ERRNO_H
40
#define MGE_ERRNO_H
41
42
#include <sys/types.h>
43
44
#include <
portability.h
>
45
46
BEGIN_C_DECLS
47
48
extern
int
mge_errno
;
49
extern
int
sav_errno
;
50
51
/* mge_errno values. */
52
#define MGE_ERRNO 1
53
#define MGE_GAI 2
54
#define MGE_GAI_BIND 3
55
#define MGE_PARAM 4
56
#define MGE_DUPLICATE_NODE 5
57
#define MGE_NODE_NOT_FOUND 6
58
#define MGE_CONFIG_PARAM 7
59
#define MGE_CONFIG_PARSE 8
60
#define MGE_INVAL_MSG 9
61
#define MGE_SSH 10
62
#define MGE_LOCK_NOT_FOUND 11
63
#define MGE_CLIENT_BLOCKED 12
64
#define MGE_ID 13
66
const char *mge_strerror(const int mge_err);
67
68
END_C_DECLS
69
70
#endif
/* ndef MGE_ERRNO_H */
71
portability.h
Header file to ease portability.
BEGIN_C_DECLS
#define BEGIN_C_DECLS
BEGIN_C_DECLS should be used at the beginning of declarations so that C++ compilers don't mangle thei...
Definition:
portability.h:46
END_C_DECLS
#define END_C_DECLS
Use END_C_DECLS at the end of C declarations.
Definition:
portability.h:50
mge_errno
BEGIN_C_DECLS int mge_errno
Error number.
Definition:
errno.c:47
sav_errno
int sav_errno
Used to store errno, gai_errno etc.
Definition:
errno.c:48
src
prg
c
inc
mge-errno.h
Generated by
1.8.20