Tanl Linguistic Pipeline |
00001 /* 00002 ** IXE 00003 ** include/exit_codes.h 00004 ** ---------------------------------------------------------------------- 00005 ** Copyright (c) 2000 Ideare SpA. All rights reserved. 00006 ** Copyright (c) 2000 Giuseppe Attardi (attardi@di.unipi.it) 00007 ** ---------------------------------------------------------------------- 00008 ** 00009 ** This file is part of IXE. 00010 ** 00011 ** IXE is free software; you can redistribute it and/or modify it 00012 ** under the terms of the GNU General Public License, version 3, 00013 ** as published by the Free Software Foundation. 00014 ** 00015 ** IXE is distributed in the hope that it will be useful, 00016 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 ** GNU General Public License for more details. 00019 ** 00020 ** You should have received a copy of the GNU General Public License 00021 ** along with this program. If not, see <http://www.gnu.org/licenses/>. 00022 ** ---------------------------------------------------------------------- 00023 */ 00024 00025 #ifndef IXE_exit_codes_H 00026 #define IXE_exit_codes_H 00027 00028 namespace IXE { 00029 00030 // exit(3) status codes 00031 enum { 00032 // common to all executables 00033 Exit_Success = 0, 00034 Exit_Config_File = 1, 00035 Exit_Usage = 2, 00036 00037 // unique to search 00038 Exit_Malformed_Query = 40, 00039 Exit_No_Read_Index = 50, 00040 # ifdef SEARCH_DAEMON 00041 Exit_No_Write_PID = 51, 00042 Exit_No_Socket = 52, 00043 Exit_No_Unlink = 53, 00044 Exit_No_Bind = 54, 00045 Exit_No_Listen = 55, 00046 Exit_No_Accept = 56, 00047 Exit_No_Fork = 57, 00048 Exit_No_Change_Dir = 58, 00049 Exit_No_Create_Thread = 59, 00050 Exit_No_Detach_Thread = 60, 00051 # endif 00052 00053 Exit_End_Enum_Marker 00054 }; 00055 00056 } // namespace IXE 00057 00058 #endif /* IXE_exit_codes_H */