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