1 /* -*- c-file-style: "java"; indent-tabs-mode: nil; tab-width: 4; fill-column: 78 -*- 2 * 3 * distcc -- A simple distributed compiler system 4 * 5 * Copyright (C) 2002, 2003, 2004 by Martin Pool <mbp@samba.org> 6 * Copyright 2007 Google Inc. 7 * 8 * This program is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU General Public License 10 * as published by the Free Software Foundation; either version 2 11 * of the License, or (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program; if not, write to the Free Software 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 21 * USA. 22 */ 23 24 #ifndef _DISTCC_EXITCODE_H 25 #define _DISTCC_EXITCODE_H 26 27 /** 28 * @file 29 * 30 * Common exit codes. 31 **/ 32 33 /** 34 * Common exit codes for both client and server. 35 * 36 * These need to be in [1,255] so that they can be used as exit() codes. They 37 * are fairly high so that they're not confused with the real error code from 38 * gcc. 39 * 40 * WARNING: ANY CHANGES HERE NEED TO BE DUPLICATED IN THE MAN PAGE 41 * (../man/distcc.1). 42 **/ 43 enum dcc_exitcode { 44 EXIT_DISTCC_FAILED = 100, /**< General failure */ 45 EXIT_BAD_ARGUMENTS = 101, 46 EXIT_BIND_FAILED = 102, 47 EXIT_CONNECT_FAILED = 103, 48 EXIT_COMPILER_CRASHED = 104, 49 EXIT_OUT_OF_MEMORY = 105, 50 EXIT_BAD_HOSTSPEC = 106, 51 EXIT_IO_ERROR = 107, 52 EXIT_TRUNCATED = 108, 53 EXIT_PROTOCOL_ERROR = 109, 54 EXIT_COMPILER_MISSING = 110, /**< Compiler executable not found */ 55 EXIT_RECURSION = 111, /**< distcc called itself */ 56 EXIT_SETUID_FAILED = 112, /**< Failed to discard privileges */ 57 EXIT_ACCESS_DENIED = 113, /**< Network access denied */ 58 EXIT_BUSY = 114, /**< In use by another process. */ 59 EXIT_NO_SUCH_FILE = 115, 60 EXIT_NO_HOSTS = 116, 61 EXIT_GONE = 117, /**< No longer relevant */ 62 EXIT_TIMEOUT = 118, 63 #ifdef HAVE_GSSAPI 64 EXIT_GSSAPI_FAILED = 119, /**< GSS-API - Catchall error code for GSS-API related errors. */ 65 #endif 66 EXIT_LOCAL_CPP = 120 67 }; 68 69 70 #endif /* _DISTCC_EXITCODE_H */ 71