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
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/
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
15 * The Original Code is the Netscape Portable Runtime (NSPR).
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.
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.
36 * ***** END LICENSE BLOCK ***** */
44 * This file is automatically generated; please do not edit it.
47 /* Memory allocation attempt failed */
48 #define PR_OUT_OF_MEMORY_ERROR (-6000L)
50 /* Invalid file descriptor */
51 #define PR_BAD_DESCRIPTOR_ERROR (-5999L)
53 /* The operation would have blocked */
54 #define PR_WOULD_BLOCK_ERROR (-5998L)
56 /* Invalid memory address argument */
57 #define PR_ACCESS_FAULT_ERROR (-5997L)
59 /* Invalid function for file type */
60 #define PR_INVALID_METHOD_ERROR (-5996L)
62 /* Invalid memory address argument */
63 #define PR_ILLEGAL_ACCESS_ERROR (-5995L)
65 /* Some unknown error has occurred */
66 #define PR_UNKNOWN_ERROR (-5994L)
68 /* Operation interrupted by another thread */
69 #define PR_PENDING_INTERRUPT_ERROR (-5993L)
71 /* function not implemented */
72 #define PR_NOT_IMPLEMENTED_ERROR (-5992L)
74 /* I/O function error */
75 #define PR_IO_ERROR (-5991L)
77 /* I/O operation timed out */
78 #define PR_IO_TIMEOUT_ERROR (-5990L)
80 /* I/O operation on busy file descriptor */
81 #define PR_IO_PENDING_ERROR (-5989L)
83 /* The directory could not be opened */
84 #define PR_DIRECTORY_OPEN_ERROR (-5988L)
86 /* Invalid function argument */
87 #define PR_INVALID_ARGUMENT_ERROR (-5987L)
89 /* Network address not available (in use?) */
90 #define PR_ADDRESS_NOT_AVAILABLE_ERROR (-5986L)
92 /* Network address type not supported */
93 #define PR_ADDRESS_NOT_SUPPORTED_ERROR (-5985L)
95 /* Already connected */
96 #define PR_IS_CONNECTED_ERROR (-5984L)
98 /* Network address is invalid */
99 #define PR_BAD_ADDRESS_ERROR (-5983L)
101 /* Local Network address is in use */
102 #define PR_ADDRESS_IN_USE_ERROR (-5982L)
104 /* Connection refused by peer */
105 #define PR_CONNECT_REFUSED_ERROR (-5981L)
107 /* Network address is presently unreachable */
108 #define PR_NETWORK_UNREACHABLE_ERROR (-5980L)
110 /* Connection attempt timed out */
111 #define PR_CONNECT_TIMEOUT_ERROR (-5979L)
113 /* Network file descriptor is not connected */
114 #define PR_NOT_CONNECTED_ERROR (-5978L)
116 /* Failure to load dynamic library */
117 #define PR_LOAD_LIBRARY_ERROR (-5977L)
119 /* Failure to unload dynamic library */
120 #define PR_UNLOAD_LIBRARY_ERROR (-5976L)
122 /* Symbol not found in any of the loaded dynamic libraries */
123 #define PR_FIND_SYMBOL_ERROR (-5975L)
125 /* Insufficient system resources */
126 #define PR_INSUFFICIENT_RESOURCES_ERROR (-5974L)
128 /* A directory lookup on a network address has failed */
129 #define PR_DIRECTORY_LOOKUP_ERROR (-5973L)
131 /* Attempt to access a TPD key that is out of range */
132 #define PR_TPD_RANGE_ERROR (-5972L)
134 /* Process open FD table is full */
135 #define PR_PROC_DESC_TABLE_FULL_ERROR (-5971L)
137 /* System open FD table is full */
138 #define PR_SYS_DESC_TABLE_FULL_ERROR (-5970L)
140 /* Network operation attempted on non-network file descriptor */
141 #define PR_NOT_SOCKET_ERROR (-5969L)
143 /* TCP-specific function attempted on a non-TCP file descriptor */
144 #define PR_NOT_TCP_SOCKET_ERROR (-5968L)
146 /* TCP file descriptor is already bound */
147 #define PR_SOCKET_ADDRESS_IS_BOUND_ERROR (-5967L)
150 #define PR_NO_ACCESS_RIGHTS_ERROR (-5966L)
152 /* The requested operation is not supported by the platform */
153 #define PR_OPERATION_NOT_SUPPORTED_ERROR (-5965L)
155 /* The host operating system does not support the protocol requested */
156 #define PR_PROTOCOL_NOT_SUPPORTED_ERROR (-5964L)
158 /* Access to the remote file has been severed */
159 #define PR_REMOTE_FILE_ERROR (-5963L)
161 /* The value requested is too large to be stored in the data buffer provided */
162 #define PR_BUFFER_OVERFLOW_ERROR (-5962L)
164 /* TCP connection reset by peer */
165 #define PR_CONNECT_RESET_ERROR (-5961L)
168 #define PR_RANGE_ERROR (-5960L)
170 /* The operation would have deadlocked */
171 #define PR_DEADLOCK_ERROR (-5959L)
173 /* The file is already locked */
174 #define PR_FILE_IS_LOCKED_ERROR (-5958L)
176 /* Write would result in file larger than the system allows */
177 #define PR_FILE_TOO_BIG_ERROR (-5957L)
179 /* The device for storing the file is full */
180 #define PR_NO_DEVICE_SPACE_ERROR (-5956L)
183 #define PR_PIPE_ERROR (-5955L)
186 #define PR_NO_SEEK_DEVICE_ERROR (-5954L)
188 /* Cannot perform a normal file operation on a directory */
189 #define PR_IS_DIRECTORY_ERROR (-5953L)
191 /* Symbolic link loop */
192 #define PR_LOOP_ERROR (-5952L)
194 /* File name is too long */
195 #define PR_NAME_TOO_LONG_ERROR (-5951L)
198 #define PR_FILE_NOT_FOUND_ERROR (-5950L)
200 /* Cannot perform directory operation on a normal file */
201 #define PR_NOT_DIRECTORY_ERROR (-5949L)
203 /* Cannot write to a read-only file system */
204 #define PR_READ_ONLY_FILESYSTEM_ERROR (-5948L)
206 /* Cannot delete a directory that is not empty */
207 #define PR_DIRECTORY_NOT_EMPTY_ERROR (-5947L)
209 /* Cannot delete or rename a file object while the file system is busy */
210 #define PR_FILESYSTEM_MOUNTED_ERROR (-5946L)
212 /* Cannot rename a file to a file system on another device */
213 #define PR_NOT_SAME_DEVICE_ERROR (-5945L)
215 /* The directory object in the file system is corrupted */
216 #define PR_DIRECTORY_CORRUPTED_ERROR (-5944L)
218 /* Cannot create or rename a filename that already exists */
219 #define PR_FILE_EXISTS_ERROR (-5943L)
221 /* Directory is full. No additional filenames may be added */
222 #define PR_MAX_DIRECTORY_ENTRIES_ERROR (-5942L)
224 /* The required device was in an invalid state */
225 #define PR_INVALID_DEVICE_STATE_ERROR (-5941L)
227 /* The device is locked */
228 #define PR_DEVICE_IS_LOCKED_ERROR (-5940L)
230 /* No more entries in the directory */
231 #define PR_NO_MORE_FILES_ERROR (-5939L)
233 /* Encountered end of file */
234 #define PR_END_OF_FILE_ERROR (-5938L)
237 #define PR_FILE_SEEK_ERROR (-5937L)
239 /* The file is busy */
240 #define PR_FILE_IS_BUSY_ERROR (-5936L)
242 /* The I/O operation was aborted */
243 #define PR_OPERATION_ABORTED_ERROR (-5935L)
245 /* Operation is still in progress (probably a non-blocking connect) */
246 #define PR_IN_PROGRESS_ERROR (-5934L)
248 /* Operation has already been initiated (probably a non-blocking connect) */
249 #define PR_ALREADY_INITIATED_ERROR (-5933L)
251 /* The wait group is empty */
252 #define PR_GROUP_EMPTY_ERROR (-5932L)
254 /* Object state improper for request */
255 #define PR_INVALID_STATE_ERROR (-5931L)
257 /* Network is down */
258 #define PR_NETWORK_DOWN_ERROR (-5930L)
260 /* Socket shutdown */
261 #define PR_SOCKET_SHUTDOWN_ERROR (-5929L)
263 /* Connection aborted */
264 #define PR_CONNECT_ABORTED_ERROR (-5928L)
266 /* Host is unreachable */
267 #define PR_HOST_UNREACHABLE_ERROR (-5927L)
269 /* The library is not loaded */
270 #define PR_LIBRARY_NOT_LOADED_ERROR (-5926L)
272 /* The one-time function was previously called and failed. Its error code is no longer available */
273 #define PR_CALL_ONCE_ERROR (-5925L)
275 /* Placeholder for the end of the list */
276 #define PR_MAX_ERROR (-5924L)
278 extern void nspr_InitializePRErrorTable(void);
279 #define ERROR_TABLE_BASE_nspr (-6000L)
281 #endif /* prerr_h___ */