Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | #ifndef prerr_h___ |
michael@0 | 7 | #define prerr_h___ |
michael@0 | 8 | |
michael@0 | 9 | /* |
michael@0 | 10 | * |
michael@0 | 11 | * prerr.h |
michael@0 | 12 | * This file is automatically generated; please do not edit it. |
michael@0 | 13 | */ |
michael@0 | 14 | |
michael@0 | 15 | /* Memory allocation attempt failed */ |
michael@0 | 16 | #define PR_OUT_OF_MEMORY_ERROR (-6000L) |
michael@0 | 17 | |
michael@0 | 18 | /* Invalid file descriptor */ |
michael@0 | 19 | #define PR_BAD_DESCRIPTOR_ERROR (-5999L) |
michael@0 | 20 | |
michael@0 | 21 | /* The operation would have blocked */ |
michael@0 | 22 | #define PR_WOULD_BLOCK_ERROR (-5998L) |
michael@0 | 23 | |
michael@0 | 24 | /* Invalid memory address argument */ |
michael@0 | 25 | #define PR_ACCESS_FAULT_ERROR (-5997L) |
michael@0 | 26 | |
michael@0 | 27 | /* Invalid function for file type */ |
michael@0 | 28 | #define PR_INVALID_METHOD_ERROR (-5996L) |
michael@0 | 29 | |
michael@0 | 30 | /* Invalid memory address argument */ |
michael@0 | 31 | #define PR_ILLEGAL_ACCESS_ERROR (-5995L) |
michael@0 | 32 | |
michael@0 | 33 | /* Some unknown error has occurred */ |
michael@0 | 34 | #define PR_UNKNOWN_ERROR (-5994L) |
michael@0 | 35 | |
michael@0 | 36 | /* Operation interrupted by another thread */ |
michael@0 | 37 | #define PR_PENDING_INTERRUPT_ERROR (-5993L) |
michael@0 | 38 | |
michael@0 | 39 | /* function not implemented */ |
michael@0 | 40 | #define PR_NOT_IMPLEMENTED_ERROR (-5992L) |
michael@0 | 41 | |
michael@0 | 42 | /* I/O function error */ |
michael@0 | 43 | #define PR_IO_ERROR (-5991L) |
michael@0 | 44 | |
michael@0 | 45 | /* I/O operation timed out */ |
michael@0 | 46 | #define PR_IO_TIMEOUT_ERROR (-5990L) |
michael@0 | 47 | |
michael@0 | 48 | /* I/O operation on busy file descriptor */ |
michael@0 | 49 | #define PR_IO_PENDING_ERROR (-5989L) |
michael@0 | 50 | |
michael@0 | 51 | /* The directory could not be opened */ |
michael@0 | 52 | #define PR_DIRECTORY_OPEN_ERROR (-5988L) |
michael@0 | 53 | |
michael@0 | 54 | /* Invalid function argument */ |
michael@0 | 55 | #define PR_INVALID_ARGUMENT_ERROR (-5987L) |
michael@0 | 56 | |
michael@0 | 57 | /* Network address not available (in use?) */ |
michael@0 | 58 | #define PR_ADDRESS_NOT_AVAILABLE_ERROR (-5986L) |
michael@0 | 59 | |
michael@0 | 60 | /* Network address type not supported */ |
michael@0 | 61 | #define PR_ADDRESS_NOT_SUPPORTED_ERROR (-5985L) |
michael@0 | 62 | |
michael@0 | 63 | /* Already connected */ |
michael@0 | 64 | #define PR_IS_CONNECTED_ERROR (-5984L) |
michael@0 | 65 | |
michael@0 | 66 | /* Network address is invalid */ |
michael@0 | 67 | #define PR_BAD_ADDRESS_ERROR (-5983L) |
michael@0 | 68 | |
michael@0 | 69 | /* Local Network address is in use */ |
michael@0 | 70 | #define PR_ADDRESS_IN_USE_ERROR (-5982L) |
michael@0 | 71 | |
michael@0 | 72 | /* Connection refused by peer */ |
michael@0 | 73 | #define PR_CONNECT_REFUSED_ERROR (-5981L) |
michael@0 | 74 | |
michael@0 | 75 | /* Network address is presently unreachable */ |
michael@0 | 76 | #define PR_NETWORK_UNREACHABLE_ERROR (-5980L) |
michael@0 | 77 | |
michael@0 | 78 | /* Connection attempt timed out */ |
michael@0 | 79 | #define PR_CONNECT_TIMEOUT_ERROR (-5979L) |
michael@0 | 80 | |
michael@0 | 81 | /* Network file descriptor is not connected */ |
michael@0 | 82 | #define PR_NOT_CONNECTED_ERROR (-5978L) |
michael@0 | 83 | |
michael@0 | 84 | /* Failure to load dynamic library */ |
michael@0 | 85 | #define PR_LOAD_LIBRARY_ERROR (-5977L) |
michael@0 | 86 | |
michael@0 | 87 | /* Failure to unload dynamic library */ |
michael@0 | 88 | #define PR_UNLOAD_LIBRARY_ERROR (-5976L) |
michael@0 | 89 | |
michael@0 | 90 | /* Symbol not found in any of the loaded dynamic libraries */ |
michael@0 | 91 | #define PR_FIND_SYMBOL_ERROR (-5975L) |
michael@0 | 92 | |
michael@0 | 93 | /* Insufficient system resources */ |
michael@0 | 94 | #define PR_INSUFFICIENT_RESOURCES_ERROR (-5974L) |
michael@0 | 95 | |
michael@0 | 96 | /* A directory lookup on a network address has failed */ |
michael@0 | 97 | #define PR_DIRECTORY_LOOKUP_ERROR (-5973L) |
michael@0 | 98 | |
michael@0 | 99 | /* Attempt to access a TPD key that is out of range */ |
michael@0 | 100 | #define PR_TPD_RANGE_ERROR (-5972L) |
michael@0 | 101 | |
michael@0 | 102 | /* Process open FD table is full */ |
michael@0 | 103 | #define PR_PROC_DESC_TABLE_FULL_ERROR (-5971L) |
michael@0 | 104 | |
michael@0 | 105 | /* System open FD table is full */ |
michael@0 | 106 | #define PR_SYS_DESC_TABLE_FULL_ERROR (-5970L) |
michael@0 | 107 | |
michael@0 | 108 | /* Network operation attempted on non-network file descriptor */ |
michael@0 | 109 | #define PR_NOT_SOCKET_ERROR (-5969L) |
michael@0 | 110 | |
michael@0 | 111 | /* TCP-specific function attempted on a non-TCP file descriptor */ |
michael@0 | 112 | #define PR_NOT_TCP_SOCKET_ERROR (-5968L) |
michael@0 | 113 | |
michael@0 | 114 | /* TCP file descriptor is already bound */ |
michael@0 | 115 | #define PR_SOCKET_ADDRESS_IS_BOUND_ERROR (-5967L) |
michael@0 | 116 | |
michael@0 | 117 | /* Access Denied */ |
michael@0 | 118 | #define PR_NO_ACCESS_RIGHTS_ERROR (-5966L) |
michael@0 | 119 | |
michael@0 | 120 | /* The requested operation is not supported by the platform */ |
michael@0 | 121 | #define PR_OPERATION_NOT_SUPPORTED_ERROR (-5965L) |
michael@0 | 122 | |
michael@0 | 123 | /* The host operating system does not support the protocol requested */ |
michael@0 | 124 | #define PR_PROTOCOL_NOT_SUPPORTED_ERROR (-5964L) |
michael@0 | 125 | |
michael@0 | 126 | /* Access to the remote file has been severed */ |
michael@0 | 127 | #define PR_REMOTE_FILE_ERROR (-5963L) |
michael@0 | 128 | |
michael@0 | 129 | /* The value requested is too large to be stored in the data buffer provided */ |
michael@0 | 130 | #define PR_BUFFER_OVERFLOW_ERROR (-5962L) |
michael@0 | 131 | |
michael@0 | 132 | /* TCP connection reset by peer */ |
michael@0 | 133 | #define PR_CONNECT_RESET_ERROR (-5961L) |
michael@0 | 134 | |
michael@0 | 135 | /* Unused */ |
michael@0 | 136 | #define PR_RANGE_ERROR (-5960L) |
michael@0 | 137 | |
michael@0 | 138 | /* The operation would have deadlocked */ |
michael@0 | 139 | #define PR_DEADLOCK_ERROR (-5959L) |
michael@0 | 140 | |
michael@0 | 141 | /* The file is already locked */ |
michael@0 | 142 | #define PR_FILE_IS_LOCKED_ERROR (-5958L) |
michael@0 | 143 | |
michael@0 | 144 | /* Write would result in file larger than the system allows */ |
michael@0 | 145 | #define PR_FILE_TOO_BIG_ERROR (-5957L) |
michael@0 | 146 | |
michael@0 | 147 | /* The device for storing the file is full */ |
michael@0 | 148 | #define PR_NO_DEVICE_SPACE_ERROR (-5956L) |
michael@0 | 149 | |
michael@0 | 150 | /* Unused */ |
michael@0 | 151 | #define PR_PIPE_ERROR (-5955L) |
michael@0 | 152 | |
michael@0 | 153 | /* Unused */ |
michael@0 | 154 | #define PR_NO_SEEK_DEVICE_ERROR (-5954L) |
michael@0 | 155 | |
michael@0 | 156 | /* Cannot perform a normal file operation on a directory */ |
michael@0 | 157 | #define PR_IS_DIRECTORY_ERROR (-5953L) |
michael@0 | 158 | |
michael@0 | 159 | /* Symbolic link loop */ |
michael@0 | 160 | #define PR_LOOP_ERROR (-5952L) |
michael@0 | 161 | |
michael@0 | 162 | /* File name is too long */ |
michael@0 | 163 | #define PR_NAME_TOO_LONG_ERROR (-5951L) |
michael@0 | 164 | |
michael@0 | 165 | /* File not found */ |
michael@0 | 166 | #define PR_FILE_NOT_FOUND_ERROR (-5950L) |
michael@0 | 167 | |
michael@0 | 168 | /* Cannot perform directory operation on a normal file */ |
michael@0 | 169 | #define PR_NOT_DIRECTORY_ERROR (-5949L) |
michael@0 | 170 | |
michael@0 | 171 | /* Cannot write to a read-only file system */ |
michael@0 | 172 | #define PR_READ_ONLY_FILESYSTEM_ERROR (-5948L) |
michael@0 | 173 | |
michael@0 | 174 | /* Cannot delete a directory that is not empty */ |
michael@0 | 175 | #define PR_DIRECTORY_NOT_EMPTY_ERROR (-5947L) |
michael@0 | 176 | |
michael@0 | 177 | /* Cannot delete or rename a file object while the file system is busy */ |
michael@0 | 178 | #define PR_FILESYSTEM_MOUNTED_ERROR (-5946L) |
michael@0 | 179 | |
michael@0 | 180 | /* Cannot rename a file to a file system on another device */ |
michael@0 | 181 | #define PR_NOT_SAME_DEVICE_ERROR (-5945L) |
michael@0 | 182 | |
michael@0 | 183 | /* The directory object in the file system is corrupted */ |
michael@0 | 184 | #define PR_DIRECTORY_CORRUPTED_ERROR (-5944L) |
michael@0 | 185 | |
michael@0 | 186 | /* Cannot create or rename a filename that already exists */ |
michael@0 | 187 | #define PR_FILE_EXISTS_ERROR (-5943L) |
michael@0 | 188 | |
michael@0 | 189 | /* Directory is full. No additional filenames may be added */ |
michael@0 | 190 | #define PR_MAX_DIRECTORY_ENTRIES_ERROR (-5942L) |
michael@0 | 191 | |
michael@0 | 192 | /* The required device was in an invalid state */ |
michael@0 | 193 | #define PR_INVALID_DEVICE_STATE_ERROR (-5941L) |
michael@0 | 194 | |
michael@0 | 195 | /* The device is locked */ |
michael@0 | 196 | #define PR_DEVICE_IS_LOCKED_ERROR (-5940L) |
michael@0 | 197 | |
michael@0 | 198 | /* No more entries in the directory */ |
michael@0 | 199 | #define PR_NO_MORE_FILES_ERROR (-5939L) |
michael@0 | 200 | |
michael@0 | 201 | /* Encountered end of file */ |
michael@0 | 202 | #define PR_END_OF_FILE_ERROR (-5938L) |
michael@0 | 203 | |
michael@0 | 204 | /* Seek error */ |
michael@0 | 205 | #define PR_FILE_SEEK_ERROR (-5937L) |
michael@0 | 206 | |
michael@0 | 207 | /* The file is busy */ |
michael@0 | 208 | #define PR_FILE_IS_BUSY_ERROR (-5936L) |
michael@0 | 209 | |
michael@0 | 210 | /* The I/O operation was aborted */ |
michael@0 | 211 | #define PR_OPERATION_ABORTED_ERROR (-5935L) |
michael@0 | 212 | |
michael@0 | 213 | /* Operation is still in progress (probably a non-blocking connect) */ |
michael@0 | 214 | #define PR_IN_PROGRESS_ERROR (-5934L) |
michael@0 | 215 | |
michael@0 | 216 | /* Operation has already been initiated (probably a non-blocking connect) */ |
michael@0 | 217 | #define PR_ALREADY_INITIATED_ERROR (-5933L) |
michael@0 | 218 | |
michael@0 | 219 | /* The wait group is empty */ |
michael@0 | 220 | #define PR_GROUP_EMPTY_ERROR (-5932L) |
michael@0 | 221 | |
michael@0 | 222 | /* Object state improper for request */ |
michael@0 | 223 | #define PR_INVALID_STATE_ERROR (-5931L) |
michael@0 | 224 | |
michael@0 | 225 | /* Network is down */ |
michael@0 | 226 | #define PR_NETWORK_DOWN_ERROR (-5930L) |
michael@0 | 227 | |
michael@0 | 228 | /* Socket shutdown */ |
michael@0 | 229 | #define PR_SOCKET_SHUTDOWN_ERROR (-5929L) |
michael@0 | 230 | |
michael@0 | 231 | /* Connection aborted */ |
michael@0 | 232 | #define PR_CONNECT_ABORTED_ERROR (-5928L) |
michael@0 | 233 | |
michael@0 | 234 | /* Host is unreachable */ |
michael@0 | 235 | #define PR_HOST_UNREACHABLE_ERROR (-5927L) |
michael@0 | 236 | |
michael@0 | 237 | /* The library is not loaded */ |
michael@0 | 238 | #define PR_LIBRARY_NOT_LOADED_ERROR (-5926L) |
michael@0 | 239 | |
michael@0 | 240 | /* The one-time function was previously called and failed. Its error code is no longer available */ |
michael@0 | 241 | #define PR_CALL_ONCE_ERROR (-5925L) |
michael@0 | 242 | |
michael@0 | 243 | /* Placeholder for the end of the list */ |
michael@0 | 244 | #define PR_MAX_ERROR (-5924L) |
michael@0 | 245 | |
michael@0 | 246 | extern void nspr_InitializePRErrorTable(void); |
michael@0 | 247 | #define ERROR_TABLE_BASE_nspr (-6000L) |
michael@0 | 248 | |
michael@0 | 249 | #endif /* prerr_h___ */ |