Initial commit. It's far from finished.

This commit is contained in:
2016-08-08 11:12:06 +03:00
commit e9f3673bfd
30 changed files with 1948 additions and 0 deletions

24
enum_functions.h Normal file
View File

@@ -0,0 +1,24 @@
#ifndef ENUM_FUNCTIONS_H
#define ENUM_FUNCTIONS_H
enum ERROR_CODES {
CONF_DIR_MISSING = 100,
CONF_DIR_PERM, /* 101 */
CONF_DIR_NOTDIR, /* 102 */
CONF_MISSING, /* 103 */
CONF_PERM, /* 104 */
CONF_NOTFILE /* 105 */
};
enum WARN_CODES {
CONF_DIR_GID_INSECURE = 200,
CONF_DIR_UID_INSECURE,
CONF_DIR_PERM_INSECURE,
CONF_FILE_GID_INSECURE,
CONF_FILE_UID_INSECURE,
CONF_FILE_PERM_INSECURE
};
extern void enumtostr(char *scode, int code);
#endif /* ENUM_FUNCTIONS_H */