1 | /** @file
|
---|
2 | * IPRT - Status Codes.
|
---|
3 | */
|
---|
4 |
|
---|
5 | /*
|
---|
6 | * Copyright (C) 2006-2010 Oracle Corporation
|
---|
7 | *
|
---|
8 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
9 | * available from http://www.virtualbox.org. This file is free software;
|
---|
10 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
11 | * General Public License (GPL) as published by the Free Software
|
---|
12 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
13 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
14 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
15 | *
|
---|
16 | * The contents of this file may alternatively be used under the terms
|
---|
17 | * of the Common Development and Distribution License Version 1.0
|
---|
18 | * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
19 | * VirtualBox OSE distribution, in which case the provisions of the
|
---|
20 | * CDDL are applicable instead of those of the GPL.
|
---|
21 | *
|
---|
22 | * You may elect to license modified versions of this file under the
|
---|
23 | * terms and conditions of either the GPL or the CDDL or both.
|
---|
24 | */
|
---|
25 |
|
---|
26 | #ifndef ___iprt_err_h
|
---|
27 | #define ___iprt_err_h
|
---|
28 |
|
---|
29 | #include <iprt/cdefs.h>
|
---|
30 | #include <iprt/types.h>
|
---|
31 |
|
---|
32 |
|
---|
33 | /** @defgroup grp_rt_err RTErr - Status Codes
|
---|
34 | * @ingroup grp_rt
|
---|
35 | *
|
---|
36 | * The IPRT status codes are in two ranges: {0..999} and {22000..32766}. The
|
---|
37 | * IPRT users are free to use the range {1000..21999}. See RTERR_RANGE1_FIRST,
|
---|
38 | * RTERR_RANGE1_LAST, RTERR_RANGE2_FIRST, RTERR_RANGE2_LAST, RTERR_USER_FIRST
|
---|
39 | * and RTERR_USER_LAST.
|
---|
40 | *
|
---|
41 | * @{
|
---|
42 | */
|
---|
43 |
|
---|
44 | /** @defgroup grp_rt_err_hlp Status Code Helpers
|
---|
45 | * @ingroup grp_rt_err
|
---|
46 | * @{
|
---|
47 | */
|
---|
48 |
|
---|
49 | #ifdef __cplusplus
|
---|
50 | /**
|
---|
51 | * Strict type validation class.
|
---|
52 | *
|
---|
53 | * This is only really useful for type checking the arguments to RT_SUCCESS,
|
---|
54 | * RT_SUCCESS_NP, RT_FAILURE and RT_FAILURE_NP. The RTErrStrictType2
|
---|
55 | * constructor is for integration with external status code strictness regimes.
|
---|
56 | */
|
---|
57 | class RTErrStrictType
|
---|
58 | {
|
---|
59 | protected:
|
---|
60 | int32_t m_rc;
|
---|
61 |
|
---|
62 | public:
|
---|
63 | /**
|
---|
64 | * Constructor for interaction with external status code strictness regimes.
|
---|
65 | *
|
---|
66 | * This is a special constructor for helping external return code validator
|
---|
67 | * classes interact cleanly with RT_SUCCESS, RT_SUCCESS_NP, RT_FAILURE and
|
---|
68 | * RT_FAILURE_NP while barring automatic cast to integer.
|
---|
69 | *
|
---|
70 | * @param rcObj IPRT status code object from an automatic cast.
|
---|
71 | */
|
---|
72 | RTErrStrictType(RTErrStrictType2 const rcObj)
|
---|
73 | : m_rc(rcObj.getValue())
|
---|
74 | {
|
---|
75 | }
|
---|
76 |
|
---|
77 | /**
|
---|
78 | * Integer constructor used by RT_SUCCESS_NP.
|
---|
79 | *
|
---|
80 | * @param rc IPRT style status code.
|
---|
81 | */
|
---|
82 | RTErrStrictType(int32_t rc)
|
---|
83 | : m_rc(rc)
|
---|
84 | {
|
---|
85 | }
|
---|
86 |
|
---|
87 | #if 0 /** @todo figure where int32_t is long instead of int. */
|
---|
88 | /**
|
---|
89 | * Integer constructor used by RT_SUCCESS_NP.
|
---|
90 | *
|
---|
91 | * @param rc IPRT style status code.
|
---|
92 | */
|
---|
93 | RTErrStrictType(signed int rc)
|
---|
94 | : m_rc(rc)
|
---|
95 | {
|
---|
96 | }
|
---|
97 | #endif
|
---|
98 |
|
---|
99 | /**
|
---|
100 | * Test for success.
|
---|
101 | */
|
---|
102 | bool success() const
|
---|
103 | {
|
---|
104 | return m_rc >= 0;
|
---|
105 | }
|
---|
106 |
|
---|
107 | private:
|
---|
108 | /** @name Try ban a number of wrong types.
|
---|
109 | * @{ */
|
---|
110 | RTErrStrictType(uint8_t rc) : m_rc(-999) { NOREF(rc); }
|
---|
111 | RTErrStrictType(uint16_t rc) : m_rc(-999) { NOREF(rc); }
|
---|
112 | RTErrStrictType(uint32_t rc) : m_rc(-999) { NOREF(rc); }
|
---|
113 | RTErrStrictType(uint64_t rc) : m_rc(-999) { NOREF(rc); }
|
---|
114 | RTErrStrictType(int8_t rc) : m_rc(-999) { NOREF(rc); }
|
---|
115 | RTErrStrictType(int16_t rc) : m_rc(-999) { NOREF(rc); }
|
---|
116 | RTErrStrictType(int64_t rc) : m_rc(-999) { NOREF(rc); }
|
---|
117 | /** @todo fight long here - clashes with int32_t/int64_t on some platforms. */
|
---|
118 | /** @} */
|
---|
119 | };
|
---|
120 | #endif /* __cplusplus */
|
---|
121 |
|
---|
122 |
|
---|
123 | /** @def RTERR_STRICT_RC
|
---|
124 | * Indicates that RT_SUCCESS_NP, RT_SUCCESS, RT_FAILURE_NP and RT_FAILURE should
|
---|
125 | * make type enforcing at compile time.
|
---|
126 | *
|
---|
127 | * @remarks Only define this for C++ code.
|
---|
128 | */
|
---|
129 | #if defined(__cplusplus) \
|
---|
130 | && !defined(RTERR_STRICT_RC) \
|
---|
131 | && ( defined(DOXYGEN_RUNNING) \
|
---|
132 | || defined(DEBUG) \
|
---|
133 | || defined(RT_STRICT) )
|
---|
134 | # define RTERR_STRICT_RC 1
|
---|
135 | #endif
|
---|
136 |
|
---|
137 |
|
---|
138 | /** @def RT_SUCCESS
|
---|
139 | * Check for success. We expect success in normal cases, that is the code path depending on
|
---|
140 | * this check is normally taken. To prevent any prediction use RT_SUCCESS_NP instead.
|
---|
141 | *
|
---|
142 | * @returns true if rc indicates success.
|
---|
143 | * @returns false if rc indicates failure.
|
---|
144 | *
|
---|
145 | * @param rc The iprt status code to test.
|
---|
146 | */
|
---|
147 | #define RT_SUCCESS(rc) ( RT_LIKELY(RT_SUCCESS_NP(rc)) )
|
---|
148 |
|
---|
149 | /** @def RT_SUCCESS_NP
|
---|
150 | * Check for success. Don't predict the result.
|
---|
151 | *
|
---|
152 | * @returns true if rc indicates success.
|
---|
153 | * @returns false if rc indicates failure.
|
---|
154 | *
|
---|
155 | * @param rc The iprt status code to test.
|
---|
156 | */
|
---|
157 | #ifdef RTERR_STRICT_RC
|
---|
158 | # define RT_SUCCESS_NP(rc) ( RTErrStrictType(rc).success() )
|
---|
159 | #else
|
---|
160 | # define RT_SUCCESS_NP(rc) ( (int)(rc) >= VINF_SUCCESS )
|
---|
161 | #endif
|
---|
162 |
|
---|
163 | /** @def RT_FAILURE
|
---|
164 | * Check for failure. We don't expect in normal cases, that is the code path depending on
|
---|
165 | * this check is normally NOT taken. To prevent any prediction use RT_FAILURE_NP instead.
|
---|
166 | *
|
---|
167 | * @returns true if rc indicates failure.
|
---|
168 | * @returns false if rc indicates success.
|
---|
169 | *
|
---|
170 | * @param rc The iprt status code to test.
|
---|
171 | */
|
---|
172 | #define RT_FAILURE(rc) ( RT_UNLIKELY(!RT_SUCCESS_NP(rc)) )
|
---|
173 |
|
---|
174 | /** @def RT_FAILURE_NP
|
---|
175 | * Check for failure. Don't predict the result.
|
---|
176 | *
|
---|
177 | * @returns true if rc indicates failure.
|
---|
178 | * @returns false if rc indicates success.
|
---|
179 | *
|
---|
180 | * @param rc The iprt status code to test.
|
---|
181 | */
|
---|
182 | #define RT_FAILURE_NP(rc) ( !RT_SUCCESS_NP(rc) )
|
---|
183 |
|
---|
184 | RT_C_DECLS_BEGIN
|
---|
185 |
|
---|
186 | /**
|
---|
187 | * Converts a Darwin HRESULT error to an iprt status code.
|
---|
188 | *
|
---|
189 | * @returns iprt status code.
|
---|
190 | * @param iNativeCode HRESULT error code.
|
---|
191 | * @remark Darwin ring-3 only.
|
---|
192 | */
|
---|
193 | RTDECL(int) RTErrConvertFromDarwinCOM(int32_t iNativeCode);
|
---|
194 |
|
---|
195 | /**
|
---|
196 | * Converts a Darwin IOReturn error to an iprt status code.
|
---|
197 | *
|
---|
198 | * @returns iprt status code.
|
---|
199 | * @param iNativeCode IOReturn error code.
|
---|
200 | * @remark Darwin only.
|
---|
201 | */
|
---|
202 | RTDECL(int) RTErrConvertFromDarwinIO(int iNativeCode);
|
---|
203 |
|
---|
204 | /**
|
---|
205 | * Converts a Darwin kern_return_t error to an iprt status code.
|
---|
206 | *
|
---|
207 | * @returns iprt status code.
|
---|
208 | * @param iNativeCode kern_return_t error code.
|
---|
209 | * @remark Darwin only.
|
---|
210 | */
|
---|
211 | RTDECL(int) RTErrConvertFromDarwinKern(int iNativeCode);
|
---|
212 |
|
---|
213 | /**
|
---|
214 | * Converts a Darwin error to an iprt status code.
|
---|
215 | *
|
---|
216 | * This will consult RTErrConvertFromDarwinKern, RTErrConvertFromDarwinIO
|
---|
217 | * and RTErrConvertFromDarwinCOM in this order. The latter is ring-3 only as it
|
---|
218 | * doesn't apply elsewhere.
|
---|
219 | *
|
---|
220 | * @returns iprt status code.
|
---|
221 | * @param iNativeCode Darwin error code.
|
---|
222 | * @remarks Darwin only.
|
---|
223 | * @remarks This is recommended over RTErrConvertFromDarwinKern and RTErrConvertFromDarwinIO
|
---|
224 | * since these are really just subsets of the same error space.
|
---|
225 | */
|
---|
226 | RTDECL(int) RTErrConvertFromDarwin(int iNativeCode);
|
---|
227 |
|
---|
228 | /**
|
---|
229 | * Converts errno to iprt status code.
|
---|
230 | *
|
---|
231 | * @returns iprt status code.
|
---|
232 | * @param uNativeCode errno code.
|
---|
233 | */
|
---|
234 | RTDECL(int) RTErrConvertFromErrno(unsigned uNativeCode);
|
---|
235 |
|
---|
236 | /**
|
---|
237 | * Converts a L4 errno to a iprt status code.
|
---|
238 | *
|
---|
239 | * @returns iprt status code.
|
---|
240 | * @param uNativeCode l4 errno.
|
---|
241 | * @remark L4 only.
|
---|
242 | */
|
---|
243 | RTDECL(int) RTErrConvertFromL4Errno(unsigned uNativeCode);
|
---|
244 |
|
---|
245 | /**
|
---|
246 | * Converts NT status code to iprt status code.
|
---|
247 | *
|
---|
248 | * Needless to say, this is only available on NT and winXX targets.
|
---|
249 | *
|
---|
250 | * @returns iprt status code.
|
---|
251 | * @param lNativeCode NT status code.
|
---|
252 | * @remark Windows only.
|
---|
253 | */
|
---|
254 | RTDECL(int) RTErrConvertFromNtStatus(long lNativeCode);
|
---|
255 |
|
---|
256 | /**
|
---|
257 | * Converts OS/2 error code to iprt status code.
|
---|
258 | *
|
---|
259 | * @returns iprt status code.
|
---|
260 | * @param uNativeCode OS/2 error code.
|
---|
261 | * @remark OS/2 only.
|
---|
262 | */
|
---|
263 | RTDECL(int) RTErrConvertFromOS2(unsigned uNativeCode);
|
---|
264 |
|
---|
265 | /**
|
---|
266 | * Converts Win32 error code to iprt status code.
|
---|
267 | *
|
---|
268 | * @returns iprt status code.
|
---|
269 | * @param uNativeCode Win32 error code.
|
---|
270 | * @remark Windows only.
|
---|
271 | */
|
---|
272 | RTDECL(int) RTErrConvertFromWin32(unsigned uNativeCode);
|
---|
273 |
|
---|
274 | /**
|
---|
275 | * Converts an iprt status code to a errno status code.
|
---|
276 | *
|
---|
277 | * @returns errno status code.
|
---|
278 | * @param iErr iprt status code.
|
---|
279 | */
|
---|
280 | RTDECL(int) RTErrConvertToErrno(int iErr);
|
---|
281 |
|
---|
282 |
|
---|
283 | #ifdef IN_RING3
|
---|
284 |
|
---|
285 | /**
|
---|
286 | * iprt status code message.
|
---|
287 | */
|
---|
288 | typedef struct RTSTATUSMSG
|
---|
289 | {
|
---|
290 | /** Pointer to the short message string. */
|
---|
291 | const char *pszMsgShort;
|
---|
292 | /** Pointer to the full message string. */
|
---|
293 | const char *pszMsgFull;
|
---|
294 | /** Pointer to the define string. */
|
---|
295 | const char *pszDefine;
|
---|
296 | /** Status code number. */
|
---|
297 | int iCode;
|
---|
298 | } RTSTATUSMSG;
|
---|
299 | /** Pointer to iprt status code message. */
|
---|
300 | typedef RTSTATUSMSG *PRTSTATUSMSG;
|
---|
301 | /** Pointer to const iprt status code message. */
|
---|
302 | typedef const RTSTATUSMSG *PCRTSTATUSMSG;
|
---|
303 |
|
---|
304 | /**
|
---|
305 | * Get the message structure corresponding to a given iprt status code.
|
---|
306 | *
|
---|
307 | * @returns Pointer to read-only message description.
|
---|
308 | * @param rc The status code.
|
---|
309 | */
|
---|
310 | RTDECL(PCRTSTATUSMSG) RTErrGet(int rc);
|
---|
311 |
|
---|
312 | /**
|
---|
313 | * Get the define corresponding to a given iprt status code.
|
---|
314 | *
|
---|
315 | * @returns Pointer to read-only string with the \#define identifier.
|
---|
316 | * @param rc The status code.
|
---|
317 | */
|
---|
318 | #define RTErrGetDefine(rc) (RTErrGet(rc)->pszDefine)
|
---|
319 |
|
---|
320 | /**
|
---|
321 | * Get the short description corresponding to a given iprt status code.
|
---|
322 | *
|
---|
323 | * @returns Pointer to read-only string with the description.
|
---|
324 | * @param rc The status code.
|
---|
325 | */
|
---|
326 | #define RTErrGetShort(rc) (RTErrGet(rc)->pszMsgShort)
|
---|
327 |
|
---|
328 | /**
|
---|
329 | * Get the full description corresponding to a given iprt status code.
|
---|
330 | *
|
---|
331 | * @returns Pointer to read-only string with the description.
|
---|
332 | * @param rc The status code.
|
---|
333 | */
|
---|
334 | #define RTErrGetFull(rc) (RTErrGet(rc)->pszMsgFull)
|
---|
335 |
|
---|
336 | #ifdef RT_OS_WINDOWS
|
---|
337 | /**
|
---|
338 | * Windows error code message.
|
---|
339 | */
|
---|
340 | typedef struct RTWINERRMSG
|
---|
341 | {
|
---|
342 | /** Pointer to the full message string. */
|
---|
343 | const char *pszMsgFull;
|
---|
344 | /** Pointer to the define string. */
|
---|
345 | const char *pszDefine;
|
---|
346 | /** Error code number. */
|
---|
347 | long iCode;
|
---|
348 | } RTWINERRMSG;
|
---|
349 | /** Pointer to Windows error code message. */
|
---|
350 | typedef RTWINERRMSG *PRTWINERRMSG;
|
---|
351 | /** Pointer to const Windows error code message. */
|
---|
352 | typedef const RTWINERRMSG *PCRTWINERRMSG;
|
---|
353 |
|
---|
354 | /**
|
---|
355 | * Get the message structure corresponding to a given Windows error code.
|
---|
356 | *
|
---|
357 | * @returns Pointer to read-only message description.
|
---|
358 | * @param rc The status code.
|
---|
359 | */
|
---|
360 | RTDECL(PCRTWINERRMSG) RTErrWinGet(long rc);
|
---|
361 |
|
---|
362 | /** On windows COM errors are part of the Windows error database. */
|
---|
363 | typedef RTWINERRMSG RTCOMERRMSG;
|
---|
364 |
|
---|
365 | #else /* !RT_OS_WINDOWS */
|
---|
366 |
|
---|
367 | /**
|
---|
368 | * COM/XPCOM error code message.
|
---|
369 | */
|
---|
370 | typedef struct RTCOMERRMSG
|
---|
371 | {
|
---|
372 | /** Pointer to the full message string. */
|
---|
373 | const char *pszMsgFull;
|
---|
374 | /** Pointer to the define string. */
|
---|
375 | const char *pszDefine;
|
---|
376 | /** Error code number. */
|
---|
377 | uint32_t iCode;
|
---|
378 | } RTCOMERRMSG;
|
---|
379 | #endif /* !RT_OS_WINDOWS */
|
---|
380 | /** Pointer to a XPCOM/COM error code message. */
|
---|
381 | typedef RTCOMERRMSG *PRTCOMERRMSG;
|
---|
382 | /** Pointer to const a XPCOM/COM error code message. */
|
---|
383 | typedef const RTCOMERRMSG *PCRTCOMERRMSG;
|
---|
384 |
|
---|
385 | /**
|
---|
386 | * Get the message structure corresponding to a given COM/XPCOM error code.
|
---|
387 | *
|
---|
388 | * @returns Pointer to read-only message description.
|
---|
389 | * @param rc The status code.
|
---|
390 | */
|
---|
391 | RTDECL(PCRTCOMERRMSG) RTErrCOMGet(uint32_t rc);
|
---|
392 |
|
---|
393 | #endif /* IN_RING3 */
|
---|
394 |
|
---|
395 | RT_C_DECLS_END
|
---|
396 |
|
---|
397 | /** @} */
|
---|
398 |
|
---|
399 | /** @name Status Code Ranges
|
---|
400 | * @{ */
|
---|
401 | /** The first status code in the primary IPRT range. */
|
---|
402 | #define RTERR_RANGE1_FIRST 0
|
---|
403 | /** The last status code in the primary IPRT range. */
|
---|
404 | #define RTERR_RANGE1_LAST 999
|
---|
405 |
|
---|
406 | /** The first status code in the secondary IPRT range. */
|
---|
407 | #define RTERR_RANGE2_FIRST 22000
|
---|
408 | /** The last status code in the secondary IPRT range. */
|
---|
409 | #define RTERR_RANGE2_LAST 32766
|
---|
410 |
|
---|
411 | /** The first status code in the user range. */
|
---|
412 | #define RTERR_USER_FIRST 1000
|
---|
413 | /** The last status code in the user range. */
|
---|
414 | #define RTERR_USER_LAST 21999
|
---|
415 | /** @} */
|
---|
416 |
|
---|
417 |
|
---|
418 | /* SED-START */
|
---|
419 |
|
---|
420 | /** @name Misc. Status Codes
|
---|
421 | * @{
|
---|
422 | */
|
---|
423 | /** Success. */
|
---|
424 | #define VINF_SUCCESS 0
|
---|
425 |
|
---|
426 | /** General failure - DON'T USE THIS!!! */
|
---|
427 | #define VERR_GENERAL_FAILURE (-1)
|
---|
428 | /** Invalid parameter. */
|
---|
429 | #define VERR_INVALID_PARAMETER (-2)
|
---|
430 | /** Invalid parameter. */
|
---|
431 | #define VWRN_INVALID_PARAMETER 2
|
---|
432 | /** Invalid magic or cookie. */
|
---|
433 | #define VERR_INVALID_MAGIC (-3)
|
---|
434 | /** Invalid magic or cookie. */
|
---|
435 | #define VWRN_INVALID_MAGIC 3
|
---|
436 | /** Invalid loader handle. */
|
---|
437 | #define VERR_INVALID_HANDLE (-4)
|
---|
438 | /** Invalid loader handle. */
|
---|
439 | #define VWRN_INVALID_HANDLE 4
|
---|
440 | /** Failed to lock the address range. */
|
---|
441 | #define VERR_LOCK_FAILED (-5)
|
---|
442 | /** Invalid memory pointer. */
|
---|
443 | #define VERR_INVALID_POINTER (-6)
|
---|
444 | /** Failed to patch the IDT. */
|
---|
445 | #define VERR_IDT_FAILED (-7)
|
---|
446 | /** Memory allocation failed. */
|
---|
447 | #define VERR_NO_MEMORY (-8)
|
---|
448 | /** Already loaded. */
|
---|
449 | #define VERR_ALREADY_LOADED (-9)
|
---|
450 | /** Permission denied. */
|
---|
451 | #define VERR_PERMISSION_DENIED (-10)
|
---|
452 | /** Permission denied. */
|
---|
453 | #define VINF_PERMISSION_DENIED 10
|
---|
454 | /** Version mismatch. */
|
---|
455 | #define VERR_VERSION_MISMATCH (-11)
|
---|
456 | /** The request function is not implemented. */
|
---|
457 | #define VERR_NOT_IMPLEMENTED (-12)
|
---|
458 |
|
---|
459 | /** The specified path does not point at a symbolic link. */
|
---|
460 | #define VERR_NOT_SYMLINK (-19)
|
---|
461 | /** Failed to allocate temporary memory. */
|
---|
462 | #define VERR_NO_TMP_MEMORY (-20)
|
---|
463 | /** Invalid file mode mask (RTFMODE). */
|
---|
464 | #define VERR_INVALID_FMODE (-21)
|
---|
465 | /** Incorrect call order. */
|
---|
466 | #define VERR_WRONG_ORDER (-22)
|
---|
467 | /** There is no TLS (thread local storage) available for storing the current thread. */
|
---|
468 | #define VERR_NO_TLS_FOR_SELF (-23)
|
---|
469 | /** Failed to set the TLS (thread local storage) entry which points to our thread structure. */
|
---|
470 | #define VERR_FAILED_TO_SET_SELF_TLS (-24)
|
---|
471 | /** Not able to allocate contiguous memory. */
|
---|
472 | #define VERR_NO_CONT_MEMORY (-26)
|
---|
473 | /** No memory available for page table or page directory. */
|
---|
474 | #define VERR_NO_PAGE_MEMORY (-27)
|
---|
475 | /** Already initialized. */
|
---|
476 | #define VINF_ALREADY_INITIALIZED 28
|
---|
477 | /** The specified thread is dead. */
|
---|
478 | #define VERR_THREAD_IS_DEAD (-29)
|
---|
479 | /** The specified thread is not waitable. */
|
---|
480 | #define VERR_THREAD_NOT_WAITABLE (-30)
|
---|
481 | /** Pagetable not present. */
|
---|
482 | #define VERR_PAGE_TABLE_NOT_PRESENT (-31)
|
---|
483 | /** Invalid context.
|
---|
484 | * Typically an API was used by the wrong thread. */
|
---|
485 | #define VERR_INVALID_CONTEXT (-32)
|
---|
486 | /** The per process timer is busy. */
|
---|
487 | #define VERR_TIMER_BUSY (-33)
|
---|
488 | /** Address conflict. */
|
---|
489 | #define VERR_ADDRESS_CONFLICT (-34)
|
---|
490 | /** Unresolved (unknown) host platform error. */
|
---|
491 | #define VERR_UNRESOLVED_ERROR (-35)
|
---|
492 | /** Invalid function. */
|
---|
493 | #define VERR_INVALID_FUNCTION (-36)
|
---|
494 | /** Not supported. */
|
---|
495 | #define VERR_NOT_SUPPORTED (-37)
|
---|
496 | /** Not supported. */
|
---|
497 | #define VINF_NOT_SUPPORTED 37
|
---|
498 | /** Access denied. */
|
---|
499 | #define VERR_ACCESS_DENIED (-38)
|
---|
500 | /** Call interrupted. */
|
---|
501 | #define VERR_INTERRUPTED (-39)
|
---|
502 | /** Call interrupted. */
|
---|
503 | #define VINF_INTERRUPTED 39
|
---|
504 | /** Timeout. */
|
---|
505 | #define VERR_TIMEOUT (-40)
|
---|
506 | /** Timeout. */
|
---|
507 | #define VINF_TIMEOUT 40
|
---|
508 | /** Buffer too small to save result. */
|
---|
509 | #define VERR_BUFFER_OVERFLOW (-41)
|
---|
510 | /** Buffer too small to save result. */
|
---|
511 | #define VINF_BUFFER_OVERFLOW 41
|
---|
512 | /** Data size overflow. */
|
---|
513 | #define VERR_TOO_MUCH_DATA (-42)
|
---|
514 | /** Max threads number reached. */
|
---|
515 | #define VERR_MAX_THRDS_REACHED (-43)
|
---|
516 | /** Max process number reached. */
|
---|
517 | #define VERR_MAX_PROCS_REACHED (-44)
|
---|
518 | /** The recipient process has refused the signal. */
|
---|
519 | #define VERR_SIGNAL_REFUSED (-45)
|
---|
520 | /** A signal is already pending. */
|
---|
521 | #define VERR_SIGNAL_PENDING (-46)
|
---|
522 | /** The signal being posted is not correct. */
|
---|
523 | #define VERR_SIGNAL_INVALID (-47)
|
---|
524 | /** The state changed.
|
---|
525 | * This is a generic error message and needs a context to make sense. */
|
---|
526 | #define VERR_STATE_CHANGED (-48)
|
---|
527 | /** Warning, the state changed.
|
---|
528 | * This is a generic error message and needs a context to make sense. */
|
---|
529 | #define VWRN_STATE_CHANGED 48
|
---|
530 | /** Error while parsing UUID string */
|
---|
531 | #define VERR_INVALID_UUID_FORMAT (-49)
|
---|
532 | /** The specified process was not found. */
|
---|
533 | #define VERR_PROCESS_NOT_FOUND (-50)
|
---|
534 | /** The process specified to a non-block wait had not exited. */
|
---|
535 | #define VERR_PROCESS_RUNNING (-51)
|
---|
536 | /** Retry the operation. */
|
---|
537 | #define VERR_TRY_AGAIN (-52)
|
---|
538 | /** Retry the operation. */
|
---|
539 | #define VINF_TRY_AGAIN 52
|
---|
540 | /** Generic parse error. */
|
---|
541 | #define VERR_PARSE_ERROR (-53)
|
---|
542 | /** Value out of range. */
|
---|
543 | #define VERR_OUT_OF_RANGE (-54)
|
---|
544 | /** A numeric conversion encountered a value which was too big for the target. */
|
---|
545 | #define VERR_NUMBER_TOO_BIG (-55)
|
---|
546 | /** A numeric conversion encountered a value which was too big for the target. */
|
---|
547 | #define VWRN_NUMBER_TOO_BIG 55
|
---|
548 | /** The number begin converted (string) contained no digits. */
|
---|
549 | #define VERR_NO_DIGITS (-56)
|
---|
550 | /** The number begin converted (string) contained no digits. */
|
---|
551 | #define VWRN_NO_DIGITS 56
|
---|
552 | /** Encountered a '-' during conversion to an unsigned value. */
|
---|
553 | #define VERR_NEGATIVE_UNSIGNED (-57)
|
---|
554 | /** Encountered a '-' during conversion to an unsigned value. */
|
---|
555 | #define VWRN_NEGATIVE_UNSIGNED 57
|
---|
556 | /** Error while characters translation (unicode and so). */
|
---|
557 | #define VERR_NO_TRANSLATION (-58)
|
---|
558 | /** Encountered unicode code point which is reserved for use as endian indicator (0xffff or 0xfffe). */
|
---|
559 | #define VERR_CODE_POINT_ENDIAN_INDICATOR (-59)
|
---|
560 | /** Encountered unicode code point in the surrogate range (0xd800 to 0xdfff). */
|
---|
561 | #define VERR_CODE_POINT_SURROGATE (-60)
|
---|
562 | /** A string claiming to be UTF-8 is incorrectly encoded. */
|
---|
563 | #define VERR_INVALID_UTF8_ENCODING (-61)
|
---|
564 | /** Ad string claiming to be in UTF-16 is incorrectly encoded. */
|
---|
565 | #define VERR_INVALID_UTF16_ENCODING (-62)
|
---|
566 | /** Encountered a unicode code point which cannot be represented as UTF-16. */
|
---|
567 | #define VERR_CANT_RECODE_AS_UTF16 (-63)
|
---|
568 | /** Got an out of memory condition trying to allocate a string. */
|
---|
569 | #define VERR_NO_STR_MEMORY (-64)
|
---|
570 | /** Got an out of memory condition trying to allocate a UTF-16 (/UCS-2) string. */
|
---|
571 | #define VERR_NO_UTF16_MEMORY (-65)
|
---|
572 | /** Get an out of memory condition trying to allocate a code point array. */
|
---|
573 | #define VERR_NO_CODE_POINT_MEMORY (-66)
|
---|
574 | /** Can't free the memory because it's used in mapping. */
|
---|
575 | #define VERR_MEMORY_BUSY (-67)
|
---|
576 | /** The timer can't be started because it's already active. */
|
---|
577 | #define VERR_TIMER_ACTIVE (-68)
|
---|
578 | /** The timer can't be stopped because i's already suspended. */
|
---|
579 | #define VERR_TIMER_SUSPENDED (-69)
|
---|
580 | /** The operation was cancelled by the user (copy) or another thread (local ipc). */
|
---|
581 | #define VERR_CANCELLED (-70)
|
---|
582 | /** Failed to initialize a memory object.
|
---|
583 | * Exactly what this means is OS specific. */
|
---|
584 | #define VERR_MEMOBJ_INIT_FAILED (-71)
|
---|
585 | /** Out of memory condition when allocating memory with low physical backing. */
|
---|
586 | #define VERR_NO_LOW_MEMORY (-72)
|
---|
587 | /** Out of memory condition when allocating physical memory (without mapping). */
|
---|
588 | #define VERR_NO_PHYS_MEMORY (-73)
|
---|
589 | /** The address (virtual or physical) is too big. */
|
---|
590 | #define VERR_ADDRESS_TOO_BIG (-74)
|
---|
591 | /** Failed to map a memory object. */
|
---|
592 | #define VERR_MAP_FAILED (-75)
|
---|
593 | /** Trailing characters. */
|
---|
594 | #define VERR_TRAILING_CHARS (-76)
|
---|
595 | /** Trailing characters. */
|
---|
596 | #define VWRN_TRAILING_CHARS 76
|
---|
597 | /** Trailing spaces. */
|
---|
598 | #define VERR_TRAILING_SPACES (-77)
|
---|
599 | /** Trailing spaces. */
|
---|
600 | #define VWRN_TRAILING_SPACES 77
|
---|
601 | /** Generic not found error. */
|
---|
602 | #define VERR_NOT_FOUND (-78)
|
---|
603 | /** Generic not found warning. */
|
---|
604 | #define VWRN_NOT_FOUND 78
|
---|
605 | /** Generic invalid state error. */
|
---|
606 | #define VERR_INVALID_STATE (-79)
|
---|
607 | /** Generic invalid state warning. */
|
---|
608 | #define VWRN_INVALID_STATE 79
|
---|
609 | /** Generic out of resources error. */
|
---|
610 | #define VERR_OUT_OF_RESOURCES (-80)
|
---|
611 | /** Generic out of resources warning. */
|
---|
612 | #define VWRN_OUT_OF_RESOURCES 80
|
---|
613 | /** No more handles available, too many open handles. */
|
---|
614 | #define VERR_NO_MORE_HANDLES (-81)
|
---|
615 | /** Preemption is disabled.
|
---|
616 | * The requested operation can only be performed when preemption is enabled. */
|
---|
617 | #define VERR_PREEMPT_DISABLED (-82)
|
---|
618 | /** End of string. */
|
---|
619 | #define VERR_END_OF_STRING (-83)
|
---|
620 | /** End of string. */
|
---|
621 | #define VINF_END_OF_STRING 83
|
---|
622 | /** A page count is out of range. */
|
---|
623 | #define VERR_PAGE_COUNT_OUT_OF_RANGE (-84)
|
---|
624 | /** Generic object destroyed status. */
|
---|
625 | #define VERR_OBJECT_DESTROYED (-85)
|
---|
626 | /** Generic object was destroyed by the call status. */
|
---|
627 | #define VINF_OBJECT_DESTROYED 85
|
---|
628 | /** Generic dangling objects status. */
|
---|
629 | #define VERR_DANGLING_OBJECTS (-86)
|
---|
630 | /** Generic dangling objects status. */
|
---|
631 | #define VWRN_DANGLING_OBJECTS 86
|
---|
632 | /** Invalid Base64 encoding. */
|
---|
633 | #define VERR_INVALID_BASE64_ENCODING (-87)
|
---|
634 | /** Return instigated by a callback or similar. */
|
---|
635 | #define VERR_CALLBACK_RETURN (-88)
|
---|
636 | /** Return instigated by a callback or similar. */
|
---|
637 | #define VINF_CALLBACK_RETURN 88
|
---|
638 | /** Authentication failure. */
|
---|
639 | #define VERR_AUTHENTICATION_FAILURE (-89)
|
---|
640 | /** Not a power of two. */
|
---|
641 | #define VERR_NOT_POWER_OF_TWO (-90)
|
---|
642 | /** Status code, typically given as a parameter, that isn't supposed to be used. */
|
---|
643 | #define VERR_IGNORED (-91)
|
---|
644 | /** Concurrent access to the object is not allowed. */
|
---|
645 | #define VERR_CONCURRENT_ACCESS (-92)
|
---|
646 | /** The caller does not have a reference to the object.
|
---|
647 | * This status is used when two threads is caught sharing the same object
|
---|
648 | * reference. */
|
---|
649 | #define VERR_CALLER_NO_REFERENCE (-93)
|
---|
650 | /** Generic no change error. */
|
---|
651 | #define VERR_NO_CHANGE (-95)
|
---|
652 | /** Generic no change info. */
|
---|
653 | #define VINF_NO_CHANGE 95
|
---|
654 | /** Out of memory condition when allocating executable memory. */
|
---|
655 | #define VERR_NO_EXEC_MEMORY (-96)
|
---|
656 | /** The alignment is not supported. */
|
---|
657 | #define VERR_UNSUPPORTED_ALIGNMENT (-97)
|
---|
658 | /** The alignment is not really supported, however we got lucky with this
|
---|
659 | * allocation. */
|
---|
660 | #define VINF_UNSUPPORTED_ALIGNMENT (97)
|
---|
661 |
|
---|
662 | /** @} */
|
---|
663 |
|
---|
664 |
|
---|
665 | /** @name Common File/Disk/Pipe/etc Status Codes
|
---|
666 | * @{
|
---|
667 | */
|
---|
668 | /** Unresolved (unknown) file i/o error. */
|
---|
669 | #define VERR_FILE_IO_ERROR (-100)
|
---|
670 | /** File/Device open failed. */
|
---|
671 | #define VERR_OPEN_FAILED (-101)
|
---|
672 | /** File not found. */
|
---|
673 | #define VERR_FILE_NOT_FOUND (-102)
|
---|
674 | /** Path not found. */
|
---|
675 | #define VERR_PATH_NOT_FOUND (-103)
|
---|
676 | /** Invalid (malformed) file/path name. */
|
---|
677 | #define VERR_INVALID_NAME (-104)
|
---|
678 | /** The object in question already exists. */
|
---|
679 | #define VERR_ALREADY_EXISTS (-105)
|
---|
680 | /** The object in question already exists. */
|
---|
681 | #define VWRN_ALREADY_EXISTS 105
|
---|
682 | /** Too many open files. */
|
---|
683 | #define VERR_TOO_MANY_OPEN_FILES (-106)
|
---|
684 | /** Seek error. */
|
---|
685 | #define VERR_SEEK (-107)
|
---|
686 | /** Seek below file start. */
|
---|
687 | #define VERR_NEGATIVE_SEEK (-108)
|
---|
688 | /** Trying to seek on device. */
|
---|
689 | #define VERR_SEEK_ON_DEVICE (-109)
|
---|
690 | /** Reached the end of the file. */
|
---|
691 | #define VERR_EOF (-110)
|
---|
692 | /** Reached the end of the file. */
|
---|
693 | #define VINF_EOF 110
|
---|
694 | /** Generic file read error. */
|
---|
695 | #define VERR_READ_ERROR (-111)
|
---|
696 | /** Generic file write error. */
|
---|
697 | #define VERR_WRITE_ERROR (-112)
|
---|
698 | /** Write protect error. */
|
---|
699 | #define VERR_WRITE_PROTECT (-113)
|
---|
700 | /** Sharing violation, file is being used by another process. */
|
---|
701 | #define VERR_SHARING_VIOLATION (-114)
|
---|
702 | /** Unable to lock a region of a file. */
|
---|
703 | #define VERR_FILE_LOCK_FAILED (-115)
|
---|
704 | /** File access error, another process has locked a portion of the file. */
|
---|
705 | #define VERR_FILE_LOCK_VIOLATION (-116)
|
---|
706 | /** File or directory can't be created. */
|
---|
707 | #define VERR_CANT_CREATE (-117)
|
---|
708 | /** Directory can't be deleted. */
|
---|
709 | #define VERR_CANT_DELETE_DIRECTORY (-118)
|
---|
710 | /** Can't move file to another disk. */
|
---|
711 | #define VERR_NOT_SAME_DEVICE (-119)
|
---|
712 | /** The filename or extension is too long. */
|
---|
713 | #define VERR_FILENAME_TOO_LONG (-120)
|
---|
714 | /** Media not present in drive. */
|
---|
715 | #define VERR_MEDIA_NOT_PRESENT (-121)
|
---|
716 | /** The type of media was not recognized. Not formatted? */
|
---|
717 | #define VERR_MEDIA_NOT_RECOGNIZED (-122)
|
---|
718 | /** Can't unlock - region was not locked. */
|
---|
719 | #define VERR_FILE_NOT_LOCKED (-123)
|
---|
720 | /** Unrecoverable error: lock was lost. */
|
---|
721 | #define VERR_FILE_LOCK_LOST (-124)
|
---|
722 | /** Can't delete directory with files. */
|
---|
723 | #define VERR_DIR_NOT_EMPTY (-125)
|
---|
724 | /** A directory operation was attempted on a non-directory object. */
|
---|
725 | #define VERR_NOT_A_DIRECTORY (-126)
|
---|
726 | /** A non-directory operation was attempted on a directory object. */
|
---|
727 | #define VERR_IS_A_DIRECTORY (-127)
|
---|
728 | /** Tried to grow a file beyond the limit imposed by the process or the filesystem. */
|
---|
729 | #define VERR_FILE_TOO_BIG (-128)
|
---|
730 | /** No pending request the aio context has to wait for completion. */
|
---|
731 | #define VERR_FILE_AIO_NO_REQUEST (-129)
|
---|
732 | /** The request could not be canceled or prepared for another transfer
|
---|
733 | * because it is still in progress. */
|
---|
734 | #define VERR_FILE_AIO_IN_PROGRESS (-130)
|
---|
735 | /** The request could not be canceled because it already completed. */
|
---|
736 | #define VERR_FILE_AIO_COMPLETED (-131)
|
---|
737 | /** The I/O context couldn't be destroyed because there are still pending requests. */
|
---|
738 | #define VERR_FILE_AIO_BUSY (-132)
|
---|
739 | /** The requests couldn't be submitted because that would exceed the capacity of the context. */
|
---|
740 | #define VERR_FILE_AIO_LIMIT_EXCEEDED (-133)
|
---|
741 | /** The request was canceled. */
|
---|
742 | #define VERR_FILE_AIO_CANCELED (-134)
|
---|
743 | /** The request wasn't submitted so it can't be canceled. */
|
---|
744 | #define VERR_FILE_AIO_NOT_SUBMITTED (-135)
|
---|
745 | /** A request was not prepared and thus could not be submitted. */
|
---|
746 | #define VERR_FILE_AIO_NOT_PREPARED (-136)
|
---|
747 | /** Not all requests could be submitted due to resource shortage. */
|
---|
748 | #define VERR_FILE_AIO_INSUFFICIENT_RESSOURCES (-137)
|
---|
749 | /** Device or resource is busy. */
|
---|
750 | #define VERR_RESOURCE_BUSY (-138)
|
---|
751 | /** @} */
|
---|
752 |
|
---|
753 |
|
---|
754 | /** @name Generic Filesystem I/O Status Codes
|
---|
755 | * @{
|
---|
756 | */
|
---|
757 | /** Unresolved (unknown) disk i/o error. */
|
---|
758 | #define VERR_DISK_IO_ERROR (-150)
|
---|
759 | /** Invalid drive number. */
|
---|
760 | #define VERR_INVALID_DRIVE (-151)
|
---|
761 | /** Disk is full. */
|
---|
762 | #define VERR_DISK_FULL (-152)
|
---|
763 | /** Disk was changed. */
|
---|
764 | #define VERR_DISK_CHANGE (-153)
|
---|
765 | /** Drive is locked. */
|
---|
766 | #define VERR_DRIVE_LOCKED (-154)
|
---|
767 | /** The specified disk or diskette cannot be accessed. */
|
---|
768 | #define VERR_DISK_INVALID_FORMAT (-155)
|
---|
769 | /** Too many symbolic links. */
|
---|
770 | #define VERR_TOO_MANY_SYMLINKS (-156)
|
---|
771 | /** The OS does not support setting the time stamps on a symbolic link. */
|
---|
772 | #define VERR_NS_SYMLINK_SET_TIME (-157)
|
---|
773 | /** The OS does not support changing the owner of a symbolic link. */
|
---|
774 | #define VERR_NS_SYMLINK_CHANGE_OWNER (-158)
|
---|
775 | /** @} */
|
---|
776 |
|
---|
777 |
|
---|
778 | /** @name Generic Directory Enumeration Status Codes
|
---|
779 | * @{
|
---|
780 | */
|
---|
781 | /** Unresolved (unknown) search error. */
|
---|
782 | #define VERR_SEARCH_ERROR (-200)
|
---|
783 | /** No more files found. */
|
---|
784 | #define VERR_NO_MORE_FILES (-201)
|
---|
785 | /** No more search handles available. */
|
---|
786 | #define VERR_NO_MORE_SEARCH_HANDLES (-202)
|
---|
787 | /** RTDirReadEx() failed to retrieve the extra data which was requested. */
|
---|
788 | #define VWRN_NO_DIRENT_INFO 203
|
---|
789 | /** @} */
|
---|
790 |
|
---|
791 |
|
---|
792 | /** @name Internal Processing Errors
|
---|
793 | * @{
|
---|
794 | */
|
---|
795 | /** Internal error - we're screwed if this happens. */
|
---|
796 | #define VERR_INTERNAL_ERROR (-225)
|
---|
797 | /** Internal error no. 2. */
|
---|
798 | #define VERR_INTERNAL_ERROR_2 (-226)
|
---|
799 | /** Internal error no. 3. */
|
---|
800 | #define VERR_INTERNAL_ERROR_3 (-227)
|
---|
801 | /** Internal error no. 4. */
|
---|
802 | #define VERR_INTERNAL_ERROR_4 (-228)
|
---|
803 | /** Internal error no. 5. */
|
---|
804 | #define VERR_INTERNAL_ERROR_5 (-229)
|
---|
805 | /** Internal error: Unexpected status code. */
|
---|
806 | #define VERR_IPE_UNEXPECTED_STATUS (-230)
|
---|
807 | /** Internal error: Unexpected status code. */
|
---|
808 | #define VERR_IPE_UNEXPECTED_INFO_STATUS (-231)
|
---|
809 | /** Internal error: Unexpected status code. */
|
---|
810 | #define VERR_IPE_UNEXPECTED_ERROR_STATUS (-232)
|
---|
811 | /** Internal error: Uninitialized status code.
|
---|
812 | * @remarks This is used by value elsewhere. */
|
---|
813 | #define VERR_IPE_UNINITIALIZED_STATUS (-233)
|
---|
814 | /** @} */
|
---|
815 |
|
---|
816 |
|
---|
817 | /** @name Generic Device I/O Status Codes
|
---|
818 | * @{
|
---|
819 | */
|
---|
820 | /** Unresolved (unknown) device i/o error. */
|
---|
821 | #define VERR_DEV_IO_ERROR (-250)
|
---|
822 | /** Device i/o: Bad unit. */
|
---|
823 | #define VERR_IO_BAD_UNIT (-251)
|
---|
824 | /** Device i/o: Not ready. */
|
---|
825 | #define VERR_IO_NOT_READY (-252)
|
---|
826 | /** Device i/o: Bad command. */
|
---|
827 | #define VERR_IO_BAD_COMMAND (-253)
|
---|
828 | /** Device i/o: CRC error. */
|
---|
829 | #define VERR_IO_CRC (-254)
|
---|
830 | /** Device i/o: Bad length. */
|
---|
831 | #define VERR_IO_BAD_LENGTH (-255)
|
---|
832 | /** Device i/o: Sector not found. */
|
---|
833 | #define VERR_IO_SECTOR_NOT_FOUND (-256)
|
---|
834 | /** Device i/o: General failure. */
|
---|
835 | #define VERR_IO_GEN_FAILURE (-257)
|
---|
836 | /** @} */
|
---|
837 |
|
---|
838 |
|
---|
839 | /** @name Generic Pipe I/O Status Codes
|
---|
840 | * @{
|
---|
841 | */
|
---|
842 | /** Unresolved (unknown) pipe i/o error. */
|
---|
843 | #define VERR_PIPE_IO_ERROR (-300)
|
---|
844 | /** Broken pipe. */
|
---|
845 | #define VERR_BROKEN_PIPE (-301)
|
---|
846 | /** Bad pipe. */
|
---|
847 | #define VERR_BAD_PIPE (-302)
|
---|
848 | /** Pipe is busy. */
|
---|
849 | #define VERR_PIPE_BUSY (-303)
|
---|
850 | /** No data in pipe. */
|
---|
851 | #define VERR_NO_DATA (-304)
|
---|
852 | /** Pipe is not connected. */
|
---|
853 | #define VERR_PIPE_NOT_CONNECTED (-305)
|
---|
854 | /** More data available in pipe. */
|
---|
855 | #define VERR_MORE_DATA (-306)
|
---|
856 | /** @} */
|
---|
857 |
|
---|
858 |
|
---|
859 | /** @name Generic Semaphores Status Codes
|
---|
860 | * @{
|
---|
861 | */
|
---|
862 | /** Unresolved (unknown) semaphore error. */
|
---|
863 | #define VERR_SEM_ERROR (-350)
|
---|
864 | /** Too many semaphores. */
|
---|
865 | #define VERR_TOO_MANY_SEMAPHORES (-351)
|
---|
866 | /** Exclusive semaphore is owned by another process. */
|
---|
867 | #define VERR_EXCL_SEM_ALREADY_OWNED (-352)
|
---|
868 | /** The semaphore is set and cannot be closed. */
|
---|
869 | #define VERR_SEM_IS_SET (-353)
|
---|
870 | /** The semaphore cannot be set again. */
|
---|
871 | #define VERR_TOO_MANY_SEM_REQUESTS (-354)
|
---|
872 | /** Attempt to release mutex not owned by caller. */
|
---|
873 | #define VERR_NOT_OWNER (-355)
|
---|
874 | /** The semaphore has been opened too many times. */
|
---|
875 | #define VERR_TOO_MANY_OPENS (-356)
|
---|
876 | /** The maximum posts for the event semaphore has been reached. */
|
---|
877 | #define VERR_TOO_MANY_POSTS (-357)
|
---|
878 | /** The event semaphore has already been posted. */
|
---|
879 | #define VERR_ALREADY_POSTED (-358)
|
---|
880 | /** The event semaphore has already been reset. */
|
---|
881 | #define VERR_ALREADY_RESET (-359)
|
---|
882 | /** The semaphore is in use. */
|
---|
883 | #define VERR_SEM_BUSY (-360)
|
---|
884 | /** The previous ownership of this semaphore has ended. */
|
---|
885 | #define VERR_SEM_OWNER_DIED (-361)
|
---|
886 | /** Failed to open semaphore by name - not found. */
|
---|
887 | #define VERR_SEM_NOT_FOUND (-362)
|
---|
888 | /** Semaphore destroyed while waiting. */
|
---|
889 | #define VERR_SEM_DESTROYED (-363)
|
---|
890 | /** Nested ownership requests are not permitted for this semaphore type. */
|
---|
891 | #define VERR_SEM_NESTED (-364)
|
---|
892 | /** Deadlock detected. */
|
---|
893 | #define VERR_DEADLOCK (-365)
|
---|
894 | /** Ping-Pong listen or speak out of turn error. */
|
---|
895 | #define VERR_SEM_OUT_OF_TURN (-366)
|
---|
896 | /** Tried to take a semaphore in a bad context. */
|
---|
897 | #define VERR_SEM_BAD_CONTEXT (-367)
|
---|
898 | /** Don't spin for the semaphore, but it is safe to try grab it. */
|
---|
899 | #define VINF_SEM_BAD_CONTEXT (367)
|
---|
900 | /** Wrong locking order detected. */
|
---|
901 | #define VERR_SEM_LV_WRONG_ORDER (-368)
|
---|
902 | /** Wrong release order detected. */
|
---|
903 | #define VERR_SEM_LV_WRONG_RELEASE_ORDER (-369)
|
---|
904 | /** Attempt to recursively enter a non-recurisve lock. */
|
---|
905 | #define VERR_SEM_LV_NESTED (-370)
|
---|
906 | /** Invalid parameters passed to the lock validator. */
|
---|
907 | #define VERR_SEM_LV_INVALID_PARAMETER (-371)
|
---|
908 | /** The lock validator detected a deadlock. */
|
---|
909 | #define VERR_SEM_LV_DEADLOCK (-372)
|
---|
910 | /** The lock validator detected an existing deadlock.
|
---|
911 | * The deadlock was not caused by the current operation, but existed already. */
|
---|
912 | #define VERR_SEM_LV_EXISTING_DEADLOCK (-373)
|
---|
913 | /** Not the lock owner according our records. */
|
---|
914 | #define VERR_SEM_LV_NOT_OWNER (-374)
|
---|
915 | /** An illegal lock upgrade was attempted. */
|
---|
916 | #define VERR_SEM_LV_ILLEGAL_UPGRADE (-375)
|
---|
917 | /** The thread is not a valid signaller of the event. */
|
---|
918 | #define VERR_SEM_LV_NOT_SIGNALLER (-376)
|
---|
919 | /** Internal error in the lock validator or related components. */
|
---|
920 | #define VERR_SEM_LV_INTERNAL_ERROR (-377)
|
---|
921 | /** @} */
|
---|
922 |
|
---|
923 |
|
---|
924 | /** @name Generic Network I/O Status Codes
|
---|
925 | * @{
|
---|
926 | */
|
---|
927 | /** Unresolved (unknown) network error. */
|
---|
928 | #define VERR_NET_IO_ERROR (-400)
|
---|
929 | /** The network is busy or is out of resources. */
|
---|
930 | #define VERR_NET_OUT_OF_RESOURCES (-401)
|
---|
931 | /** Net host name not found. */
|
---|
932 | #define VERR_NET_HOST_NOT_FOUND (-402)
|
---|
933 | /** Network path not found. */
|
---|
934 | #define VERR_NET_PATH_NOT_FOUND (-403)
|
---|
935 | /** General network printing error. */
|
---|
936 | #define VERR_NET_PRINT_ERROR (-404)
|
---|
937 | /** The machine is not on the network. */
|
---|
938 | #define VERR_NET_NO_NETWORK (-405)
|
---|
939 | /** Name is not unique on the network. */
|
---|
940 | #define VERR_NET_NOT_UNIQUE_NAME (-406)
|
---|
941 |
|
---|
942 | /* These are BSD networking error codes - numbers correspond, don't mess! */
|
---|
943 | /** Operation in progress. */
|
---|
944 | #define VERR_NET_IN_PROGRESS (-436)
|
---|
945 | /** Operation already in progress. */
|
---|
946 | #define VERR_NET_ALREADY_IN_PROGRESS (-437)
|
---|
947 | /** Attempted socket operation with a non-socket handle.
|
---|
948 | * (This includes closed handles.) */
|
---|
949 | #define VERR_NET_NOT_SOCKET (-438)
|
---|
950 | /** Destination address required. */
|
---|
951 | #define VERR_NET_DEST_ADDRESS_REQUIRED (-439)
|
---|
952 | /** Message too long. */
|
---|
953 | #define VERR_NET_MSG_SIZE (-440)
|
---|
954 | /** Protocol wrong type for socket. */
|
---|
955 | #define VERR_NET_PROTOCOL_TYPE (-441)
|
---|
956 | /** Protocol not available. */
|
---|
957 | #define VERR_NET_PROTOCOL_NOT_AVAILABLE (-442)
|
---|
958 | /** Protocol not supported. */
|
---|
959 | #define VERR_NET_PROTOCOL_NOT_SUPPORTED (-443)
|
---|
960 | /** Socket type not supported. */
|
---|
961 | #define VERR_NET_SOCKET_TYPE_NOT_SUPPORTED (-444)
|
---|
962 | /** Operation not supported. */
|
---|
963 | #define VERR_NET_OPERATION_NOT_SUPPORTED (-445)
|
---|
964 | /** Protocol family not supported. */
|
---|
965 | #define VERR_NET_PROTOCOL_FAMILY_NOT_SUPPORTED (-446)
|
---|
966 | /** Address family not supported by protocol family. */
|
---|
967 | #define VERR_NET_ADDRESS_FAMILY_NOT_SUPPORTED (-447)
|
---|
968 | /** Address already in use. */
|
---|
969 | #define VERR_NET_ADDRESS_IN_USE (-448)
|
---|
970 | /** Can't assign requested address. */
|
---|
971 | #define VERR_NET_ADDRESS_NOT_AVAILABLE (-449)
|
---|
972 | /** Network is down. */
|
---|
973 | #define VERR_NET_DOWN (-450)
|
---|
974 | /** Network is unreachable. */
|
---|
975 | #define VERR_NET_UNREACHABLE (-451)
|
---|
976 | /** Network dropped connection on reset. */
|
---|
977 | #define VERR_NET_CONNECTION_RESET (-452)
|
---|
978 | /** Software caused connection abort. */
|
---|
979 | #define VERR_NET_CONNECTION_ABORTED (-453)
|
---|
980 | /** Connection reset by peer. */
|
---|
981 | #define VERR_NET_CONNECTION_RESET_BY_PEER (-454)
|
---|
982 | /** No buffer space available. */
|
---|
983 | #define VERR_NET_NO_BUFFER_SPACE (-455)
|
---|
984 | /** Socket is already connected. */
|
---|
985 | #define VERR_NET_ALREADY_CONNECTED (-456)
|
---|
986 | /** Socket is not connected. */
|
---|
987 | #define VERR_NET_NOT_CONNECTED (-457)
|
---|
988 | /** Can't send after socket shutdown. */
|
---|
989 | #define VERR_NET_SHUTDOWN (-458)
|
---|
990 | /** Too many references: can't splice. */
|
---|
991 | #define VERR_NET_TOO_MANY_REFERENCES (-459)
|
---|
992 | /** Too many references: can't splice. */
|
---|
993 | #define VERR_NET_CONNECTION_TIMED_OUT (-460)
|
---|
994 | /** Connection refused. */
|
---|
995 | #define VERR_NET_CONNECTION_REFUSED (-461)
|
---|
996 | /* ELOOP is not net. */
|
---|
997 | /* ENAMETOOLONG is not net. */
|
---|
998 | /** Host is down. */
|
---|
999 | #define VERR_NET_HOST_DOWN (-464)
|
---|
1000 | /** No route to host. */
|
---|
1001 | #define VERR_NET_HOST_UNREACHABLE (-465)
|
---|
1002 | /** Protocol error. */
|
---|
1003 | #define VERR_NET_PROTOCOL_ERROR (-466)
|
---|
1004 | /** @} */
|
---|
1005 |
|
---|
1006 |
|
---|
1007 | /** @name TCP Status Codes
|
---|
1008 | * @{
|
---|
1009 | */
|
---|
1010 | /** Stop the TCP server. */
|
---|
1011 | #define VERR_TCP_SERVER_STOP (-500)
|
---|
1012 | /** The server was stopped. */
|
---|
1013 | #define VINF_TCP_SERVER_STOP 500
|
---|
1014 | /** The TCP server was shut down using RTTcpServerShutdown. */
|
---|
1015 | #define VERR_TCP_SERVER_SHUTDOWN (-501)
|
---|
1016 | /** The TCP server was destroyed. */
|
---|
1017 | #define VERR_TCP_SERVER_DESTROYED (-502)
|
---|
1018 | /** The TCP server has no client associated with it. */
|
---|
1019 | #define VINF_TCP_SERVER_NO_CLIENT 503
|
---|
1020 | /** @} */
|
---|
1021 |
|
---|
1022 |
|
---|
1023 | /** @name L4 Specific Status Codes
|
---|
1024 | * @{
|
---|
1025 | */
|
---|
1026 | /** Invalid offset in an L4 dataspace */
|
---|
1027 | #define VERR_L4_INVALID_DS_OFFSET (-550)
|
---|
1028 | /** IPC error */
|
---|
1029 | #define VERR_IPC (-551)
|
---|
1030 | /** Item already used */
|
---|
1031 | #define VERR_RESOURCE_IN_USE (-552)
|
---|
1032 | /** Source/destination not found */
|
---|
1033 | #define VERR_IPC_PROCESS_NOT_FOUND (-553)
|
---|
1034 | /** Receive timeout */
|
---|
1035 | #define VERR_IPC_RECEIVE_TIMEOUT (-554)
|
---|
1036 | /** Send timeout */
|
---|
1037 | #define VERR_IPC_SEND_TIMEOUT (-555)
|
---|
1038 | /** Receive cancelled */
|
---|
1039 | #define VERR_IPC_RECEIVE_CANCELLED (-556)
|
---|
1040 | /** Send cancelled */
|
---|
1041 | #define VERR_IPC_SEND_CANCELLED (-557)
|
---|
1042 | /** Receive aborted */
|
---|
1043 | #define VERR_IPC_RECEIVE_ABORTED (-558)
|
---|
1044 | /** Send aborted */
|
---|
1045 | #define VERR_IPC_SEND_ABORTED (-559)
|
---|
1046 | /** Couldn't map pages during receive */
|
---|
1047 | #define VERR_IPC_RECEIVE_MAP_FAILED (-560)
|
---|
1048 | /** Couldn't map pages during send */
|
---|
1049 | #define VERR_IPC_SEND_MAP_FAILED (-561)
|
---|
1050 | /** Send pagefault timeout in receive */
|
---|
1051 | #define VERR_IPC_RECEIVE_SEND_PF_TIMEOUT (-562)
|
---|
1052 | /** Send pagefault timeout in send */
|
---|
1053 | #define VERR_IPC_SEND_SEND_PF_TIMEOUT (-563)
|
---|
1054 | /** (One) receive buffer was too small, or too few buffers */
|
---|
1055 | #define VINF_IPC_RECEIVE_MSG_CUT 564
|
---|
1056 | /** (One) send buffer was too small, or too few buffers */
|
---|
1057 | #define VINF_IPC_SEND_MSG_CUT 565
|
---|
1058 | /** Dataspace manager server not found */
|
---|
1059 | #define VERR_L4_DS_MANAGER_NOT_FOUND (-566)
|
---|
1060 | /** @} */
|
---|
1061 |
|
---|
1062 |
|
---|
1063 | /** @name Loader Status Codes.
|
---|
1064 | * @{
|
---|
1065 | */
|
---|
1066 | /** Invalid executable signature. */
|
---|
1067 | #define VERR_INVALID_EXE_SIGNATURE (-600)
|
---|
1068 | /** The iprt loader recognized a ELF image, but doesn't support loading it. */
|
---|
1069 | #define VERR_ELF_EXE_NOT_SUPPORTED (-601)
|
---|
1070 | /** The iprt loader recognized a PE image, but doesn't support loading it. */
|
---|
1071 | #define VERR_PE_EXE_NOT_SUPPORTED (-602)
|
---|
1072 | /** The iprt loader recognized a LX image, but doesn't support loading it. */
|
---|
1073 | #define VERR_LX_EXE_NOT_SUPPORTED (-603)
|
---|
1074 | /** The iprt loader recognized a LE image, but doesn't support loading it. */
|
---|
1075 | #define VERR_LE_EXE_NOT_SUPPORTED (-604)
|
---|
1076 | /** The iprt loader recognized a NE image, but doesn't support loading it. */
|
---|
1077 | #define VERR_NE_EXE_NOT_SUPPORTED (-605)
|
---|
1078 | /** The iprt loader recognized a MZ image, but doesn't support loading it. */
|
---|
1079 | #define VERR_MZ_EXE_NOT_SUPPORTED (-606)
|
---|
1080 | /** The iprt loader recognized an a.out image, but doesn't support loading it. */
|
---|
1081 | #define VERR_AOUT_EXE_NOT_SUPPORTED (-607)
|
---|
1082 | /** Bad executable. */
|
---|
1083 | #define VERR_BAD_EXE_FORMAT (-608)
|
---|
1084 | /** Symbol (export) not found. */
|
---|
1085 | #define VERR_SYMBOL_NOT_FOUND (-609)
|
---|
1086 | /** Module not found. */
|
---|
1087 | #define VERR_MODULE_NOT_FOUND (-610)
|
---|
1088 | /** The loader resolved an external symbol to an address to big for the image format. */
|
---|
1089 | #define VERR_SYMBOL_VALUE_TOO_BIG (-611)
|
---|
1090 | /** The image is too big. */
|
---|
1091 | #define VERR_IMAGE_TOO_BIG (-612)
|
---|
1092 | /** The image base address is to high for this image type. */
|
---|
1093 | #define VERR_IMAGE_BASE_TOO_HIGH (-614)
|
---|
1094 | /** Mismatching architecture. */
|
---|
1095 | #define VERR_LDR_ARCH_MISMATCH (-615)
|
---|
1096 | /** Mismatch between IPRT and native loader. */
|
---|
1097 | #define VERR_LDR_MISMATCH_NATIVE (-616)
|
---|
1098 | /** Failed to resolve an imported (external) symbol. */
|
---|
1099 | #define VERR_LDR_IMPORTED_SYMBOL_NOT_FOUND (-617)
|
---|
1100 | /** Generic loader failure. */
|
---|
1101 | #define VERR_LDR_GENERAL_FAILURE (-618)
|
---|
1102 | /** Code signing error. */
|
---|
1103 | #define VERR_LDR_IMAGE_HASH (-619)
|
---|
1104 | /** The PE loader encountered delayed imports, a feature which hasn't been implemented yet. */
|
---|
1105 | #define VERR_LDRPE_DELAY_IMPORT (-620)
|
---|
1106 | /** The PE loader encountered a malformed certificate. */
|
---|
1107 | #define VERR_LDRPE_CERT_MALFORMED (-621)
|
---|
1108 | /** The PE loader encountered a certificate with an unsupported type or structure revision. */
|
---|
1109 | #define VERR_LDRPE_CERT_UNSUPPORTED (-622)
|
---|
1110 | /** The PE loader doesn't know how to deal with the global pointer data directory entry yet. */
|
---|
1111 | #define VERR_LDRPE_GLOBALPTR (-623)
|
---|
1112 | /** The PE loader doesn't support the TLS data directory yet. */
|
---|
1113 | #define VERR_LDRPE_TLS (-624)
|
---|
1114 | /** The PE loader doesn't grok the COM descriptor data directory entry. */
|
---|
1115 | #define VERR_LDRPE_COM_DESCRIPTOR (-625)
|
---|
1116 | /** The PE loader encountered an unknown load config directory/header size. */
|
---|
1117 | #define VERR_LDRPE_LOAD_CONFIG_SIZE (-626)
|
---|
1118 | /** The PE loader encountered a lock prefix table, a feature which hasn't been implemented yet. */
|
---|
1119 | #define VERR_LDRPE_LOCK_PREFIX_TABLE (-627)
|
---|
1120 | /** The ELF loader doesn't handle foreign endianness. */
|
---|
1121 | #define VERR_LDRELF_ODD_ENDIAN (-630)
|
---|
1122 | /** The ELF image is 'dynamic', the ELF loader can only deal with 'relocatable' images at present. */
|
---|
1123 | #define VERR_LDRELF_DYN (-631)
|
---|
1124 | /** The ELF image is 'executable', the ELF loader can only deal with 'relocatable' images at present. */
|
---|
1125 | #define VERR_LDRELF_EXEC (-632)
|
---|
1126 | /** The ELF image was created for an unsupported target machine type. */
|
---|
1127 | #define VERR_LDRELF_MACHINE (-633)
|
---|
1128 | /** The ELF version is not supported. */
|
---|
1129 | #define VERR_LDRELF_VERSION (-634)
|
---|
1130 | /** The ELF loader cannot handle multiple SYMTAB sections. */
|
---|
1131 | #define VERR_LDRELF_MULTIPLE_SYMTABS (-635)
|
---|
1132 | /** The ELF loader encountered a relocation type which is not implemented. */
|
---|
1133 | #define VERR_LDRELF_RELOCATION_NOT_SUPPORTED (-636)
|
---|
1134 | /** The ELF loader encountered a bad symbol index. */
|
---|
1135 | #define VERR_LDRELF_INVALID_SYMBOL_INDEX (-637)
|
---|
1136 | /** The ELF loader encountered an invalid symbol name offset. */
|
---|
1137 | #define VERR_LDRELF_INVALID_SYMBOL_NAME_OFFSET (-638)
|
---|
1138 | /** The ELF loader encountered an invalid relocation offset. */
|
---|
1139 | #define VERR_LDRELF_INVALID_RELOCATION_OFFSET (-639)
|
---|
1140 | /** The ELF loader didn't find the symbol/string table for the image. */
|
---|
1141 | #define VERR_LDRELF_NO_SYMBOL_OR_NO_STRING_TABS (-640)
|
---|
1142 | /** @}*/
|
---|
1143 |
|
---|
1144 | /** @name Debug Info Reader Status Codes.
|
---|
1145 | * @{
|
---|
1146 | */
|
---|
1147 | /** The module contains no line number information. */
|
---|
1148 | #define VERR_DBG_NO_LINE_NUMBERS (-650)
|
---|
1149 | /** The module contains no symbol information. */
|
---|
1150 | #define VERR_DBG_NO_SYMBOLS (-651)
|
---|
1151 | /** The specified segment:offset address was invalid. Typically an attempt at
|
---|
1152 | * addressing outside the segment boundary. */
|
---|
1153 | #define VERR_DBG_INVALID_ADDRESS (-652)
|
---|
1154 | /** Invalid segment index. */
|
---|
1155 | #define VERR_DBG_INVALID_SEGMENT_INDEX (-653)
|
---|
1156 | /** Invalid segment offset. */
|
---|
1157 | #define VERR_DBG_INVALID_SEGMENT_OFFSET (-654)
|
---|
1158 | /** Invalid image relative virtual address. */
|
---|
1159 | #define VERR_DBG_INVALID_RVA (-655)
|
---|
1160 | /** Invalid image relative virtual address. */
|
---|
1161 | #define VERR_DBG_SPECIAL_SEGMENT (-656)
|
---|
1162 | /** Address conflict within a module/segment.
|
---|
1163 | * Attempted to add a segment, symbol or line number that fully or partially
|
---|
1164 | * overlaps with an existing one. */
|
---|
1165 | #define VERR_DBG_ADDRESS_CONFLICT (-657)
|
---|
1166 | /** Duplicate symbol within the module.
|
---|
1167 | * Attempted to add a symbol which name already exists within the module. */
|
---|
1168 | #define VERR_DBG_DUPLICATE_SYMBOL (-658)
|
---|
1169 | /** The segment index specified when adding a new segment is already in use. */
|
---|
1170 | #define VERR_DBG_SEGMENT_INDEX_CONFLICT (-659)
|
---|
1171 | /** No line number was found for the specified address/ordinal/whatever. */
|
---|
1172 | #define VERR_DBG_LINE_NOT_FOUND (-660)
|
---|
1173 | /** The length of the symbol name is out of range.
|
---|
1174 | * This means it is an empty string or that it's greater or equal to
|
---|
1175 | * RTDBG_SYMBOL_NAME_LENGTH. */
|
---|
1176 | #define VERR_DBG_SYMBOL_NAME_OUT_OF_RANGE (-661)
|
---|
1177 | /** The length of the file name is out of range.
|
---|
1178 | * This means it is an empty string or that it's greater or equal to
|
---|
1179 | * RTDBG_FILE_NAME_LENGTH. */
|
---|
1180 | #define VERR_DBG_FILE_NAME_OUT_OF_RANGE (-662)
|
---|
1181 | /** The length of the segment name is out of range.
|
---|
1182 | * This means it is an empty string or that it is greater or equal to
|
---|
1183 | * RTDBG_SEGMENT_NAME_LENGTH. */
|
---|
1184 | #define VERR_DBG_SEGMENT_NAME_OUT_OF_RANGE (-663)
|
---|
1185 | /** The specified address range wraps around. */
|
---|
1186 | #define VERR_DBG_ADDRESS_WRAP (-664)
|
---|
1187 | /** The file is not a valid NM map file. */
|
---|
1188 | #define VERR_DBG_NOT_NM_MAP_FILE (-665)
|
---|
1189 | /** The file is not a valid /proc/kallsyms file. */
|
---|
1190 | #define VERR_DBG_NOT_LINUX_KALLSYMS (-666)
|
---|
1191 | /** No debug module interpreter matching the debug info. */
|
---|
1192 | #define VERR_DBG_NO_MATCHING_INTERPRETER (-667)
|
---|
1193 | /** @} */
|
---|
1194 |
|
---|
1195 | /** @name Request Packet Status Codes.
|
---|
1196 | * @{
|
---|
1197 | */
|
---|
1198 | /** Invalid RT request type.
|
---|
1199 | * For the RTReqAlloc() case, the caller just specified an illegal enmType. For
|
---|
1200 | * all the other occurrences it means indicates corruption, broken logic, or stupid
|
---|
1201 | * interface user. */
|
---|
1202 | #define VERR_RT_REQUEST_INVALID_TYPE (-700)
|
---|
1203 | /** Invalid RT request state.
|
---|
1204 | * The state of the request packet was not the expected and accepted one(s). Either
|
---|
1205 | * the interface user screwed up, or we've got corruption/broken logic. */
|
---|
1206 | #define VERR_RT_REQUEST_STATE (-701)
|
---|
1207 | /** Invalid RT request packet.
|
---|
1208 | * One or more of the RT controlled packet members didn't contain the correct
|
---|
1209 | * values. Some thing's broken. */
|
---|
1210 | #define VERR_RT_REQUEST_INVALID_PACKAGE (-702)
|
---|
1211 | /** The status field has not been updated yet as the request is still
|
---|
1212 | * pending completion. Someone queried the iStatus field before the request
|
---|
1213 | * has been fully processed. */
|
---|
1214 | #define VERR_RT_REQUEST_STATUS_STILL_PENDING (-703)
|
---|
1215 | /** The request has been freed, don't read the status now.
|
---|
1216 | * Someone is reading the iStatus field of a freed request packet. */
|
---|
1217 | #define VERR_RT_REQUEST_STATUS_FREED (-704)
|
---|
1218 | /** @} */
|
---|
1219 |
|
---|
1220 | /** @name Environment Status Code
|
---|
1221 | * @{
|
---|
1222 | */
|
---|
1223 | /** The specified environment variable was not found. (RTEnvGetEx) */
|
---|
1224 | #define VERR_ENV_VAR_NOT_FOUND (-750)
|
---|
1225 | /** The specified environment variable was not found. (RTEnvUnsetEx) */
|
---|
1226 | #define VINF_ENV_VAR_NOT_FOUND (750)
|
---|
1227 | /** @} */
|
---|
1228 |
|
---|
1229 | /** @name Multiprocessor Status Codes.
|
---|
1230 | * @{
|
---|
1231 | */
|
---|
1232 | /** The specified cpu is offline. */
|
---|
1233 | #define VERR_CPU_OFFLINE (-800)
|
---|
1234 | /** The specified cpu was not found. */
|
---|
1235 | #define VERR_CPU_NOT_FOUND (-801)
|
---|
1236 | /** @} */
|
---|
1237 |
|
---|
1238 | /** @name RTGetOpt status codes
|
---|
1239 | * @{ */
|
---|
1240 | /** RTGetOpt: Command line option not recognized. */
|
---|
1241 | #define VERR_GETOPT_UNKNOWN_OPTION (-825)
|
---|
1242 | /** RTGetOpt: Command line option needs argument. */
|
---|
1243 | #define VERR_GETOPT_REQUIRED_ARGUMENT_MISSING (-826)
|
---|
1244 | /** RTGetOpt: Command line option has argument with bad format. */
|
---|
1245 | #define VERR_GETOPT_INVALID_ARGUMENT_FORMAT (-827)
|
---|
1246 | /** RTGetOpt: Not an option. */
|
---|
1247 | #define VINF_GETOPT_NOT_OPTION 828
|
---|
1248 | /** RTGetOpt: Command line option needs an index. */
|
---|
1249 | #define VERR_GETOPT_INDEX_MISSING (-829)
|
---|
1250 | /** @} */
|
---|
1251 |
|
---|
1252 | /** @name RTCache status codes
|
---|
1253 | * @{ */
|
---|
1254 | /** RTCache: cache is full. */
|
---|
1255 | #define VERR_CACHE_FULL (-850)
|
---|
1256 | /** RTCache: cache is empty. */
|
---|
1257 | #define VERR_CACHE_EMPTY (-851)
|
---|
1258 | /** @} */
|
---|
1259 |
|
---|
1260 | /** @name RTMemCache status codes
|
---|
1261 | * @{ */
|
---|
1262 | /** Reached the max cache size. */
|
---|
1263 | #define VERR_MEM_CACHE_MAX_SIZE (-855)
|
---|
1264 | /** @} */
|
---|
1265 |
|
---|
1266 | /** @name RTS3 status codes
|
---|
1267 | * @{ */
|
---|
1268 | /** Access denied error. */
|
---|
1269 | #define VERR_S3_ACCESS_DENIED (-875)
|
---|
1270 | /** The bucket/key wasn't found. */
|
---|
1271 | #define VERR_S3_NOT_FOUND (-876)
|
---|
1272 | /** Bucket already exists. */
|
---|
1273 | #define VERR_S3_BUCKET_ALREADY_EXISTS (-877)
|
---|
1274 | /** Can't delete bucket with keys. */
|
---|
1275 | #define VERR_S3_BUCKET_NOT_EMPTY (-878)
|
---|
1276 | /** The current operation was canceled. */
|
---|
1277 | #define VERR_S3_CANCELED (-879)
|
---|
1278 | /** @} */
|
---|
1279 |
|
---|
1280 | /** @name RTManifest status codes
|
---|
1281 | * @{ */
|
---|
1282 | /** A digest type used in the manifest file isn't supported. */
|
---|
1283 | #define VERR_MANIFEST_UNSUPPORTED_DIGEST_TYPE (-900)
|
---|
1284 | /** An entry in the manifest file couldn't be interpreted correctly. */
|
---|
1285 | #define VERR_MANIFEST_WRONG_FILE_FORMAT (-901)
|
---|
1286 | /** A digest doesn't match the corresponding file. */
|
---|
1287 | #define VERR_MANIFEST_DIGEST_MISMATCH (-902)
|
---|
1288 | /** The file list doesn't match to the content of the manifest file. */
|
---|
1289 | #define VERR_MANIFEST_FILE_MISMATCH (-903)
|
---|
1290 | /** @} */
|
---|
1291 |
|
---|
1292 | /** @name RTTar status codes
|
---|
1293 | * @{ */
|
---|
1294 | /** The checksum of a tar header record doesn't match. */
|
---|
1295 | #define VERR_TAR_CHKSUM_MISMATCH (-925)
|
---|
1296 | /** The tar end of file record was read. */
|
---|
1297 | #define VERR_TAR_END_OF_FILE (-926)
|
---|
1298 | /** The tar file ended unexpectedly. */
|
---|
1299 | #define VERR_TAR_UNEXPECTED_EOS (-927)
|
---|
1300 | /** The tar termination records was encountered without reaching the end of
|
---|
1301 | * the input stream. */
|
---|
1302 | #define VERR_TAR_EOS_MORE_INPUT (-928)
|
---|
1303 | /** A number tar header field was malformed. */
|
---|
1304 | #define VERR_TAR_BAD_NUM_FIELD (-929)
|
---|
1305 | /** A numeric tar header field was not terminated correctly. */
|
---|
1306 | #define VERR_TAR_BAD_NUM_FIELD_TERM (-930)
|
---|
1307 | /** A number tar header field was encoded using base-256 which this
|
---|
1308 | * tar implementation currently does not support. */
|
---|
1309 | #define VERR_TAR_BASE_256_NOT_SUPPORTED (-931)
|
---|
1310 | /** A number tar header field yielded a value too large for the internal
|
---|
1311 | * variable of the tar interpreter. */
|
---|
1312 | #define VERR_TAR_NUM_VALUE_TOO_LARGE (-932)
|
---|
1313 | /** The combined minor and major device number type is too small to hold the
|
---|
1314 | * value stored in the tar header. */
|
---|
1315 | #define VERR_TAR_DEV_VALUE_TOO_LARGE (-933)
|
---|
1316 | /** The mode field in a tar header is bad. */
|
---|
1317 | #define VERR_TAR_BAD_MODE_FIELD (-934)
|
---|
1318 | /** The mode field should not include the type. */
|
---|
1319 | #define VERR_TAR_MODE_WITH_TYPE (-935)
|
---|
1320 | /** The size field should be zero for links and symlinks. */
|
---|
1321 | #define VERR_TAR_SIZE_NOT_ZERO (-936)
|
---|
1322 | /** Encountered an unknown type flag. */
|
---|
1323 | #define VERR_TAR_UNKNOWN_TYPE_FLAG (-937)
|
---|
1324 | /** The tar header is all zeros. */
|
---|
1325 | #define VERR_TAR_ZERO_HEADER (-938)
|
---|
1326 | /** Not a uniform standard tape v0.0 archive header. */
|
---|
1327 | #define VERR_TAR_NOT_USTAR_V00 (-939)
|
---|
1328 | /** The name is empty. */
|
---|
1329 | #define VERR_TAR_EMPTY_NAME (-940)
|
---|
1330 | /** A non-directory entry has a name ending with a slash. */
|
---|
1331 | #define VERR_TAR_NON_DIR_ENDS_WITH_SLASH (-941)
|
---|
1332 | /** Encountered an unsupported portable archive exchange (pax) header. */
|
---|
1333 | #define VERR_TAR_UNSUPPORTED_PAX_TYPE (-942)
|
---|
1334 | /** Encountered an unsupported Solaris Tar extension. */
|
---|
1335 | #define VERR_TAR_UNSUPPORTED_SOLARIS_HDR_TYPE (-943)
|
---|
1336 | /** Encountered an unsupported GNU Tar extension. */
|
---|
1337 | #define VERR_TAR_UNSUPPORTED_GNU_HDR_TYPE (-944)
|
---|
1338 | /** Malformed checksum field in the tar header. */
|
---|
1339 | #define VERR_TAR_BAD_CHKSUM_FIELD (-945)
|
---|
1340 | /** Malformed checksum field in the tar header. */
|
---|
1341 | #define VERR_TAR_MALFORMED_GNU_LONGXXXX (-946)
|
---|
1342 | /** Too long name or link string. */
|
---|
1343 | #define VERR_TAR_NAME_TOO_LONG (-947)
|
---|
1344 | /** @} */
|
---|
1345 |
|
---|
1346 | /** @name RTPoll status codes
|
---|
1347 | * @{ */
|
---|
1348 | /** The handle is not pollable. */
|
---|
1349 | #define VERR_POLL_HANDLE_NOT_POLLABLE (-950)
|
---|
1350 | /** The handle ID is already present in the poll set. */
|
---|
1351 | #define VERR_POLL_HANDLE_ID_EXISTS (-951)
|
---|
1352 | /** The handle ID was not found in the set. */
|
---|
1353 | #define VERR_POLL_HANDLE_ID_NOT_FOUND (-952)
|
---|
1354 | /** The poll set is full. */
|
---|
1355 | #define VERR_POLL_SET_IS_FULL (-953)
|
---|
1356 | /** @} */
|
---|
1357 |
|
---|
1358 | /** @name RTZip status codes
|
---|
1359 | * @{ */
|
---|
1360 | /** Generic zip error. */
|
---|
1361 | #define VERR_ZIP_ERROR (-22000)
|
---|
1362 | /** The compressed data was corrupted. */
|
---|
1363 | #define VERR_ZIP_CORRUPTED (-22001)
|
---|
1364 | /** Ran out of memory while compressing or uncompressing. */
|
---|
1365 | #define VERR_ZIP_NO_MEMORY (-22002)
|
---|
1366 | /** The compression format version is unsupported. */
|
---|
1367 | #define VERR_ZIP_UNSUPPORTED_VERSION (-22003)
|
---|
1368 | /** The compression method is unsupported. */
|
---|
1369 | #define VERR_ZIP_UNSUPPORTED_METHOD (-22004)
|
---|
1370 | /** The compressed data started with a bad header. */
|
---|
1371 | #define VERR_ZIP_BAD_HEADER (-22005)
|
---|
1372 | /** @} */
|
---|
1373 |
|
---|
1374 | /** @name RTVfs status codes
|
---|
1375 | * @{ */
|
---|
1376 | /** The VFS chain specification does not have a valid prefix. */
|
---|
1377 | #define VERR_VFS_CHAIN_NO_PREFIX (-22100)
|
---|
1378 | /** The VFS chain specification is empty. */
|
---|
1379 | #define VERR_VFS_CHAIN_EMPTY (-22101)
|
---|
1380 | /** Expected an element. */
|
---|
1381 | #define VERR_VFS_CHAIN_EXPECTED_ELEMENT (-22102)
|
---|
1382 | /** The VFS object type is not known. */
|
---|
1383 | #define VERR_VFS_CHAIN_UNKNOWN_TYPE (-22103)
|
---|
1384 | /** Expected a left paranthese. */
|
---|
1385 | #define VERR_VFS_CHAIN_EXPECTED_LEFT_PARENTHESES (-22104)
|
---|
1386 | /** Expected a right paranthese. */
|
---|
1387 | #define VERR_VFS_CHAIN_EXPECTED_RIGHT_PARENTHESES (-22105)
|
---|
1388 | /** Expected a provider name. */
|
---|
1389 | #define VERR_VFS_CHAIN_EXPECTED_PROVIDER_NAME (-22106)
|
---|
1390 | /** Expected an action (> or |). */
|
---|
1391 | #define VERR_VFS_CHAIN_EXPECTED_ACTION (-22107)
|
---|
1392 | /** Only one action element is currently supported. */
|
---|
1393 | #define VERR_VFS_CHAIN_MULTIPLE_ACTIONS (-22108)
|
---|
1394 | /** Expected to find a driving action (>), but there is none. */
|
---|
1395 | #define VERR_VFS_CHAIN_NO_ACTION (-22109)
|
---|
1396 | /** Expected pipe action. */
|
---|
1397 | #define VERR_VFS_CHAIN_EXPECTED_PIPE (-22110)
|
---|
1398 | /** Unexpected action type. */
|
---|
1399 | #define VERR_VFS_CHAIN_UNEXPECTED_ACTION_TYPE (-22111)
|
---|
1400 | /** @} */
|
---|
1401 |
|
---|
1402 | /* SED-END */
|
---|
1403 |
|
---|
1404 | /** @} */
|
---|
1405 |
|
---|
1406 | #endif
|
---|
1407 |
|
---|