2002-04-30 22:22:54 +00:00
|
|
|
// The contents of this file are subject to the Mozilla Public License
|
|
|
|
// 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
|
|
|
|
// http://www.mozilla.org/MPL/
|
|
|
|
//
|
|
|
|
// 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
|
2002-08-21 19:12:42 +00:00
|
|
|
// Unexpected XML tag or XML format
|
2002-11-18 23:09:11 +00:00
|
|
|
#define ERR_XML_PARSE -112
|
2002-08-21 19:12:42 +00:00
|
|
|
// Couldn't resolve hostname
|
2002-04-30 22:22:54 +00:00
|
|
|
#define ERR_GETHOSTBYNAME -113
|
2002-08-13 22:32:34 +00:00
|
|
|
// too much time has elapsed without progress on file xfer
|
2002-12-07 00:56:51 +00:00
|
|
|
#define ERR_GIVEUP_DOWNLOAD -114
|
|
|
|
#define ERR_GIVEUP_UPLOAD -115
|
2002-08-13 22:32:34 +00:00
|
|
|
// unexpected NULL pointer
|
2002-12-07 00:56:51 +00:00
|
|
|
#define ERR_NULL -116
|
2002-08-13 22:32:34 +00:00
|
|
|
// unexpected negative value
|
2002-12-07 00:56:51 +00:00
|
|
|
#define ERR_NEG -117
|
2002-08-13 22:32:34 +00:00
|
|
|
// caught buffer overflow
|
2002-12-07 00:56:51 +00:00
|
|
|
#define ERR_BUFF_OVERFLOW -118
|
2002-08-13 22:32:34 +00:00
|
|
|
// MD5 checksum failed for a file
|
2002-12-07 00:56:51 +00:00
|
|
|
#define ERR_MD5_FAILED -119
|
2002-08-13 22:32:34 +00:00
|
|
|
// RSA key check failed for a file
|
2002-12-07 00:56:51 +00:00
|
|
|
#define ERR_RSA_FAILED -120
|
|
|
|
#define ERR_OPEN -121
|
|
|
|
#define ERR_DUP2 -122
|
|
|
|
#define ERR_NO_SIGNATURE -123
|
2002-11-18 23:09:11 +00:00
|
|
|
// Error creating a thread
|
2002-12-07 00:56:51 +00:00
|
|
|
#define ERR_THREAD -124
|
|
|
|
#define ERR_SIGNAL_CATCH -125
|
2002-11-19 00:28:33 +00:00
|
|
|
// The app exited due to user request and should be restarted later
|
2002-12-07 00:56:51 +00:00
|
|
|
#define ERR_QUIT_REQUEST -126
|