Eneboo - Documentación para desarrolladores
src/libmysql_std/include/mysys_err.h
Ir a la documentación de este archivo.
00001 /* Copyright (C) 2000 MySQL AB
00002 
00003    This program is free software; you can redistribute it and/or modify
00004    it under the terms of the GNU General Public License as published by
00005    the Free Software Foundation; version 2 of the License.
00006 
00007    This program is distributed in the hope that it will be useful,
00008    but WITHOUT ANY WARRANTY; without even the implied warranty of
00009    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00010    GNU General Public License for more details.
00011 
00012    You should have received a copy of the GNU General Public License
00013    along with this program; if not, write to the Free Software
00014    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
00015 
00016 #ifndef _mysys_err_h
00017 #define _mysys_err_h
00018 #ifdef  __cplusplus
00019 extern "C" {
00020 #endif
00021 
00022 #define GLOBERRS (EE_ERROR_LAST - EE_ERROR_FIRST + 1) /* Nr of global errors */
00023 #define EE(X)    (globerrs[(X) - EE_ERROR_FIRST])
00024 
00025 extern const char * NEAR globerrs[];    /* my_error_messages is here */
00026 
00027 /* Error message numbers in global map */
00028 /*
00029   Do not add error numbers before EE_ERROR_FIRST.
00030   If necessary to add lower numbers, change EE_ERROR_FIRST accordingly.
00031 
00032   We start with error 1 to not confuse peoples with 'error 0'
00033 */
00034 
00035 #define EE_ERROR_FIRST          1 /*Copy first error nr.*/
00036 #define EE_CANTCREATEFILE       1
00037 #define EE_READ                 2
00038 #define EE_WRITE                3
00039 #define EE_BADCLOSE             4
00040 #define EE_OUTOFMEMORY          5
00041 #define EE_DELETE               6
00042 #define EE_LINK                 7
00043 #define EE_EOFERR               9
00044 #define EE_CANTLOCK             10
00045 #define EE_CANTUNLOCK           11
00046 #define EE_DIR                  12
00047 #define EE_STAT                 13
00048 #define EE_CANT_CHSIZE          14
00049 #define EE_CANT_OPEN_STREAM     15
00050 #define EE_GETWD                16
00051 #define EE_SETWD                17
00052 #define EE_LINK_WARNING         18
00053 #define EE_OPEN_WARNING         19
00054 #define EE_DISK_FULL            20
00055 #define EE_CANT_MKDIR           21
00056 #define EE_UNKNOWN_CHARSET      22
00057 #define EE_OUT_OF_FILERESOURCES 23
00058 #define EE_CANT_READLINK        24
00059 #define EE_CANT_SYMLINK         25
00060 #define EE_REALPATH             26
00061 #define EE_SYNC                 27
00062 #define EE_UNKNOWN_COLLATION    28
00063 #define EE_FILENOTFOUND         29
00064 #define EE_ERROR_LAST           29 /*Copy last error nr.*/
00065 /* Add error numbers before EE_ERROR_LAST and change it accordingly. */
00066 
00067   /* exit codes for all MySQL programs */
00068 
00069 #define EXIT_UNSPECIFIED_ERROR          1
00070 #define EXIT_UNKNOWN_OPTION             2
00071 #define EXIT_AMBIGUOUS_OPTION           3
00072 #define EXIT_NO_ARGUMENT_ALLOWED        4
00073 #define EXIT_ARGUMENT_REQUIRED          5
00074 #define EXIT_VAR_PREFIX_NOT_UNIQUE      6
00075 #define EXIT_UNKNOWN_VARIABLE           7
00076 #define EXIT_OUT_OF_MEMORY              8
00077 #define EXIT_UNKNOWN_SUFFIX             9
00078 #define EXIT_NO_PTR_TO_VARIABLE         10
00079 #define EXIT_CANNOT_CONNECT_TO_SERVICE  11
00080 #define EXIT_OPTION_DISABLED            12
00081 
00082 
00083 #ifdef  __cplusplus
00084 }
00085 #endif
00086 #endif
00087 
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'