Update contrib.
2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * *** CAUTION!!! KEEP DOC CONSISTENT---if you change text of a message
16 * *** here, change two places:
17 * *** 1) the leading doc section (alphabetized by macro)
18 * *** 2) the real text inside switch(errnum)
20 * <<strerror>>---convert error number to string
25 * char *strerror(int <[errnum]>);
28 * char *strerror(<[errnum]>)
30 * <<strerror>> converts the error number <[errnum]> into a
31 * string. The value of <[errnum]> is usually a copy of <<errno>>.
32 * If <<errnum>> is not a known error number, the result points to an
35 * This function returns a pointer to a string. Your application must
36 * not modify that string.
38 * ANSI C requires <<strerror>>, but does not specify the strings used
39 * for each error number.
40 * Although this implementation of <<strerror>> is reentrant, ANSI C
41 * declares that subsequent calls to <<strerror>> may overwrite the
42 * result string; therefore portable code cannot depend on the reentrancy
44 * <<strerror>> requires no supporting OS subroutines.
57 Get pointer to error message string.
58 Returns a pointer to a string with the error message
59 corresponding to the errnum error number.
60 The returned pointer points to a statically allocated string.
61 Further calls to this function will overwrite its content.
62 @param errnum Error number.
75 error = "No such file or directory";
78 error = "No such process";
81 error = "Interrupted system call";
87 error = "No such device or address";
90 error = "Arg list too long";
93 error = "Exec format error";
96 error = "Bad file number";
99 error = "No children";
102 error = "No more processes";
105 error = "Not enough space";
108 error = "Permission denied";
111 error = "Bad address";
114 error = "Block device required";
117 error = "Device or resource busy";
120 error = "File exists";
123 error = "Cross-device link";
126 error = "No such device";
129 error = "Not a directory";
132 error = "Is a directory";
135 error = "Invalid argument";
138 error = "Too many open files in system";
141 error = "Too many open files";
144 error = "Not a character device";
147 error = "Text file busy";
150 error = "File too large";
153 error = "No space left on device";
156 error = "Illegal seek";
159 error = "Read-only file system";
162 error = "Too many links";
165 error = "Broken pipe";
168 error = "Math argument";
171 error = "Result too large";
174 error = "No message of desired type";
177 error = "Identifier removed";
185 case ENOTSOCK: error = "Not a socket"; break;
186 case EADDRNOTAVAIL: error = "Remote address not available"; break;
187 case EAFNOSUPPORT: error = "Address not supported by protocol"; break;
188 case EISCONN: error = "Socket already connected"; break;
189 case ECONNREFUSED: error = "Connection refused by remote host"; break;
190 case EADDRINUSE: error = "Address already in use"; break;
191 case ETIMEDOUT: error = "Connection timed out"; break;
193 error = "Not a stream";
196 error = "Stream ioctl timeout";
199 error = "No stream resources";
202 error = "Machine is not on the network";
205 error = "No package";
208 error = "Resource is remote";
211 error = "Virtual circuit is gone";
214 error = "Advertise error";
217 error = "Srmount error";
220 error = "Communication error";
223 error = "Protocol error";
226 error = "Multihop attempted";
229 error = "Bad message";
232 error = "Cannot access a needed shared library";
235 error = "Accessing a corrupted shared library";
238 error = ".lib section in a.out corrupted";
241 error = "Attempting to link in more shared libraries than system limit";
244 error = "Cannot exec a shared library directly";
247 error = "Function not implemented";
250 error = "No more files";
253 error = "Directory not empty";
256 error = "File or path name too long";
259 error = "invalid wide-character encoding";