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