summaryrefslogtreecommitdiffstats
path: root/src/util/util.h
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2012-11-21 14:29:05 -0500
committerJakub Hrozek <jhrozek@redhat.com>2013-03-04 23:40:18 +0100
commit8bcabb97d988d1602882a1f036aac2eaf5e09234 (patch)
treebe185625c87100628b64b92aab72415f5d939e11 /src/util/util.h
parent850ca620611f65115ee95e1d919be8443f95c14c (diff)
downloadsssd-8bcabb97d988d1602882a1f036aac2eaf5e09234.tar.gz
sssd-8bcabb97d988d1602882a1f036aac2eaf5e09234.tar.xz
sssd-8bcabb97d988d1602882a1f036aac2eaf5e09234.zip
Add SSSD specific error codes and definitions
This code adds a new range of error codes specific to SSSD, It also provides helper functions to print out error defintions like you can do with system error messages and the strerror() function. The sss_strerror() function can accept both the new sssd errors and system errno_t errors falling back to the system strerror() if the error code provide is not a valid SSSD error code.
Diffstat (limited to 'src/util/util.h')
-rw-r--r--src/util/util.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/util/util.h b/src/util/util.h
index 7026f0b93..9657826e2 100644
--- a/src/util/util.h
+++ b/src/util/util.h
@@ -44,11 +44,7 @@
#include <dhash.h>
#include "util/atomic_io.h"
-
-#ifndef HAVE_ERRNO_T
-#define HAVE_ERRNO_T
-typedef int errno_t;
-#endif
+#include "util/util_errors.h"
#define _(STRING) gettext (STRING)
@@ -221,8 +217,6 @@ errno_t set_debug_file_from_fd(const int fd);
#define ZERO_STRUCT(x) memset((char *)&(x), 0, sizeof(x))
-#define EOK 0
-
#define SSSD_MAIN_OPTS SSSD_DEBUG_OPTS
#define FLAGS_NONE 0x0000