2005-01-20 23:22:22 +00:00
|
|
|
// Berkeley Open Infrastructure for Network Computing
|
|
|
|
// http://boinc.berkeley.edu
|
|
|
|
// Copyright (C) 2005 University of California
|
2002-04-30 22:22:54 +00:00
|
|
|
//
|
2005-01-20 23:22:22 +00:00
|
|
|
// This is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU Lesser General Public
|
|
|
|
// License as published by the Free Software Foundation;
|
|
|
|
// either version 2.1 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This software is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
// See the GNU Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// To view the GNU Lesser General Public License visit
|
|
|
|
// http://www.gnu.org/copyleft/lesser.html
|
|
|
|
// or write to the Free Software Foundation, Inc.,
|
|
|
|
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2002-12-09 21:14:43 +00:00
|
|
|
// NOTE: add new errors to the end of the list and don't change
|
2005-05-01 13:03:18 +00:00
|
|
|
// old error numbers to avoid confusion between versions. Add
|
|
|
|
// a text description of your error to boincerror() in util.C.
|
2002-12-09 21:14:43 +00:00
|
|
|
//
|
2004-03-24 23:33:46 +00:00
|
|
|
#define BOINC_SUCCESS 0
|
2002-11-18 23:09:11 +00:00
|
|
|
#define ERR_SELECT -100
|
|
|
|
#define ERR_MALLOC -101
|
|
|
|
#define ERR_READ -102
|
|
|
|
#define ERR_WRITE -103
|
|
|
|
#define ERR_FREAD -104
|
|
|
|
#define ERR_FWRITE -105
|
|
|
|
#define ERR_IO -106
|
|
|
|
#define ERR_CONNECT -107
|
|
|
|
#define ERR_FOPEN -108
|
|
|
|
#define ERR_RENAME -109
|
|
|
|
#define ERR_UNLINK -110
|
|
|
|
#define ERR_OPENDIR -111
|
|
|
|
#define ERR_XML_PARSE -112
|
2003-05-07 20:09:34 +00:00
|
|
|
// Unexpected XML tag or XML format
|
2002-04-30 22:22:54 +00:00
|
|
|
#define ERR_GETHOSTBYNAME -113
|
2003-05-07 20:09:34 +00:00
|
|
|
// Couldn't resolve hostname
|
2002-12-07 00:56:51 +00:00
|
|
|
#define ERR_GIVEUP_DOWNLOAD -114
|
2003-09-30 18:09:58 +00:00
|
|
|
// too much time has elapsed without progress on file xfer,
|
|
|
|
// or we got a 404 (not found) status code from server
|
2002-12-07 00:56:51 +00:00
|
|
|
#define ERR_GIVEUP_UPLOAD -115
|
|
|
|
#define ERR_NULL -116
|
2003-05-07 20:09:34 +00:00
|
|
|
// unexpected NULL pointer
|
2002-12-07 00:56:51 +00:00
|
|
|
#define ERR_NEG -117
|
2003-05-07 20:09:34 +00:00
|
|
|
// unexpected negative value
|
2003-10-21 04:06:55 +00:00
|
|
|
#define ERR_BUFFER_OVERFLOW -118
|
2003-05-07 20:09:34 +00:00
|
|
|
// caught buffer overflow
|
2002-12-07 00:56:51 +00:00
|
|
|
#define ERR_MD5_FAILED -119
|
2003-05-07 20:09:34 +00:00
|
|
|
// MD5 checksum failed for a file
|
2002-12-07 00:56:51 +00:00
|
|
|
#define ERR_RSA_FAILED -120
|
2003-05-07 20:09:34 +00:00
|
|
|
// RSA key check failed for a file
|
2002-12-07 00:56:51 +00:00
|
|
|
#define ERR_OPEN -121
|
|
|
|
#define ERR_DUP2 -122
|
|
|
|
#define ERR_NO_SIGNATURE -123
|
|
|
|
#define ERR_THREAD -124
|
2003-05-07 20:09:34 +00:00
|
|
|
// Error creating a thread
|
2002-12-07 00:56:51 +00:00
|
|
|
#define ERR_SIGNAL_CATCH -125
|
2003-05-07 20:09:34 +00:00
|
|
|
#define ERR_UPLOAD_TRANSIENT -127
|
|
|
|
#define ERR_UPLOAD_PERMANENT -128
|
2003-05-16 19:22:57 +00:00
|
|
|
#define ERR_IDLE_PERIOD -129
|
|
|
|
// can't start work because of user prefs
|
2003-05-21 17:59:10 +00:00
|
|
|
#define ERR_ALREADY_ATTACHED -130
|
2003-05-21 23:23:42 +00:00
|
|
|
#define ERR_FILE_TOO_BIG -131
|
|
|
|
// an output file was bigger than max_nbytes
|
2003-05-28 20:58:01 +00:00
|
|
|
#define ERR_GETRUSAGE -132
|
|
|
|
// getrusage failed
|
2003-06-19 18:19:35 +00:00
|
|
|
#define ERR_BENCHMARK_FAILED -133
|
2003-09-03 23:54:11 +00:00
|
|
|
#define ERR_BAD_HEX_FORMAT -134
|
|
|
|
// hex-format key data is bad
|
2003-10-15 17:14:58 +00:00
|
|
|
#define ERR_USER_REJECTED -135
|
|
|
|
// user rejected executable file
|
2003-10-17 17:22:49 +00:00
|
|
|
#define ERR_DB_NOT_FOUND -136
|
2005-01-14 03:32:16 +00:00
|
|
|
// no rows found in lookup() or enumerate()
|
2003-10-17 17:22:49 +00:00
|
|
|
#define ERR_DB_NOT_UNIQUE -137
|
|
|
|
// not unique in lookup()
|
|
|
|
#define ERR_DB_CANT_CONNECT -138
|
2003-10-21 04:06:55 +00:00
|
|
|
#define ERR_GETS -139
|
|
|
|
// gets() or fgets()
|
|
|
|
#define ERR_SCANF -140
|
|
|
|
// scanf() or fscanf()
|
|
|
|
#define ERR_STRCHR -141
|
|
|
|
#define ERR_STRSTR -142
|
|
|
|
#define ERR_READDIR -143
|
|
|
|
#define ERR_SHMGET -144
|
|
|
|
#define ERR_SHMCTL -145
|
|
|
|
#define ERR_SHMAT -146
|
|
|
|
#define ERR_FORK -147
|
|
|
|
#define ERR_EXEC -148
|
|
|
|
#define ERR_NOT_EXITED -149
|
|
|
|
// a process didn't exit that was supposed to
|
|
|
|
#define ERR_NOT_IMPLEMENTED -150
|
|
|
|
// a system call not implemented on this platform
|
|
|
|
#define ERR_GETHOSTNAME -151
|
|
|
|
#define ERR_NETOPEN -152
|
|
|
|
#define ERR_SOCKET -153
|
|
|
|
#define ERR_FCNTL -154
|
|
|
|
#define ERR_AUTHENTICATOR -155
|
|
|
|
// scheduler request host ID doesn't match authenticator
|
|
|
|
#define ERR_SCHED_SHMEM -156
|
|
|
|
// sched shmem has bad contents
|
2003-10-21 04:13:15 +00:00
|
|
|
#define ERR_ASYNCSELECT -157
|
2003-11-06 00:00:00 +00:00
|
|
|
#define ERR_BAD_RESULT_STATE -158
|
2003-12-18 00:22:25 +00:00
|
|
|
#define ERR_DB_CANT_INIT -159
|
2004-01-26 19:42:39 +00:00
|
|
|
#define ERR_NOT_UNIQUE -160
|
2004-01-30 22:19:19 +00:00
|
|
|
// state files had redundant entries
|
|
|
|
#define ERR_NOT_FOUND -161
|
2004-02-02 21:09:05 +00:00
|
|
|
// inconsistent client state
|
2004-03-20 08:50:43 +00:00
|
|
|
#define ERR_NO_EXIT_STATUS -162
|
2004-03-24 23:33:46 +00:00
|
|
|
// exit_status not found in scheduler request
|
|
|
|
#define ERR_FILE_MISSING -163
|
2004-03-25 00:10:44 +00:00
|
|
|
#define ERR_NESTED_UNHANDLED_EXCEPTION_DETECTED -164
|
2004-03-25 22:24:33 +00:00
|
|
|
#define ERR_SEMGET -165
|
|
|
|
#define ERR_SEMCTL -166
|
|
|
|
#define ERR_SEMOP -167
|
|
|
|
#define ERR_FTOK -168
|
2004-03-27 00:45:27 +00:00
|
|
|
#define ERR_SOCKS_UNKNOWN_FAILURE -169
|
|
|
|
#define ERR_SOCKS_REQUEST_FAILED -170
|
|
|
|
#define ERR_SOCKS_BAD_USER_PASS -171
|
|
|
|
#define ERR_SOCKS_UNKNOWN_SERVER_VERSION -172
|
|
|
|
#define ERR_SOCKS_UNSUPPORTED -173
|
|
|
|
#define ERR_SOCKS_CANT_REACH_HOST -174
|
|
|
|
#define ERR_SOCKS_CONN_REFUSED -175
|
2004-03-27 02:09:55 +00:00
|
|
|
#define ERR_TIMER_INIT -176
|
2004-03-31 23:39:12 +00:00
|
|
|
#define ERR_RSC_LIMIT_EXCEEDED -177
|
2004-04-04 03:31:16 +00:00
|
|
|
#define ERR_INVALID_PARAM -178
|
|
|
|
#define ERR_SIGNAL_OP -179
|
2004-05-05 21:15:34 +00:00
|
|
|
#define ERR_BIND -180
|
|
|
|
#define ERR_LISTEN -181
|
2004-06-16 23:16:08 +00:00
|
|
|
#define ERR_TIMEOUT -182
|
2004-06-22 22:56:50 +00:00
|
|
|
#define ERR_PROJECT_DOWN -183
|
2004-07-02 04:49:17 +00:00
|
|
|
#define ERR_HTTP_ERROR -184
|
2004-07-07 19:15:55 +00:00
|
|
|
#define ERR_RESULT_START -185
|
|
|
|
#define ERR_RESULT_DOWNLOAD -186
|
|
|
|
#define ERR_RESULT_UPLOAD -187
|
2004-07-11 21:54:00 +00:00
|
|
|
#define ERR_INVALID_URL -189
|
2004-08-03 09:50:24 +00:00
|
|
|
#define ERR_MAJOR_VERSION -190
|
|
|
|
#define ERR_NO_OPTION -191
|
2004-08-05 11:35:09 +00:00
|
|
|
#define ERR_MKDIR -192
|
2004-09-01 04:59:32 +00:00
|
|
|
#define ERR_INVALID_EVENT -193
|
2004-09-06 20:30:22 +00:00
|
|
|
#define ERR_ALREADY_RUNNING -194
|
2005-01-12 00:50:32 +00:00
|
|
|
#define ERR_NO_APP_VERSION -195
|
|
|
|
#define ERR_WU_USER_RULE -196
|
2005-01-21 23:26:36 +00:00
|
|
|
#define ERR_ABORTED_VIA_GUI -197
|
2005-02-02 22:58:46 +00:00
|
|
|
#define ERR_INSUFFICIENT_RESOURCE -198
|
2005-04-08 23:40:50 +00:00
|
|
|
#define ERR_RETRY -199
|
2005-04-12 21:54:40 +00:00
|
|
|
#define ERR_WRONG_SIZE -200
|
2005-04-28 23:19:58 +00:00
|
|
|
#define ERR_USER_PERMISSION -201
|
|
|
|
// e.g. user didn't allow network connection
|
2005-06-24 08:12:11 +00:00
|
|
|
#define ERR_SHMEM_NAME -202
|
2005-05-01 13:03:18 +00:00
|
|
|
|
|
|
|
// PLEASE: add a text description of your error to
|
|
|
|
// the text description function boincerror() in util.C.
|
|
|
|
|