1 /* -*- c -*- This file is generated automatically. Please, do not edit. 2 GNU Mailutils -- a suite of utilities for electronic mail 3 Copyright (C) 1999-2021 Free Software Foundation, Inc. 4 5 This library is free software; you can redistribute it and/or 6 modify it under the terms of the GNU Lesser General Public 7 License as published by the Free Software Foundation; either 8 version 3 of the License, or (at your option) any later version. 9 10 This library is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 Lesser General Public License for more details. 14 15 You should have received a copy of the GNU Lesser General Public 16 License along with this library. If not, see 17 <http://www.gnu.org/licenses/>. */ 18 19 #ifndef _MAILUTILS_ERRNO_H 20 #define _MAILUTILS_ERRNO_H 1 21 22 #include <errno.h> 23 #include <mailutils/types.h> 24 25 #ifdef __cplusplus 26 extern "C" { 27 #endif 28 29 #define MU_ERR_BASE 0x1000 30 31 #define MU_ERR_FAILURE (MU_ERR_BASE+0) 32 #define MU_ERR_CANCELED (MU_ERR_BASE+1) 33 #define MU_ERR_EMPTY_VFN (MU_ERR_BASE+2) 34 #define MU_ERR_OUT_PTR_NULL (MU_ERR_BASE+3) 35 #define MU_ERR_MBX_REMOVED (MU_ERR_BASE+4) 36 #define MU_ERR_NOT_OPEN (MU_ERR_BASE+5) 37 #define MU_ERR_OPEN (MU_ERR_BASE+6) 38 #define MU_ERR_INVALID_EMAIL (MU_ERR_BASE+7) 39 #define MU_ERR_EMPTY_ADDRESS (MU_ERR_BASE+8) 40 #define MU_ERR_LOCKER_NULL (MU_ERR_BASE+9) 41 #define MU_ERR_LOCK_CONFLICT (MU_ERR_BASE+10) 42 #define MU_ERR_LOCK_BAD_LOCK (MU_ERR_BASE+11) 43 #define MU_ERR_LOCK_BAD_FILE (MU_ERR_BASE+12) 44 #define MU_ERR_LOCK_NOT_HELD (MU_ERR_BASE+13) 45 #define MU_ERR_LOCK_EXT_FAIL (MU_ERR_BASE+14) 46 #define MU_ERR_LOCK_EXT_ERR (MU_ERR_BASE+15) 47 #define MU_ERR_LOCK_EXT_KILLED (MU_ERR_BASE+16) 48 #define MU_ERR_NO_SUCH_USER (MU_ERR_BASE+17) 49 #define MU_ERR_GETHOSTBYNAME (MU_ERR_BASE+18) 50 #define MU_ERR_MAILER_BAD_FROM (MU_ERR_BASE+19) 51 #define MU_ERR_MAILER_BAD_TO (MU_ERR_BASE+20) 52 #define MU_ERR_MAILER_NO_RCPT_TO (MU_ERR_BASE+21) 53 #define MU_ERR_MAILER_BAD_URL (MU_ERR_BASE+22) 54 #define MU_ERR_SMTP_RCPT_FAILED (MU_ERR_BASE+23) 55 #define MU_ERR_TCP_NO_HOST (MU_ERR_BASE+24) 56 #define MU_ERR_TCP_NO_PORT (MU_ERR_BASE+25) 57 #define MU_ERR_BAD_2047_INPUT (MU_ERR_BASE+26) 58 #define MU_ERR_BAD_2047_ENCODING (MU_ERR_BASE+27) 59 #define MU_ERR_NOUSERNAME (MU_ERR_BASE+28) 60 #define MU_ERR_NOPASSWORD (MU_ERR_BASE+29) 61 #define MU_ERR_BADREPLY (MU_ERR_BASE+30) 62 #define MU_ERR_SEQ (MU_ERR_BASE+31) 63 #define MU_ERR_REPLY (MU_ERR_BASE+32) 64 #define MU_ERR_BAD_AUTH_SCHEME (MU_ERR_BASE+33) 65 #define MU_ERR_AUTH_FAILURE (MU_ERR_BASE+34) 66 #define MU_ERR_PROCESS_NOEXEC (MU_ERR_BASE+35) 67 #define MU_ERR_PROCESS_EXITED (MU_ERR_BASE+36) 68 #define MU_ERR_PROCESS_SIGNALED (MU_ERR_BASE+37) 69 #define MU_ERR_PROCESS_UNKNOWN_FAILURE (MU_ERR_BASE+38) 70 #define MU_ERR_CONN_CLOSED (MU_ERR_BASE+39) 71 #define MU_ERR_PARSE (MU_ERR_BASE+40) 72 #define MU_ERR_NOENT (MU_ERR_BASE+41) 73 #define MU_ERR_EXISTS (MU_ERR_BASE+42) 74 #define MU_ERR_BUFSPACE (MU_ERR_BASE+43) 75 #define MU_ERR_SQL (MU_ERR_BASE+44) 76 #define MU_ERR_DB_ALREADY_CONNECTED (MU_ERR_BASE+45) 77 #define MU_ERR_DB_NOT_CONNECTED (MU_ERR_BASE+46) 78 #define MU_ERR_RESULT_NOT_RELEASED (MU_ERR_BASE+47) 79 #define MU_ERR_NO_QUERY (MU_ERR_BASE+48) 80 #define MU_ERR_BAD_COLUMN (MU_ERR_BASE+49) 81 #define MU_ERR_NO_RESULT (MU_ERR_BASE+50) 82 #define MU_ERR_NO_INTERFACE (MU_ERR_BASE+51) 83 #define MU_ERR_BADOP (MU_ERR_BASE+52) 84 #define MU_ERR_BAD_FILENAME (MU_ERR_BASE+53) 85 #define MU_ERR_READ (MU_ERR_BASE+54) 86 #define MU_ERR_NO_TRANSPORT (MU_ERR_BASE+55) 87 #define MU_ERR_AUTH_NO_CRED (MU_ERR_BASE+56) 88 #define MU_ERR_URL_MISS_PARTS (MU_ERR_BASE+57) 89 #define MU_ERR_URL_EXTRA_PARTS (MU_ERR_BASE+58) 90 #define MU_ERR_URL_INVALID_PARAMETER (MU_ERR_BASE+59) 91 #define MU_ERR_INFO_UNAVAILABLE (MU_ERR_BASE+60) 92 #define MU_ERR_NONAME (MU_ERR_BASE+61) 93 #define MU_ERR_BADFLAGS (MU_ERR_BASE+62) 94 #define MU_ERR_SOCKTYPE (MU_ERR_BASE+63) 95 #define MU_ERR_FAMILY (MU_ERR_BASE+64) 96 #define MU_ERR_SERVICE (MU_ERR_BASE+65) 97 #define MU_ERR_PERM_OWNER_MISMATCH (MU_ERR_BASE+66) 98 #define MU_ERR_PERM_GROUP_WRITABLE (MU_ERR_BASE+67) 99 #define MU_ERR_PERM_WORLD_WRITABLE (MU_ERR_BASE+68) 100 #define MU_ERR_PERM_GROUP_READABLE (MU_ERR_BASE+69) 101 #define MU_ERR_PERM_WORLD_READABLE (MU_ERR_BASE+70) 102 #define MU_ERR_PERM_LINKED_WRDIR (MU_ERR_BASE+71) 103 #define MU_ERR_PERM_DIR_IWGRP (MU_ERR_BASE+72) 104 #define MU_ERR_PERM_DIR_IWOTH (MU_ERR_BASE+73) 105 #define MU_ERR_DISABLED (MU_ERR_BASE+74) 106 #define MU_ERR_FORMAT (MU_ERR_BASE+75) 107 #define MU_ERR_REMOVE_SOURCE (MU_ERR_BASE+76) 108 #define MU_ERR_REMOVE_DEST (MU_ERR_BASE+77) 109 #define MU_ERR_RESTORE_META (MU_ERR_BASE+78) 110 #define MU_ERR_USER0 (MU_ERR_BASE+79) 111 #define MU_ERR_USER1 (MU_ERR_BASE+80) 112 #define MU_ERR_USER2 (MU_ERR_BASE+81) 113 #define MU_ERR_USER3 (MU_ERR_BASE+82) 114 #define MU_ERR_USER4 (MU_ERR_BASE+83) 115 #define MU_ERR_USER5 (MU_ERR_BASE+84) 116 #define MU_ERR_USER6 (MU_ERR_BASE+85) 117 #define MU_ERR_USER7 (MU_ERR_BASE+86) 118 #define MU_ERR_BASE64 (MU_ERR_BASE+87) 119 #define MU_ERR_LAST (MU_ERR_BASE+88) 120 121 #ifndef ECANCELED 122 # define ECANCELED MU_ERR_CANCELED 123 #endif 124 125 const char *mu_errname (int e); 126 const char *mu_strerror (int e); 127 128 #ifdef __cplusplus 129 } 130 #endif 131 132 #endif /* _MAILUTILS_ERRNO_H */ 133 134