MGE General C Library - API Documentation  v1.8.4
Library of general C functions.
mge-errno.h
Go to the documentation of this file.
1 
16 #ifndef MGE_ERRNO_H
17 #define MGE_ERRNO_H
18 
19 #include <sys/types.h>
20 
22 
24 
25 extern int mge_errno;
26 extern int sav_errno;
27 
28 /* mge_errno values. */
29 #define MGE_ERRNO 1
30 #define MGE_GAI 2
31 #define MGE_GAI_BIND 3
32 #define MGE_PARAM 4
33 #define MGE_DUPLICATE_NODE 5
34 #define MGE_NODE_NOT_FOUND 6
35 #define MGE_CONFIG_PARAM 7
36 #define MGE_CONFIG_PARSE 8
37 #define MGE_INVAL_MSG 9
38 #define MGE_SSH 10
39 #define MGE_LOCK_NOT_FOUND 11
40 #define MGE_CLIENT_BLOCKED 12
41 #define MGE_SERVER_BLOCKED 13
42 #define MGE_ID 14
43 #define MGE_PROTO 15
44 #define MGE_GENERAL 16
46 const char *mge_strerror(const int mge_err);
47 
49 
50 #endif /* ndef MGE_ERRNO_H */
BEGIN_C_DECLS int mge_errno
Error number.
Definition: errno.c:23
Header file to ease portability.
#define END_C_DECLS
Use END_C_DECLS at the end of C declarations.
Definition: mge-portability.h:34
int sav_errno
Used to store errno, gai_errno etc.
Definition: errno.c:24
#define BEGIN_C_DECLS
BEGIN_C_DECLS should be used at the beginning of declarations so that C++ compilers don&#39;t mangle thei...
Definition: mge-portability.h:30