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