2024-09-28 23:13:42 +00:00
|
|
|
#ifndef ERROR_H
|
|
|
|
#define ERROR_H
|
|
|
|
|
|
|
|
enum error_t {
|
|
|
|
ERR_OK,
|
|
|
|
ERR_INPUT,
|
|
|
|
ERR_ALLOC,
|
|
|
|
ERR_NOTFOUND,
|
2024-10-04 05:05:43 +00:00
|
|
|
ERR_FORK,
|
|
|
|
ERR_SETSID,
|
2024-10-05 08:58:16 +00:00
|
|
|
ERR_SOCKET,
|
2024-09-28 23:13:42 +00:00
|
|
|
__ERR_COUNT,
|
|
|
|
};
|
|
|
|
|
2024-09-29 07:33:16 +00:00
|
|
|
extern char const *const ERROR_STRS[];
|
2024-09-28 23:13:42 +00:00
|
|
|
|
|
|
|
#endif
|