prerr.h 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  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. #ifndef prerr_h___
  38. #define prerr_h___
  39. /*
  40. *
  41. * prerr.h
  42. * This file is automatically generated; please do not edit it.
  43. */
  44. /* Memory allocation attempt failed */
  45. #define PR_OUT_OF_MEMORY_ERROR (-6000L)
  46. /* Invalid file descriptor */
  47. #define PR_BAD_DESCRIPTOR_ERROR (-5999L)
  48. /* The operation would have blocked */
  49. #define PR_WOULD_BLOCK_ERROR (-5998L)
  50. /* Invalid memory address argument */
  51. #define PR_ACCESS_FAULT_ERROR (-5997L)
  52. /* Invalid function for file type */
  53. #define PR_INVALID_METHOD_ERROR (-5996L)
  54. /* Invalid memory address argument */
  55. #define PR_ILLEGAL_ACCESS_ERROR (-5995L)
  56. /* Some unknown error has occurred */
  57. #define PR_UNKNOWN_ERROR (-5994L)
  58. /* Operation interrupted by another thread */
  59. #define PR_PENDING_INTERRUPT_ERROR (-5993L)
  60. /* function not implemented */
  61. #define PR_NOT_IMPLEMENTED_ERROR (-5992L)
  62. /* I/O function error */
  63. #define PR_IO_ERROR (-5991L)
  64. /* I/O operation timed out */
  65. #define PR_IO_TIMEOUT_ERROR (-5990L)
  66. /* I/O operation on busy file descriptor */
  67. #define PR_IO_PENDING_ERROR (-5989L)
  68. /* The directory could not be opened */
  69. #define PR_DIRECTORY_OPEN_ERROR (-5988L)
  70. /* Invalid function argument */
  71. #define PR_INVALID_ARGUMENT_ERROR (-5987L)
  72. /* Network address not available (in use?) */
  73. #define PR_ADDRESS_NOT_AVAILABLE_ERROR (-5986L)
  74. /* Network address type not supported */
  75. #define PR_ADDRESS_NOT_SUPPORTED_ERROR (-5985L)
  76. /* Already connected */
  77. #define PR_IS_CONNECTED_ERROR (-5984L)
  78. /* Network address is invalid */
  79. #define PR_BAD_ADDRESS_ERROR (-5983L)
  80. /* Local Network address is in use */
  81. #define PR_ADDRESS_IN_USE_ERROR (-5982L)
  82. /* Connection refused by peer */
  83. #define PR_CONNECT_REFUSED_ERROR (-5981L)
  84. /* Network address is presently unreachable */
  85. #define PR_NETWORK_UNREACHABLE_ERROR (-5980L)
  86. /* Connection attempt timed out */
  87. #define PR_CONNECT_TIMEOUT_ERROR (-5979L)
  88. /* Network file descriptor is not connected */
  89. #define PR_NOT_CONNECTED_ERROR (-5978L)
  90. /* Failure to load dynamic library */
  91. #define PR_LOAD_LIBRARY_ERROR (-5977L)
  92. /* Failure to unload dynamic library */
  93. #define PR_UNLOAD_LIBRARY_ERROR (-5976L)
  94. /* Symbol not found in any of the loaded dynamic libraries */
  95. #define PR_FIND_SYMBOL_ERROR (-5975L)
  96. /* Insufficient system resources */
  97. #define PR_INSUFFICIENT_RESOURCES_ERROR (-5974L)
  98. /* A directory lookup on a network address has failed */
  99. #define PR_DIRECTORY_LOOKUP_ERROR (-5973L)
  100. /* Attempt to access a TPD key that is out of range */
  101. #define PR_TPD_RANGE_ERROR (-5972L)
  102. /* Process open FD table is full */
  103. #define PR_PROC_DESC_TABLE_FULL_ERROR (-5971L)
  104. /* System open FD table is full */
  105. #define PR_SYS_DESC_TABLE_FULL_ERROR (-5970L)
  106. /* Network operation attempted on non-network file descriptor */
  107. #define PR_NOT_SOCKET_ERROR (-5969L)
  108. /* TCP-specific function attempted on a non-TCP file descriptor */
  109. #define PR_NOT_TCP_SOCKET_ERROR (-5968L)
  110. /* TCP file descriptor is already bound */
  111. #define PR_SOCKET_ADDRESS_IS_BOUND_ERROR (-5967L)
  112. /* Access Denied */
  113. #define PR_NO_ACCESS_RIGHTS_ERROR (-5966L)
  114. /* The requested operation is not supported by the platform */
  115. #define PR_OPERATION_NOT_SUPPORTED_ERROR (-5965L)
  116. /* The host operating system does not support the protocol requested */
  117. #define PR_PROTOCOL_NOT_SUPPORTED_ERROR (-5964L)
  118. /* Access to the remote file has been severed */
  119. #define PR_REMOTE_FILE_ERROR (-5963L)
  120. /* The value requested is too large to be stored in the data buffer provided */
  121. #define PR_BUFFER_OVERFLOW_ERROR (-5962L)
  122. /* TCP connection reset by peer */
  123. #define PR_CONNECT_RESET_ERROR (-5961L)
  124. /* Unused */
  125. #define PR_RANGE_ERROR (-5960L)
  126. /* The operation would have deadlocked */
  127. #define PR_DEADLOCK_ERROR (-5959L)
  128. /* The file is already locked */
  129. #define PR_FILE_IS_LOCKED_ERROR (-5958L)
  130. /* Write would result in file larger than the system allows */
  131. #define PR_FILE_TOO_BIG_ERROR (-5957L)
  132. /* The device for storing the file is full */
  133. #define PR_NO_DEVICE_SPACE_ERROR (-5956L)
  134. /* Unused */
  135. #define PR_PIPE_ERROR (-5955L)
  136. /* Unused */
  137. #define PR_NO_SEEK_DEVICE_ERROR (-5954L)
  138. /* Cannot perform a normal file operation on a directory */
  139. #define PR_IS_DIRECTORY_ERROR (-5953L)
  140. /* Symbolic link loop */
  141. #define PR_LOOP_ERROR (-5952L)
  142. /* File name is too long */
  143. #define PR_NAME_TOO_LONG_ERROR (-5951L)
  144. /* File not found */
  145. #define PR_FILE_NOT_FOUND_ERROR (-5950L)
  146. /* Cannot perform directory operation on a normal file */
  147. #define PR_NOT_DIRECTORY_ERROR (-5949L)
  148. /* Cannot write to a read-only file system */
  149. #define PR_READ_ONLY_FILESYSTEM_ERROR (-5948L)
  150. /* Cannot delete a directory that is not empty */
  151. #define PR_DIRECTORY_NOT_EMPTY_ERROR (-5947L)
  152. /* Cannot delete or rename a file object while the file system is busy */
  153. #define PR_FILESYSTEM_MOUNTED_ERROR (-5946L)
  154. /* Cannot rename a file to a file system on another device */
  155. #define PR_NOT_SAME_DEVICE_ERROR (-5945L)
  156. /* The directory object in the file system is corrupted */
  157. #define PR_DIRECTORY_CORRUPTED_ERROR (-5944L)
  158. /* Cannot create or rename a filename that already exists */
  159. #define PR_FILE_EXISTS_ERROR (-5943L)
  160. /* Directory is full. No additional filenames may be added */
  161. #define PR_MAX_DIRECTORY_ENTRIES_ERROR (-5942L)
  162. /* The required device was in an invalid state */
  163. #define PR_INVALID_DEVICE_STATE_ERROR (-5941L)
  164. /* The device is locked */
  165. #define PR_DEVICE_IS_LOCKED_ERROR (-5940L)
  166. /* No more entries in the directory */
  167. #define PR_NO_MORE_FILES_ERROR (-5939L)
  168. /* Encountered end of file */
  169. #define PR_END_OF_FILE_ERROR (-5938L)
  170. /* Seek error */
  171. #define PR_FILE_SEEK_ERROR (-5937L)
  172. /* The file is busy */
  173. #define PR_FILE_IS_BUSY_ERROR (-5936L)
  174. /* The I/O operation was aborted */
  175. #define PR_OPERATION_ABORTED_ERROR (-5935L)
  176. /* Operation is still in progress (probably a non-blocking connect) */
  177. #define PR_IN_PROGRESS_ERROR (-5934L)
  178. /* Operation has already been initiated (probably a non-blocking connect) */
  179. #define PR_ALREADY_INITIATED_ERROR (-5933L)
  180. /* The wait group is empty */
  181. #define PR_GROUP_EMPTY_ERROR (-5932L)
  182. /* Object state improper for request */
  183. #define PR_INVALID_STATE_ERROR (-5931L)
  184. /* Network is down */
  185. #define PR_NETWORK_DOWN_ERROR (-5930L)
  186. /* Socket shutdown */
  187. #define PR_SOCKET_SHUTDOWN_ERROR (-5929L)
  188. /* Connection aborted */
  189. #define PR_CONNECT_ABORTED_ERROR (-5928L)
  190. /* Host is unreachable */
  191. #define PR_HOST_UNREACHABLE_ERROR (-5927L)
  192. /* The library is not loaded */
  193. #define PR_LIBRARY_NOT_LOADED_ERROR (-5926L)
  194. /* Placeholder for the end of the list */
  195. #define PR_MAX_ERROR (-5925L)
  196. extern void nspr_InitializePRErrorTable(void);
  197. #define ERROR_TABLE_BASE_nspr (-6000L)
  198. #endif /* prerr_h___ */