1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/nsprpub/pr/include/prerr.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,249 @@ 1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#ifndef prerr_h___ 1.10 +#define prerr_h___ 1.11 + 1.12 +/* 1.13 + * 1.14 + * prerr.h 1.15 + * This file is automatically generated; please do not edit it. 1.16 + */ 1.17 + 1.18 +/* Memory allocation attempt failed */ 1.19 +#define PR_OUT_OF_MEMORY_ERROR (-6000L) 1.20 + 1.21 +/* Invalid file descriptor */ 1.22 +#define PR_BAD_DESCRIPTOR_ERROR (-5999L) 1.23 + 1.24 +/* The operation would have blocked */ 1.25 +#define PR_WOULD_BLOCK_ERROR (-5998L) 1.26 + 1.27 +/* Invalid memory address argument */ 1.28 +#define PR_ACCESS_FAULT_ERROR (-5997L) 1.29 + 1.30 +/* Invalid function for file type */ 1.31 +#define PR_INVALID_METHOD_ERROR (-5996L) 1.32 + 1.33 +/* Invalid memory address argument */ 1.34 +#define PR_ILLEGAL_ACCESS_ERROR (-5995L) 1.35 + 1.36 +/* Some unknown error has occurred */ 1.37 +#define PR_UNKNOWN_ERROR (-5994L) 1.38 + 1.39 +/* Operation interrupted by another thread */ 1.40 +#define PR_PENDING_INTERRUPT_ERROR (-5993L) 1.41 + 1.42 +/* function not implemented */ 1.43 +#define PR_NOT_IMPLEMENTED_ERROR (-5992L) 1.44 + 1.45 +/* I/O function error */ 1.46 +#define PR_IO_ERROR (-5991L) 1.47 + 1.48 +/* I/O operation timed out */ 1.49 +#define PR_IO_TIMEOUT_ERROR (-5990L) 1.50 + 1.51 +/* I/O operation on busy file descriptor */ 1.52 +#define PR_IO_PENDING_ERROR (-5989L) 1.53 + 1.54 +/* The directory could not be opened */ 1.55 +#define PR_DIRECTORY_OPEN_ERROR (-5988L) 1.56 + 1.57 +/* Invalid function argument */ 1.58 +#define PR_INVALID_ARGUMENT_ERROR (-5987L) 1.59 + 1.60 +/* Network address not available (in use?) */ 1.61 +#define PR_ADDRESS_NOT_AVAILABLE_ERROR (-5986L) 1.62 + 1.63 +/* Network address type not supported */ 1.64 +#define PR_ADDRESS_NOT_SUPPORTED_ERROR (-5985L) 1.65 + 1.66 +/* Already connected */ 1.67 +#define PR_IS_CONNECTED_ERROR (-5984L) 1.68 + 1.69 +/* Network address is invalid */ 1.70 +#define PR_BAD_ADDRESS_ERROR (-5983L) 1.71 + 1.72 +/* Local Network address is in use */ 1.73 +#define PR_ADDRESS_IN_USE_ERROR (-5982L) 1.74 + 1.75 +/* Connection refused by peer */ 1.76 +#define PR_CONNECT_REFUSED_ERROR (-5981L) 1.77 + 1.78 +/* Network address is presently unreachable */ 1.79 +#define PR_NETWORK_UNREACHABLE_ERROR (-5980L) 1.80 + 1.81 +/* Connection attempt timed out */ 1.82 +#define PR_CONNECT_TIMEOUT_ERROR (-5979L) 1.83 + 1.84 +/* Network file descriptor is not connected */ 1.85 +#define PR_NOT_CONNECTED_ERROR (-5978L) 1.86 + 1.87 +/* Failure to load dynamic library */ 1.88 +#define PR_LOAD_LIBRARY_ERROR (-5977L) 1.89 + 1.90 +/* Failure to unload dynamic library */ 1.91 +#define PR_UNLOAD_LIBRARY_ERROR (-5976L) 1.92 + 1.93 +/* Symbol not found in any of the loaded dynamic libraries */ 1.94 +#define PR_FIND_SYMBOL_ERROR (-5975L) 1.95 + 1.96 +/* Insufficient system resources */ 1.97 +#define PR_INSUFFICIENT_RESOURCES_ERROR (-5974L) 1.98 + 1.99 +/* A directory lookup on a network address has failed */ 1.100 +#define PR_DIRECTORY_LOOKUP_ERROR (-5973L) 1.101 + 1.102 +/* Attempt to access a TPD key that is out of range */ 1.103 +#define PR_TPD_RANGE_ERROR (-5972L) 1.104 + 1.105 +/* Process open FD table is full */ 1.106 +#define PR_PROC_DESC_TABLE_FULL_ERROR (-5971L) 1.107 + 1.108 +/* System open FD table is full */ 1.109 +#define PR_SYS_DESC_TABLE_FULL_ERROR (-5970L) 1.110 + 1.111 +/* Network operation attempted on non-network file descriptor */ 1.112 +#define PR_NOT_SOCKET_ERROR (-5969L) 1.113 + 1.114 +/* TCP-specific function attempted on a non-TCP file descriptor */ 1.115 +#define PR_NOT_TCP_SOCKET_ERROR (-5968L) 1.116 + 1.117 +/* TCP file descriptor is already bound */ 1.118 +#define PR_SOCKET_ADDRESS_IS_BOUND_ERROR (-5967L) 1.119 + 1.120 +/* Access Denied */ 1.121 +#define PR_NO_ACCESS_RIGHTS_ERROR (-5966L) 1.122 + 1.123 +/* The requested operation is not supported by the platform */ 1.124 +#define PR_OPERATION_NOT_SUPPORTED_ERROR (-5965L) 1.125 + 1.126 +/* The host operating system does not support the protocol requested */ 1.127 +#define PR_PROTOCOL_NOT_SUPPORTED_ERROR (-5964L) 1.128 + 1.129 +/* Access to the remote file has been severed */ 1.130 +#define PR_REMOTE_FILE_ERROR (-5963L) 1.131 + 1.132 +/* The value requested is too large to be stored in the data buffer provided */ 1.133 +#define PR_BUFFER_OVERFLOW_ERROR (-5962L) 1.134 + 1.135 +/* TCP connection reset by peer */ 1.136 +#define PR_CONNECT_RESET_ERROR (-5961L) 1.137 + 1.138 +/* Unused */ 1.139 +#define PR_RANGE_ERROR (-5960L) 1.140 + 1.141 +/* The operation would have deadlocked */ 1.142 +#define PR_DEADLOCK_ERROR (-5959L) 1.143 + 1.144 +/* The file is already locked */ 1.145 +#define PR_FILE_IS_LOCKED_ERROR (-5958L) 1.146 + 1.147 +/* Write would result in file larger than the system allows */ 1.148 +#define PR_FILE_TOO_BIG_ERROR (-5957L) 1.149 + 1.150 +/* The device for storing the file is full */ 1.151 +#define PR_NO_DEVICE_SPACE_ERROR (-5956L) 1.152 + 1.153 +/* Unused */ 1.154 +#define PR_PIPE_ERROR (-5955L) 1.155 + 1.156 +/* Unused */ 1.157 +#define PR_NO_SEEK_DEVICE_ERROR (-5954L) 1.158 + 1.159 +/* Cannot perform a normal file operation on a directory */ 1.160 +#define PR_IS_DIRECTORY_ERROR (-5953L) 1.161 + 1.162 +/* Symbolic link loop */ 1.163 +#define PR_LOOP_ERROR (-5952L) 1.164 + 1.165 +/* File name is too long */ 1.166 +#define PR_NAME_TOO_LONG_ERROR (-5951L) 1.167 + 1.168 +/* File not found */ 1.169 +#define PR_FILE_NOT_FOUND_ERROR (-5950L) 1.170 + 1.171 +/* Cannot perform directory operation on a normal file */ 1.172 +#define PR_NOT_DIRECTORY_ERROR (-5949L) 1.173 + 1.174 +/* Cannot write to a read-only file system */ 1.175 +#define PR_READ_ONLY_FILESYSTEM_ERROR (-5948L) 1.176 + 1.177 +/* Cannot delete a directory that is not empty */ 1.178 +#define PR_DIRECTORY_NOT_EMPTY_ERROR (-5947L) 1.179 + 1.180 +/* Cannot delete or rename a file object while the file system is busy */ 1.181 +#define PR_FILESYSTEM_MOUNTED_ERROR (-5946L) 1.182 + 1.183 +/* Cannot rename a file to a file system on another device */ 1.184 +#define PR_NOT_SAME_DEVICE_ERROR (-5945L) 1.185 + 1.186 +/* The directory object in the file system is corrupted */ 1.187 +#define PR_DIRECTORY_CORRUPTED_ERROR (-5944L) 1.188 + 1.189 +/* Cannot create or rename a filename that already exists */ 1.190 +#define PR_FILE_EXISTS_ERROR (-5943L) 1.191 + 1.192 +/* Directory is full. No additional filenames may be added */ 1.193 +#define PR_MAX_DIRECTORY_ENTRIES_ERROR (-5942L) 1.194 + 1.195 +/* The required device was in an invalid state */ 1.196 +#define PR_INVALID_DEVICE_STATE_ERROR (-5941L) 1.197 + 1.198 +/* The device is locked */ 1.199 +#define PR_DEVICE_IS_LOCKED_ERROR (-5940L) 1.200 + 1.201 +/* No more entries in the directory */ 1.202 +#define PR_NO_MORE_FILES_ERROR (-5939L) 1.203 + 1.204 +/* Encountered end of file */ 1.205 +#define PR_END_OF_FILE_ERROR (-5938L) 1.206 + 1.207 +/* Seek error */ 1.208 +#define PR_FILE_SEEK_ERROR (-5937L) 1.209 + 1.210 +/* The file is busy */ 1.211 +#define PR_FILE_IS_BUSY_ERROR (-5936L) 1.212 + 1.213 +/* The I/O operation was aborted */ 1.214 +#define PR_OPERATION_ABORTED_ERROR (-5935L) 1.215 + 1.216 +/* Operation is still in progress (probably a non-blocking connect) */ 1.217 +#define PR_IN_PROGRESS_ERROR (-5934L) 1.218 + 1.219 +/* Operation has already been initiated (probably a non-blocking connect) */ 1.220 +#define PR_ALREADY_INITIATED_ERROR (-5933L) 1.221 + 1.222 +/* The wait group is empty */ 1.223 +#define PR_GROUP_EMPTY_ERROR (-5932L) 1.224 + 1.225 +/* Object state improper for request */ 1.226 +#define PR_INVALID_STATE_ERROR (-5931L) 1.227 + 1.228 +/* Network is down */ 1.229 +#define PR_NETWORK_DOWN_ERROR (-5930L) 1.230 + 1.231 +/* Socket shutdown */ 1.232 +#define PR_SOCKET_SHUTDOWN_ERROR (-5929L) 1.233 + 1.234 +/* Connection aborted */ 1.235 +#define PR_CONNECT_ABORTED_ERROR (-5928L) 1.236 + 1.237 +/* Host is unreachable */ 1.238 +#define PR_HOST_UNREACHABLE_ERROR (-5927L) 1.239 + 1.240 +/* The library is not loaded */ 1.241 +#define PR_LIBRARY_NOT_LOADED_ERROR (-5926L) 1.242 + 1.243 +/* The one-time function was previously called and failed. Its error code is no longer available */ 1.244 +#define PR_CALL_ONCE_ERROR (-5925L) 1.245 + 1.246 +/* Placeholder for the end of the list */ 1.247 +#define PR_MAX_ERROR (-5924L) 1.248 + 1.249 +extern void nspr_InitializePRErrorTable(void); 1.250 +#define ERROR_TABLE_BASE_nspr (-6000L) 1.251 + 1.252 +#endif /* prerr_h___ */