xref: /illumos-gate/usr/src/lib/libldap5/sources/ldap/ssldap/prerrstrs.h (revision e3ae4b35c024af1196582063ecee3ab79367227d)
1 /*
2  * Copyright (c) 2001 by Sun Microsystems, Inc.
3  * All rights reserved.
4  */
5 
6 /*
7  * The contents of this file are subject to the Netscape Public
8  * License Version 1.1 (the "License"); you may not use this file
9  * except in compliance with the License. You may obtain a copy of
10  * the License at http://www.mozilla.org/NPL/
11  *
12  * Software distributed under the License is distributed on an "AS
13  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
14  * implied. See the License for the specific language governing
15  * rights and limitations under the License.
16  *
17  * The Original Code is Mozilla Communicator client code, released
18  * March 31, 1998.
19  *
20  * The Initial Developer of the Original Code is Netscape
21  * Communications Corporation. Portions created by Netscape are
22  * Copyright (C) 1998-1999 Netscape Communications Corporation. All
23  * Rights Reserved.
24  *
25  * Contributor(s):
26  */
27 
28 /*
29  * pserrstrs.h - map NSPR errors to strings (used by errormap.c)
30  *
31  */
32 
33 /*
34  ****************************************************************************
35  * The code below this point was provided by Nelson Bolyard <nelsonb> of the
36  *	Netscape Certificate Server team on 27-March-1998.
37  *	Taken from the file ns/security/cmd/lib/NSPRerrs.h on NSS_1_BRANCH.
38  *	Last updated from there: 24-July-1998 by Mark Smith <mcs>
39  *
40  * All of the Directory Server specific changes are enclosed inside
41  *	#ifdef NS_DIRECTORY.
42  ****************************************************************************
43  */
44 /* General NSPR 2.0 errors */
45 /* Caller must #include "prerror.h" */
46 
47 ER2( PR_OUT_OF_MEMORY_ERROR, 	dgettext(TEXT_DOMAIN,
48 					"Memory allocation attempt failed.") )
49 ER2( PR_BAD_DESCRIPTOR_ERROR, 	dgettext(TEXT_DOMAIN,
50 					"Invalid file descriptor.") )
51 ER2( PR_WOULD_BLOCK_ERROR, 	dgettext(TEXT_DOMAIN,
52 					"The operation would have blocked.") )
53 ER2( PR_ACCESS_FAULT_ERROR, 	dgettext(TEXT_DOMAIN,
54 					"Invalid memory address argument.") )
55 ER2( PR_INVALID_METHOD_ERROR, 	dgettext(TEXT_DOMAIN,
56 					"Invalid function for file type.") )
57 ER2( PR_ILLEGAL_ACCESS_ERROR, 	dgettext(TEXT_DOMAIN,
58 					"Invalid memory address argument.") )
59 ER2( PR_UNKNOWN_ERROR, 		dgettext(TEXT_DOMAIN,
60 					"Some unknown error has occurred.") )
61 ER2( PR_PENDING_INTERRUPT_ERROR,dgettext(TEXT_DOMAIN,
62 					"Operation interrupted by another thread.") )
63 ER2( PR_NOT_IMPLEMENTED_ERROR, 	dgettext(TEXT_DOMAIN,
64 					"function not implemented.") )
65 ER2( PR_IO_ERROR, 		dgettext(TEXT_DOMAIN,
66 					"I/O function error.") )
67 ER2( PR_IO_TIMEOUT_ERROR, 	dgettext(TEXT_DOMAIN,
68 					"I/O operation timed out.") )
69 ER2( PR_IO_PENDING_ERROR, 	dgettext(TEXT_DOMAIN,
70 					"I/O operation on busy file descriptor.") )
71 ER2( PR_DIRECTORY_OPEN_ERROR, 	dgettext(TEXT_DOMAIN,
72 					"The directory could not be opened.") )
73 ER2( PR_INVALID_ARGUMENT_ERROR, dgettext(TEXT_DOMAIN,
74 					"Invalid function argument.") )
75 ER2( PR_ADDRESS_NOT_AVAILABLE_ERROR, dgettext(TEXT_DOMAIN,
76 					"Network address not available (in use?).") )
77 ER2( PR_ADDRESS_NOT_SUPPORTED_ERROR, dgettext(TEXT_DOMAIN,
78 					"Network address type not supported.") )
79 ER2( PR_IS_CONNECTED_ERROR, 	dgettext(TEXT_DOMAIN,
80 					"Already connected.") )
81 ER2( PR_BAD_ADDRESS_ERROR, 	dgettext(TEXT_DOMAIN,
82 					"Network address is invalid.") )
83 ER2( PR_ADDRESS_IN_USE_ERROR, 	dgettext(TEXT_DOMAIN,
84 					"Local Network address is in use.") )
85 ER2( PR_CONNECT_REFUSED_ERROR, 	dgettext(TEXT_DOMAIN,
86 					"Connection refused by peer.") )
87 ER2( PR_NETWORK_UNREACHABLE_ERROR, dgettext(TEXT_DOMAIN,
88 					"Network address is presently unreachable.") )
89 ER2( PR_CONNECT_TIMEOUT_ERROR, 	dgettext(TEXT_DOMAIN,
90 					"Connection attempt timed out.") )
91 ER2( PR_NOT_CONNECTED_ERROR, 	dgettext(TEXT_DOMAIN,
92 					"Network file descriptor is not connected.") )
93 ER2( PR_LOAD_LIBRARY_ERROR, 	dgettext(TEXT_DOMAIN,
94 					"Failure to load dynamic library.") )
95 ER2( PR_UNLOAD_LIBRARY_ERROR, 	dgettext(TEXT_DOMAIN,
96 					"Failure to unload dynamic library.") )
97 ER2( PR_FIND_SYMBOL_ERROR, 	dgettext(TEXT_DOMAIN,
98 					"Symbol not found in any of the loaded dynamic libraries.") )
99 ER2( PR_INSUFFICIENT_RESOURCES_ERROR, dgettext(TEXT_DOMAIN,
100 					"Insufficient system resources.") )
101 ER2( PR_DIRECTORY_LOOKUP_ERROR, 	dgettext(TEXT_DOMAIN,
102 					"A directory lookup on a network address has failed.") )
103 ER2( PR_TPD_RANGE_ERROR, 		dgettext(TEXT_DOMAIN,
104 					"Attempt to access a TPD key that is out of range.") )
105 ER2( PR_PROC_DESC_TABLE_FULL_ERROR, dgettext(TEXT_DOMAIN,
106 					"Process open FD table is full.") )
107 ER2( PR_SYS_DESC_TABLE_FULL_ERROR, dgettext(TEXT_DOMAIN,
108 					"System open FD table is full.") )
109 ER2( PR_NOT_SOCKET_ERROR, 	dgettext(TEXT_DOMAIN,
110 					"Network operation attempted on non-network file descriptor.") )
111 ER2( PR_NOT_TCP_SOCKET_ERROR, 	dgettext(TEXT_DOMAIN,
112 					"TCP-specific function attempted on a non-TCP file descriptor.") )
113 ER2( PR_SOCKET_ADDRESS_IS_BOUND_ERROR, dgettext(TEXT_DOMAIN,
114 					"TCP file descriptor is already bound.") )
115 ER2( PR_NO_ACCESS_RIGHTS_ERROR, dgettext(TEXT_DOMAIN,
116 					"Access Denied.") )
117 ER2( PR_OPERATION_NOT_SUPPORTED_ERROR, dgettext(TEXT_DOMAIN,
118 					"The requested operation is not supported by the platform.") )
119 ER2( PR_PROTOCOL_NOT_SUPPORTED_ERROR, dgettext(TEXT_DOMAIN,
120 					"The host operating system does not support the protocol requested.") )
121 ER2( PR_REMOTE_FILE_ERROR, 	dgettext(TEXT_DOMAIN,
122 					"Access to the remote file has been severed.") )
123 ER2( PR_BUFFER_OVERFLOW_ERROR, 	dgettext(TEXT_DOMAIN,
124 					"The value requested is too large to be stored in the data buffer provided.") )
125 ER2( PR_CONNECT_RESET_ERROR, 	dgettext(TEXT_DOMAIN,
126 					"TCP connection reset by peer.") )
127 ER2( PR_RANGE_ERROR, 		dgettext(TEXT_DOMAIN,
128 					"Unused.") )
129 ER2( PR_DEADLOCK_ERROR, 	dgettext(TEXT_DOMAIN,
130 					"The operation would have deadlocked.") )
131 ER2( PR_FILE_IS_LOCKED_ERROR, 	dgettext(TEXT_DOMAIN,
132 					"The file is already locked.") )
133 ER2( PR_FILE_TOO_BIG_ERROR, 	dgettext(TEXT_DOMAIN,
134 					"Write would result in file larger than the system allows.") )
135 ER2( PR_NO_DEVICE_SPACE_ERROR, 	dgettext(TEXT_DOMAIN,
136 					"The device for storing the file is full.") )
137 ER2( PR_PIPE_ERROR, 		dgettext(TEXT_DOMAIN,
138 					"Unused.") )
139 ER2( PR_NO_SEEK_DEVICE_ERROR, 	dgettext(TEXT_DOMAIN,
140 					"Unused.") )
141 ER2( PR_IS_DIRECTORY_ERROR, 	dgettext(TEXT_DOMAIN,
142 					"Cannot perform a normal file operation on a directory.") )
143 ER2( PR_LOOP_ERROR, 		dgettext(TEXT_DOMAIN,
144 					"Symbolic link loop.") )
145 ER2( PR_NAME_TOO_LONG_ERROR, 	dgettext(TEXT_DOMAIN,
146 					"File name is too long.") )
147 ER2( PR_FILE_NOT_FOUND_ERROR, 	dgettext(TEXT_DOMAIN,
148 					"File not found.") )
149 ER2( PR_NOT_DIRECTORY_ERROR, 	dgettext(TEXT_DOMAIN,
150 					"Cannot perform directory operation on a normal file.") )
151 ER2( PR_READ_ONLY_FILESYSTEM_ERROR, dgettext(TEXT_DOMAIN,
152 					"Cannot write to a read-only file system.") )
153 ER2( PR_DIRECTORY_NOT_EMPTY_ERROR, dgettext(TEXT_DOMAIN,
154 					"Cannot delete a directory that is not empty.") )
155 ER2( PR_FILESYSTEM_MOUNTED_ERROR, dgettext(TEXT_DOMAIN,
156 					"Cannot delete or rename a file object while the file system is busy.") )
157 ER2( PR_NOT_SAME_DEVICE_ERROR, 	dgettext(TEXT_DOMAIN,
158 					"Cannot rename a file to a file system on another device.") )
159 ER2( PR_DIRECTORY_CORRUPTED_ERROR, dgettext(TEXT_DOMAIN,
160 					"The directory object in the file system is corrupted.") )
161 ER2( PR_FILE_EXISTS_ERROR, 	dgettext(TEXT_DOMAIN,
162 					"Cannot create or rename a filename that already exists.") )
163 ER2( PR_MAX_DIRECTORY_ENTRIES_ERROR, dgettext(TEXT_DOMAIN,
164 					"Directory is full.  No additional filenames may be added.") )
165 ER2( PR_INVALID_DEVICE_STATE_ERROR, dgettext(TEXT_DOMAIN,
166 					"The required device was in an invalid state.") )
167 ER2( PR_DEVICE_IS_LOCKED_ERROR, dgettext(TEXT_DOMAIN,
168 					"The device is locked.") )
169 ER2( PR_NO_MORE_FILES_ERROR, 	dgettext(TEXT_DOMAIN,
170 					"No more entries in the directory.") )
171 ER2( PR_END_OF_FILE_ERROR, 	dgettext(TEXT_DOMAIN,
172 					"Encountered end of file.") )
173 ER2( PR_FILE_SEEK_ERROR, 	dgettext(TEXT_DOMAIN,
174 					"Seek error.") )
175 ER2( PR_FILE_IS_BUSY_ERROR, 	dgettext(TEXT_DOMAIN,
176 					"The file is busy.") )
177 ER2( PR_IN_PROGRESS_ERROR, dgettext(TEXT_DOMAIN,
178 					"Operation is still in progress (probably a non-blocking connect).") )
179 ER2( PR_ALREADY_INITIATED_ERROR, dgettext(TEXT_DOMAIN,
180 					"Operation has already been initiated (probably a non-blocking connect).") )
181 
182 #ifdef PR_GROUP_EMPTY_ERROR
183 ER2( PR_GROUP_EMPTY_ERROR, 	dgettext(TEXT_DOMAIN,
184 					"The wait group is empty.") )
185 #endif
186 
187 #ifdef PR_INVALID_STATE_ERROR
188 ER2( PR_INVALID_STATE_ERROR, 	dgettext(TEXT_DOMAIN,
189 					"Object state improper for request.") )
190 #endif
191 
192 ER2( PR_MAX_ERROR, 		"Placeholder for the end of the list" )
193