prerrstrs.h 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. /** BEGIN COPYRIGHT BLOCK
  2. * This Program is free software; you can redistribute it and/or modify it under
  3. * the terms of the GNU General Public License as published by the Free Software
  4. * Foundation; version 2 of the License.
  5. *
  6. * This Program is distributed in the hope that it will be useful, but WITHOUT
  7. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  8. * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  9. *
  10. * You should have received a copy of the GNU General Public License along with
  11. * this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
  12. * Place, Suite 330, Boston, MA 02111-1307 USA.
  13. *
  14. * In addition, as a special exception, Red Hat, Inc. gives You the additional
  15. * right to link the code of this Program with code not covered under the GNU
  16. * General Public License ("Non-GPL Code") and to distribute linked combinations
  17. * including the two, subject to the limitations in this paragraph. Non-GPL Code
  18. * permitted under this exception must only link to the code of this Program
  19. * through those well defined interfaces identified in the file named EXCEPTION
  20. * found in the source code files (the "Approved Interfaces"). The files of
  21. * Non-GPL Code may instantiate templates or use macros or inline functions from
  22. * the Approved Interfaces without causing the resulting work to be covered by
  23. * the GNU General Public License. Only Red Hat, Inc. may make changes or
  24. * additions to the list of Approved Interfaces. You must obey the GNU General
  25. * Public License in all respects for all of the Program code and other code used
  26. * in conjunction with the Program except the Non-GPL Code covered by this
  27. * exception. If you modify this file, you may extend this exception to your
  28. * version of the file, but you are not obligated to do so. If you do not wish to
  29. * provide this exception without modification, you must delete this exception
  30. * statement from your version and license this file solely under the GPL without
  31. * exception.
  32. *
  33. *
  34. * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
  35. * Copyright (C) 2005 Red Hat, Inc.
  36. * All rights reserved.
  37. * END COPYRIGHT BLOCK **/
  38. #ifdef HAVE_CONFIG_H
  39. # include <config.h>
  40. #endif
  41. /*
  42. * pserrstrs.h - map NSPR errors to strings (used by errormap.c)
  43. *
  44. */
  45. /*
  46. ****************************************************************************
  47. * The code below this point was taken from the file
  48. * mozilla/security/nss/security/nss/cmd/lib/NSPRerrs.h on NSS_3_11_3_RTM.
  49. ****************************************************************************
  50. */
  51. /* General NSPR 2.0 errors */
  52. /* Caller must #include "prerror.h" */
  53. ER2( PR_OUT_OF_MEMORY_ERROR, "Memory allocation attempt failed." )
  54. ER2( PR_BAD_DESCRIPTOR_ERROR, "Invalid file descriptor." )
  55. ER2( PR_WOULD_BLOCK_ERROR, "The operation would have blocked." )
  56. ER2( PR_ACCESS_FAULT_ERROR, "Invalid memory address argument." )
  57. ER2( PR_INVALID_METHOD_ERROR, "Invalid function for file type." )
  58. ER2( PR_ILLEGAL_ACCESS_ERROR, "Invalid memory address argument." )
  59. ER2( PR_UNKNOWN_ERROR, "Some unknown error has occurred." )
  60. ER2( PR_PENDING_INTERRUPT_ERROR,"Operation interrupted by another thread." )
  61. ER2( PR_NOT_IMPLEMENTED_ERROR, "function not implemented." )
  62. ER2( PR_IO_ERROR, "I/O function error." )
  63. ER2( PR_IO_TIMEOUT_ERROR, "I/O operation timed out." )
  64. ER2( PR_IO_PENDING_ERROR, "I/O operation on busy file descriptor." )
  65. ER2( PR_DIRECTORY_OPEN_ERROR, "The directory could not be opened." )
  66. ER2( PR_INVALID_ARGUMENT_ERROR, "Invalid function argument." )
  67. ER2( PR_ADDRESS_NOT_AVAILABLE_ERROR, "Network address not available (in use?)." )
  68. ER2( PR_ADDRESS_NOT_SUPPORTED_ERROR, "Network address type not supported." )
  69. ER2( PR_IS_CONNECTED_ERROR, "Already connected." )
  70. ER2( PR_BAD_ADDRESS_ERROR, "Network address is invalid." )
  71. ER2( PR_ADDRESS_IN_USE_ERROR, "Local Network address is in use." )
  72. ER2( PR_CONNECT_REFUSED_ERROR, "Connection refused by peer." )
  73. ER2( PR_NETWORK_UNREACHABLE_ERROR, "Network address is presently unreachable." )
  74. ER2( PR_CONNECT_TIMEOUT_ERROR, "Connection attempt timed out." )
  75. ER2( PR_NOT_CONNECTED_ERROR, "Network file descriptor is not connected." )
  76. ER2( PR_LOAD_LIBRARY_ERROR, "Failure to load dynamic library." )
  77. ER2( PR_UNLOAD_LIBRARY_ERROR, "Failure to unload dynamic library." )
  78. ER2( PR_FIND_SYMBOL_ERROR,
  79. "Symbol not found in any of the loaded dynamic libraries." )
  80. ER2( PR_INSUFFICIENT_RESOURCES_ERROR, "Insufficient system resources." )
  81. ER2( PR_DIRECTORY_LOOKUP_ERROR,
  82. "A directory lookup on a network address has failed." )
  83. ER2( PR_TPD_RANGE_ERROR,
  84. "Attempt to access a TPD key that is out of range." )
  85. ER2( PR_PROC_DESC_TABLE_FULL_ERROR, "Process open FD table is full." )
  86. ER2( PR_SYS_DESC_TABLE_FULL_ERROR, "System open FD table is full." )
  87. ER2( PR_NOT_SOCKET_ERROR,
  88. "Network operation attempted on non-network file descriptor." )
  89. ER2( PR_NOT_TCP_SOCKET_ERROR,
  90. "TCP-specific function attempted on a non-TCP file descriptor." )
  91. ER2( PR_SOCKET_ADDRESS_IS_BOUND_ERROR, "TCP file descriptor is already bound." )
  92. ER2( PR_NO_ACCESS_RIGHTS_ERROR, "Access Denied." )
  93. ER2( PR_OPERATION_NOT_SUPPORTED_ERROR,
  94. "The requested operation is not supported by the platform." )
  95. ER2( PR_PROTOCOL_NOT_SUPPORTED_ERROR,
  96. "The host operating system does not support the protocol requested." )
  97. ER2( PR_REMOTE_FILE_ERROR, "Access to the remote file has been severed." )
  98. ER2( PR_BUFFER_OVERFLOW_ERROR,
  99. "The value requested is too large to be stored in the data buffer provided." )
  100. ER2( PR_CONNECT_RESET_ERROR, "TCP connection reset by peer." )
  101. ER2( PR_RANGE_ERROR, "Unused." )
  102. ER2( PR_DEADLOCK_ERROR, "The operation would have deadlocked." )
  103. ER2( PR_FILE_IS_LOCKED_ERROR, "The file is already locked." )
  104. ER2( PR_FILE_TOO_BIG_ERROR,
  105. "Write would result in file larger than the system allows." )
  106. ER2( PR_NO_DEVICE_SPACE_ERROR, "The device for storing the file is full." )
  107. ER2( PR_PIPE_ERROR, "Unused." )
  108. ER2( PR_NO_SEEK_DEVICE_ERROR, "Unused." )
  109. ER2( PR_IS_DIRECTORY_ERROR,
  110. "Cannot perform a normal file operation on a directory." )
  111. ER2( PR_LOOP_ERROR, "Symbolic link loop." )
  112. ER2( PR_NAME_TOO_LONG_ERROR, "File name is too long." )
  113. ER2( PR_FILE_NOT_FOUND_ERROR, "File not found." )
  114. ER2( PR_NOT_DIRECTORY_ERROR,
  115. "Cannot perform directory operation on a normal file." )
  116. ER2( PR_READ_ONLY_FILESYSTEM_ERROR,
  117. "Cannot write to a read-only file system." )
  118. ER2( PR_DIRECTORY_NOT_EMPTY_ERROR,
  119. "Cannot delete a directory that is not empty." )
  120. ER2( PR_FILESYSTEM_MOUNTED_ERROR,
  121. "Cannot delete or rename a file object while the file system is busy." )
  122. ER2( PR_NOT_SAME_DEVICE_ERROR,
  123. "Cannot rename a file to a file system on another device." )
  124. ER2( PR_DIRECTORY_CORRUPTED_ERROR,
  125. "The directory object in the file system is corrupted." )
  126. ER2( PR_FILE_EXISTS_ERROR,
  127. "Cannot create or rename a filename that already exists." )
  128. ER2( PR_MAX_DIRECTORY_ENTRIES_ERROR,
  129. "Directory is full. No additional filenames may be added." )
  130. ER2( PR_INVALID_DEVICE_STATE_ERROR,
  131. "The required device was in an invalid state." )
  132. ER2( PR_DEVICE_IS_LOCKED_ERROR, "The device is locked." )
  133. ER2( PR_NO_MORE_FILES_ERROR, "No more entries in the directory." )
  134. ER2( PR_END_OF_FILE_ERROR, "Encountered end of file." )
  135. ER2( PR_FILE_SEEK_ERROR, "Seek error." )
  136. ER2( PR_FILE_IS_BUSY_ERROR, "The file is busy." )
  137. ER2( PR_IN_PROGRESS_ERROR,
  138. "Operation is still in progress (probably a non-blocking connect)." )
  139. ER2( PR_ALREADY_INITIATED_ERROR,
  140. "Operation has already been initiated (probably a non-blocking connect)." )
  141. #ifdef PR_GROUP_EMPTY_ERROR
  142. ER2( PR_GROUP_EMPTY_ERROR, "The wait group is empty." )
  143. #endif
  144. #ifdef PR_INVALID_STATE_ERROR
  145. ER2( PR_INVALID_STATE_ERROR, "Object state improper for request." )
  146. #endif
  147. #ifdef PR_NETWORK_DOWN_ERROR
  148. ER2( PR_NETWORK_DOWN_ERROR, "Network is down." )
  149. #endif
  150. #ifdef PR_SOCKET_SHUTDOWN_ERROR
  151. ER2( PR_SOCKET_SHUTDOWN_ERROR, "The socket was previously shut down." )
  152. #endif
  153. #ifdef PR_CONNECT_ABORTED_ERROR
  154. ER2( PR_CONNECT_ABORTED_ERROR, "TCP Connection aborted." )
  155. #endif
  156. #ifdef PR_HOST_UNREACHABLE_ERROR
  157. ER2( PR_HOST_UNREACHABLE_ERROR, "Host is unreachable." )
  158. #endif
  159. /* always last */
  160. ER2( PR_MAX_ERROR, "Placeholder for the end of the list" )