]> git.tuebingen.mpg.de Git - adu.git/blobdiff - error.h
Add \brief command to file header to make doxygen happy.
[adu.git] / error.h
diff --git a/error.h b/error.h
index d97ce507451785591bf6a1052325fcd84959d08a..9874003903b202fceecb53ee318cc3e1982419df 100644 (file)
--- a/error.h
+++ b/error.h
@@ -1,3 +1,9 @@
+/*
+ * Copyright (C) 2008 Andre Noll <maan@systemlinux.org>
+ *
+ * Licensed under the GPL v2. For licencing details see COPYING.
+ */
+
 /**
  * This bit indicates whether a number is considered a system error code.
  * If yes, the system errno is just the result of clearing this bit from
        _ERROR(EMPTY, "file empty") \
        _ERROR(MMAP, "mmap error") \
        _ERROR(OSL, "osl error") \
+       _ERROR(SIGNAL_SIG_ERR, "signal() returned SIG_ERR") \
+       _ERROR(OUTPUT, "error writing output") \
+       _ERROR(MALFORMED_FORMAT, "malformed format string") \
+       _ERROR(BAD_ALIGN_SPEC, "bad alignment specifier") \
+       _ERROR(TRAILING_GARBAGE, "trailing garbage after specifier") \
+       _ERROR(UNIT, "no unit allowed here") \
+       _ERROR(BAD_UNIT, "invalid unit specifier") \
+       _ERROR(BAD_ATOM, "invalid atom") \
+       _ERROR(BAD_OUTPUT_ARG, "invalid name for output") \
+       _ERROR(REGEX, "regular expression error")
 
 
 /**
@@ -54,7 +70,6 @@ static inline const char *adu_strerror(int num)
 {
        assert(num > 0);
        if (num == E_OSL) {
-               fprintf(stderr, "osl error %d\n", osl_errno & 0xff);
                assert(osl_errno > 0);
                return osl_strerror((osl_errno));
        }