diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-06-02 11:01:03 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-06-02 11:01:03 +0000 |
commit | 74a4478087159a708de6cf5295a66bee91394cf1 (patch) | |
tree | 94e32a8aaf5c2ed13dd999a4f9b4a696b9eef347 /include | |
parent | a463985d9e4a7e35582b61393218e5099f84fe46 (diff) | |
download | mailutils-74a4478087159a708de6cf5295a66bee91394cf1.tar.gz mailutils-74a4478087159a708de6cf5295a66bee91394cf1.tar.bz2 |
(MU_ERR_CONN_CLOSED,MU_ERR_PARSE): New error codes.
(MU_ERR_NOENT): New error code. Use it instead
of ENOENT to avoid misguiding diagnostics
'No such file or directory'. Use ENOENT only for its
direct purpose.
Diffstat (limited to 'include')
-rw-r--r-- | include/mailutils/errno.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/mailutils/errno.h b/include/mailutils/errno.h index fc8d410be..4aa943b5a 100644 --- a/include/mailutils/errno.h +++ b/include/mailutils/errno.h | |||
@@ -88,6 +88,13 @@ extern "C" { | |||
88 | 88 | ||
89 | #define MU_ERR_PROCESS_UNKNOWN_FAILURE (MU_ERR_BASE + 36) | 89 | #define MU_ERR_PROCESS_UNKNOWN_FAILURE (MU_ERR_BASE + 36) |
90 | /* Unknown failure while executing subprocess */ | 90 | /* Unknown failure while executing subprocess */ |
91 | |||
92 | #define MU_ERR_CONN_CLOSED (MU_ERR_BASE + 37) | ||
93 | /* Connection closed by remote host */ | ||
94 | #define MU_ERR_PARSE (MU_ERR_BASE + 38) | ||
95 | /* Parse error */ | ||
96 | #define MU_ERR_NOENT (MU_ERR_BASE + 39) | ||
97 | /* Requested item not found */ | ||
91 | 98 | ||
92 | const char *mu_errname __P((int e)); | 99 | const char *mu_errname __P((int e)); |
93 | const char *mu_strerror __P((int e)); | 100 | const char *mu_strerror __P((int e)); |