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 | #include <iprt/stdarg.h>
|
---|
32 |
|
---|
33 |
|
---|
34 | /** @defgroup grp_rt_err RTErr - Status Codes
|
---|
35 | * @ingroup grp_rt
|
---|
36 | *
|
---|
37 | * The IPRT status codes are in two ranges: {0..999} and {22000..32766}. The
|
---|
38 | * IPRT users are free to use the range {1000..21999}. See RTERR_RANGE1_FIRST,
|
---|
39 | * RTERR_RANGE1_LAST, RTERR_RANGE2_FIRST, RTERR_RANGE2_LAST, RTERR_USER_FIRST
|
---|
40 | * and RTERR_USER_LAST.
|
---|
41 | *
|
---|
42 | * @{
|
---|
43 | */
|
---|
44 |
|
---|
45 | /** @defgroup grp_rt_err_hlp Status Code Helpers
|
---|
46 | * @ingroup grp_rt_err
|
---|
47 | * @{
|
---|
48 | */
|
---|
49 |
|
---|
50 | #ifdef __cplusplus
|
---|
51 | /**
|
---|
52 | * Strict type validation class.
|
---|
53 | *
|
---|
54 | * This is only really useful for type checking the arguments to RT_SUCCESS,
|
---|
55 | * RT_SUCCESS_NP, RT_FAILURE and RT_FAILURE_NP. The RTErrStrictType2
|
---|
56 | * constructor is for integration with external status code strictness regimes.
|
---|
57 | */
|
---|
58 | class RTErrStrictType
|
---|
59 | {
|
---|
60 | protected:
|
---|
61 | int32_t m_rc;
|
---|
62 |
|
---|
63 | public:
|
---|
64 | /**
|
---|
65 | * Constructor for interaction with external status code strictness regimes.
|
---|
66 | *
|
---|
67 | * This is a special constructor for helping external return code validator
|
---|
68 | * classes interact cleanly with RT_SUCCESS, RT_SUCCESS_NP, RT_FAILURE and
|
---|
69 | * RT_FAILURE_NP while barring automatic cast to integer.
|
---|
70 | *
|
---|
71 | * @param rcObj IPRT status code object from an automatic cast.
|
---|
72 | */
|
---|
73 | RTErrStrictType(RTErrStrictType2 const rcObj)
|
---|
74 | : m_rc(rcObj.getValue())
|
---|
75 | {
|
---|
76 | }
|
---|
77 |
|
---|
78 | /**
|
---|
79 | * Integer constructor used by RT_SUCCESS_NP.
|
---|
80 | *
|
---|
81 | * @param rc IPRT style status code.
|
---|
82 | */
|
---|
83 | RTErrStrictType(int32_t rc)
|
---|
84 | : m_rc(rc)
|
---|
85 | {
|
---|
86 | }
|
---|
87 |
|
---|
88 | #if 0 /** @todo figure where int32_t is long instead of int. */
|
---|
89 | /**
|
---|
90 | * Integer constructor used by RT_SUCCESS_NP.
|
---|
91 | *
|
---|
92 | * @param rc IPRT style status code.
|
---|
93 | */
|
---|
94 | RTErrStrictType(signed int rc)
|
---|
95 | : m_rc(rc)
|
---|
96 | {
|
---|
97 | }
|
---|
98 | #endif
|
---|
99 |
|
---|
100 | /**
|
---|
101 | * Test for success.
|
---|
102 | */
|
---|
103 | bool success() const
|
---|
104 | {
|
---|
105 | return m_rc >= 0;
|
---|
106 | }
|
---|
107 |
|
---|
108 | private:
|
---|
109 | /** @name Try ban a number of wrong types.
|
---|
110 | * @{ */
|
---|
111 | RTErrStrictType(uint8_t rc) : m_rc(-999) { NOREF(rc); }
|
---|
112 | RTErrStrictType(uint16_t rc) : m_rc(-999) { NOREF(rc); }
|
---|
113 | RTErrStrictType(uint32_t rc) : m_rc(-999) { NOREF(rc); }
|
---|
114 | RTErrStrictType(uint64_t rc) : m_rc(-999) { NOREF(rc); }
|
---|
115 | RTErrStrictType(int8_t rc) : m_rc(-999) { NOREF(rc); }
|
---|
116 | RTErrStrictType(int16_t rc) : m_rc(-999) { NOREF(rc); }
|
---|
117 | RTErrStrictType(int64_t rc) : m_rc(-999) { NOREF(rc); }
|
---|
118 | /** @todo fight long here - clashes with int32_t/int64_t on some platforms. */
|
---|
119 | /** @} */
|
---|
120 | };
|
---|
121 | #endif /* __cplusplus */
|
---|
122 |
|
---|
123 |
|
---|
124 | /** @def RTERR_STRICT_RC
|
---|
125 | * Indicates that RT_SUCCESS_NP, RT_SUCCESS, RT_FAILURE_NP and RT_FAILURE should
|
---|
126 | * make type enforcing at compile time.
|
---|
127 | *
|
---|
128 | * @remarks Only define this for C++ code.
|
---|
129 | */
|
---|
130 | #if defined(__cplusplus) \
|
---|
131 | && !defined(RTERR_STRICT_RC) \
|
---|
132 | && ( defined(DOXYGEN_RUNNING) \
|
---|
133 | || defined(DEBUG) \
|
---|
134 | || defined(RT_STRICT) )
|
---|
135 | # define RTERR_STRICT_RC 1
|
---|
136 | #endif
|
---|
137 |
|
---|
138 |
|
---|
139 | /** @def RT_SUCCESS
|
---|
140 | * Check for success. We expect success in normal cases, that is the code path depending on
|
---|
141 | * this check is normally taken. To prevent any prediction use RT_SUCCESS_NP instead.
|
---|
142 | *
|
---|
143 | * @returns true if rc indicates success.
|
---|
144 | * @returns false if rc indicates failure.
|
---|
145 | *
|
---|
146 | * @param rc The iprt status code to test.
|
---|
147 | */
|
---|
148 | #define RT_SUCCESS(rc) ( RT_LIKELY(RT_SUCCESS_NP(rc)) )
|
---|
149 |
|
---|
150 | /** @def RT_SUCCESS_NP
|
---|
151 | * Check for success. Don't predict the result.
|
---|
152 | *
|
---|
153 | * @returns true if rc indicates success.
|
---|
154 | * @returns false if rc indicates failure.
|
---|
155 | *
|
---|
156 | * @param rc The iprt status code to test.
|
---|
157 | */
|
---|
158 | #ifdef RTERR_STRICT_RC
|
---|
159 | # define RT_SUCCESS_NP(rc) ( RTErrStrictType(rc).success() )
|
---|
160 | #else
|
---|
161 | # define RT_SUCCESS_NP(rc) ( (int)(rc) >= VINF_SUCCESS )
|
---|
162 | #endif
|
---|
163 |
|
---|
164 | /** @def RT_FAILURE
|
---|
165 | * Check for failure. We don't expect in normal cases, that is the code path depending on
|
---|
166 | * this check is normally NOT taken. To prevent any prediction use RT_FAILURE_NP instead.
|
---|
167 | *
|
---|
168 | * @returns true if rc indicates failure.
|
---|
169 | * @returns false if rc indicates success.
|
---|
170 | *
|
---|
171 | * @param rc The iprt status code to test.
|
---|
172 | */
|
---|
173 | #define RT_FAILURE(rc) ( RT_UNLIKELY(!RT_SUCCESS_NP(rc)) )
|
---|
174 |
|
---|
175 | /** @def RT_FAILURE_NP
|
---|
176 | * Check for failure. Don't predict the result.
|
---|
177 | *
|
---|
178 | * @returns true if rc indicates failure.
|
---|
179 | * @returns false if rc indicates success.
|
---|
180 | *
|
---|
181 | * @param rc The iprt status code to test.
|
---|
182 | */
|
---|
183 | #define RT_FAILURE_NP(rc) ( !RT_SUCCESS_NP(rc) )
|
---|
184 |
|
---|
185 | RT_C_DECLS_BEGIN
|
---|
186 |
|
---|
187 | /**
|
---|
188 | * Converts a Darwin HRESULT error to an iprt status code.
|
---|
189 | *
|
---|
190 | * @returns iprt status code.
|
---|
191 | * @param iNativeCode HRESULT error code.
|
---|
192 | * @remark Darwin ring-3 only.
|
---|
193 | */
|
---|
194 | RTDECL(int) RTErrConvertFromDarwinCOM(int32_t iNativeCode);
|
---|
195 |
|
---|
196 | /**
|
---|
197 | * Converts a Darwin IOReturn error to an iprt status code.
|
---|
198 | *
|
---|
199 | * @returns iprt status code.
|
---|
200 | * @param iNativeCode IOReturn error code.
|
---|
201 | * @remark Darwin only.
|
---|
202 | */
|
---|
203 | RTDECL(int) RTErrConvertFromDarwinIO(int iNativeCode);
|
---|
204 |
|
---|
205 | /**
|
---|
206 | * Converts a Darwin kern_return_t error to an iprt status code.
|
---|
207 | *
|
---|
208 | * @returns iprt status code.
|
---|
209 | * @param iNativeCode kern_return_t error code.
|
---|
210 | * @remark Darwin only.
|
---|
211 | */
|
---|
212 | RTDECL(int) RTErrConvertFromDarwinKern(int iNativeCode);
|
---|
213 |
|
---|
214 | /**
|
---|
215 | * Converts a Darwin error to an iprt status code.
|
---|
216 | *
|
---|
217 | * This will consult RTErrConvertFromDarwinKern, RTErrConvertFromDarwinIO
|
---|
218 | * and RTErrConvertFromDarwinCOM in this order. The latter is ring-3 only as it
|
---|
219 | * doesn't apply elsewhere.
|
---|
220 | *
|
---|
221 | * @returns iprt status code.
|
---|
222 | * @param iNativeCode Darwin error code.
|
---|
223 | * @remarks Darwin only.
|
---|
224 | * @remarks This is recommended over RTErrConvertFromDarwinKern and RTErrConvertFromDarwinIO
|
---|
225 | * since these are really just subsets of the same error space.
|
---|
226 | */
|
---|
227 | RTDECL(int) RTErrConvertFromDarwin(int iNativeCode);
|
---|
228 |
|
---|
229 | /**
|
---|
230 | * Converts errno to iprt status code.
|
---|
231 | *
|
---|
232 | * @returns iprt status code.
|
---|
233 | * @param uNativeCode errno code.
|
---|
234 | */
|
---|
235 | RTDECL(int) RTErrConvertFromErrno(unsigned uNativeCode);
|
---|
236 |
|
---|
237 | /**
|
---|
238 | * Converts a L4 errno to a iprt status code.
|
---|
239 | *
|
---|
240 | * @returns iprt status code.
|
---|
241 | * @param uNativeCode l4 errno.
|
---|
242 | * @remark L4 only.
|
---|
243 | */
|
---|
244 | RTDECL(int) RTErrConvertFromL4Errno(unsigned uNativeCode);
|
---|
245 |
|
---|
246 | /**
|
---|
247 | * Converts NT status code to iprt status code.
|
---|
248 | *
|
---|
249 | * Needless to say, this is only available on NT and winXX targets.
|
---|
250 | *
|
---|
251 | * @returns iprt status code.
|
---|
252 | * @param lNativeCode NT status code.
|
---|
253 | * @remark Windows only.
|
---|
254 | */
|
---|
255 | RTDECL(int) RTErrConvertFromNtStatus(long lNativeCode);
|
---|
256 |
|
---|
257 | /**
|
---|
258 | * Converts OS/2 error code to iprt status code.
|
---|
259 | *
|
---|
260 | * @returns iprt status code.
|
---|
261 | * @param uNativeCode OS/2 error code.
|
---|
262 | * @remark OS/2 only.
|
---|
263 | */
|
---|
264 | RTDECL(int) RTErrConvertFromOS2(unsigned uNativeCode);
|
---|
265 |
|
---|
266 | /**
|
---|
267 | * Converts Win32 error code to iprt status code.
|
---|
268 | *
|
---|
269 | * @returns iprt status code.
|
---|
270 | * @param uNativeCode Win32 error code.
|
---|
271 | * @remark Windows only.
|
---|
272 | */
|
---|
273 | RTDECL(int) RTErrConvertFromWin32(unsigned uNativeCode);
|
---|
274 |
|
---|
275 | /**
|
---|
276 | * Converts an iprt status code to a errno status code.
|
---|
277 | *
|
---|
278 | * @returns errno status code.
|
---|
279 | * @param iErr iprt status code.
|
---|
280 | */
|
---|
281 | RTDECL(int) RTErrConvertToErrno(int iErr);
|
---|
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 | /** @defgroup RTERRINFO_FLAGS_XXX RTERRINFO::fFlags
|
---|
396 | * @{ */
|
---|
397 | /** Custom structure (the default). */
|
---|
398 | #define RTERRINFO_FLAGS_T_CUSTOM UINT32_C(0)
|
---|
399 | /** Static structure (RTERRINFOSTATIC). */
|
---|
400 | #define RTERRINFO_FLAGS_T_STATIC UINT32_C(1)
|
---|
401 | /** Allocated structure (RTErrInfoAlloc). */
|
---|
402 | #define RTERRINFO_FLAGS_T_ALLOC UINT32_C(2)
|
---|
403 | /** Reserved type. */
|
---|
404 | #define RTERRINFO_FLAGS_T_RESERVED UINT32_C(3)
|
---|
405 | /** Type mask. */
|
---|
406 | #define RTERRINFO_FLAGS_T_MASK UINT32_C(3)
|
---|
407 | /** Error info is set. */
|
---|
408 | #define RTERRINFO_FLAGS_SET RT_BIT_32(2)
|
---|
409 | /** Fixed flags (magic). */
|
---|
410 | #define RTERRINFO_FLAGS_MAGIC UINT32_C(0xbabe0000)
|
---|
411 | /** The bit mask for the magic value. */
|
---|
412 | #define RTERRINFO_FLAGS_MAGIC_MASK UINT32_C(0xffff0000)
|
---|
413 | /** @} */
|
---|
414 |
|
---|
415 | /**
|
---|
416 | * Initializes an error info structure.
|
---|
417 | *
|
---|
418 | * @returns @a pErrInfo.
|
---|
419 | * @param pErrInfo The error info structure to init.
|
---|
420 | * @param pszMsg The message buffer. Must be at least one byte.
|
---|
421 | * @param cbMsg The size of the message buffer.
|
---|
422 | */
|
---|
423 | DECLINLINE(PRTERRINFO) RTErrInfoInit(PRTERRINFO pErrInfo, char *pszMsg, size_t cbMsg)
|
---|
424 | {
|
---|
425 | *pszMsg = '\0';
|
---|
426 |
|
---|
427 | pErrInfo->fFlags = RTERRINFO_FLAGS_T_CUSTOM | RTERRINFO_FLAGS_MAGIC;
|
---|
428 | pErrInfo->rc = /*VINF_SUCCESS*/ 0;
|
---|
429 | pErrInfo->pszMsg = pszMsg;
|
---|
430 | pErrInfo->cbMsg = cbMsg;
|
---|
431 | pErrInfo->apvReserved[0] = NULL;
|
---|
432 | pErrInfo->apvReserved[1] = NULL;
|
---|
433 |
|
---|
434 | return pErrInfo;
|
---|
435 | }
|
---|
436 |
|
---|
437 | /**
|
---|
438 | * Initialize a static error info structure.
|
---|
439 | *
|
---|
440 | * @param pStaticErrInfo The static error info structure to init.
|
---|
441 | */
|
---|
442 | DECLINLINE(void) RTErrInfoInitStatic(PRTERRINFOSTATIC pStaticErrInfo)
|
---|
443 | {
|
---|
444 | RTErrInfoInit(&pStaticErrInfo->Core, pStaticErrInfo->szMsg, sizeof(pStaticErrInfo->szMsg));
|
---|
445 | pStaticErrInfo->Core.fFlags = RTERRINFO_FLAGS_T_STATIC | RTERRINFO_FLAGS_MAGIC;
|
---|
446 | }
|
---|
447 |
|
---|
448 | /**
|
---|
449 | * Allocates a error info structure with a buffer at least the given size.
|
---|
450 | *
|
---|
451 | * @returns Pointer to an error info structure on success, NULL on failure.
|
---|
452 | *
|
---|
453 | * @param cbMsg The minimum message buffer size. Use 0 to get
|
---|
454 | * the default buffer size.
|
---|
455 | */
|
---|
456 | RTDECL(PRTERRINFO) RTErrInfoAlloc(size_t cbMsg);
|
---|
457 |
|
---|
458 | /**
|
---|
459 | * Same as RTErrInfoAlloc, except that an IPRT status code is returned.
|
---|
460 | *
|
---|
461 | * @returns IPRT status code.
|
---|
462 | *
|
---|
463 | * @param cbMsg The minimum message buffer size. Use 0 to get
|
---|
464 | * the default buffer size.
|
---|
465 | * @param ppErrInfo Where to store the pointer to the allocated
|
---|
466 | * error info structure on success. This is
|
---|
467 | * always set to NULL.
|
---|
468 | */
|
---|
469 | RTDECL(int) RTErrInfoAllocEx(size_t cbMsg, PRTERRINFO *ppErrInfo);
|
---|
470 |
|
---|
471 | /**
|
---|
472 | * Frees an error info structure allocated by RTErrInfoAlloc or
|
---|
473 | * RTErrInfoAllocEx.
|
---|
474 | *
|
---|
475 | * @param pErrInfo The error info structure.
|
---|
476 | */
|
---|
477 | RTDECL(void) RTErrInfoFree(PRTERRINFO pErrInfo);
|
---|
478 |
|
---|
479 | /**
|
---|
480 | * Fills in the error info details.
|
---|
481 | *
|
---|
482 | * @returns @a rc.
|
---|
483 | *
|
---|
484 | * @param pErrInfo The error info structure to fill in.
|
---|
485 | * @param rc The status code to return.
|
---|
486 | * @param pszMsg The error message string.
|
---|
487 | */
|
---|
488 | RTDECL(int) RTErrInfoSet(PRTERRINFO pErrInfo, int rc, const char *pszMsg);
|
---|
489 |
|
---|
490 | /**
|
---|
491 | * Fills in the error info details, with a sprintf style message.
|
---|
492 | *
|
---|
493 | * @returns @a rc.
|
---|
494 | *
|
---|
495 | * @param pErrInfo The error info structure to fill in.
|
---|
496 | * @param rc The status code to return.
|
---|
497 | * @param pszFormat The format string.
|
---|
498 | * @param ... The format arguments.
|
---|
499 | */
|
---|
500 | RTDECL(int) RTErrInfoSetF(PRTERRINFO pErrInfo, int rc, const char *pszFormat, ...);
|
---|
501 |
|
---|
502 | /**
|
---|
503 | * Fills in the error info details, with a vsprintf style message.
|
---|
504 | *
|
---|
505 | * @returns @a rc.
|
---|
506 | *
|
---|
507 | * @param pErrInfo The error info structure to fill in.
|
---|
508 | * @param rc The status code to return.
|
---|
509 | * @param pszFormat The format string.
|
---|
510 | * @param va The format arguments.
|
---|
511 | */
|
---|
512 | RTDECL(int) RTErrInfoSetV(PRTERRINFO pErrInfo, int rc, const char *pszFormat, va_list va);
|
---|
513 |
|
---|
514 | /**
|
---|
515 | * Checks if the error info is set.
|
---|
516 | *
|
---|
517 | * @returns true if set, false if not.
|
---|
518 | * @param pErrInfo The error info structure. NULL is OK.
|
---|
519 | */
|
---|
520 | DECLINLINE(bool) RTErrInfoIsSet(PCRTERRINFO pErrInfo)
|
---|
521 | {
|
---|
522 | if (!pErrInfo)
|
---|
523 | return false;
|
---|
524 | return (pErrInfo->fFlags & (RTERRINFO_FLAGS_MAGIC_MASK | RTERRINFO_FLAGS_SET))
|
---|
525 | == (RTERRINFO_FLAGS_MAGIC | RTERRINFO_FLAGS_SET);
|
---|
526 | }
|
---|
527 |
|
---|
528 | /**
|
---|
529 | * Clears the error info structure.
|
---|
530 | *
|
---|
531 | * @param pErrInfo The error info structure. NULL is OK.
|
---|
532 | */
|
---|
533 | DECLINLINE(void) RTErrInfoClear(PRTERRINFO pErrInfo)
|
---|
534 | {
|
---|
535 | if (pErrInfo)
|
---|
536 | {
|
---|
537 | pErrInfo->fFlags &= ~RTERRINFO_FLAGS_SET;
|
---|
538 | pErrInfo->rc = /*VINF_SUCCESS*/0;
|
---|
539 | *pErrInfo->pszMsg = '\0';
|
---|
540 | }
|
---|
541 | }
|
---|
542 |
|
---|
543 | /**
|
---|
544 | * Storage for error variables.
|
---|
545 | *
|
---|
546 | * @remarks Do NOT touch the members! They are platform specific and what's
|
---|
547 | * where may change at any time!
|
---|
548 | */
|
---|
549 | typedef union RTERRVARS
|
---|
550 | {
|
---|
551 | int8_t ai8Vars[32];
|
---|
552 | int16_t ai16Vars[16];
|
---|
553 | int32_t ai32Vars[8];
|
---|
554 | int64_t ai64Vars[4];
|
---|
555 | } RTERRVARS;
|
---|
556 | /** Pointer to an error variable storage union. */
|
---|
557 | typedef RTERRVARS *PRTERRVARS;
|
---|
558 | /** Pointer to a const error variable storage union. */
|
---|
559 | typedef RTERRVARS const *PCRTERRVARS;
|
---|
560 |
|
---|
561 | /**
|
---|
562 | * Saves the error variables.
|
---|
563 | *
|
---|
564 | * @returns @a pVars.
|
---|
565 | * @param pVars The variable storage union.
|
---|
566 | */
|
---|
567 | RTDECL(PRTERRVARS) RTErrVarsSave(PRTERRVARS pVars);
|
---|
568 |
|
---|
569 | /**
|
---|
570 | * Restores the error variables.
|
---|
571 | *
|
---|
572 | * @param pVars The variable storage union.
|
---|
573 | */
|
---|
574 | RTDECL(void) RTErrVarsRestore(PCRTERRVARS pVars);
|
---|
575 |
|
---|
576 | /**
|
---|
577 | * Checks if the first variable set equals the second.
|
---|
578 | *
|
---|
579 | * @returns true if they are equal, false if not.
|
---|
580 | * @param pVars1 The first variable storage union.
|
---|
581 | * @param pVars2 The second variable storage union.
|
---|
582 | */
|
---|
583 | RTDECL(bool) RTErrVarsAreEqual(PCRTERRVARS pVars1, PCRTERRVARS pVars2);
|
---|
584 |
|
---|
585 | /**
|
---|
586 | * Checks if the (live) error variables have changed since we saved them.
|
---|
587 | *
|
---|
588 | * @returns @c true if they have changed, @c false if not.
|
---|
589 | * @param pVars The saved variables to compare the current state
|
---|
590 | * against.
|
---|
591 | */
|
---|
592 | RTDECL(bool) RTErrVarsHaveChanged(PCRTERRVARS pVars);
|
---|
593 |
|
---|
594 | RT_C_DECLS_END
|
---|
595 |
|
---|
596 | /** @} */
|
---|
597 |
|
---|
598 | /** @name Status Code Ranges
|
---|
599 | * @{ */
|
---|
600 | /** The first status code in the primary IPRT range. */
|
---|
601 | #define RTERR_RANGE1_FIRST 0
|
---|
602 | /** The last status code in the primary IPRT range. */
|
---|
603 | #define RTERR_RANGE1_LAST 999
|
---|
604 |
|
---|
605 | /** The first status code in the secondary IPRT range. */
|
---|
606 | #define RTERR_RANGE2_FIRST 22000
|
---|
607 | /** The last status code in the secondary IPRT range. */
|
---|
608 | #define RTERR_RANGE2_LAST 32766
|
---|
609 |
|
---|
610 | /** The first status code in the user range. */
|
---|
611 | #define RTERR_USER_FIRST 1000
|
---|
612 | /** The last status code in the user range. */
|
---|
613 | #define RTERR_USER_LAST 21999
|
---|
614 | /** @} */
|
---|
615 |
|
---|
616 |
|
---|
617 | /* SED-START */
|
---|
618 |
|
---|
619 | /** @name Misc. Status Codes
|
---|
620 | * @{
|
---|
621 | */
|
---|
622 | /** Success. */
|
---|
623 | #define VINF_SUCCESS 0
|
---|
624 |
|
---|
625 | /** General failure - DON'T USE THIS!!! */
|
---|
626 | #define VERR_GENERAL_FAILURE (-1)
|
---|
627 | /** Invalid parameter. */
|
---|
628 | #define VERR_INVALID_PARAMETER (-2)
|
---|
629 | /** Invalid parameter. */
|
---|
630 | #define VWRN_INVALID_PARAMETER 2
|
---|
631 | /** Invalid magic or cookie. */
|
---|
632 | #define VERR_INVALID_MAGIC (-3)
|
---|
633 | /** Invalid magic or cookie. */
|
---|
634 | #define VWRN_INVALID_MAGIC 3
|
---|
635 | /** Invalid loader handle. */
|
---|
636 | #define VERR_INVALID_HANDLE (-4)
|
---|
637 | /** Invalid loader handle. */
|
---|
638 | #define VWRN_INVALID_HANDLE 4
|
---|
639 | /** Failed to lock the address range. */
|
---|
640 | #define VERR_LOCK_FAILED (-5)
|
---|
641 | /** Invalid memory pointer. */
|
---|
642 | #define VERR_INVALID_POINTER (-6)
|
---|
643 | /** Failed to patch the IDT. */
|
---|
644 | #define VERR_IDT_FAILED (-7)
|
---|
645 | /** Memory allocation failed. */
|
---|
646 | #define VERR_NO_MEMORY (-8)
|
---|
647 | /** Already loaded. */
|
---|
648 | #define VERR_ALREADY_LOADED (-9)
|
---|
649 | /** Permission denied. */
|
---|
650 | #define VERR_PERMISSION_DENIED (-10)
|
---|
651 | /** Permission denied. */
|
---|
652 | #define VINF_PERMISSION_DENIED 10
|
---|
653 | /** Version mismatch. */
|
---|
654 | #define VERR_VERSION_MISMATCH (-11)
|
---|
655 | /** The request function is not implemented. */
|
---|
656 | #define VERR_NOT_IMPLEMENTED (-12)
|
---|
657 |
|
---|
658 | /** Not equal. */
|
---|
659 | #define VERR_NOT_EQUAL (-18)
|
---|
660 | /** The specified path does not point at a symbolic link. */
|
---|
661 | #define VERR_NOT_SYMLINK (-19)
|
---|
662 | /** Failed to allocate temporary memory. */
|
---|
663 | #define VERR_NO_TMP_MEMORY (-20)
|
---|
664 | /** Invalid file mode mask (RTFMODE). */
|
---|
665 | #define VERR_INVALID_FMODE (-21)
|
---|
666 | /** Incorrect call order. */
|
---|
667 | #define VERR_WRONG_ORDER (-22)
|
---|
668 | /** There is no TLS (thread local storage) available for storing the current thread. */
|
---|
669 | #define VERR_NO_TLS_FOR_SELF (-23)
|
---|
670 | /** Failed to set the TLS (thread local storage) entry which points to our thread structure. */
|
---|
671 | #define VERR_FAILED_TO_SET_SELF_TLS (-24)
|
---|
672 | /** Not able to allocate contiguous memory. */
|
---|
673 | #define VERR_NO_CONT_MEMORY (-26)
|
---|
674 | /** No memory available for page table or page directory. */
|
---|
675 | #define VERR_NO_PAGE_MEMORY (-27)
|
---|
676 | /** Already initialized. */
|
---|
677 | #define VINF_ALREADY_INITIALIZED 28
|
---|
678 | /** The specified thread is dead. */
|
---|
679 | #define VERR_THREAD_IS_DEAD (-29)
|
---|
680 | /** The specified thread is not waitable. */
|
---|
681 | #define VERR_THREAD_NOT_WAITABLE (-30)
|
---|
682 | /** Pagetable not present. */
|
---|
683 | #define VERR_PAGE_TABLE_NOT_PRESENT (-31)
|
---|
684 | /** Invalid context.
|
---|
685 | * Typically an API was used by the wrong thread. */
|
---|
686 | #define VERR_INVALID_CONTEXT (-32)
|
---|
687 | /** The per process timer is busy. */
|
---|
688 | #define VERR_TIMER_BUSY (-33)
|
---|
689 | /** Address conflict. */
|
---|
690 | #define VERR_ADDRESS_CONFLICT (-34)
|
---|
691 | /** Unresolved (unknown) host platform error. */
|
---|
692 | #define VERR_UNRESOLVED_ERROR (-35)
|
---|
693 | /** Invalid function. */
|
---|
694 | #define VERR_INVALID_FUNCTION (-36)
|
---|
695 | /** Not supported. */
|
---|
696 | #define VERR_NOT_SUPPORTED (-37)
|
---|
697 | /** Not supported. */
|
---|
698 | #define VINF_NOT_SUPPORTED 37
|
---|
699 | /** Access denied. */
|
---|
700 | #define VERR_ACCESS_DENIED (-38)
|
---|
701 | /** Call interrupted. */
|
---|
702 | #define VERR_INTERRUPTED (-39)
|
---|
703 | /** Call interrupted. */
|
---|
704 | #define VINF_INTERRUPTED 39
|
---|
705 | /** Timeout. */
|
---|
706 | #define VERR_TIMEOUT (-40)
|
---|
707 | /** Timeout. */
|
---|
708 | #define VINF_TIMEOUT 40
|
---|
709 | /** Buffer too small to save result. */
|
---|
710 | #define VERR_BUFFER_OVERFLOW (-41)
|
---|
711 | /** Buffer too small to save result. */
|
---|
712 | #define VINF_BUFFER_OVERFLOW 41
|
---|
713 | /** Data size overflow. */
|
---|
714 | #define VERR_TOO_MUCH_DATA (-42)
|
---|
715 | /** Max threads number reached. */
|
---|
716 | #define VERR_MAX_THRDS_REACHED (-43)
|
---|
717 | /** Max process number reached. */
|
---|
718 | #define VERR_MAX_PROCS_REACHED (-44)
|
---|
719 | /** The recipient process has refused the signal. */
|
---|
720 | #define VERR_SIGNAL_REFUSED (-45)
|
---|
721 | /** A signal is already pending. */
|
---|
722 | #define VERR_SIGNAL_PENDING (-46)
|
---|
723 | /** The signal being posted is not correct. */
|
---|
724 | #define VERR_SIGNAL_INVALID (-47)
|
---|
725 | /** The state changed.
|
---|
726 | * This is a generic error message and needs a context to make sense. */
|
---|
727 | #define VERR_STATE_CHANGED (-48)
|
---|
728 | /** Warning, the state changed.
|
---|
729 | * This is a generic error message and needs a context to make sense. */
|
---|
730 | #define VWRN_STATE_CHANGED 48
|
---|
731 | /** Error while parsing UUID string */
|
---|
732 | #define VERR_INVALID_UUID_FORMAT (-49)
|
---|
733 | /** The specified process was not found. */
|
---|
734 | #define VERR_PROCESS_NOT_FOUND (-50)
|
---|
735 | /** The process specified to a non-block wait had not exited. */
|
---|
736 | #define VERR_PROCESS_RUNNING (-51)
|
---|
737 | /** Retry the operation. */
|
---|
738 | #define VERR_TRY_AGAIN (-52)
|
---|
739 | /** Retry the operation. */
|
---|
740 | #define VINF_TRY_AGAIN 52
|
---|
741 | /** Generic parse error. */
|
---|
742 | #define VERR_PARSE_ERROR (-53)
|
---|
743 | /** Value out of range. */
|
---|
744 | #define VERR_OUT_OF_RANGE (-54)
|
---|
745 | /** A numeric conversion encountered a value which was too big for the target. */
|
---|
746 | #define VERR_NUMBER_TOO_BIG (-55)
|
---|
747 | /** A numeric conversion encountered a value which was too big for the target. */
|
---|
748 | #define VWRN_NUMBER_TOO_BIG 55
|
---|
749 | /** The number begin converted (string) contained no digits. */
|
---|
750 | #define VERR_NO_DIGITS (-56)
|
---|
751 | /** The number begin converted (string) contained no digits. */
|
---|
752 | #define VWRN_NO_DIGITS 56
|
---|
753 | /** Encountered a '-' during conversion to an unsigned value. */
|
---|
754 | #define VERR_NEGATIVE_UNSIGNED (-57)
|
---|
755 | /** Encountered a '-' during conversion to an unsigned value. */
|
---|
756 | #define VWRN_NEGATIVE_UNSIGNED 57
|
---|
757 | /** Error while characters translation (unicode and so). */
|
---|
758 | #define VERR_NO_TRANSLATION (-58)
|
---|
759 | /** Error while characters translation (unicode and so). */
|
---|
760 | #define VWRN_NO_TRANSLATION 58
|
---|
761 | /** Encountered unicode code point which is reserved for use as endian indicator (0xffff or 0xfffe). */
|
---|
762 | #define VERR_CODE_POINT_ENDIAN_INDICATOR (-59)
|
---|
763 | /** Encountered unicode code point in the surrogate range (0xd800 to 0xdfff). */
|
---|
764 | #define VERR_CODE_POINT_SURROGATE (-60)
|
---|
765 | /** A string claiming to be UTF-8 is incorrectly encoded. */
|
---|
766 | #define VERR_INVALID_UTF8_ENCODING (-61)
|
---|
767 | /** Ad string claiming to be in UTF-16 is incorrectly encoded. */
|
---|
768 | #define VERR_INVALID_UTF16_ENCODING (-62)
|
---|
769 | /** Encountered a unicode code point which cannot be represented as UTF-16. */
|
---|
770 | #define VERR_CANT_RECODE_AS_UTF16 (-63)
|
---|
771 | /** Got an out of memory condition trying to allocate a string. */
|
---|
772 | #define VERR_NO_STR_MEMORY (-64)
|
---|
773 | /** Got an out of memory condition trying to allocate a UTF-16 (/UCS-2) string. */
|
---|
774 | #define VERR_NO_UTF16_MEMORY (-65)
|
---|
775 | /** Get an out of memory condition trying to allocate a code point array. */
|
---|
776 | #define VERR_NO_CODE_POINT_MEMORY (-66)
|
---|
777 | /** Can't free the memory because it's used in mapping. */
|
---|
778 | #define VERR_MEMORY_BUSY (-67)
|
---|
779 | /** The timer can't be started because it's already active. */
|
---|
780 | #define VERR_TIMER_ACTIVE (-68)
|
---|
781 | /** The timer can't be stopped because i's already suspended. */
|
---|
782 | #define VERR_TIMER_SUSPENDED (-69)
|
---|
783 | /** The operation was cancelled by the user (copy) or another thread (local ipc). */
|
---|
784 | #define VERR_CANCELLED (-70)
|
---|
785 | /** Failed to initialize a memory object.
|
---|
786 | * Exactly what this means is OS specific. */
|
---|
787 | #define VERR_MEMOBJ_INIT_FAILED (-71)
|
---|
788 | /** Out of memory condition when allocating memory with low physical backing. */
|
---|
789 | #define VERR_NO_LOW_MEMORY (-72)
|
---|
790 | /** Out of memory condition when allocating physical memory (without mapping). */
|
---|
791 | #define VERR_NO_PHYS_MEMORY (-73)
|
---|
792 | /** The address (virtual or physical) is too big. */
|
---|
793 | #define VERR_ADDRESS_TOO_BIG (-74)
|
---|
794 | /** Failed to map a memory object. */
|
---|
795 | #define VERR_MAP_FAILED (-75)
|
---|
796 | /** Trailing characters. */
|
---|
797 | #define VERR_TRAILING_CHARS (-76)
|
---|
798 | /** Trailing characters. */
|
---|
799 | #define VWRN_TRAILING_CHARS 76
|
---|
800 | /** Trailing spaces. */
|
---|
801 | #define VERR_TRAILING_SPACES (-77)
|
---|
802 | /** Trailing spaces. */
|
---|
803 | #define VWRN_TRAILING_SPACES 77
|
---|
804 | /** Generic not found error. */
|
---|
805 | #define VERR_NOT_FOUND (-78)
|
---|
806 | /** Generic not found warning. */
|
---|
807 | #define VWRN_NOT_FOUND 78
|
---|
808 | /** Generic invalid state error. */
|
---|
809 | #define VERR_INVALID_STATE (-79)
|
---|
810 | /** Generic invalid state warning. */
|
---|
811 | #define VWRN_INVALID_STATE 79
|
---|
812 | /** Generic out of resources error. */
|
---|
813 | #define VERR_OUT_OF_RESOURCES (-80)
|
---|
814 | /** Generic out of resources warning. */
|
---|
815 | #define VWRN_OUT_OF_RESOURCES 80
|
---|
816 | /** No more handles available, too many open handles. */
|
---|
817 | #define VERR_NO_MORE_HANDLES (-81)
|
---|
818 | /** Preemption is disabled.
|
---|
819 | * The requested operation can only be performed when preemption is enabled. */
|
---|
820 | #define VERR_PREEMPT_DISABLED (-82)
|
---|
821 | /** End of string. */
|
---|
822 | #define VERR_END_OF_STRING (-83)
|
---|
823 | /** End of string. */
|
---|
824 | #define VINF_END_OF_STRING 83
|
---|
825 | /** A page count is out of range. */
|
---|
826 | #define VERR_PAGE_COUNT_OUT_OF_RANGE (-84)
|
---|
827 | /** Generic object destroyed status. */
|
---|
828 | #define VERR_OBJECT_DESTROYED (-85)
|
---|
829 | /** Generic object was destroyed by the call status. */
|
---|
830 | #define VINF_OBJECT_DESTROYED 85
|
---|
831 | /** Generic dangling objects status. */
|
---|
832 | #define VERR_DANGLING_OBJECTS (-86)
|
---|
833 | /** Generic dangling objects status. */
|
---|
834 | #define VWRN_DANGLING_OBJECTS 86
|
---|
835 | /** Invalid Base64 encoding. */
|
---|
836 | #define VERR_INVALID_BASE64_ENCODING (-87)
|
---|
837 | /** Return instigated by a callback or similar. */
|
---|
838 | #define VERR_CALLBACK_RETURN (-88)
|
---|
839 | /** Return instigated by a callback or similar. */
|
---|
840 | #define VINF_CALLBACK_RETURN 88
|
---|
841 | /** Authentication failure. */
|
---|
842 | #define VERR_AUTHENTICATION_FAILURE (-89)
|
---|
843 | /** Not a power of two. */
|
---|
844 | #define VERR_NOT_POWER_OF_TWO (-90)
|
---|
845 | /** Status code, typically given as a parameter, that isn't supposed to be used. */
|
---|
846 | #define VERR_IGNORED (-91)
|
---|
847 | /** Concurrent access to the object is not allowed. */
|
---|
848 | #define VERR_CONCURRENT_ACCESS (-92)
|
---|
849 | /** The caller does not have a reference to the object.
|
---|
850 | * This status is used when two threads is caught sharing the same object
|
---|
851 | * reference. */
|
---|
852 | #define VERR_CALLER_NO_REFERENCE (-93)
|
---|
853 | /** Generic no change error. */
|
---|
854 | #define VERR_NO_CHANGE (-95)
|
---|
855 | /** Generic no change info. */
|
---|
856 | #define VINF_NO_CHANGE 95
|
---|
857 | /** Out of memory condition when allocating executable memory. */
|
---|
858 | #define VERR_NO_EXEC_MEMORY (-96)
|
---|
859 | /** The alignment is not supported. */
|
---|
860 | #define VERR_UNSUPPORTED_ALIGNMENT (-97)
|
---|
861 | /** The alignment is not really supported, however we got lucky with this
|
---|
862 | * allocation. */
|
---|
863 | #define VINF_UNSUPPORTED_ALIGNMENT 97
|
---|
864 | /** Duplicate something. */
|
---|
865 | #define VERR_DUPLICATE (-98)
|
---|
866 | /** Something is missing. */
|
---|
867 | #define VERR_MISSING (-99)
|
---|
868 | /** An unexpected (/unknown) exception was caught. */
|
---|
869 | #define VERR_UNEXPECTED_EXCEPTION (-22400)
|
---|
870 | /** Buffer underflow. */
|
---|
871 | #define VERR_BUFFER_UNDERFLOW (-22401)
|
---|
872 | /** Buffer underflow. */
|
---|
873 | #define VINF_BUFFER_UNDERFLOW 22401
|
---|
874 | /** Uneven input. */
|
---|
875 | #define VERR_UNEVEN_INPUT (-22402)
|
---|
876 | /** Something is not available or not working properly. */
|
---|
877 | #define VERR_NOT_AVAILABLE (-22403)
|
---|
878 | /** @} */
|
---|
879 |
|
---|
880 |
|
---|
881 | /** @name Common File/Disk/Pipe/etc Status Codes
|
---|
882 | * @{
|
---|
883 | */
|
---|
884 | /** Unresolved (unknown) file i/o error. */
|
---|
885 | #define VERR_FILE_IO_ERROR (-100)
|
---|
886 | /** File/Device open failed. */
|
---|
887 | #define VERR_OPEN_FAILED (-101)
|
---|
888 | /** File not found. */
|
---|
889 | #define VERR_FILE_NOT_FOUND (-102)
|
---|
890 | /** Path not found. */
|
---|
891 | #define VERR_PATH_NOT_FOUND (-103)
|
---|
892 | /** Invalid (malformed) file/path name. */
|
---|
893 | #define VERR_INVALID_NAME (-104)
|
---|
894 | /** The object in question already exists. */
|
---|
895 | #define VERR_ALREADY_EXISTS (-105)
|
---|
896 | /** The object in question already exists. */
|
---|
897 | #define VWRN_ALREADY_EXISTS 105
|
---|
898 | /** Too many open files. */
|
---|
899 | #define VERR_TOO_MANY_OPEN_FILES (-106)
|
---|
900 | /** Seek error. */
|
---|
901 | #define VERR_SEEK (-107)
|
---|
902 | /** Seek below file start. */
|
---|
903 | #define VERR_NEGATIVE_SEEK (-108)
|
---|
904 | /** Trying to seek on device. */
|
---|
905 | #define VERR_SEEK_ON_DEVICE (-109)
|
---|
906 | /** Reached the end of the file. */
|
---|
907 | #define VERR_EOF (-110)
|
---|
908 | /** Reached the end of the file. */
|
---|
909 | #define VINF_EOF 110
|
---|
910 | /** Generic file read error. */
|
---|
911 | #define VERR_READ_ERROR (-111)
|
---|
912 | /** Generic file write error. */
|
---|
913 | #define VERR_WRITE_ERROR (-112)
|
---|
914 | /** Write protect error. */
|
---|
915 | #define VERR_WRITE_PROTECT (-113)
|
---|
916 | /** Sharing violation, file is being used by another process. */
|
---|
917 | #define VERR_SHARING_VIOLATION (-114)
|
---|
918 | /** Unable to lock a region of a file. */
|
---|
919 | #define VERR_FILE_LOCK_FAILED (-115)
|
---|
920 | /** File access error, another process has locked a portion of the file. */
|
---|
921 | #define VERR_FILE_LOCK_VIOLATION (-116)
|
---|
922 | /** File or directory can't be created. */
|
---|
923 | #define VERR_CANT_CREATE (-117)
|
---|
924 | /** Directory can't be deleted. */
|
---|
925 | #define VERR_CANT_DELETE_DIRECTORY (-118)
|
---|
926 | /** Can't move file to another disk. */
|
---|
927 | #define VERR_NOT_SAME_DEVICE (-119)
|
---|
928 | /** The filename or extension is too long. */
|
---|
929 | #define VERR_FILENAME_TOO_LONG (-120)
|
---|
930 | /** Media not present in drive. */
|
---|
931 | #define VERR_MEDIA_NOT_PRESENT (-121)
|
---|
932 | /** The type of media was not recognized. Not formatted? */
|
---|
933 | #define VERR_MEDIA_NOT_RECOGNIZED (-122)
|
---|
934 | /** Can't unlock - region was not locked. */
|
---|
935 | #define VERR_FILE_NOT_LOCKED (-123)
|
---|
936 | /** Unrecoverable error: lock was lost. */
|
---|
937 | #define VERR_FILE_LOCK_LOST (-124)
|
---|
938 | /** Can't delete directory with files. */
|
---|
939 | #define VERR_DIR_NOT_EMPTY (-125)
|
---|
940 | /** A directory operation was attempted on a non-directory object. */
|
---|
941 | #define VERR_NOT_A_DIRECTORY (-126)
|
---|
942 | /** A non-directory operation was attempted on a directory object. */
|
---|
943 | #define VERR_IS_A_DIRECTORY (-127)
|
---|
944 | /** Tried to grow a file beyond the limit imposed by the process or the filesystem. */
|
---|
945 | #define VERR_FILE_TOO_BIG (-128)
|
---|
946 | /** No pending request the aio context has to wait for completion. */
|
---|
947 | #define VERR_FILE_AIO_NO_REQUEST (-129)
|
---|
948 | /** The request could not be canceled or prepared for another transfer
|
---|
949 | * because it is still in progress. */
|
---|
950 | #define VERR_FILE_AIO_IN_PROGRESS (-130)
|
---|
951 | /** The request could not be canceled because it already completed. */
|
---|
952 | #define VERR_FILE_AIO_COMPLETED (-131)
|
---|
953 | /** The I/O context couldn't be destroyed because there are still pending requests. */
|
---|
954 | #define VERR_FILE_AIO_BUSY (-132)
|
---|
955 | /** The requests couldn't be submitted because that would exceed the capacity of the context. */
|
---|
956 | #define VERR_FILE_AIO_LIMIT_EXCEEDED (-133)
|
---|
957 | /** The request was canceled. */
|
---|
958 | #define VERR_FILE_AIO_CANCELED (-134)
|
---|
959 | /** The request wasn't submitted so it can't be canceled. */
|
---|
960 | #define VERR_FILE_AIO_NOT_SUBMITTED (-135)
|
---|
961 | /** A request was not prepared and thus could not be submitted. */
|
---|
962 | #define VERR_FILE_AIO_NOT_PREPARED (-136)
|
---|
963 | /** Not all requests could be submitted due to resource shortage. */
|
---|
964 | #define VERR_FILE_AIO_INSUFFICIENT_RESSOURCES (-137)
|
---|
965 | /** Device or resource is busy. */
|
---|
966 | #define VERR_RESOURCE_BUSY (-138)
|
---|
967 | /** A file operation was attempted on a non-file object. */
|
---|
968 | #define VERR_NOT_A_FILE (-139)
|
---|
969 | /** A non-file operation was attempted on a file object. */
|
---|
970 | #define VERR_IS_A_FILE (-140)
|
---|
971 | /** Unexpected filesystem object type. */
|
---|
972 | #define VERR_UNEXPECTED_FS_OBJ_TYPE (-141)
|
---|
973 | /** A path does not start with a root specification. */
|
---|
974 | #define VERR_PATH_DOES_NOT_START_WITH_ROOT (-142)
|
---|
975 | /** A path is relative, expected an absolute path. */
|
---|
976 | #define VERR_PATH_IS_RELATIVE (-143)
|
---|
977 | /** A path is not relative (start with root), expected an relative path. */
|
---|
978 | #define VERR_PATH_IS_NOT_RELATIVE (-144)
|
---|
979 | /** @} */
|
---|
980 |
|
---|
981 |
|
---|
982 | /** @name Generic Filesystem I/O Status Codes
|
---|
983 | * @{
|
---|
984 | */
|
---|
985 | /** Unresolved (unknown) disk i/o error. */
|
---|
986 | #define VERR_DISK_IO_ERROR (-150)
|
---|
987 | /** Invalid drive number. */
|
---|
988 | #define VERR_INVALID_DRIVE (-151)
|
---|
989 | /** Disk is full. */
|
---|
990 | #define VERR_DISK_FULL (-152)
|
---|
991 | /** Disk was changed. */
|
---|
992 | #define VERR_DISK_CHANGE (-153)
|
---|
993 | /** Drive is locked. */
|
---|
994 | #define VERR_DRIVE_LOCKED (-154)
|
---|
995 | /** The specified disk or diskette cannot be accessed. */
|
---|
996 | #define VERR_DISK_INVALID_FORMAT (-155)
|
---|
997 | /** Too many symbolic links. */
|
---|
998 | #define VERR_TOO_MANY_SYMLINKS (-156)
|
---|
999 | /** The OS does not support setting the time stamps on a symbolic link. */
|
---|
1000 | #define VERR_NS_SYMLINK_SET_TIME (-157)
|
---|
1001 | /** The OS does not support changing the owner of a symbolic link. */
|
---|
1002 | #define VERR_NS_SYMLINK_CHANGE_OWNER (-158)
|
---|
1003 | /** @} */
|
---|
1004 |
|
---|
1005 |
|
---|
1006 | /** @name Generic Directory Enumeration Status Codes
|
---|
1007 | * @{
|
---|
1008 | */
|
---|
1009 | /** Unresolved (unknown) search error. */
|
---|
1010 | #define VERR_SEARCH_ERROR (-200)
|
---|
1011 | /** No more files found. */
|
---|
1012 | #define VERR_NO_MORE_FILES (-201)
|
---|
1013 | /** No more search handles available. */
|
---|
1014 | #define VERR_NO_MORE_SEARCH_HANDLES (-202)
|
---|
1015 | /** RTDirReadEx() failed to retrieve the extra data which was requested. */
|
---|
1016 | #define VWRN_NO_DIRENT_INFO 203
|
---|
1017 | /** @} */
|
---|
1018 |
|
---|
1019 |
|
---|
1020 | /** @name Internal Processing Errors
|
---|
1021 | * @{
|
---|
1022 | */
|
---|
1023 | /** Internal error - this should never happen. */
|
---|
1024 | #define VERR_INTERNAL_ERROR (-225)
|
---|
1025 | /** Internal error no. 2. */
|
---|
1026 | #define VERR_INTERNAL_ERROR_2 (-226)
|
---|
1027 | /** Internal error no. 3. */
|
---|
1028 | #define VERR_INTERNAL_ERROR_3 (-227)
|
---|
1029 | /** Internal error no. 4. */
|
---|
1030 | #define VERR_INTERNAL_ERROR_4 (-228)
|
---|
1031 | /** Internal error no. 5. */
|
---|
1032 | #define VERR_INTERNAL_ERROR_5 (-229)
|
---|
1033 | /** Internal error: Unexpected status code. */
|
---|
1034 | #define VERR_IPE_UNEXPECTED_STATUS (-230)
|
---|
1035 | /** Internal error: Unexpected status code. */
|
---|
1036 | #define VERR_IPE_UNEXPECTED_INFO_STATUS (-231)
|
---|
1037 | /** Internal error: Unexpected status code. */
|
---|
1038 | #define VERR_IPE_UNEXPECTED_ERROR_STATUS (-232)
|
---|
1039 | /** Internal error: Uninitialized status code.
|
---|
1040 | * @remarks This is used by value elsewhere. */
|
---|
1041 | #define VERR_IPE_UNINITIALIZED_STATUS (-233)
|
---|
1042 | /** Internal error: Supposedly unreachable default case in a switch. */
|
---|
1043 | #define VERR_IPE_NOT_REACHED_DEFAULT_CASE (-234)
|
---|
1044 | /** @} */
|
---|
1045 |
|
---|
1046 |
|
---|
1047 | /** @name Generic Device I/O Status Codes
|
---|
1048 | * @{
|
---|
1049 | */
|
---|
1050 | /** Unresolved (unknown) device i/o error. */
|
---|
1051 | #define VERR_DEV_IO_ERROR (-250)
|
---|
1052 | /** Device i/o: Bad unit. */
|
---|
1053 | #define VERR_IO_BAD_UNIT (-251)
|
---|
1054 | /** Device i/o: Not ready. */
|
---|
1055 | #define VERR_IO_NOT_READY (-252)
|
---|
1056 | /** Device i/o: Bad command. */
|
---|
1057 | #define VERR_IO_BAD_COMMAND (-253)
|
---|
1058 | /** Device i/o: CRC error. */
|
---|
1059 | #define VERR_IO_CRC (-254)
|
---|
1060 | /** Device i/o: Bad length. */
|
---|
1061 | #define VERR_IO_BAD_LENGTH (-255)
|
---|
1062 | /** Device i/o: Sector not found. */
|
---|
1063 | #define VERR_IO_SECTOR_NOT_FOUND (-256)
|
---|
1064 | /** Device i/o: General failure. */
|
---|
1065 | #define VERR_IO_GEN_FAILURE (-257)
|
---|
1066 | /** @} */
|
---|
1067 |
|
---|
1068 |
|
---|
1069 | /** @name Generic Pipe I/O Status Codes
|
---|
1070 | * @{
|
---|
1071 | */
|
---|
1072 | /** Unresolved (unknown) pipe i/o error. */
|
---|
1073 | #define VERR_PIPE_IO_ERROR (-300)
|
---|
1074 | /** Broken pipe. */
|
---|
1075 | #define VERR_BROKEN_PIPE (-301)
|
---|
1076 | /** Bad pipe. */
|
---|
1077 | #define VERR_BAD_PIPE (-302)
|
---|
1078 | /** Pipe is busy. */
|
---|
1079 | #define VERR_PIPE_BUSY (-303)
|
---|
1080 | /** No data in pipe. */
|
---|
1081 | #define VERR_NO_DATA (-304)
|
---|
1082 | /** Pipe is not connected. */
|
---|
1083 | #define VERR_PIPE_NOT_CONNECTED (-305)
|
---|
1084 | /** More data available in pipe. */
|
---|
1085 | #define VERR_MORE_DATA (-306)
|
---|
1086 | /** Expected read pipe, got a write pipe instead. */
|
---|
1087 | #define VERR_PIPE_NOT_READ (-307)
|
---|
1088 | /** Expected write pipe, got a read pipe instead. */
|
---|
1089 | #define VERR_PIPE_NOT_WRITE (-308)
|
---|
1090 | /** @} */
|
---|
1091 |
|
---|
1092 |
|
---|
1093 | /** @name Generic Semaphores Status Codes
|
---|
1094 | * @{
|
---|
1095 | */
|
---|
1096 | /** Unresolved (unknown) semaphore error. */
|
---|
1097 | #define VERR_SEM_ERROR (-350)
|
---|
1098 | /** Too many semaphores. */
|
---|
1099 | #define VERR_TOO_MANY_SEMAPHORES (-351)
|
---|
1100 | /** Exclusive semaphore is owned by another process. */
|
---|
1101 | #define VERR_EXCL_SEM_ALREADY_OWNED (-352)
|
---|
1102 | /** The semaphore is set and cannot be closed. */
|
---|
1103 | #define VERR_SEM_IS_SET (-353)
|
---|
1104 | /** The semaphore cannot be set again. */
|
---|
1105 | #define VERR_TOO_MANY_SEM_REQUESTS (-354)
|
---|
1106 | /** Attempt to release mutex not owned by caller. */
|
---|
1107 | #define VERR_NOT_OWNER (-355)
|
---|
1108 | /** The semaphore has been opened too many times. */
|
---|
1109 | #define VERR_TOO_MANY_OPENS (-356)
|
---|
1110 | /** The maximum posts for the event semaphore has been reached. */
|
---|
1111 | #define VERR_TOO_MANY_POSTS (-357)
|
---|
1112 | /** The event semaphore has already been posted. */
|
---|
1113 | #define VERR_ALREADY_POSTED (-358)
|
---|
1114 | /** The event semaphore has already been reset. */
|
---|
1115 | #define VERR_ALREADY_RESET (-359)
|
---|
1116 | /** The semaphore is in use. */
|
---|
1117 | #define VERR_SEM_BUSY (-360)
|
---|
1118 | /** The previous ownership of this semaphore has ended. */
|
---|
1119 | #define VERR_SEM_OWNER_DIED (-361)
|
---|
1120 | /** Failed to open semaphore by name - not found. */
|
---|
1121 | #define VERR_SEM_NOT_FOUND (-362)
|
---|
1122 | /** Semaphore destroyed while waiting. */
|
---|
1123 | #define VERR_SEM_DESTROYED (-363)
|
---|
1124 | /** Nested ownership requests are not permitted for this semaphore type. */
|
---|
1125 | #define VERR_SEM_NESTED (-364)
|
---|
1126 | /** The release call only release a semaphore nesting, i.e. the caller is still
|
---|
1127 | * holding the semaphore. */
|
---|
1128 | #define VINF_SEM_NESTED (364)
|
---|
1129 | /** Deadlock detected. */
|
---|
1130 | #define VERR_DEADLOCK (-365)
|
---|
1131 | /** Ping-Pong listen or speak out of turn error. */
|
---|
1132 | #define VERR_SEM_OUT_OF_TURN (-366)
|
---|
1133 | /** Tried to take a semaphore in a bad context. */
|
---|
1134 | #define VERR_SEM_BAD_CONTEXT (-367)
|
---|
1135 | /** Don't spin for the semaphore, but it is safe to try grab it. */
|
---|
1136 | #define VINF_SEM_BAD_CONTEXT (367)
|
---|
1137 | /** Wrong locking order detected. */
|
---|
1138 | #define VERR_SEM_LV_WRONG_ORDER (-368)
|
---|
1139 | /** Wrong release order detected. */
|
---|
1140 | #define VERR_SEM_LV_WRONG_RELEASE_ORDER (-369)
|
---|
1141 | /** Attempt to recursively enter a non-recurisve lock. */
|
---|
1142 | #define VERR_SEM_LV_NESTED (-370)
|
---|
1143 | /** Invalid parameters passed to the lock validator. */
|
---|
1144 | #define VERR_SEM_LV_INVALID_PARAMETER (-371)
|
---|
1145 | /** The lock validator detected a deadlock. */
|
---|
1146 | #define VERR_SEM_LV_DEADLOCK (-372)
|
---|
1147 | /** The lock validator detected an existing deadlock.
|
---|
1148 | * The deadlock was not caused by the current operation, but existed already. */
|
---|
1149 | #define VERR_SEM_LV_EXISTING_DEADLOCK (-373)
|
---|
1150 | /** Not the lock owner according our records. */
|
---|
1151 | #define VERR_SEM_LV_NOT_OWNER (-374)
|
---|
1152 | /** An illegal lock upgrade was attempted. */
|
---|
1153 | #define VERR_SEM_LV_ILLEGAL_UPGRADE (-375)
|
---|
1154 | /** The thread is not a valid signaller of the event. */
|
---|
1155 | #define VERR_SEM_LV_NOT_SIGNALLER (-376)
|
---|
1156 | /** Internal error in the lock validator or related components. */
|
---|
1157 | #define VERR_SEM_LV_INTERNAL_ERROR (-377)
|
---|
1158 | /** @} */
|
---|
1159 |
|
---|
1160 |
|
---|
1161 | /** @name Generic Network I/O Status Codes
|
---|
1162 | * @{
|
---|
1163 | */
|
---|
1164 | /** Unresolved (unknown) network error. */
|
---|
1165 | #define VERR_NET_IO_ERROR (-400)
|
---|
1166 | /** The network is busy or is out of resources. */
|
---|
1167 | #define VERR_NET_OUT_OF_RESOURCES (-401)
|
---|
1168 | /** Net host name not found. */
|
---|
1169 | #define VERR_NET_HOST_NOT_FOUND (-402)
|
---|
1170 | /** Network path not found. */
|
---|
1171 | #define VERR_NET_PATH_NOT_FOUND (-403)
|
---|
1172 | /** General network printing error. */
|
---|
1173 | #define VERR_NET_PRINT_ERROR (-404)
|
---|
1174 | /** The machine is not on the network. */
|
---|
1175 | #define VERR_NET_NO_NETWORK (-405)
|
---|
1176 | /** Name is not unique on the network. */
|
---|
1177 | #define VERR_NET_NOT_UNIQUE_NAME (-406)
|
---|
1178 |
|
---|
1179 | /* These are BSD networking error codes - numbers correspond, don't mess! */
|
---|
1180 | /** Operation in progress. */
|
---|
1181 | #define VERR_NET_IN_PROGRESS (-436)
|
---|
1182 | /** Operation already in progress. */
|
---|
1183 | #define VERR_NET_ALREADY_IN_PROGRESS (-437)
|
---|
1184 | /** Attempted socket operation with a non-socket handle.
|
---|
1185 | * (This includes closed handles.) */
|
---|
1186 | #define VERR_NET_NOT_SOCKET (-438)
|
---|
1187 | /** Destination address required. */
|
---|
1188 | #define VERR_NET_DEST_ADDRESS_REQUIRED (-439)
|
---|
1189 | /** Message too long. */
|
---|
1190 | #define VERR_NET_MSG_SIZE (-440)
|
---|
1191 | /** Protocol wrong type for socket. */
|
---|
1192 | #define VERR_NET_PROTOCOL_TYPE (-441)
|
---|
1193 | /** Protocol not available. */
|
---|
1194 | #define VERR_NET_PROTOCOL_NOT_AVAILABLE (-442)
|
---|
1195 | /** Protocol not supported. */
|
---|
1196 | #define VERR_NET_PROTOCOL_NOT_SUPPORTED (-443)
|
---|
1197 | /** Socket type not supported. */
|
---|
1198 | #define VERR_NET_SOCKET_TYPE_NOT_SUPPORTED (-444)
|
---|
1199 | /** Operation not supported. */
|
---|
1200 | #define VERR_NET_OPERATION_NOT_SUPPORTED (-445)
|
---|
1201 | /** Protocol family not supported. */
|
---|
1202 | #define VERR_NET_PROTOCOL_FAMILY_NOT_SUPPORTED (-446)
|
---|
1203 | /** Address family not supported by protocol family. */
|
---|
1204 | #define VERR_NET_ADDRESS_FAMILY_NOT_SUPPORTED (-447)
|
---|
1205 | /** Address already in use. */
|
---|
1206 | #define VERR_NET_ADDRESS_IN_USE (-448)
|
---|
1207 | /** Can't assign requested address. */
|
---|
1208 | #define VERR_NET_ADDRESS_NOT_AVAILABLE (-449)
|
---|
1209 | /** Network is down. */
|
---|
1210 | #define VERR_NET_DOWN (-450)
|
---|
1211 | /** Network is unreachable. */
|
---|
1212 | #define VERR_NET_UNREACHABLE (-451)
|
---|
1213 | /** Network dropped connection on reset. */
|
---|
1214 | #define VERR_NET_CONNECTION_RESET (-452)
|
---|
1215 | /** Software caused connection abort. */
|
---|
1216 | #define VERR_NET_CONNECTION_ABORTED (-453)
|
---|
1217 | /** Connection reset by peer. */
|
---|
1218 | #define VERR_NET_CONNECTION_RESET_BY_PEER (-454)
|
---|
1219 | /** No buffer space available. */
|
---|
1220 | #define VERR_NET_NO_BUFFER_SPACE (-455)
|
---|
1221 | /** Socket is already connected. */
|
---|
1222 | #define VERR_NET_ALREADY_CONNECTED (-456)
|
---|
1223 | /** Socket is not connected. */
|
---|
1224 | #define VERR_NET_NOT_CONNECTED (-457)
|
---|
1225 | /** Can't send after socket shutdown. */
|
---|
1226 | #define VERR_NET_SHUTDOWN (-458)
|
---|
1227 | /** Too many references: can't splice. */
|
---|
1228 | #define VERR_NET_TOO_MANY_REFERENCES (-459)
|
---|
1229 | /** Too many references: can't splice. */
|
---|
1230 | #define VERR_NET_CONNECTION_TIMED_OUT (-460)
|
---|
1231 | /** Connection refused. */
|
---|
1232 | #define VERR_NET_CONNECTION_REFUSED (-461)
|
---|
1233 | /* ELOOP is not net. */
|
---|
1234 | /* ENAMETOOLONG is not net. */
|
---|
1235 | /** Host is down. */
|
---|
1236 | #define VERR_NET_HOST_DOWN (-464)
|
---|
1237 | /** No route to host. */
|
---|
1238 | #define VERR_NET_HOST_UNREACHABLE (-465)
|
---|
1239 | /** Protocol error. */
|
---|
1240 | #define VERR_NET_PROTOCOL_ERROR (-466)
|
---|
1241 | /** Incomplete packet was submitted by guest. */
|
---|
1242 | #define VERR_NET_INCOMPLETE_TX_PACKET (-467)
|
---|
1243 | /** @} */
|
---|
1244 |
|
---|
1245 |
|
---|
1246 | /** @name TCP Status Codes
|
---|
1247 | * @{
|
---|
1248 | */
|
---|
1249 | /** Stop the TCP server. */
|
---|
1250 | #define VERR_TCP_SERVER_STOP (-500)
|
---|
1251 | /** The server was stopped. */
|
---|
1252 | #define VINF_TCP_SERVER_STOP 500
|
---|
1253 | /** The TCP server was shut down using RTTcpServerShutdown. */
|
---|
1254 | #define VERR_TCP_SERVER_SHUTDOWN (-501)
|
---|
1255 | /** The TCP server was destroyed. */
|
---|
1256 | #define VERR_TCP_SERVER_DESTROYED (-502)
|
---|
1257 | /** The TCP server has no client associated with it. */
|
---|
1258 | #define VINF_TCP_SERVER_NO_CLIENT 503
|
---|
1259 | /** @} */
|
---|
1260 |
|
---|
1261 |
|
---|
1262 | /** @name UDP Status Codes
|
---|
1263 | * @{
|
---|
1264 | */
|
---|
1265 | /** Stop the UDP server. */
|
---|
1266 | #define VERR_UDP_SERVER_STOP (-520)
|
---|
1267 | /** The server was stopped. */
|
---|
1268 | #define VINF_UDP_SERVER_STOP 520
|
---|
1269 | /** The UDP server was shut down using RTUdpServerShutdown. */
|
---|
1270 | #define VERR_UDP_SERVER_SHUTDOWN (-521)
|
---|
1271 | /** The UDP server was destroyed. */
|
---|
1272 | #define VERR_UDP_SERVER_DESTROYED (-522)
|
---|
1273 | /** The UDP server has no client associated with it. */
|
---|
1274 | #define VINF_UDP_SERVER_NO_CLIENT 523
|
---|
1275 | /** @} */
|
---|
1276 |
|
---|
1277 |
|
---|
1278 | /** @name L4 Specific Status Codes
|
---|
1279 | * @{
|
---|
1280 | */
|
---|
1281 | /** Invalid offset in an L4 dataspace */
|
---|
1282 | #define VERR_L4_INVALID_DS_OFFSET (-550)
|
---|
1283 | /** IPC error */
|
---|
1284 | #define VERR_IPC (-551)
|
---|
1285 | /** Item already used */
|
---|
1286 | #define VERR_RESOURCE_IN_USE (-552)
|
---|
1287 | /** Source/destination not found */
|
---|
1288 | #define VERR_IPC_PROCESS_NOT_FOUND (-553)
|
---|
1289 | /** Receive timeout */
|
---|
1290 | #define VERR_IPC_RECEIVE_TIMEOUT (-554)
|
---|
1291 | /** Send timeout */
|
---|
1292 | #define VERR_IPC_SEND_TIMEOUT (-555)
|
---|
1293 | /** Receive cancelled */
|
---|
1294 | #define VERR_IPC_RECEIVE_CANCELLED (-556)
|
---|
1295 | /** Send cancelled */
|
---|
1296 | #define VERR_IPC_SEND_CANCELLED (-557)
|
---|
1297 | /** Receive aborted */
|
---|
1298 | #define VERR_IPC_RECEIVE_ABORTED (-558)
|
---|
1299 | /** Send aborted */
|
---|
1300 | #define VERR_IPC_SEND_ABORTED (-559)
|
---|
1301 | /** Couldn't map pages during receive */
|
---|
1302 | #define VERR_IPC_RECEIVE_MAP_FAILED (-560)
|
---|
1303 | /** Couldn't map pages during send */
|
---|
1304 | #define VERR_IPC_SEND_MAP_FAILED (-561)
|
---|
1305 | /** Send pagefault timeout in receive */
|
---|
1306 | #define VERR_IPC_RECEIVE_SEND_PF_TIMEOUT (-562)
|
---|
1307 | /** Send pagefault timeout in send */
|
---|
1308 | #define VERR_IPC_SEND_SEND_PF_TIMEOUT (-563)
|
---|
1309 | /** (One) receive buffer was too small, or too few buffers */
|
---|
1310 | #define VINF_IPC_RECEIVE_MSG_CUT 564
|
---|
1311 | /** (One) send buffer was too small, or too few buffers */
|
---|
1312 | #define VINF_IPC_SEND_MSG_CUT 565
|
---|
1313 | /** Dataspace manager server not found */
|
---|
1314 | #define VERR_L4_DS_MANAGER_NOT_FOUND (-566)
|
---|
1315 | /** @} */
|
---|
1316 |
|
---|
1317 |
|
---|
1318 | /** @name Loader Status Codes.
|
---|
1319 | * @{
|
---|
1320 | */
|
---|
1321 | /** Invalid executable signature. */
|
---|
1322 | #define VERR_INVALID_EXE_SIGNATURE (-600)
|
---|
1323 | /** The iprt loader recognized a ELF image, but doesn't support loading it. */
|
---|
1324 | #define VERR_ELF_EXE_NOT_SUPPORTED (-601)
|
---|
1325 | /** The iprt loader recognized a PE image, but doesn't support loading it. */
|
---|
1326 | #define VERR_PE_EXE_NOT_SUPPORTED (-602)
|
---|
1327 | /** The iprt loader recognized a LX image, but doesn't support loading it. */
|
---|
1328 | #define VERR_LX_EXE_NOT_SUPPORTED (-603)
|
---|
1329 | /** The iprt loader recognized a LE image, but doesn't support loading it. */
|
---|
1330 | #define VERR_LE_EXE_NOT_SUPPORTED (-604)
|
---|
1331 | /** The iprt loader recognized a NE image, but doesn't support loading it. */
|
---|
1332 | #define VERR_NE_EXE_NOT_SUPPORTED (-605)
|
---|
1333 | /** The iprt loader recognized a MZ image, but doesn't support loading it. */
|
---|
1334 | #define VERR_MZ_EXE_NOT_SUPPORTED (-606)
|
---|
1335 | /** The iprt loader recognized an a.out image, but doesn't support loading it. */
|
---|
1336 | #define VERR_AOUT_EXE_NOT_SUPPORTED (-607)
|
---|
1337 | /** Bad executable. */
|
---|
1338 | #define VERR_BAD_EXE_FORMAT (-608)
|
---|
1339 | /** Symbol (export) not found. */
|
---|
1340 | #define VERR_SYMBOL_NOT_FOUND (-609)
|
---|
1341 | /** Module not found. */
|
---|
1342 | #define VERR_MODULE_NOT_FOUND (-610)
|
---|
1343 | /** The loader resolved an external symbol to an address to big for the image format. */
|
---|
1344 | #define VERR_SYMBOL_VALUE_TOO_BIG (-611)
|
---|
1345 | /** The image is too big. */
|
---|
1346 | #define VERR_IMAGE_TOO_BIG (-612)
|
---|
1347 | /** The image base address is to high for this image type. */
|
---|
1348 | #define VERR_IMAGE_BASE_TOO_HIGH (-614)
|
---|
1349 | /** Mismatching architecture. */
|
---|
1350 | #define VERR_LDR_ARCH_MISMATCH (-615)
|
---|
1351 | /** Mismatch between IPRT and native loader. */
|
---|
1352 | #define VERR_LDR_MISMATCH_NATIVE (-616)
|
---|
1353 | /** Failed to resolve an imported (external) symbol. */
|
---|
1354 | #define VERR_LDR_IMPORTED_SYMBOL_NOT_FOUND (-617)
|
---|
1355 | /** Generic loader failure. */
|
---|
1356 | #define VERR_LDR_GENERAL_FAILURE (-618)
|
---|
1357 | /** Code signing error. */
|
---|
1358 | #define VERR_LDR_IMAGE_HASH (-619)
|
---|
1359 | /** The PE loader encountered delayed imports, a feature which hasn't been implemented yet. */
|
---|
1360 | #define VERR_LDRPE_DELAY_IMPORT (-620)
|
---|
1361 | /** The PE loader encountered a malformed certificate. */
|
---|
1362 | #define VERR_LDRPE_CERT_MALFORMED (-621)
|
---|
1363 | /** The PE loader encountered a certificate with an unsupported type or structure revision. */
|
---|
1364 | #define VERR_LDRPE_CERT_UNSUPPORTED (-622)
|
---|
1365 | /** The PE loader doesn't know how to deal with the global pointer data directory entry yet. */
|
---|
1366 | #define VERR_LDRPE_GLOBALPTR (-623)
|
---|
1367 | /** The PE loader doesn't support the TLS data directory yet. */
|
---|
1368 | #define VERR_LDRPE_TLS (-624)
|
---|
1369 | /** The PE loader doesn't grok the COM descriptor data directory entry. */
|
---|
1370 | #define VERR_LDRPE_COM_DESCRIPTOR (-625)
|
---|
1371 | /** The PE loader encountered an unknown load config directory/header size. */
|
---|
1372 | #define VERR_LDRPE_LOAD_CONFIG_SIZE (-626)
|
---|
1373 | /** The PE loader encountered a lock prefix table, a feature which hasn't been implemented yet. */
|
---|
1374 | #define VERR_LDRPE_LOCK_PREFIX_TABLE (-627)
|
---|
1375 | /** The ELF loader doesn't handle foreign endianness. */
|
---|
1376 | #define VERR_LDRELF_ODD_ENDIAN (-630)
|
---|
1377 | /** The ELF image is 'dynamic', the ELF loader can only deal with 'relocatable' images at present. */
|
---|
1378 | #define VERR_LDRELF_DYN (-631)
|
---|
1379 | /** The ELF image is 'executable', the ELF loader can only deal with 'relocatable' images at present. */
|
---|
1380 | #define VERR_LDRELF_EXEC (-632)
|
---|
1381 | /** The ELF image was created for an unsupported target machine type. */
|
---|
1382 | #define VERR_LDRELF_MACHINE (-633)
|
---|
1383 | /** The ELF version is not supported. */
|
---|
1384 | #define VERR_LDRELF_VERSION (-634)
|
---|
1385 | /** The ELF loader cannot handle multiple SYMTAB sections. */
|
---|
1386 | #define VERR_LDRELF_MULTIPLE_SYMTABS (-635)
|
---|
1387 | /** The ELF loader encountered a relocation type which is not implemented. */
|
---|
1388 | #define VERR_LDRELF_RELOCATION_NOT_SUPPORTED (-636)
|
---|
1389 | /** The ELF loader encountered a bad symbol index. */
|
---|
1390 | #define VERR_LDRELF_INVALID_SYMBOL_INDEX (-637)
|
---|
1391 | /** The ELF loader encountered an invalid symbol name offset. */
|
---|
1392 | #define VERR_LDRELF_INVALID_SYMBOL_NAME_OFFSET (-638)
|
---|
1393 | /** The ELF loader encountered an invalid relocation offset. */
|
---|
1394 | #define VERR_LDRELF_INVALID_RELOCATION_OFFSET (-639)
|
---|
1395 | /** The ELF loader didn't find the symbol/string table for the image. */
|
---|
1396 | #define VERR_LDRELF_NO_SYMBOL_OR_NO_STRING_TABS (-640)
|
---|
1397 | /** Invalid link address. */
|
---|
1398 | #define VERR_LDR_INVALID_LINK_ADDRESS (-647)
|
---|
1399 | /** Invalid image relative virtual address. */
|
---|
1400 | #define VERR_LDR_INVALID_RVA (-648)
|
---|
1401 | /** Invalid segment:offset address. */
|
---|
1402 | #define VERR_LDR_INVALID_SEG_OFFSET (-649)
|
---|
1403 | /** @}*/
|
---|
1404 |
|
---|
1405 | /** @name Debug Info Reader Status Codes.
|
---|
1406 | * @{
|
---|
1407 | */
|
---|
1408 | /** The module contains no line number information. */
|
---|
1409 | #define VERR_DBG_NO_LINE_NUMBERS (-650)
|
---|
1410 | /** The module contains no symbol information. */
|
---|
1411 | #define VERR_DBG_NO_SYMBOLS (-651)
|
---|
1412 | /** The specified segment:offset address was invalid. Typically an attempt at
|
---|
1413 | * addressing outside the segment boundary. */
|
---|
1414 | #define VERR_DBG_INVALID_ADDRESS (-652)
|
---|
1415 | /** Invalid segment index. */
|
---|
1416 | #define VERR_DBG_INVALID_SEGMENT_INDEX (-653)
|
---|
1417 | /** Invalid segment offset. */
|
---|
1418 | #define VERR_DBG_INVALID_SEGMENT_OFFSET (-654)
|
---|
1419 | /** Invalid image relative virtual address. */
|
---|
1420 | #define VERR_DBG_INVALID_RVA (-655)
|
---|
1421 | /** Invalid image relative virtual address. */
|
---|
1422 | #define VERR_DBG_SPECIAL_SEGMENT (-656)
|
---|
1423 | /** Address conflict within a module/segment.
|
---|
1424 | * Attempted to add a segment, symbol or line number that fully or partially
|
---|
1425 | * overlaps with an existing one. */
|
---|
1426 | #define VERR_DBG_ADDRESS_CONFLICT (-657)
|
---|
1427 | /** Duplicate symbol within the module.
|
---|
1428 | * Attempted to add a symbol which name already exists within the module. */
|
---|
1429 | #define VERR_DBG_DUPLICATE_SYMBOL (-658)
|
---|
1430 | /** The segment index specified when adding a new segment is already in use. */
|
---|
1431 | #define VERR_DBG_SEGMENT_INDEX_CONFLICT (-659)
|
---|
1432 | /** No line number was found for the specified address/ordinal/whatever. */
|
---|
1433 | #define VERR_DBG_LINE_NOT_FOUND (-660)
|
---|
1434 | /** The length of the symbol name is out of range.
|
---|
1435 | * This means it is an empty string or that it's greater or equal to
|
---|
1436 | * RTDBG_SYMBOL_NAME_LENGTH. */
|
---|
1437 | #define VERR_DBG_SYMBOL_NAME_OUT_OF_RANGE (-661)
|
---|
1438 | /** The length of the file name is out of range.
|
---|
1439 | * This means it is an empty string or that it's greater or equal to
|
---|
1440 | * RTDBG_FILE_NAME_LENGTH. */
|
---|
1441 | #define VERR_DBG_FILE_NAME_OUT_OF_RANGE (-662)
|
---|
1442 | /** The length of the segment name is out of range.
|
---|
1443 | * This means it is an empty string or that it is greater or equal to
|
---|
1444 | * RTDBG_SEGMENT_NAME_LENGTH. */
|
---|
1445 | #define VERR_DBG_SEGMENT_NAME_OUT_OF_RANGE (-663)
|
---|
1446 | /** The specified address range wraps around. */
|
---|
1447 | #define VERR_DBG_ADDRESS_WRAP (-664)
|
---|
1448 | /** The file is not a valid NM map file. */
|
---|
1449 | #define VERR_DBG_NOT_NM_MAP_FILE (-665)
|
---|
1450 | /** The file is not a valid /proc/kallsyms file. */
|
---|
1451 | #define VERR_DBG_NOT_LINUX_KALLSYMS (-666)
|
---|
1452 | /** No debug module interpreter matching the debug info. */
|
---|
1453 | #define VERR_DBG_NO_MATCHING_INTERPRETER (-667)
|
---|
1454 | /** Bad DWARF line number header. */
|
---|
1455 | #define VERR_DWARF_BAD_LINE_NUMBER_HEADER (-668)
|
---|
1456 | /** Unexpected end of DWARF unit. */
|
---|
1457 | #define VERR_DWARF_UNEXPECTED_END (-669)
|
---|
1458 | /** DWARF LEB value overflows the decoder type. */
|
---|
1459 | #define VERR_DWARF_LEB_OVERFLOW (-670)
|
---|
1460 | /** Bad DWARF extended line number opcode. */
|
---|
1461 | #define VERR_DWARF_BAD_LNE (-671)
|
---|
1462 | /** Bad DWARF string. */
|
---|
1463 | #define VERR_DWARF_BAD_STRING (-672)
|
---|
1464 | /** Bad DWARF position. */
|
---|
1465 | #define VERR_DWARF_BAD_POS (-673)
|
---|
1466 | /** Bad DWARF info. */
|
---|
1467 | #define VERR_DWARF_BAD_INFO (-674)
|
---|
1468 | /** Bad DWARF abbreviation data. */
|
---|
1469 | #define VERR_DWARF_BAD_ABBREV (-675)
|
---|
1470 | /** A DWARF abbreviation was not found. */
|
---|
1471 | #define VERR_DWARF_ABBREV_NOT_FOUND (-676)
|
---|
1472 | /** Encountered an unknown attribute form. */
|
---|
1473 | #define VERR_DWARF_UNKNOWN_FORM (-677)
|
---|
1474 | /** Encountered an unexpected attribute form. */
|
---|
1475 | #define VERR_DWARF_UNEXPECTED_FORM (-678)
|
---|
1476 | /** @} */
|
---|
1477 |
|
---|
1478 | /** @name Request Packet Status Codes.
|
---|
1479 | * @{
|
---|
1480 | */
|
---|
1481 | /** Invalid RT request type.
|
---|
1482 | * For the RTReqAlloc() case, the caller just specified an illegal enmType. For
|
---|
1483 | * all the other occurrences it means indicates corruption, broken logic, or stupid
|
---|
1484 | * interface user. */
|
---|
1485 | #define VERR_RT_REQUEST_INVALID_TYPE (-700)
|
---|
1486 | /** Invalid RT request state.
|
---|
1487 | * The state of the request packet was not the expected and accepted one(s). Either
|
---|
1488 | * the interface user screwed up, or we've got corruption/broken logic. */
|
---|
1489 | #define VERR_RT_REQUEST_STATE (-701)
|
---|
1490 | /** Invalid RT request packet.
|
---|
1491 | * One or more of the RT controlled packet members didn't contain the correct
|
---|
1492 | * values. Some thing's broken. */
|
---|
1493 | #define VERR_RT_REQUEST_INVALID_PACKAGE (-702)
|
---|
1494 | /** The status field has not been updated yet as the request is still
|
---|
1495 | * pending completion. Someone queried the iStatus field before the request
|
---|
1496 | * has been fully processed. */
|
---|
1497 | #define VERR_RT_REQUEST_STATUS_STILL_PENDING (-703)
|
---|
1498 | /** The request has been freed, don't read the status now.
|
---|
1499 | * Someone is reading the iStatus field of a freed request packet. */
|
---|
1500 | #define VERR_RT_REQUEST_STATUS_FREED (-704)
|
---|
1501 | /** @} */
|
---|
1502 |
|
---|
1503 | /** @name Environment Status Code
|
---|
1504 | * @{
|
---|
1505 | */
|
---|
1506 | /** The specified environment variable was not found. (RTEnvGetEx) */
|
---|
1507 | #define VERR_ENV_VAR_NOT_FOUND (-750)
|
---|
1508 | /** The specified environment variable was not found. (RTEnvUnsetEx) */
|
---|
1509 | #define VINF_ENV_VAR_NOT_FOUND (750)
|
---|
1510 | /** Unable to translate all the variables in the default environment due to
|
---|
1511 | * codeset issues (LANG / LC_ALL / LC_CTYPE). */
|
---|
1512 | #define VWRN_ENV_NOT_FULLY_TRANSLATED (751)
|
---|
1513 | /** @} */
|
---|
1514 |
|
---|
1515 | /** @name Multiprocessor Status Codes.
|
---|
1516 | * @{
|
---|
1517 | */
|
---|
1518 | /** The specified cpu is offline. */
|
---|
1519 | #define VERR_CPU_OFFLINE (-800)
|
---|
1520 | /** The specified cpu was not found. */
|
---|
1521 | #define VERR_CPU_NOT_FOUND (-801)
|
---|
1522 | /** @} */
|
---|
1523 |
|
---|
1524 | /** @name RTGetOpt status codes
|
---|
1525 | * @{ */
|
---|
1526 | /** RTGetOpt: Command line option not recognized. */
|
---|
1527 | #define VERR_GETOPT_UNKNOWN_OPTION (-825)
|
---|
1528 | /** RTGetOpt: Command line option needs argument. */
|
---|
1529 | #define VERR_GETOPT_REQUIRED_ARGUMENT_MISSING (-826)
|
---|
1530 | /** RTGetOpt: Command line option has argument with bad format. */
|
---|
1531 | #define VERR_GETOPT_INVALID_ARGUMENT_FORMAT (-827)
|
---|
1532 | /** RTGetOpt: Not an option. */
|
---|
1533 | #define VINF_GETOPT_NOT_OPTION 828
|
---|
1534 | /** RTGetOpt: Command line option needs an index. */
|
---|
1535 | #define VERR_GETOPT_INDEX_MISSING (-829)
|
---|
1536 | /** @} */
|
---|
1537 |
|
---|
1538 | /** @name RTCache status codes
|
---|
1539 | * @{ */
|
---|
1540 | /** RTCache: cache is full. */
|
---|
1541 | #define VERR_CACHE_FULL (-850)
|
---|
1542 | /** RTCache: cache is empty. */
|
---|
1543 | #define VERR_CACHE_EMPTY (-851)
|
---|
1544 | /** @} */
|
---|
1545 |
|
---|
1546 | /** @name RTMemCache status codes
|
---|
1547 | * @{ */
|
---|
1548 | /** Reached the max cache size. */
|
---|
1549 | #define VERR_MEM_CACHE_MAX_SIZE (-855)
|
---|
1550 | /** @} */
|
---|
1551 |
|
---|
1552 | /** @name RTS3 status codes
|
---|
1553 | * @{ */
|
---|
1554 | /** Access denied error. */
|
---|
1555 | #define VERR_S3_ACCESS_DENIED (-875)
|
---|
1556 | /** The bucket/key wasn't found. */
|
---|
1557 | #define VERR_S3_NOT_FOUND (-876)
|
---|
1558 | /** Bucket already exists. */
|
---|
1559 | #define VERR_S3_BUCKET_ALREADY_EXISTS (-877)
|
---|
1560 | /** Can't delete bucket with keys. */
|
---|
1561 | #define VERR_S3_BUCKET_NOT_EMPTY (-878)
|
---|
1562 | /** The current operation was canceled. */
|
---|
1563 | #define VERR_S3_CANCELED (-879)
|
---|
1564 | /** @} */
|
---|
1565 |
|
---|
1566 | /** @name RTManifest status codes
|
---|
1567 | * @{ */
|
---|
1568 | /** A digest type used in the manifest file isn't supported. */
|
---|
1569 | #define VERR_MANIFEST_UNSUPPORTED_DIGEST_TYPE (-900)
|
---|
1570 | /** An entry in the manifest file couldn't be interpreted correctly. */
|
---|
1571 | #define VERR_MANIFEST_WRONG_FILE_FORMAT (-901)
|
---|
1572 | /** A digest doesn't match the corresponding file. */
|
---|
1573 | #define VERR_MANIFEST_DIGEST_MISMATCH (-902)
|
---|
1574 | /** The file list doesn't match to the content of the manifest file. */
|
---|
1575 | #define VERR_MANIFEST_FILE_MISMATCH (-903)
|
---|
1576 | /** The specified attribute (name) was not found in the manifest. */
|
---|
1577 | #define VERR_MANIFEST_ATTR_NOT_FOUND (-904)
|
---|
1578 | /** The attribute type did not match. */
|
---|
1579 | #define VERR_MANIFEST_ATTR_TYPE_MISMATCH (-905)
|
---|
1580 | /** No attribute of the specified types was found. */
|
---|
1581 | #define VERR_MANIFEST_ATTR_TYPE_NOT_FOUND (-906)
|
---|
1582 | /** @} */
|
---|
1583 |
|
---|
1584 | /** @name RTTar status codes
|
---|
1585 | * @{ */
|
---|
1586 | /** The checksum of a tar header record doesn't match. */
|
---|
1587 | #define VERR_TAR_CHKSUM_MISMATCH (-925)
|
---|
1588 | /** The tar end of file record was read. */
|
---|
1589 | #define VERR_TAR_END_OF_FILE (-926)
|
---|
1590 | /** The tar file ended unexpectedly. */
|
---|
1591 | #define VERR_TAR_UNEXPECTED_EOS (-927)
|
---|
1592 | /** The tar termination records was encountered without reaching the end of
|
---|
1593 | * the input stream. */
|
---|
1594 | #define VERR_TAR_EOS_MORE_INPUT (-928)
|
---|
1595 | /** A number tar header field was malformed. */
|
---|
1596 | #define VERR_TAR_BAD_NUM_FIELD (-929)
|
---|
1597 | /** A numeric tar header field was not terminated correctly. */
|
---|
1598 | #define VERR_TAR_BAD_NUM_FIELD_TERM (-930)
|
---|
1599 | /** A number tar header field was encoded using base-256 which this
|
---|
1600 | * tar implementation currently does not support. */
|
---|
1601 | #define VERR_TAR_BASE_256_NOT_SUPPORTED (-931)
|
---|
1602 | /** A number tar header field yielded a value too large for the internal
|
---|
1603 | * variable of the tar interpreter. */
|
---|
1604 | #define VERR_TAR_NUM_VALUE_TOO_LARGE (-932)
|
---|
1605 | /** The combined minor and major device number type is too small to hold the
|
---|
1606 | * value stored in the tar header. */
|
---|
1607 | #define VERR_TAR_DEV_VALUE_TOO_LARGE (-933)
|
---|
1608 | /** The mode field in a tar header is bad. */
|
---|
1609 | #define VERR_TAR_BAD_MODE_FIELD (-934)
|
---|
1610 | /** The mode field should not include the type. */
|
---|
1611 | #define VERR_TAR_MODE_WITH_TYPE (-935)
|
---|
1612 | /** The size field should be zero for links and symlinks. */
|
---|
1613 | #define VERR_TAR_SIZE_NOT_ZERO (-936)
|
---|
1614 | /** Encountered an unknown type flag. */
|
---|
1615 | #define VERR_TAR_UNKNOWN_TYPE_FLAG (-937)
|
---|
1616 | /** The tar header is all zeros. */
|
---|
1617 | #define VERR_TAR_ZERO_HEADER (-938)
|
---|
1618 | /** Not a uniform standard tape v0.0 archive header. */
|
---|
1619 | #define VERR_TAR_NOT_USTAR_V00 (-939)
|
---|
1620 | /** The name is empty. */
|
---|
1621 | #define VERR_TAR_EMPTY_NAME (-940)
|
---|
1622 | /** A non-directory entry has a name ending with a slash. */
|
---|
1623 | #define VERR_TAR_NON_DIR_ENDS_WITH_SLASH (-941)
|
---|
1624 | /** Encountered an unsupported portable archive exchange (pax) header. */
|
---|
1625 | #define VERR_TAR_UNSUPPORTED_PAX_TYPE (-942)
|
---|
1626 | /** Encountered an unsupported Solaris Tar extension. */
|
---|
1627 | #define VERR_TAR_UNSUPPORTED_SOLARIS_HDR_TYPE (-943)
|
---|
1628 | /** Encountered an unsupported GNU Tar extension. */
|
---|
1629 | #define VERR_TAR_UNSUPPORTED_GNU_HDR_TYPE (-944)
|
---|
1630 | /** Malformed checksum field in the tar header. */
|
---|
1631 | #define VERR_TAR_BAD_CHKSUM_FIELD (-945)
|
---|
1632 | /** Malformed checksum field in the tar header. */
|
---|
1633 | #define VERR_TAR_MALFORMED_GNU_LONGXXXX (-946)
|
---|
1634 | /** Too long name or link string. */
|
---|
1635 | #define VERR_TAR_NAME_TOO_LONG (-947)
|
---|
1636 | /** @} */
|
---|
1637 |
|
---|
1638 | /** @name RTPoll status codes
|
---|
1639 | * @{ */
|
---|
1640 | /** The handle is not pollable. */
|
---|
1641 | #define VERR_POLL_HANDLE_NOT_POLLABLE (-950)
|
---|
1642 | /** The handle ID is already present in the poll set. */
|
---|
1643 | #define VERR_POLL_HANDLE_ID_EXISTS (-951)
|
---|
1644 | /** The handle ID was not found in the set. */
|
---|
1645 | #define VERR_POLL_HANDLE_ID_NOT_FOUND (-952)
|
---|
1646 | /** The poll set is full. */
|
---|
1647 | #define VERR_POLL_SET_IS_FULL (-953)
|
---|
1648 | /** @} */
|
---|
1649 |
|
---|
1650 | /** @name RTZip status codes
|
---|
1651 | * @{ */
|
---|
1652 | /** Generic zip error. */
|
---|
1653 | #define VERR_ZIP_ERROR (-22000)
|
---|
1654 | /** The compressed data was corrupted. */
|
---|
1655 | #define VERR_ZIP_CORRUPTED (-22001)
|
---|
1656 | /** Ran out of memory while compressing or uncompressing. */
|
---|
1657 | #define VERR_ZIP_NO_MEMORY (-22002)
|
---|
1658 | /** The compression format version is unsupported. */
|
---|
1659 | #define VERR_ZIP_UNSUPPORTED_VERSION (-22003)
|
---|
1660 | /** The compression method is unsupported. */
|
---|
1661 | #define VERR_ZIP_UNSUPPORTED_METHOD (-22004)
|
---|
1662 | /** The compressed data started with a bad header. */
|
---|
1663 | #define VERR_ZIP_BAD_HEADER (-22005)
|
---|
1664 | /** @} */
|
---|
1665 |
|
---|
1666 | /** @name RTVfs status codes
|
---|
1667 | * @{ */
|
---|
1668 | /** The VFS chain specification does not have a valid prefix. */
|
---|
1669 | #define VERR_VFS_CHAIN_NO_PREFIX (-22100)
|
---|
1670 | /** The VFS chain specification is empty. */
|
---|
1671 | #define VERR_VFS_CHAIN_EMPTY (-22101)
|
---|
1672 | /** Expected an element. */
|
---|
1673 | #define VERR_VFS_CHAIN_EXPECTED_ELEMENT (-22102)
|
---|
1674 | /** The VFS object type is not known. */
|
---|
1675 | #define VERR_VFS_CHAIN_UNKNOWN_TYPE (-22103)
|
---|
1676 | /** Expected a left paranthese. */
|
---|
1677 | #define VERR_VFS_CHAIN_EXPECTED_LEFT_PARENTHESES (-22104)
|
---|
1678 | /** Expected a right paranthese. */
|
---|
1679 | #define VERR_VFS_CHAIN_EXPECTED_RIGHT_PARENTHESES (-22105)
|
---|
1680 | /** Expected a provider name. */
|
---|
1681 | #define VERR_VFS_CHAIN_EXPECTED_PROVIDER_NAME (-22106)
|
---|
1682 | /** Expected an action (> or |). */
|
---|
1683 | #define VERR_VFS_CHAIN_EXPECTED_ACTION (-22107)
|
---|
1684 | /** Only one action element is currently supported. */
|
---|
1685 | #define VERR_VFS_CHAIN_MULTIPLE_ACTIONS (-22108)
|
---|
1686 | /** Expected to find a driving action (>), but there is none. */
|
---|
1687 | #define VERR_VFS_CHAIN_NO_ACTION (-22109)
|
---|
1688 | /** Expected pipe action. */
|
---|
1689 | #define VERR_VFS_CHAIN_EXPECTED_PIPE (-22110)
|
---|
1690 | /** Unexpected action type. */
|
---|
1691 | #define VERR_VFS_CHAIN_UNEXPECTED_ACTION_TYPE (-22111)
|
---|
1692 | /** @} */
|
---|
1693 |
|
---|
1694 | /** @name RTDvm status codes
|
---|
1695 | * @{ */
|
---|
1696 | /** The volume map doesn't contain any valid volume. */
|
---|
1697 | #define VERR_DVM_MAP_EMPTY (-22200)
|
---|
1698 | /** There is no volume behind the current one. */
|
---|
1699 | #define VERR_DVM_MAP_NO_VOLUME (-22201)
|
---|
1700 | /** @} */
|
---|
1701 |
|
---|
1702 | /** @name Logger status codes
|
---|
1703 | * @{ */
|
---|
1704 | /** The internal logger revision did not match. */
|
---|
1705 | #define VERR_LOG_REVISION_MISMATCH (-22300)
|
---|
1706 | /** @} */
|
---|
1707 |
|
---|
1708 | /* see above, 22400..22499 is used for misc codes! */
|
---|
1709 |
|
---|
1710 | /** @name Logger status codes
|
---|
1711 | * @{ */
|
---|
1712 | /** Power off is not supported by the hardware or the OS. */
|
---|
1713 | #define VERR_SYS_CANNOT_POWER_OFF (-22500)
|
---|
1714 | /** The halt action was requested, but the OS may actually power
|
---|
1715 | * off the machine. */
|
---|
1716 | #define VINF_SYS_MAY_POWER_OFF (22501)
|
---|
1717 | /** Shutdown failed. */
|
---|
1718 | #define VERR_SYS_SHUTDOWN_FAILED (-22502)
|
---|
1719 | /** @} */
|
---|
1720 |
|
---|
1721 | /** @name Filesystem status codes
|
---|
1722 | * @{ */
|
---|
1723 | /** Filesystem can't be opened because it is corrupt. */
|
---|
1724 | #define VERR_FILESYSTEM_CORRUPT (-22600)
|
---|
1725 | /** @} */
|
---|
1726 |
|
---|
1727 |
|
---|
1728 | /* SED-END */
|
---|
1729 |
|
---|
1730 | /** @} */
|
---|
1731 |
|
---|
1732 | #endif
|
---|
1733 |
|
---|