2003-07-01 20:37:09 +00:00
|
|
|
// The contents of this file are subject to the BOINC Public License
|
2002-04-30 22:22:54 +00:00
|
|
|
// Version 1.0 (the "License"); you may not use this file except in
|
|
|
|
// compliance with the License. You may obtain a copy of the License at
|
2003-07-01 20:37:09 +00:00
|
|
|
// http://boinc.berkeley.edu/license_1.0.txt
|
2002-04-30 22:22:54 +00:00
|
|
|
//
|
|
|
|
// Software distributed under the License is distributed on an "AS IS"
|
|
|
|
// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
|
|
|
|
// License for the specific language governing rights and limitations
|
|
|
|
// under the License.
|
|
|
|
//
|
|
|
|
// The Original Code is the Berkeley Open Infrastructure for Network Computing.
|
|
|
|
//
|
|
|
|
// The Initial Developer of the Original Code is the SETI@home project.
|
|
|
|
// Portions created by the SETI@home project are Copyright (C) 2002
|
|
|
|
// University of California at Berkeley. All Rights Reserved.
|
|
|
|
//
|
|
|
|
// Contributor(s):
|
|
|
|
//
|
|
|
|
|
2002-12-09 21:14:43 +00:00
|
|
|
// NOTE: add new errors to the end of the list and don't change
|
|
|
|
// old error numbers to avoid confusion between versions
|
|
|
|
//
|
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
|
|
|
|
#define ERR_QUIT_REQUEST -126
|
2003-05-07 20:09:34 +00:00
|
|
|
// The app exited due to user request and should be restarted later
|
|
|
|
#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
|
|
|
|
// no rows found in lookup()
|
|
|
|
#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
|