VirtualBox

source: vbox/trunk/include/iprt/err.h@ 73886

Last change on this file since 73886 was 73769, checked in by vboxsync, 6 years ago

iprt/err.h: Fix duplicate value for different status code

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 142.0 KB
Line 
1/** @file
2 * IPRT - Status Codes.
3 */
4
5/*
6 * Copyright (C) 2006-2017 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 * @{
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 */
57class RTErrStrictType
58{
59protected:
60 int32_t m_rc;
61
62public:
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
107private:
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, predicting unlikely.
165 *
166 * We don't expect in normal cases, that is the code path depending on this
167 * check is normally NOT taken. To prevent any prediction use RT_FAILURE_NP
168 * instead.
169 *
170 * @returns true if rc indicates failure.
171 * @returns false if rc indicates success.
172 *
173 * @param rc The iprt status code to test.
174 *
175 * @remarks Please structure your code to use the RT_SUCCESS() macro instead of
176 * RT_FAILURE() where possible, as that gives us a better shot at good
177 * code with the windows compilers.
178 */
179#define RT_FAILURE(rc) ( RT_UNLIKELY(!RT_SUCCESS_NP(rc)) )
180
181/** @def RT_FAILURE_NP
182 * Check for failure, no prediction.
183 *
184 * @returns true if rc indicates failure.
185 * @returns false if rc indicates success.
186 *
187 * @param rc The iprt status code to test.
188 */
189#define RT_FAILURE_NP(rc) ( !RT_SUCCESS_NP(rc) )
190
191RT_C_DECLS_BEGIN
192
193/**
194 * Converts a Darwin HRESULT error to an iprt status code.
195 *
196 * @returns iprt status code.
197 * @param iNativeCode HRESULT error code.
198 * @remark Darwin ring-3 only.
199 */
200RTDECL(int) RTErrConvertFromDarwinCOM(int32_t iNativeCode);
201
202/**
203 * Converts a Darwin IOReturn error to an iprt status code.
204 *
205 * @returns iprt status code.
206 * @param iNativeCode IOReturn error code.
207 * @remark Darwin only.
208 */
209RTDECL(int) RTErrConvertFromDarwinIO(int iNativeCode);
210
211/**
212 * Converts a Darwin kern_return_t error to an iprt status code.
213 *
214 * @returns iprt status code.
215 * @param iNativeCode kern_return_t error code.
216 * @remark Darwin only.
217 */
218RTDECL(int) RTErrConvertFromDarwinKern(int iNativeCode);
219
220/**
221 * Converts a Darwin error to an iprt status code.
222 *
223 * This will consult RTErrConvertFromDarwinKern, RTErrConvertFromDarwinIO
224 * and RTErrConvertFromDarwinCOM in this order. The latter is ring-3 only as it
225 * doesn't apply elsewhere.
226 *
227 * @returns iprt status code.
228 * @param iNativeCode Darwin error code.
229 * @remarks Darwin only.
230 * @remarks This is recommended over RTErrConvertFromDarwinKern and RTErrConvertFromDarwinIO
231 * since these are really just subsets of the same error space.
232 */
233RTDECL(int) RTErrConvertFromDarwin(int iNativeCode);
234
235/**
236 * Converts errno to iprt status code.
237 *
238 * @returns iprt status code.
239 * @param uNativeCode errno code.
240 */
241RTDECL(int) RTErrConvertFromErrno(unsigned uNativeCode);
242
243/**
244 * Converts a L4 errno to a iprt status code.
245 *
246 * @returns iprt status code.
247 * @param uNativeCode l4 errno.
248 * @remark L4 only.
249 */
250RTDECL(int) RTErrConvertFromL4Errno(unsigned uNativeCode);
251
252/**
253 * Converts NT status code to iprt status code.
254 *
255 * Needless to say, this is only available on NT and winXX targets.
256 *
257 * @returns iprt status code.
258 * @param lNativeCode NT status code.
259 * @remark Windows only.
260 */
261RTDECL(int) RTErrConvertFromNtStatus(long lNativeCode);
262
263/**
264 * Converts OS/2 error code to iprt status code.
265 *
266 * @returns iprt status code.
267 * @param uNativeCode OS/2 error code.
268 * @remark OS/2 only.
269 */
270RTDECL(int) RTErrConvertFromOS2(unsigned uNativeCode);
271
272/**
273 * Converts Win32 error code to iprt status code.
274 *
275 * @returns iprt status code.
276 * @param uNativeCode Win32 error code.
277 * @remark Windows only.
278 */
279RTDECL(int) RTErrConvertFromWin32(unsigned uNativeCode);
280
281/**
282 * Converts an iprt status code to a errno status code.
283 *
284 * @returns errno status code.
285 * @param iErr iprt status code.
286 */
287RTDECL(int) RTErrConvertToErrno(int iErr);
288
289#ifdef IN_RING3
290
291/**
292 * iprt status code message.
293 */
294typedef struct RTSTATUSMSG
295{
296 /** Pointer to the short message string. */
297 const char *pszMsgShort;
298 /** Pointer to the full message string. */
299 const char *pszMsgFull;
300 /** Pointer to the define string. */
301 const char *pszDefine;
302 /** Status code number. */
303 int iCode;
304} RTSTATUSMSG;
305/** Pointer to iprt status code message. */
306typedef RTSTATUSMSG *PRTSTATUSMSG;
307/** Pointer to const iprt status code message. */
308typedef const RTSTATUSMSG *PCRTSTATUSMSG;
309
310/**
311 * Get the message structure corresponding to a given iprt status code.
312 *
313 * @returns Pointer to read-only message description.
314 * @param rc The status code.
315 */
316RTDECL(PCRTSTATUSMSG) RTErrGet(int rc);
317
318/**
319 * Get the define corresponding to a given iprt status code.
320 *
321 * @returns Pointer to read-only string with the \#define identifier.
322 * @param rc The status code.
323 */
324#define RTErrGetDefine(rc) (RTErrGet(rc)->pszDefine)
325
326/**
327 * Get the short description corresponding to a given iprt status code.
328 *
329 * @returns Pointer to read-only string with the description.
330 * @param rc The status code.
331 */
332#define RTErrGetShort(rc) (RTErrGet(rc)->pszMsgShort)
333
334/**
335 * Get the full description corresponding to a given iprt status code.
336 *
337 * @returns Pointer to read-only string with the description.
338 * @param rc The status code.
339 */
340#define RTErrGetFull(rc) (RTErrGet(rc)->pszMsgFull)
341
342#ifdef RT_OS_WINDOWS
343/**
344 * Windows error code message.
345 */
346typedef struct RTWINERRMSG
347{
348 /** Pointer to the full message string. */
349 const char *pszMsgFull;
350 /** Pointer to the define string. */
351 const char *pszDefine;
352 /** Error code number. */
353 long iCode;
354} RTWINERRMSG;
355/** Pointer to Windows error code message. */
356typedef RTWINERRMSG *PRTWINERRMSG;
357/** Pointer to const Windows error code message. */
358typedef const RTWINERRMSG *PCRTWINERRMSG;
359
360/**
361 * Get the message structure corresponding to a given Windows error code.
362 *
363 * @returns Pointer to read-only message description.
364 * @param rc The status code.
365 */
366RTDECL(PCRTWINERRMSG) RTErrWinGet(long rc);
367
368/** On windows COM errors are part of the Windows error database. */
369typedef RTWINERRMSG RTCOMERRMSG;
370
371#else /* !RT_OS_WINDOWS */
372
373/**
374 * COM/XPCOM error code message.
375 */
376typedef struct RTCOMERRMSG
377{
378 /** Pointer to the full message string. */
379 const char *pszMsgFull;
380 /** Pointer to the define string. */
381 const char *pszDefine;
382 /** Error code number. */
383 uint32_t iCode;
384} RTCOMERRMSG;
385#endif /* !RT_OS_WINDOWS */
386/** Pointer to a XPCOM/COM error code message. */
387typedef RTCOMERRMSG *PRTCOMERRMSG;
388/** Pointer to const a XPCOM/COM error code message. */
389typedef const RTCOMERRMSG *PCRTCOMERRMSG;
390
391/**
392 * Get the message structure corresponding to a given COM/XPCOM error code.
393 *
394 * @returns Pointer to read-only message description.
395 * @param rc The status code.
396 */
397RTDECL(PCRTCOMERRMSG) RTErrCOMGet(uint32_t rc);
398
399#endif /* IN_RING3 */
400
401/** @defgroup RTERRINFO_FLAGS_XXX RTERRINFO::fFlags
402 * @{ */
403/** Custom structure (the default). */
404#define RTERRINFO_FLAGS_T_CUSTOM UINT32_C(0)
405/** Static structure (RTERRINFOSTATIC). */
406#define RTERRINFO_FLAGS_T_STATIC UINT32_C(1)
407/** Allocated structure (RTErrInfoAlloc). */
408#define RTERRINFO_FLAGS_T_ALLOC UINT32_C(2)
409/** Reserved type. */
410#define RTERRINFO_FLAGS_T_RESERVED UINT32_C(3)
411/** Type mask. */
412#define RTERRINFO_FLAGS_T_MASK UINT32_C(3)
413/** Error info is set. */
414#define RTERRINFO_FLAGS_SET RT_BIT_32(2)
415/** Fixed flags (magic). */
416#define RTERRINFO_FLAGS_MAGIC UINT32_C(0xbabe0000)
417/** The bit mask for the magic value. */
418#define RTERRINFO_FLAGS_MAGIC_MASK UINT32_C(0xffff0000)
419/** @} */
420
421/**
422 * Initializes an error info structure.
423 *
424 * @returns @a pErrInfo.
425 * @param pErrInfo The error info structure to init.
426 * @param pszMsg The message buffer. Must be at least one byte.
427 * @param cbMsg The size of the message buffer.
428 */
429DECLINLINE(PRTERRINFO) RTErrInfoInit(PRTERRINFO pErrInfo, char *pszMsg, size_t cbMsg)
430{
431 *pszMsg = '\0';
432
433 pErrInfo->fFlags = RTERRINFO_FLAGS_T_CUSTOM | RTERRINFO_FLAGS_MAGIC;
434 pErrInfo->rc = /*VINF_SUCCESS*/ 0;
435 pErrInfo->pszMsg = pszMsg;
436 pErrInfo->cbMsg = cbMsg;
437 pErrInfo->apvReserved[0] = NULL;
438 pErrInfo->apvReserved[1] = NULL;
439
440 return pErrInfo;
441}
442
443/**
444 * Initialize a static error info structure.
445 *
446 * @returns Pointer to the core error info structure.
447 * @param pStaticErrInfo The static error info structure to init.
448 */
449DECLINLINE(PRTERRINFO) RTErrInfoInitStatic(PRTERRINFOSTATIC pStaticErrInfo)
450{
451 RTErrInfoInit(&pStaticErrInfo->Core, pStaticErrInfo->szMsg, sizeof(pStaticErrInfo->szMsg));
452 pStaticErrInfo->Core.fFlags = RTERRINFO_FLAGS_T_STATIC | RTERRINFO_FLAGS_MAGIC;
453 return &pStaticErrInfo->Core;
454}
455
456/**
457 * Allocates a error info structure with a buffer at least the given size.
458 *
459 * @returns Pointer to an error info structure on success, NULL on failure.
460 *
461 * @param cbMsg The minimum message buffer size. Use 0 to get
462 * the default buffer size.
463 */
464RTDECL(PRTERRINFO) RTErrInfoAlloc(size_t cbMsg);
465
466/**
467 * Same as RTErrInfoAlloc, except that an IPRT status code is returned.
468 *
469 * @returns IPRT status code.
470 *
471 * @param cbMsg The minimum message buffer size. Use 0 to get
472 * the default buffer size.
473 * @param ppErrInfo Where to store the pointer to the allocated
474 * error info structure on success. This is
475 * always set to NULL.
476 */
477RTDECL(int) RTErrInfoAllocEx(size_t cbMsg, PRTERRINFO *ppErrInfo);
478
479/**
480 * Frees an error info structure allocated by RTErrInfoAlloc or
481 * RTErrInfoAllocEx.
482 *
483 * @param pErrInfo The error info structure.
484 */
485RTDECL(void) RTErrInfoFree(PRTERRINFO pErrInfo);
486
487/**
488 * Fills in the error info details.
489 *
490 * @returns @a rc.
491 *
492 * @param pErrInfo The error info structure to fill in.
493 * @param rc The status code to return.
494 * @param pszMsg The error message string.
495 */
496RTDECL(int) RTErrInfoSet(PRTERRINFO pErrInfo, int rc, const char *pszMsg);
497
498/**
499 * Fills in the error info details, with a sprintf style message.
500 *
501 * @returns @a rc.
502 *
503 * @param pErrInfo The error info structure to fill in.
504 * @param rc The status code to return.
505 * @param pszFormat The format string.
506 * @param ... The format arguments.
507 */
508RTDECL(int) RTErrInfoSetF(PRTERRINFO pErrInfo, int rc, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(3, 4);
509
510/**
511 * Fills in the error info details, with a vsprintf style message.
512 *
513 * @returns @a rc.
514 *
515 * @param pErrInfo The error info structure to fill in.
516 * @param rc The status code to return.
517 * @param pszFormat The format string.
518 * @param va The format arguments.
519 */
520RTDECL(int) RTErrInfoSetV(PRTERRINFO pErrInfo, int rc, const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(3, 0);
521
522/**
523 * Adds more error info details.
524 *
525 * @returns @a rc.
526 *
527 * @param pErrInfo The error info structure to fill in.
528 * @param rc The status code to return.
529 * @param pszMsg The error message string to add.
530 */
531RTDECL(int) RTErrInfoAdd(PRTERRINFO pErrInfo, int rc, const char *pszMsg);
532
533/**
534 * Adds more error info details, with a sprintf style message.
535 *
536 * @returns @a rc.
537 *
538 * @param pErrInfo The error info structure to fill in.
539 * @param rc The status code to return.
540 * @param pszFormat The format string to add.
541 * @param ... The format arguments.
542 */
543RTDECL(int) RTErrInfoAddF(PRTERRINFO pErrInfo, int rc, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(3, 4);
544
545/**
546 * Adds more error info details, with a vsprintf style message.
547 *
548 * @returns @a rc.
549 *
550 * @param pErrInfo The error info structure to fill in.
551 * @param rc The status code to return.
552 * @param pszFormat The format string to add.
553 * @param va The format arguments.
554 */
555RTDECL(int) RTErrInfoAddV(PRTERRINFO pErrInfo, int rc, const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(3, 0);
556
557/** @name RTERRINFO_LOG_F_XXX
558 * @{ */
559/** Both debug and release log. */
560#define RTERRINFO_LOG_F_RELEASE RT_BIT_32(0)
561/** @} */
562
563/**
564 * Fills in the error info details.
565 *
566 * @returns @a rc.
567 *
568 * @param pErrInfo The error info structure to fill in.
569 * @param rc The status code to return.
570 * @param iLogGroup The logging group.
571 * @param fFlags RTERRINFO_LOG_F_XXX.
572 * @param pszMsg The error message string.
573 */
574RTDECL(int) RTErrInfoLogAndSet(PRTERRINFO pErrInfo, int rc, uint32_t iLogGroup, uint32_t fFlags, const char *pszMsg);
575
576/**
577 * Fills in the error info details, with a sprintf style message.
578 *
579 * @returns @a rc.
580 *
581 * @param pErrInfo The error info structure to fill in.
582 * @param rc The status code to return.
583 * @param iLogGroup The logging group.
584 * @param fFlags RTERRINFO_LOG_F_XXX.
585 * @param pszFormat The format string.
586 * @param ... The format arguments.
587 */
588RTDECL(int) RTErrInfoLogAndSetF(PRTERRINFO pErrInfo, int rc, uint32_t iLogGroup, uint32_t fFlags, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(5, 6);
589
590/**
591 * Fills in the error info details, with a vsprintf style message.
592 *
593 * @returns @a rc.
594 *
595 * @param pErrInfo The error info structure to fill in.
596 * @param rc The status code to return.
597 * @param iLogGroup The logging group.
598 * @param fFlags RTERRINFO_LOG_F_XXX.
599 * @param pszFormat The format string.
600 * @param va The format arguments.
601 */
602RTDECL(int) RTErrInfoLogAndSetV(PRTERRINFO pErrInfo, int rc, uint32_t iLogGroup, uint32_t fFlags, const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(5, 0);
603
604/**
605 * Adds more error info details.
606 *
607 * @returns @a rc.
608 *
609 * @param pErrInfo The error info structure to fill in.
610 * @param rc The status code to return.
611 * @param iLogGroup The logging group.
612 * @param fFlags RTERRINFO_LOG_F_XXX.
613 * @param pszMsg The error message string to add.
614 */
615RTDECL(int) RTErrInfoLogAndAdd(PRTERRINFO pErrInfo, int rc, uint32_t iLogGroup, uint32_t fFlags, const char *pszMsg);
616
617/**
618 * Adds more error info details, with a sprintf style message.
619 *
620 * @returns @a rc.
621 *
622 * @param pErrInfo The error info structure to fill in.
623 * @param rc The status code to return.
624 * @param iLogGroup The logging group.
625 * @param fFlags RTERRINFO_LOG_F_XXX.
626 * @param pszFormat The format string to add.
627 * @param ... The format arguments.
628 */
629RTDECL(int) RTErrInfoLogAndAddF(PRTERRINFO pErrInfo, int rc, uint32_t iLogGroup, uint32_t fFlags, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(5, 6);
630
631/**
632 * Adds more error info details, with a vsprintf style message.
633 *
634 * @returns @a rc.
635 *
636 * @param pErrInfo The error info structure to fill in.
637 * @param rc The status code to return.
638 * @param iLogGroup The logging group.
639 * @param fFlags RTERRINFO_LOG_F_XXX.
640 * @param pszFormat The format string to add.
641 * @param va The format arguments.
642 */
643RTDECL(int) RTErrInfoLogAndAddV(PRTERRINFO pErrInfo, int rc, uint32_t iLogGroup, uint32_t fFlags, const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(5, 0);
644
645/** @name Macros wrapping the RTErrInfoLog* functions.
646 * @{ */
647#ifndef LOG_DISABLED
648# define RTERRINFO_LOG_SET( a_pErrInfo, a_rc, a_pszMsg) RTErrInfoLogAndSet( a_pErrInfo, a_rc, LOG_GROUP, 0, a_pszMsg)
649# define RTERRINFO_LOG_SET_V(a_pErrInfo, a_rc, a_pszMsg, a_va) RTErrInfoLogAndSetV(a_pErrInfo, a_rc, LOG_GROUP, 0, a_pszMsg, a_va)
650# define RTERRINFO_LOG_ADD( a_pErrInfo, a_rc, a_pszMsg) RTErrInfoLogAndAdd( a_pErrInfo, a_rc, LOG_GROUP, 0, a_pszMsg)
651# define RTERRINFO_LOG_ADD_V(a_pErrInfo, a_rc, a_pszMsg, a_va) RTErrInfoLogAndAddV(a_pErrInfo, a_rc, LOG_GROUP, 0, a_pszMsg, a_va)
652# ifdef RT_COMPILER_SUPPORTS_VA_ARGS
653# define RTERRINFO_LOG_ADD_F(a_pErrInfo, a_rc, ...) RTErrInfoLogAndAddF(a_pErrInfo, a_rc, LOG_GROUP, 0, __VA_ARGS__)
654# define RTERRINFO_LOG_SET_F(a_pErrInfo, a_rc, ...) RTErrInfoLogAndSetF(a_pErrInfo, a_rc, LOG_GROUP, 0, __VA_ARGS__)
655# else
656# define RTERRINFO_LOG_ADD_F RTErrInfoSetF
657# define RTERRINFO_LOG_SET_F RTErrInfoAddF
658# endif
659#else
660# define RTERRINFO_LOG_SET( a_pErrInfo, a_rc, a_pszMsg) RTErrInfoSet( a_pErrInfo, a_rc, a_pszMsg)
661# define RTERRINFO_LOG_SET_V(a_pErrInfo, a_rc, a_pszMsg, a_va) RTErrInfoSetV(a_pErrInfo, a_rc, a_pszMsg, a_va)
662# define RTERRINFO_LOG_ADD( a_pErrInfo, a_rc, a_pszMsg) RTErrInfoAdd( a_pErrInfo, a_rc, a_pszMsg)
663# define RTERRINFO_LOG_ADD_V(a_pErrInfo, a_rc, a_pszMsg, a_va) RTErrInfoAddV(a_pErrInfo, a_rc, a_pszMsg, a_va)
664# define RTERRINFO_LOG_ADD_F RTErrInfoSetF
665# define RTERRINFO_LOG_SET_F RTErrInfoAddF
666#endif
667
668#define RTERRINFO_LOG_REL_SET( a_pErrInfo, a_rc, a_pszMsg) RTErrInfoLogAndSet( a_pErrInfo, a_rc, LOG_GROUP, RTERRINFO_LOG_F_RELEASE, a_pszMsg)
669#define RTERRINFO_LOG_REL_SET_V(a_pErrInfo, a_rc, a_pszMsg, a_va) RTErrInfoLogAndSetV(a_pErrInfo, a_rc, LOG_GROUP, RTERRINFO_LOG_F_RELEASE, a_pszMsg, a_va)
670#define RTERRINFO_LOG_REL_ADD( a_pErrInfo, a_rc, a_pszMsg) RTErrInfoLogAndAdd( a_pErrInfo, a_rc, LOG_GROUP, RTERRINFO_LOG_F_RELEASE, a_pszMsg)
671#define RTERRINFO_LOG_REL_ADD_V(a_pErrInfo, a_rc, a_pszMsg, a_va) RTErrInfoLogAndAddV(a_pErrInfo, a_rc, LOG_GROUP, RTERRINFO_LOG_F_RELEASE, a_pszMsg, a_va)
672#ifdef RT_COMPILER_SUPPORTS_VA_ARGS
673# define RTERRINFO_LOG_REL_ADD_F(a_pErrInfo, a_rc, ...) RTErrInfoLogAndAddF(a_pErrInfo, a_rc, LOG_GROUP, RTERRINFO_LOG_F_RELEASE, __VA_ARGS__)
674# define RTERRINFO_LOG_REL_SET_F(a_pErrInfo, a_rc, ...) RTErrInfoLogAndSetF(a_pErrInfo, a_rc, LOG_GROUP, RTERRINFO_LOG_F_RELEASE, __VA_ARGS__)
675#else
676# define RTERRINFO_LOG_REL_ADD_F RTErrInfoSetF
677# define RTERRINFO_LOG_REL_SET_F RTErrInfoAddF
678#endif
679/** @} */
680
681
682/**
683 * Checks if the error info is set.
684 *
685 * @returns true if set, false if not.
686 * @param pErrInfo The error info structure. NULL is OK.
687 */
688DECLINLINE(bool) RTErrInfoIsSet(PCRTERRINFO pErrInfo)
689{
690 if (!pErrInfo)
691 return false;
692 return (pErrInfo->fFlags & (RTERRINFO_FLAGS_MAGIC_MASK | RTERRINFO_FLAGS_SET))
693 == (RTERRINFO_FLAGS_MAGIC | RTERRINFO_FLAGS_SET);
694}
695
696/**
697 * Clears the error info structure.
698 *
699 * @param pErrInfo The error info structure. NULL is OK.
700 */
701DECLINLINE(void) RTErrInfoClear(PRTERRINFO pErrInfo)
702{
703 if (pErrInfo)
704 {
705 pErrInfo->fFlags &= ~RTERRINFO_FLAGS_SET;
706 pErrInfo->rc = /*VINF_SUCCESS*/0;
707 *pErrInfo->pszMsg = '\0';
708 }
709}
710
711/**
712 * Storage for error variables.
713 *
714 * @remarks Do NOT touch the members! They are platform specific and what's
715 * where may change at any time!
716 */
717typedef union RTERRVARS
718{
719 int8_t ai8Vars[32];
720 int16_t ai16Vars[16];
721 int32_t ai32Vars[8];
722 int64_t ai64Vars[4];
723} RTERRVARS;
724/** Pointer to an error variable storage union. */
725typedef RTERRVARS *PRTERRVARS;
726/** Pointer to a const error variable storage union. */
727typedef RTERRVARS const *PCRTERRVARS;
728
729/**
730 * Saves the error variables.
731 *
732 * @returns @a pVars.
733 * @param pVars The variable storage union.
734 */
735RTDECL(PRTERRVARS) RTErrVarsSave(PRTERRVARS pVars);
736
737/**
738 * Restores the error variables.
739 *
740 * @param pVars The variable storage union.
741 */
742RTDECL(void) RTErrVarsRestore(PCRTERRVARS pVars);
743
744/**
745 * Checks if the first variable set equals the second.
746 *
747 * @returns true if they are equal, false if not.
748 * @param pVars1 The first variable storage union.
749 * @param pVars2 The second variable storage union.
750 */
751RTDECL(bool) RTErrVarsAreEqual(PCRTERRVARS pVars1, PCRTERRVARS pVars2);
752
753/**
754 * Checks if the (live) error variables have changed since we saved them.
755 *
756 * @returns @c true if they have changed, @c false if not.
757 * @param pVars The saved variables to compare the current state
758 * against.
759 */
760RTDECL(bool) RTErrVarsHaveChanged(PCRTERRVARS pVars);
761
762RT_C_DECLS_END
763
764/** @} */
765
766/** @name Status Code Ranges
767 * @{ */
768/** The first status code in the primary IPRT range. */
769#define RTERR_RANGE1_FIRST 0
770/** The last status code in the primary IPRT range. */
771#define RTERR_RANGE1_LAST 999
772
773/** The first status code in the secondary IPRT range. */
774#define RTERR_RANGE2_FIRST 22000
775/** The last status code in the secondary IPRT range. */
776#define RTERR_RANGE2_LAST 32766
777
778/** The first status code in the user range. */
779#define RTERR_USER_FIRST 1000
780/** The last status code in the user range. */
781#define RTERR_USER_LAST 21999
782/** @} */
783
784
785/* SED-START */
786
787/** @name Misc. Status Codes
788 * @{
789 */
790/** Success. */
791#define VINF_SUCCESS 0
792
793/** General failure - DON'T USE THIS!!! */
794#define VERR_GENERAL_FAILURE (-1)
795/** Invalid parameter. */
796#define VERR_INVALID_PARAMETER (-2)
797/** Invalid parameter. */
798#define VWRN_INVALID_PARAMETER 2
799/** Invalid magic or cookie. */
800#define VERR_INVALID_MAGIC (-3)
801/** Invalid magic or cookie. */
802#define VWRN_INVALID_MAGIC 3
803/** Invalid loader handle. */
804#define VERR_INVALID_HANDLE (-4)
805/** Invalid loader handle. */
806#define VWRN_INVALID_HANDLE 4
807/** Failed to lock the address range. */
808#define VERR_LOCK_FAILED (-5)
809/** Invalid memory pointer. */
810#define VERR_INVALID_POINTER (-6)
811/** Failed to patch the IDT. */
812#define VERR_IDT_FAILED (-7)
813/** Memory allocation failed. */
814#define VERR_NO_MEMORY (-8)
815/** Already loaded. */
816#define VERR_ALREADY_LOADED (-9)
817/** Permission denied. */
818#define VERR_PERMISSION_DENIED (-10)
819/** Permission denied. */
820#define VINF_PERMISSION_DENIED 10
821/** Version mismatch. */
822#define VERR_VERSION_MISMATCH (-11)
823/** The request function is not implemented. */
824#define VERR_NOT_IMPLEMENTED (-12)
825/** Invalid flags was given. */
826#define VERR_INVALID_FLAGS (-13)
827
828/** Not equal. */
829#define VERR_NOT_EQUAL (-18)
830/** The specified path does not point at a symbolic link. */
831#define VERR_NOT_SYMLINK (-19)
832/** Failed to allocate temporary memory. */
833#define VERR_NO_TMP_MEMORY (-20)
834/** Invalid file mode mask (RTFMODE). */
835#define VERR_INVALID_FMODE (-21)
836/** Incorrect call order. */
837#define VERR_WRONG_ORDER (-22)
838/** There is no TLS (thread local storage) available for storing the current thread. */
839#define VERR_NO_TLS_FOR_SELF (-23)
840/** Failed to set the TLS (thread local storage) entry which points to our thread structure. */
841#define VERR_FAILED_TO_SET_SELF_TLS (-24)
842/** Not able to allocate contiguous memory. */
843#define VERR_NO_CONT_MEMORY (-26)
844/** No memory available for page table or page directory. */
845#define VERR_NO_PAGE_MEMORY (-27)
846/** Already initialized. */
847#define VINF_ALREADY_INITIALIZED 28
848/** The specified thread is dead. */
849#define VERR_THREAD_IS_DEAD (-29)
850/** The specified thread is not waitable. */
851#define VERR_THREAD_NOT_WAITABLE (-30)
852/** Pagetable not present. */
853#define VERR_PAGE_TABLE_NOT_PRESENT (-31)
854/** Invalid context.
855 * Typically an API was used by the wrong thread. */
856#define VERR_INVALID_CONTEXT (-32)
857/** The per process timer is busy. */
858#define VERR_TIMER_BUSY (-33)
859/** Address conflict. */
860#define VERR_ADDRESS_CONFLICT (-34)
861/** Unresolved (unknown) host platform error. */
862#define VERR_UNRESOLVED_ERROR (-35)
863/** Invalid function. */
864#define VERR_INVALID_FUNCTION (-36)
865/** Not supported. */
866#define VERR_NOT_SUPPORTED (-37)
867/** Not supported. */
868#define VINF_NOT_SUPPORTED 37
869/** Access denied. */
870#define VERR_ACCESS_DENIED (-38)
871/** Call interrupted. */
872#define VERR_INTERRUPTED (-39)
873/** Call interrupted. */
874#define VINF_INTERRUPTED 39
875/** Timeout. */
876#define VERR_TIMEOUT (-40)
877/** Timeout. */
878#define VINF_TIMEOUT 40
879/** Buffer too small to save result. */
880#define VERR_BUFFER_OVERFLOW (-41)
881/** Buffer too small to save result. */
882#define VINF_BUFFER_OVERFLOW 41
883/** Data size overflow. */
884#define VERR_TOO_MUCH_DATA (-42)
885/** Max threads number reached. */
886#define VERR_MAX_THRDS_REACHED (-43)
887/** Max process number reached. */
888#define VERR_MAX_PROCS_REACHED (-44)
889/** The recipient process has refused the signal. */
890#define VERR_SIGNAL_REFUSED (-45)
891/** A signal is already pending. */
892#define VERR_SIGNAL_PENDING (-46)
893/** The signal being posted is not correct. */
894#define VERR_SIGNAL_INVALID (-47)
895/** The state changed.
896 * This is a generic error message and needs a context to make sense. */
897#define VERR_STATE_CHANGED (-48)
898/** Warning, the state changed.
899 * This is a generic error message and needs a context to make sense. */
900#define VWRN_STATE_CHANGED 48
901/** Error while parsing UUID string */
902#define VERR_INVALID_UUID_FORMAT (-49)
903/** The specified process was not found. */
904#define VERR_PROCESS_NOT_FOUND (-50)
905/** The process specified to a non-block wait had not exited. */
906#define VERR_PROCESS_RUNNING (-51)
907/** Retry the operation. */
908#define VERR_TRY_AGAIN (-52)
909/** Retry the operation. */
910#define VINF_TRY_AGAIN 52
911/** Generic parse error. */
912#define VERR_PARSE_ERROR (-53)
913/** Value out of range. */
914#define VERR_OUT_OF_RANGE (-54)
915/** A numeric conversion encountered a value which was too big for the target. */
916#define VERR_NUMBER_TOO_BIG (-55)
917/** A numeric conversion encountered a value which was too big for the target. */
918#define VWRN_NUMBER_TOO_BIG 55
919/** The number begin converted (string) contained no digits. */
920#define VERR_NO_DIGITS (-56)
921/** The number begin converted (string) contained no digits. */
922#define VWRN_NO_DIGITS 56
923/** Encountered a '-' during conversion to an unsigned value. */
924#define VERR_NEGATIVE_UNSIGNED (-57)
925/** Encountered a '-' during conversion to an unsigned value. */
926#define VWRN_NEGATIVE_UNSIGNED 57
927/** Error while characters translation (unicode and so). */
928#define VERR_NO_TRANSLATION (-58)
929/** Error while characters translation (unicode and so). */
930#define VWRN_NO_TRANSLATION 58
931/** Encountered unicode code point which is reserved for use as endian indicator (0xffff or 0xfffe). */
932#define VERR_CODE_POINT_ENDIAN_INDICATOR (-59)
933/** Encountered unicode code point in the surrogate range (0xd800 to 0xdfff). */
934#define VERR_CODE_POINT_SURROGATE (-60)
935/** A string claiming to be UTF-8 is incorrectly encoded. */
936#define VERR_INVALID_UTF8_ENCODING (-61)
937/** A string claiming to be in UTF-16 is incorrectly encoded. */
938#define VERR_INVALID_UTF16_ENCODING (-62)
939/** Encountered a unicode code point which cannot be represented as UTF-16. */
940#define VERR_CANT_RECODE_AS_UTF16 (-63)
941/** Got an out of memory condition trying to allocate a string. */
942#define VERR_NO_STR_MEMORY (-64)
943/** Got an out of memory condition trying to allocate a UTF-16 (/UCS-2) string. */
944#define VERR_NO_UTF16_MEMORY (-65)
945/** Get an out of memory condition trying to allocate a code point array. */
946#define VERR_NO_CODE_POINT_MEMORY (-66)
947/** Can't free the memory because it's used in mapping. */
948#define VERR_MEMORY_BUSY (-67)
949/** The timer can't be started because it's already active. */
950#define VERR_TIMER_ACTIVE (-68)
951/** The timer can't be stopped because it's already suspended. */
952#define VERR_TIMER_SUSPENDED (-69)
953/** The operation was cancelled by the user (copy) or another thread (local ipc). */
954#define VERR_CANCELLED (-70)
955/** Failed to initialize a memory object.
956 * Exactly what this means is OS specific. */
957#define VERR_MEMOBJ_INIT_FAILED (-71)
958/** Out of memory condition when allocating memory with low physical backing. */
959#define VERR_NO_LOW_MEMORY (-72)
960/** Out of memory condition when allocating physical memory (without mapping). */
961#define VERR_NO_PHYS_MEMORY (-73)
962/** The address (virtual or physical) is too big. */
963#define VERR_ADDRESS_TOO_BIG (-74)
964/** Failed to map a memory object. */
965#define VERR_MAP_FAILED (-75)
966/** Trailing characters. */
967#define VERR_TRAILING_CHARS (-76)
968/** Trailing characters. */
969#define VWRN_TRAILING_CHARS 76
970/** Trailing spaces. */
971#define VERR_TRAILING_SPACES (-77)
972/** Trailing spaces. */
973#define VWRN_TRAILING_SPACES 77
974/** Generic not found error. */
975#define VERR_NOT_FOUND (-78)
976/** Generic not found warning. */
977#define VWRN_NOT_FOUND 78
978/** Generic invalid state error. */
979#define VERR_INVALID_STATE (-79)
980/** Generic invalid state warning. */
981#define VWRN_INVALID_STATE 79
982/** Generic out of resources error. */
983#define VERR_OUT_OF_RESOURCES (-80)
984/** Generic out of resources warning. */
985#define VWRN_OUT_OF_RESOURCES 80
986/** No more handles available, too many open handles. */
987#define VERR_NO_MORE_HANDLES (-81)
988/** Preemption is disabled.
989 * The requested operation can only be performed when preemption is enabled. */
990#define VERR_PREEMPT_DISABLED (-82)
991/** End of string. */
992#define VERR_END_OF_STRING (-83)
993/** End of string. */
994#define VINF_END_OF_STRING 83
995/** A page count is out of range. */
996#define VERR_PAGE_COUNT_OUT_OF_RANGE (-84)
997/** Generic object destroyed status. */
998#define VERR_OBJECT_DESTROYED (-85)
999/** Generic object was destroyed by the call status. */
1000#define VINF_OBJECT_DESTROYED 85
1001/** Generic dangling objects status. */
1002#define VERR_DANGLING_OBJECTS (-86)
1003/** Generic dangling objects status. */
1004#define VWRN_DANGLING_OBJECTS 86
1005/** Invalid Base64 encoding. */
1006#define VERR_INVALID_BASE64_ENCODING (-87)
1007/** Return instigated by a callback or similar. */
1008#define VERR_CALLBACK_RETURN (-88)
1009/** Return instigated by a callback or similar. */
1010#define VINF_CALLBACK_RETURN 88
1011/** Authentication failure. */
1012#define VERR_AUTHENTICATION_FAILURE (-89)
1013/** Not a power of two. */
1014#define VERR_NOT_POWER_OF_TWO (-90)
1015/** Status code, typically given as a parameter, that isn't supposed to be used. */
1016#define VERR_IGNORED (-91)
1017/** Concurrent access to the object is not allowed. */
1018#define VERR_CONCURRENT_ACCESS (-92)
1019/** The caller does not have a reference to the object.
1020 * This status is used when two threads is caught sharing the same object
1021 * reference. */
1022#define VERR_CALLER_NO_REFERENCE (-93)
1023/** Generic no change error. */
1024#define VERR_NO_CHANGE (-95)
1025/** Generic no change info. */
1026#define VINF_NO_CHANGE 95
1027/** Out of memory condition when allocating executable memory. */
1028#define VERR_NO_EXEC_MEMORY (-96)
1029/** The alignment is not supported. */
1030#define VERR_UNSUPPORTED_ALIGNMENT (-97)
1031/** The alignment is not really supported, however we got lucky with this
1032 * allocation. */
1033#define VINF_UNSUPPORTED_ALIGNMENT 97
1034/** Duplicate something. */
1035#define VERR_DUPLICATE (-98)
1036/** Something is missing. */
1037#define VERR_MISSING (-99)
1038/** An unexpected (/unknown) exception was caught. */
1039#define VERR_UNEXPECTED_EXCEPTION (-22400)
1040/** Buffer underflow. */
1041#define VERR_BUFFER_UNDERFLOW (-22401)
1042/** Buffer underflow. */
1043#define VINF_BUFFER_UNDERFLOW 22401
1044/** Uneven input. */
1045#define VERR_UNEVEN_INPUT (-22402)
1046/** Something is not available or not working properly. */
1047#define VERR_NOT_AVAILABLE (-22403)
1048/** The RTPROC_FLAGS_DETACHED flag isn't supported. */
1049#define VERR_PROC_DETACH_NOT_SUPPORTED (-22404)
1050/** An account is restricted in a certain way. */
1051#define VERR_ACCOUNT_RESTRICTED (-22405)
1052/** An account is restricted in a certain way. */
1053#define VINF_ACCOUNT_RESTRICTED 22405
1054/** Not able satisfy all the requirements of the request. */
1055#define VERR_UNABLE_TO_SATISFY_REQUIREMENTS (-22406)
1056/** Not able satisfy all the requirements of the request. */
1057#define VWRN_UNABLE_TO_SATISFY_REQUIREMENTS 22406
1058/** The requested allocation is too big. */
1059#define VERR_ALLOCATION_TOO_BIG (-22407)
1060/** Mismatch. */
1061#define VERR_MISMATCH (-22408)
1062/** Wrong type. */
1063#define VERR_WRONG_TYPE (-22409)
1064/** This indicates that the process does not have sufficient privileges to
1065 * perform the operation. */
1066#define VERR_PRIVILEGE_NOT_HELD (-22410)
1067/** Process does not have the trusted code base (TCB) privilege needed for user
1068 * authentication or/and process creation as a given user. TCB is also called
1069 * 'Act as part of the operating system'. */
1070#define VERR_PROC_TCB_PRIV_NOT_HELD (-22411)
1071/** Process does not have the assign primary token (APT) privilege needed
1072 * for creating process as a given user. APT is also called 'Replace a process
1073 * level token'. */
1074#define VERR_PROC_APT_PRIV_NOT_HELD (-22412)
1075/** Process does not have the increase quota (IQ) privilege needed for
1076 * creating a process as a given user. IQ is also called 'Increase quotas'. */
1077#define VERR_PROC_IQ_PRIV_NOT_HELD (-22413)
1078/** The system has too many CPUs. */
1079#define VERR_MP_TOO_MANY_CPUS (-22414)
1080/** @} */
1081
1082
1083/** @name Common File/Disk/Pipe/etc Status Codes
1084 * @{
1085 */
1086/** Unresolved (unknown) file i/o error. */
1087#define VERR_FILE_IO_ERROR (-100)
1088/** File/Device open failed. */
1089#define VERR_OPEN_FAILED (-101)
1090/** File not found. */
1091#define VERR_FILE_NOT_FOUND (-102)
1092/** Path not found. */
1093#define VERR_PATH_NOT_FOUND (-103)
1094/** Invalid (malformed) file/path name. */
1095#define VERR_INVALID_NAME (-104)
1096/** The object in question already exists. */
1097#define VERR_ALREADY_EXISTS (-105)
1098/** The object in question already exists. */
1099#define VWRN_ALREADY_EXISTS 105
1100/** Too many open files. */
1101#define VERR_TOO_MANY_OPEN_FILES (-106)
1102/** Seek error. */
1103#define VERR_SEEK (-107)
1104/** Seek below file start. */
1105#define VERR_NEGATIVE_SEEK (-108)
1106/** Trying to seek on device. */
1107#define VERR_SEEK_ON_DEVICE (-109)
1108/** Reached the end of the file. */
1109#define VERR_EOF (-110)
1110/** Reached the end of the file. */
1111#define VINF_EOF 110
1112/** Generic file read error. */
1113#define VERR_READ_ERROR (-111)
1114/** Generic file write error. */
1115#define VERR_WRITE_ERROR (-112)
1116/** Write protect error. */
1117#define VERR_WRITE_PROTECT (-113)
1118/** Sharing violation, file is being used by another process. */
1119#define VERR_SHARING_VIOLATION (-114)
1120/** Unable to lock a region of a file. */
1121#define VERR_FILE_LOCK_FAILED (-115)
1122/** File access error, another process has locked a portion of the file. */
1123#define VERR_FILE_LOCK_VIOLATION (-116)
1124/** File or directory can't be created. */
1125#define VERR_CANT_CREATE (-117)
1126/** Directory can't be deleted. */
1127#define VERR_CANT_DELETE_DIRECTORY (-118)
1128/** Can't move file to another disk. */
1129#define VERR_NOT_SAME_DEVICE (-119)
1130/** The filename or extension is too long. */
1131#define VERR_FILENAME_TOO_LONG (-120)
1132/** Media not present in drive. */
1133#define VERR_MEDIA_NOT_PRESENT (-121)
1134/** The type of media was not recognized. Not formatted? */
1135#define VERR_MEDIA_NOT_RECOGNIZED (-122)
1136/** Can't unlock - region was not locked. */
1137#define VERR_FILE_NOT_LOCKED (-123)
1138/** Unrecoverable error: lock was lost. */
1139#define VERR_FILE_LOCK_LOST (-124)
1140/** Can't delete directory with files. */
1141#define VERR_DIR_NOT_EMPTY (-125)
1142/** A directory operation was attempted on a non-directory object. */
1143#define VERR_NOT_A_DIRECTORY (-126)
1144/** A non-directory operation was attempted on a directory object. */
1145#define VERR_IS_A_DIRECTORY (-127)
1146/** Tried to grow a file beyond the limit imposed by the process or the filesystem. */
1147#define VERR_FILE_TOO_BIG (-128)
1148/** No pending request the aio context has to wait for completion. */
1149#define VERR_FILE_AIO_NO_REQUEST (-129)
1150/** The request could not be canceled or prepared for another transfer
1151 * because it is still in progress. */
1152#define VERR_FILE_AIO_IN_PROGRESS (-130)
1153/** The request could not be canceled because it already completed. */
1154#define VERR_FILE_AIO_COMPLETED (-131)
1155/** The I/O context couldn't be destroyed because there are still pending requests. */
1156#define VERR_FILE_AIO_BUSY (-132)
1157/** The requests couldn't be submitted because that would exceed the capacity of the context. */
1158#define VERR_FILE_AIO_LIMIT_EXCEEDED (-133)
1159/** The request was canceled. */
1160#define VERR_FILE_AIO_CANCELED (-134)
1161/** The request wasn't submitted so it can't be canceled. */
1162#define VERR_FILE_AIO_NOT_SUBMITTED (-135)
1163/** A request was not prepared and thus could not be submitted. */
1164#define VERR_FILE_AIO_NOT_PREPARED (-136)
1165/** Not all requests could be submitted due to resource shortage. */
1166#define VERR_FILE_AIO_INSUFFICIENT_RESSOURCES (-137)
1167/** Device or resource is busy. */
1168#define VERR_RESOURCE_BUSY (-138)
1169/** A file operation was attempted on a non-file object. */
1170#define VERR_NOT_A_FILE (-139)
1171/** A non-file operation was attempted on a file object. */
1172#define VERR_IS_A_FILE (-140)
1173/** Unexpected filesystem object type. */
1174#define VERR_UNEXPECTED_FS_OBJ_TYPE (-141)
1175/** A path does not start with a root specification. */
1176#define VERR_PATH_DOES_NOT_START_WITH_ROOT (-142)
1177/** A path is relative, expected an absolute path. */
1178#define VERR_PATH_IS_RELATIVE (-143)
1179/** A path is not relative (start with root), expected an relative path. */
1180#define VERR_PATH_IS_NOT_RELATIVE (-144)
1181/** Zero length path. */
1182#define VERR_PATH_ZERO_LENGTH (-145)
1183/** There are not enough events available on the host to create the I/O context.
1184 * This exact meaning is host platform dependent. */
1185#define VERR_FILE_AIO_INSUFFICIENT_EVENTS (-146)
1186/** @} */
1187
1188
1189/** @name Generic Filesystem I/O Status Codes
1190 * @{
1191 */
1192/** Unresolved (unknown) disk i/o error. */
1193#define VERR_DISK_IO_ERROR (-150)
1194/** Invalid drive number. */
1195#define VERR_INVALID_DRIVE (-151)
1196/** Disk is full. */
1197#define VERR_DISK_FULL (-152)
1198/** Disk was changed. */
1199#define VERR_DISK_CHANGE (-153)
1200/** Drive is locked. */
1201#define VERR_DRIVE_LOCKED (-154)
1202/** The specified disk or diskette cannot be accessed. */
1203#define VERR_DISK_INVALID_FORMAT (-155)
1204/** Too many symbolic links. */
1205#define VERR_TOO_MANY_SYMLINKS (-156)
1206/** The OS does not support setting the time stamps on a symbolic link. */
1207#define VERR_NS_SYMLINK_SET_TIME (-157)
1208/** The OS does not support changing the owner of a symbolic link. */
1209#define VERR_NS_SYMLINK_CHANGE_OWNER (-158)
1210/** Symbolic link not allowed. */
1211#define VERR_SYMLINK_NOT_ALLOWED (-159)
1212/** Is a symbolic link. */
1213#define VERR_IS_A_SYMLINK (-160)
1214/** Is a FIFO. */
1215#define VERR_IS_A_FIFO (-161)
1216/** Is a socket. */
1217#define VERR_IS_A_SOCKET (-162)
1218/** Is a block device. */
1219#define VERR_IS_A_BLOCK_DEVICE (-163)
1220/** Is a character device. */
1221#define VERR_IS_A_CHAR_DEVICE (-164)
1222/** @} */
1223
1224
1225/** @name Generic Directory Enumeration Status Codes
1226 * @{
1227 */
1228/** Unresolved (unknown) search error. */
1229#define VERR_SEARCH_ERROR (-200)
1230/** No more files found. */
1231#define VERR_NO_MORE_FILES (-201)
1232/** No more search handles available. */
1233#define VERR_NO_MORE_SEARCH_HANDLES (-202)
1234/** RTDirReadEx() failed to retrieve the extra data which was requested. */
1235#define VWRN_NO_DIRENT_INFO 203
1236/** @} */
1237
1238
1239/** @name Internal Processing Errors
1240 * @{
1241 */
1242/** Internal error - this should never happen. */
1243#define VERR_INTERNAL_ERROR (-225)
1244/** Internal error no. 2. */
1245#define VERR_INTERNAL_ERROR_2 (-226)
1246/** Internal error no. 3. */
1247#define VERR_INTERNAL_ERROR_3 (-227)
1248/** Internal error no. 4. */
1249#define VERR_INTERNAL_ERROR_4 (-228)
1250/** Internal error no. 5. */
1251#define VERR_INTERNAL_ERROR_5 (-229)
1252/** Internal error: Unexpected status code. */
1253#define VERR_IPE_UNEXPECTED_STATUS (-230)
1254/** Internal error: Unexpected status code. */
1255#define VERR_IPE_UNEXPECTED_INFO_STATUS (-231)
1256/** Internal error: Unexpected status code. */
1257#define VERR_IPE_UNEXPECTED_ERROR_STATUS (-232)
1258/** Internal error: Uninitialized status code.
1259 * @remarks This is used by value elsewhere. */
1260#define VERR_IPE_UNINITIALIZED_STATUS (-233)
1261/** Internal error: Supposedly unreachable default case in a switch. */
1262#define VERR_IPE_NOT_REACHED_DEFAULT_CASE (-234)
1263/** @} */
1264
1265
1266/** @name Generic Device I/O Status Codes
1267 * @{
1268 */
1269/** Unresolved (unknown) device i/o error. */
1270#define VERR_DEV_IO_ERROR (-250)
1271/** Device i/o: Bad unit. */
1272#define VERR_IO_BAD_UNIT (-251)
1273/** Device i/o: Not ready. */
1274#define VERR_IO_NOT_READY (-252)
1275/** Device i/o: Bad command. */
1276#define VERR_IO_BAD_COMMAND (-253)
1277/** Device i/o: CRC error. */
1278#define VERR_IO_CRC (-254)
1279/** Device i/o: Bad length. */
1280#define VERR_IO_BAD_LENGTH (-255)
1281/** Device i/o: Sector not found. */
1282#define VERR_IO_SECTOR_NOT_FOUND (-256)
1283/** Device i/o: General failure. */
1284#define VERR_IO_GEN_FAILURE (-257)
1285/** @} */
1286
1287
1288/** @name Generic Pipe I/O Status Codes
1289 * @{
1290 */
1291/** Unresolved (unknown) pipe i/o error. */
1292#define VERR_PIPE_IO_ERROR (-300)
1293/** Broken pipe. */
1294#define VERR_BROKEN_PIPE (-301)
1295/** Bad pipe. */
1296#define VERR_BAD_PIPE (-302)
1297/** Pipe is busy. */
1298#define VERR_PIPE_BUSY (-303)
1299/** No data in pipe. */
1300#define VERR_NO_DATA (-304)
1301/** Pipe is not connected. */
1302#define VERR_PIPE_NOT_CONNECTED (-305)
1303/** More data available in pipe. */
1304#define VERR_MORE_DATA (-306)
1305/** Expected read pipe, got a write pipe instead. */
1306#define VERR_PIPE_NOT_READ (-307)
1307/** Expected write pipe, got a read pipe instead. */
1308#define VERR_PIPE_NOT_WRITE (-308)
1309/** @} */
1310
1311
1312/** @name Generic Semaphores Status Codes
1313 * @{
1314 */
1315/** Unresolved (unknown) semaphore error. */
1316#define VERR_SEM_ERROR (-350)
1317/** Too many semaphores. */
1318#define VERR_TOO_MANY_SEMAPHORES (-351)
1319/** Exclusive semaphore is owned by another process. */
1320#define VERR_EXCL_SEM_ALREADY_OWNED (-352)
1321/** The semaphore is set and cannot be closed. */
1322#define VERR_SEM_IS_SET (-353)
1323/** The semaphore cannot be set again. */
1324#define VERR_TOO_MANY_SEM_REQUESTS (-354)
1325/** Attempt to release mutex not owned by caller. */
1326#define VERR_NOT_OWNER (-355)
1327/** The semaphore has been opened too many times. */
1328#define VERR_TOO_MANY_OPENS (-356)
1329/** The maximum posts for the event semaphore has been reached. */
1330#define VERR_TOO_MANY_POSTS (-357)
1331/** The event semaphore has already been posted. */
1332#define VERR_ALREADY_POSTED (-358)
1333/** The event semaphore has already been reset. */
1334#define VERR_ALREADY_RESET (-359)
1335/** The semaphore is in use. */
1336#define VERR_SEM_BUSY (-360)
1337/** The previous ownership of this semaphore has ended. */
1338#define VERR_SEM_OWNER_DIED (-361)
1339/** Failed to open semaphore by name - not found. */
1340#define VERR_SEM_NOT_FOUND (-362)
1341/** Semaphore destroyed while waiting. */
1342#define VERR_SEM_DESTROYED (-363)
1343/** Nested ownership requests are not permitted for this semaphore type. */
1344#define VERR_SEM_NESTED (-364)
1345/** The release call only release a semaphore nesting, i.e. the caller is still
1346 * holding the semaphore. */
1347#define VINF_SEM_NESTED (364)
1348/** Deadlock detected. */
1349#define VERR_DEADLOCK (-365)
1350/** Ping-Pong listen or speak out of turn error. */
1351#define VERR_SEM_OUT_OF_TURN (-366)
1352/** Tried to take a semaphore in a bad context. */
1353#define VERR_SEM_BAD_CONTEXT (-367)
1354/** Don't spin for the semaphore, but it is safe to try grab it. */
1355#define VINF_SEM_BAD_CONTEXT (367)
1356/** Wrong locking order detected. */
1357#define VERR_SEM_LV_WRONG_ORDER (-368)
1358/** Wrong release order detected. */
1359#define VERR_SEM_LV_WRONG_RELEASE_ORDER (-369)
1360/** Attempt to recursively enter a non-recursive lock. */
1361#define VERR_SEM_LV_NESTED (-370)
1362/** Invalid parameters passed to the lock validator. */
1363#define VERR_SEM_LV_INVALID_PARAMETER (-371)
1364/** The lock validator detected a deadlock. */
1365#define VERR_SEM_LV_DEADLOCK (-372)
1366/** The lock validator detected an existing deadlock.
1367 * The deadlock was not caused by the current operation, but existed already. */
1368#define VERR_SEM_LV_EXISTING_DEADLOCK (-373)
1369/** Not the lock owner according our records. */
1370#define VERR_SEM_LV_NOT_OWNER (-374)
1371/** An illegal lock upgrade was attempted. */
1372#define VERR_SEM_LV_ILLEGAL_UPGRADE (-375)
1373/** The thread is not a valid signaller of the event. */
1374#define VERR_SEM_LV_NOT_SIGNALLER (-376)
1375/** Internal error in the lock validator or related components. */
1376#define VERR_SEM_LV_INTERNAL_ERROR (-377)
1377/** @} */
1378
1379
1380/** @name Generic Network I/O Status Codes
1381 * @{
1382 */
1383/** Unresolved (unknown) network error. */
1384#define VERR_NET_IO_ERROR (-400)
1385/** The network is busy or is out of resources. */
1386#define VERR_NET_OUT_OF_RESOURCES (-401)
1387/** Net host name not found. */
1388#define VERR_NET_HOST_NOT_FOUND (-402)
1389/** Network path not found. */
1390#define VERR_NET_PATH_NOT_FOUND (-403)
1391/** General network printing error. */
1392#define VERR_NET_PRINT_ERROR (-404)
1393/** The machine is not on the network. */
1394#define VERR_NET_NO_NETWORK (-405)
1395/** Name is not unique on the network. */
1396#define VERR_NET_NOT_UNIQUE_NAME (-406)
1397
1398/* These are BSD networking error codes - numbers correspond, don't mess! */
1399/** Operation in progress. */
1400#define VERR_NET_IN_PROGRESS (-436)
1401/** Operation already in progress. */
1402#define VERR_NET_ALREADY_IN_PROGRESS (-437)
1403/** Attempted socket operation with a non-socket handle.
1404 * (This includes closed handles.) */
1405#define VERR_NET_NOT_SOCKET (-438)
1406/** Destination address required. */
1407#define VERR_NET_DEST_ADDRESS_REQUIRED (-439)
1408/** Message too long. */
1409#define VERR_NET_MSG_SIZE (-440)
1410/** Protocol wrong type for socket. */
1411#define VERR_NET_PROTOCOL_TYPE (-441)
1412/** Protocol not available. */
1413#define VERR_NET_PROTOCOL_NOT_AVAILABLE (-442)
1414/** Protocol not supported. */
1415#define VERR_NET_PROTOCOL_NOT_SUPPORTED (-443)
1416/** Socket type not supported. */
1417#define VERR_NET_SOCKET_TYPE_NOT_SUPPORTED (-444)
1418/** Operation not supported. */
1419#define VERR_NET_OPERATION_NOT_SUPPORTED (-445)
1420/** Protocol family not supported. */
1421#define VERR_NET_PROTOCOL_FAMILY_NOT_SUPPORTED (-446)
1422/** Address family not supported by protocol family. */
1423#define VERR_NET_ADDRESS_FAMILY_NOT_SUPPORTED (-447)
1424/** Address already in use. */
1425#define VERR_NET_ADDRESS_IN_USE (-448)
1426/** Can't assign requested address. */
1427#define VERR_NET_ADDRESS_NOT_AVAILABLE (-449)
1428/** Network is down. */
1429#define VERR_NET_DOWN (-450)
1430/** Network is unreachable. */
1431#define VERR_NET_UNREACHABLE (-451)
1432/** Network dropped connection on reset. */
1433#define VERR_NET_CONNECTION_RESET (-452)
1434/** Software caused connection abort. */
1435#define VERR_NET_CONNECTION_ABORTED (-453)
1436/** Connection reset by peer. */
1437#define VERR_NET_CONNECTION_RESET_BY_PEER (-454)
1438/** No buffer space available. */
1439#define VERR_NET_NO_BUFFER_SPACE (-455)
1440/** Socket is already connected. */
1441#define VERR_NET_ALREADY_CONNECTED (-456)
1442/** Socket is not connected. */
1443#define VERR_NET_NOT_CONNECTED (-457)
1444/** Can't send after socket shutdown. */
1445#define VERR_NET_SHUTDOWN (-458)
1446/** Too many references: can't splice. */
1447#define VERR_NET_TOO_MANY_REFERENCES (-459)
1448/** Too many references: can't splice. */
1449#define VERR_NET_CONNECTION_TIMED_OUT (-460)
1450/** Connection refused. */
1451#define VERR_NET_CONNECTION_REFUSED (-461)
1452/* ELOOP is not net. */
1453/* ENAMETOOLONG is not net. */
1454/** Host is down. */
1455#define VERR_NET_HOST_DOWN (-464)
1456/** No route to host. */
1457#define VERR_NET_HOST_UNREACHABLE (-465)
1458/** Protocol error. */
1459#define VERR_NET_PROTOCOL_ERROR (-466)
1460/** Incomplete packet was submitted by guest. */
1461#define VERR_NET_INCOMPLETE_TX_PACKET (-467)
1462/** Winsock init error. */
1463#define VERR_NET_INIT_FAILED (-468)
1464/** Trying to use too new winsock API. */
1465#define VERR_NET_NOT_UNSUPPORTED (-469)
1466/** @} */
1467
1468
1469/** @name TCP Status Codes
1470 * @{
1471 */
1472/** Stop the TCP server. */
1473#define VERR_TCP_SERVER_STOP (-500)
1474/** The server was stopped. */
1475#define VINF_TCP_SERVER_STOP 500
1476/** The TCP server was shut down using RTTcpServerShutdown. */
1477#define VERR_TCP_SERVER_SHUTDOWN (-501)
1478/** The TCP server was destroyed. */
1479#define VERR_TCP_SERVER_DESTROYED (-502)
1480/** The TCP server has no client associated with it. */
1481#define VINF_TCP_SERVER_NO_CLIENT 503
1482/** @} */
1483
1484
1485/** @name UDP Status Codes
1486 * @{
1487 */
1488/** Stop the UDP server. */
1489#define VERR_UDP_SERVER_STOP (-520)
1490/** The server was stopped. */
1491#define VINF_UDP_SERVER_STOP 520
1492/** The UDP server was shut down using RTUdpServerShutdown. */
1493#define VERR_UDP_SERVER_SHUTDOWN (-521)
1494/** The UDP server was destroyed. */
1495#define VERR_UDP_SERVER_DESTROYED (-522)
1496/** The UDP server has no client associated with it. */
1497#define VINF_UDP_SERVER_NO_CLIENT 523
1498/** @} */
1499
1500
1501/** @name L4 Specific Status Codes
1502 * @{
1503 */
1504/** Invalid offset in an L4 dataspace */
1505#define VERR_L4_INVALID_DS_OFFSET (-550)
1506/** IPC error */
1507#define VERR_IPC (-551)
1508/** Item already used */
1509#define VERR_RESOURCE_IN_USE (-552)
1510/** Source/destination not found */
1511#define VERR_IPC_PROCESS_NOT_FOUND (-553)
1512/** Receive timeout */
1513#define VERR_IPC_RECEIVE_TIMEOUT (-554)
1514/** Send timeout */
1515#define VERR_IPC_SEND_TIMEOUT (-555)
1516/** Receive cancelled */
1517#define VERR_IPC_RECEIVE_CANCELLED (-556)
1518/** Send cancelled */
1519#define VERR_IPC_SEND_CANCELLED (-557)
1520/** Receive aborted */
1521#define VERR_IPC_RECEIVE_ABORTED (-558)
1522/** Send aborted */
1523#define VERR_IPC_SEND_ABORTED (-559)
1524/** Couldn't map pages during receive */
1525#define VERR_IPC_RECEIVE_MAP_FAILED (-560)
1526/** Couldn't map pages during send */
1527#define VERR_IPC_SEND_MAP_FAILED (-561)
1528/** Send pagefault timeout in receive */
1529#define VERR_IPC_RECEIVE_SEND_PF_TIMEOUT (-562)
1530/** Send pagefault timeout in send */
1531#define VERR_IPC_SEND_SEND_PF_TIMEOUT (-563)
1532/** (One) receive buffer was too small, or too few buffers */
1533#define VINF_IPC_RECEIVE_MSG_CUT 564
1534/** (One) send buffer was too small, or too few buffers */
1535#define VINF_IPC_SEND_MSG_CUT 565
1536/** Dataspace manager server not found */
1537#define VERR_L4_DS_MANAGER_NOT_FOUND (-566)
1538/** @} */
1539
1540
1541/** @name Loader Status Codes.
1542 * @{
1543 */
1544/** Invalid executable signature. */
1545#define VERR_INVALID_EXE_SIGNATURE (-600)
1546/** The iprt loader recognized a ELF image, but doesn't support loading it. */
1547#define VERR_ELF_EXE_NOT_SUPPORTED (-601)
1548/** The iprt loader recognized a PE image, but doesn't support loading it. */
1549#define VERR_PE_EXE_NOT_SUPPORTED (-602)
1550/** The iprt loader recognized a LX image, but doesn't support loading it. */
1551#define VERR_LX_EXE_NOT_SUPPORTED (-603)
1552/** The iprt loader recognized a LE image, but doesn't support loading it. */
1553#define VERR_LE_EXE_NOT_SUPPORTED (-604)
1554/** The iprt loader recognized a NE image, but doesn't support loading it. */
1555#define VERR_NE_EXE_NOT_SUPPORTED (-605)
1556/** The iprt loader recognized a MZ image, but doesn't support loading it. */
1557#define VERR_MZ_EXE_NOT_SUPPORTED (-606)
1558/** The iprt loader recognized an a.out image, but doesn't support loading it. */
1559#define VERR_AOUT_EXE_NOT_SUPPORTED (-607)
1560/** Bad executable. */
1561#define VERR_BAD_EXE_FORMAT (-608)
1562/** Symbol (export) not found. */
1563#define VERR_SYMBOL_NOT_FOUND (-609)
1564/** Module not found. */
1565#define VERR_MODULE_NOT_FOUND (-610)
1566/** The loader resolved an external symbol to an address to big for the image format. */
1567#define VERR_SYMBOL_VALUE_TOO_BIG (-611)
1568/** The image is too big. */
1569#define VERR_IMAGE_TOO_BIG (-612)
1570/** The image base address is to high for this image type. */
1571#define VERR_IMAGE_BASE_TOO_HIGH (-614)
1572/** Mismatching architecture. */
1573#define VERR_LDR_ARCH_MISMATCH (-615)
1574/** Mismatch between IPRT and native loader. */
1575#define VERR_LDR_MISMATCH_NATIVE (-616)
1576/** Failed to resolve an imported (external) symbol. */
1577#define VERR_LDR_IMPORTED_SYMBOL_NOT_FOUND (-617)
1578/** Generic loader failure. */
1579#define VERR_LDR_GENERAL_FAILURE (-618)
1580/** Code signing error. */
1581#define VERR_LDR_IMAGE_HASH (-619)
1582/** The PE loader encountered delayed imports, a feature which hasn't been implemented yet. */
1583#define VERR_LDRPE_DELAY_IMPORT (-620)
1584/** The PE loader encountered a malformed certificate. */
1585#define VERR_LDRPE_CERT_MALFORMED (-621)
1586/** The PE loader encountered a certificate with an unsupported type or structure revision. */
1587#define VERR_LDRPE_CERT_UNSUPPORTED (-622)
1588/** The PE loader doesn't know how to deal with the global pointer data directory entry yet. */
1589#define VERR_LDRPE_GLOBALPTR (-623)
1590/** The PE loader doesn't support the TLS data directory yet. */
1591#define VERR_LDRPE_TLS (-624)
1592/** The PE loader doesn't grok the COM descriptor data directory entry. */
1593#define VERR_LDRPE_COM_DESCRIPTOR (-625)
1594/** The PE loader encountered an unknown load config directory/header size. */
1595#define VERR_LDRPE_LOAD_CONFIG_SIZE (-626)
1596/** The PE loader encountered a lock prefix table, a feature which hasn't been implemented yet. */
1597#define VERR_LDRPE_LOCK_PREFIX_TABLE (-627)
1598/** The PE loader encountered some Guard CF stuff in the load config. */
1599#define VERR_LDRPE_GUARD_CF_STUFF (-628)
1600/** The ELF loader doesn't handle foreign endianness. */
1601#define VERR_LDRELF_ODD_ENDIAN (-630)
1602/** The ELF image is 'dynamic', the ELF loader can only deal with 'relocatable' images at present. */
1603#define VERR_LDRELF_DYN (-631)
1604/** The ELF image is 'executable', the ELF loader can only deal with 'relocatable' images at present. */
1605#define VERR_LDRELF_EXEC (-632)
1606/** The ELF image was created for an unsupported target machine type. */
1607#define VERR_LDRELF_MACHINE (-633)
1608/** The ELF version is not supported. */
1609#define VERR_LDRELF_VERSION (-634)
1610/** The ELF loader cannot handle multiple SYMTAB sections. */
1611#define VERR_LDRELF_MULTIPLE_SYMTABS (-635)
1612/** The ELF loader encountered a relocation type which is not implemented. */
1613#define VERR_LDRELF_RELOCATION_NOT_SUPPORTED (-636)
1614/** The ELF loader encountered a bad symbol index. */
1615#define VERR_LDRELF_INVALID_SYMBOL_INDEX (-637)
1616/** The ELF loader encountered an invalid symbol name offset. */
1617#define VERR_LDRELF_INVALID_SYMBOL_NAME_OFFSET (-638)
1618/** The ELF loader encountered an invalid relocation offset. */
1619#define VERR_LDRELF_INVALID_RELOCATION_OFFSET (-639)
1620/** The ELF loader didn't find the symbol/string table for the image. */
1621#define VERR_LDRELF_NO_SYMBOL_OR_NO_STRING_TABS (-640)
1622/** Invalid link address. */
1623#define VERR_LDR_INVALID_LINK_ADDRESS (-647)
1624/** Invalid image relative virtual address. */
1625#define VERR_LDR_INVALID_RVA (-648)
1626/** Invalid segment:offset address. */
1627#define VERR_LDR_INVALID_SEG_OFFSET (-649)
1628/** @}*/
1629
1630/** @name Debug Info Reader Status Codes.
1631 * @{
1632 */
1633/** The module contains no line number information. */
1634#define VERR_DBG_NO_LINE_NUMBERS (-650)
1635/** The module contains no symbol information. */
1636#define VERR_DBG_NO_SYMBOLS (-651)
1637/** The specified segment:offset address was invalid. Typically an attempt at
1638 * addressing outside the segment boundary. */
1639#define VERR_DBG_INVALID_ADDRESS (-652)
1640/** Invalid segment index. */
1641#define VERR_DBG_INVALID_SEGMENT_INDEX (-653)
1642/** Invalid segment offset. */
1643#define VERR_DBG_INVALID_SEGMENT_OFFSET (-654)
1644/** Invalid image relative virtual address. */
1645#define VERR_DBG_INVALID_RVA (-655)
1646/** Invalid image relative virtual address. */
1647#define VERR_DBG_SPECIAL_SEGMENT (-656)
1648/** Address conflict within a module/segment.
1649 * Attempted to add a segment, symbol or line number that fully or partially
1650 * overlaps with an existing one. */
1651#define VERR_DBG_ADDRESS_CONFLICT (-657)
1652/** Duplicate symbol within the module.
1653 * Attempted to add a symbol which name already exists within the module. */
1654#define VERR_DBG_DUPLICATE_SYMBOL (-658)
1655/** The segment index specified when adding a new segment is already in use. */
1656#define VERR_DBG_SEGMENT_INDEX_CONFLICT (-659)
1657/** No line number was found for the specified address/ordinal/whatever. */
1658#define VERR_DBG_LINE_NOT_FOUND (-660)
1659/** The length of the symbol name is out of range.
1660 * This means it is an empty string or that it's greater or equal to
1661 * RTDBG_SYMBOL_NAME_LENGTH. */
1662#define VERR_DBG_SYMBOL_NAME_OUT_OF_RANGE (-661)
1663/** The length of the file name is out of range.
1664 * This means it is an empty string or that it's greater or equal to
1665 * RTDBG_FILE_NAME_LENGTH. */
1666#define VERR_DBG_FILE_NAME_OUT_OF_RANGE (-662)
1667/** The length of the segment name is out of range.
1668 * This means it is an empty string or that it is greater or equal to
1669 * RTDBG_SEGMENT_NAME_LENGTH. */
1670#define VERR_DBG_SEGMENT_NAME_OUT_OF_RANGE (-663)
1671/** The specified address range wraps around. */
1672#define VERR_DBG_ADDRESS_WRAP (-664)
1673/** The file is not a valid NM map file. */
1674#define VERR_DBG_NOT_NM_MAP_FILE (-665)
1675/** The file is not a valid /proc/kallsyms file. */
1676#define VERR_DBG_NOT_LINUX_KALLSYMS (-666)
1677/** No debug module interpreter matching the debug info. */
1678#define VERR_DBG_NO_MATCHING_INTERPRETER (-667)
1679/** Bad DWARF line number header. */
1680#define VERR_DWARF_BAD_LINE_NUMBER_HEADER (-668)
1681/** Unexpected end of DWARF unit. */
1682#define VERR_DWARF_UNEXPECTED_END (-669)
1683/** DWARF LEB value overflows the decoder type. */
1684#define VERR_DWARF_LEB_OVERFLOW (-670)
1685/** Bad DWARF extended line number opcode. */
1686#define VERR_DWARF_BAD_LNE (-671)
1687/** Bad DWARF string. */
1688#define VERR_DWARF_BAD_STRING (-672)
1689/** Bad DWARF position. */
1690#define VERR_DWARF_BAD_POS (-673)
1691/** Bad DWARF info. */
1692#define VERR_DWARF_BAD_INFO (-674)
1693/** Bad DWARF abbreviation data. */
1694#define VERR_DWARF_BAD_ABBREV (-675)
1695/** A DWARF abbreviation was not found. */
1696#define VERR_DWARF_ABBREV_NOT_FOUND (-676)
1697/** Encountered an unknown attribute form. */
1698#define VERR_DWARF_UNKNOWN_FORM (-677)
1699/** Encountered an unexpected attribute form. */
1700#define VERR_DWARF_UNEXPECTED_FORM (-678)
1701/** Unfinished code. */
1702#define VERR_DWARF_TODO (-679)
1703/** Unknown location opcode. */
1704#define VERR_DWARF_UNKNOWN_LOC_OPCODE (-680)
1705/** Expression stack overflow. */
1706#define VERR_DWARF_STACK_OVERFLOW (-681)
1707/** Expression stack underflow. */
1708#define VERR_DWARF_STACK_UNDERFLOW (-682)
1709/** Internal processing error in the DWARF code. */
1710#define VERR_DWARF_IPE (-683)
1711/** Invalid configuration property value. */
1712#define VERR_DBG_CFG_INVALID_VALUE (-684)
1713/** Not an integer property. */
1714#define VERR_DBG_CFG_NOT_UINT_PROP (-685)
1715/** Deferred loading of information failed. */
1716#define VERR_DBG_DEFERRED_LOAD_FAILED (-686)
1717/** Unfinished debug info reader code. */
1718#define VERR_DBG_TODO (-687)
1719/** Found file, but it didn't match the search criteria. */
1720#define VERR_DBG_FILE_MISMATCH (-688)
1721/** Internal processing error in the debug module reader code. */
1722#define VERR_DBG_MOD_IPE (-689)
1723/** The symbol size was adjusted while adding it. */
1724#define VINF_DBG_ADJUSTED_SYM_SIZE 690
1725/** Unable to parse the CodeView debug information. */
1726#define VERR_CV_BAD_FORMAT (-691)
1727/** Unfinished CodeView debug information feature. */
1728#define VERR_CV_TODO (-692)
1729/** Internal processing error the CodeView debug information reader. */
1730#define VERR_CV_IPE (-693)
1731/** No unwind information was found. */
1732#define VERR_DBG_NO_UNWIND_INFO (-694)
1733/** No unwind information for the specified location. */
1734#define VERR_DBG_UNWIND_INFO_NOT_FOUND (-695)
1735/** Malformed unwind information. */
1736#define VERR_DBG_MALFORMED_UNWIND_INFO (-696)
1737/** @} */
1738
1739/** @name Request Packet Status Codes.
1740 * @{
1741 */
1742/** Invalid RT request type.
1743 * For the RTReqAlloc() case, the caller just specified an illegal enmType. For
1744 * all the other occurrences it means indicates corruption, broken logic, or stupid
1745 * interface user. */
1746#define VERR_RT_REQUEST_INVALID_TYPE (-700)
1747/** Invalid RT request state.
1748 * The state of the request packet was not the expected and accepted one(s). Either
1749 * the interface user screwed up, or we've got corruption/broken logic. */
1750#define VERR_RT_REQUEST_STATE (-701)
1751/** Invalid RT request packet.
1752 * One or more of the RT controlled packet members didn't contain the correct
1753 * values. Some thing's broken. */
1754#define VERR_RT_REQUEST_INVALID_PACKAGE (-702)
1755/** The status field has not been updated yet as the request is still
1756 * pending completion. Someone queried the iStatus field before the request
1757 * has been fully processed. */
1758#define VERR_RT_REQUEST_STATUS_STILL_PENDING (-703)
1759/** The request has been freed, don't read the status now.
1760 * Someone is reading the iStatus field of a freed request packet. */
1761#define VERR_RT_REQUEST_STATUS_FREED (-704)
1762/** @} */
1763
1764/** @name Environment Status Code
1765 * @{
1766 */
1767/** The specified environment variable was not found. (RTEnvGetEx) */
1768#define VERR_ENV_VAR_NOT_FOUND (-750)
1769/** The specified environment variable was not found. (RTEnvUnsetEx) */
1770#define VINF_ENV_VAR_NOT_FOUND (750)
1771/** Unable to translate all the variables in the default environment due to
1772 * codeset issues (LANG / LC_ALL / LC_CTYPE). */
1773#define VWRN_ENV_NOT_FULLY_TRANSLATED (751)
1774/** Invalid environment variable name. */
1775#define VERR_ENV_INVALID_VAR_NAME (-752)
1776/** The environment variable is an unset record. */
1777#define VINF_ENV_VAR_UNSET (753)
1778/** The environment variable has been recorded as being unset. */
1779#define VERR_ENV_VAR_UNSET (-753)
1780/** @} */
1781
1782/** @name Multiprocessor Status Codes.
1783 * @{
1784 */
1785/** The specified cpu is offline. */
1786#define VERR_CPU_OFFLINE (-800)
1787/** The specified cpu was not found. */
1788#define VERR_CPU_NOT_FOUND (-801)
1789/** Not all of the requested CPUs showed up in the PFNRTMPWORKER. */
1790#define VERR_NOT_ALL_CPUS_SHOWED (-802)
1791/** Internal processing error in the RTMp code.*/
1792#define VERR_CPU_IPE_1 (-803)
1793/** @} */
1794
1795/** @name RTGetOpt status codes
1796 * @{ */
1797/** RTGetOpt: Command line option not recognized. */
1798#define VERR_GETOPT_UNKNOWN_OPTION (-825)
1799/** RTGetOpt: Command line option needs argument. */
1800#define VERR_GETOPT_REQUIRED_ARGUMENT_MISSING (-826)
1801/** RTGetOpt: Command line option has argument with bad format. */
1802#define VERR_GETOPT_INVALID_ARGUMENT_FORMAT (-827)
1803/** RTGetOpt: Not an option. */
1804#define VINF_GETOPT_NOT_OPTION 828
1805/** RTGetOpt: Command line option needs an index. */
1806#define VERR_GETOPT_INDEX_MISSING (-829)
1807/** @} */
1808
1809/** @name RTCache status codes
1810 * @{ */
1811/** RTCache: cache is full. */
1812#define VERR_CACHE_FULL (-850)
1813/** RTCache: cache is empty. */
1814#define VERR_CACHE_EMPTY (-851)
1815/** @} */
1816
1817/** @name RTMemCache status codes
1818 * @{ */
1819/** Reached the max cache size. */
1820#define VERR_MEM_CACHE_MAX_SIZE (-855)
1821/** @} */
1822
1823/** @name RTS3 status codes
1824 * @{ */
1825/** Access denied error. */
1826#define VERR_S3_ACCESS_DENIED (-875)
1827/** The bucket/key wasn't found. */
1828#define VERR_S3_NOT_FOUND (-876)
1829/** Bucket already exists. */
1830#define VERR_S3_BUCKET_ALREADY_EXISTS (-877)
1831/** Can't delete bucket with keys. */
1832#define VERR_S3_BUCKET_NOT_EMPTY (-878)
1833/** The current operation was canceled. */
1834#define VERR_S3_CANCELED (-879)
1835/** @} */
1836
1837/** @name HTTP status codes
1838 * @{ */
1839/** HTTP initialization failed. */
1840#define VERR_HTTP_INIT_FAILED (-885)
1841/** The server has not found anything matching the URI given. */
1842#define VERR_HTTP_NOT_FOUND (-886)
1843/** The request is for something forbidden. Authorization will not help. */
1844#define VERR_HTTP_ACCESS_DENIED (-887)
1845/** The server did not understand the request due to bad syntax. */
1846#define VERR_HTTP_BAD_REQUEST (-888)
1847/** Couldn't connect to the server (proxy?). */
1848#define VERR_HTTP_COULDNT_CONNECT (-889)
1849/** SSL connection error. */
1850#define VERR_HTTP_SSL_CONNECT_ERROR (-890)
1851/** CAcert is missing or has the wrong format. */
1852#define VERR_HTTP_CACERT_WRONG_FORMAT (-891)
1853/** Certificate cannot be authenticated with the given CA certificates. */
1854#define VERR_HTTP_CACERT_CANNOT_AUTHENTICATE (-892)
1855/** The current HTTP request was forcefully aborted */
1856#define VERR_HTTP_ABORTED (-893)
1857/** Request was redirected. */
1858#define VERR_HTTP_REDIRECTED (-894)
1859/** Proxy couldn't be resolved. */
1860#define VERR_HTTP_PROXY_NOT_FOUND (-895)
1861/** The remote host couldn't be resolved. */
1862#define VERR_HTTP_HOST_NOT_FOUND (-896)
1863/** Unexpected cURL error configure the proxy. */
1864#define VERR_HTTP_CURL_PROXY_CONFIG (-897)
1865/** Generic CURL error. */
1866#define VERR_HTTP_CURL_ERROR (-899)
1867/** @} */
1868
1869/** @name RTManifest status codes
1870 * @{ */
1871/** A digest type used in the manifest file isn't supported. */
1872#define VERR_MANIFEST_UNSUPPORTED_DIGEST_TYPE (-900)
1873/** An entry in the manifest file couldn't be interpreted correctly. */
1874#define VERR_MANIFEST_WRONG_FILE_FORMAT (-901)
1875/** A digest doesn't match the corresponding file. */
1876#define VERR_MANIFEST_DIGEST_MISMATCH (-902)
1877/** The file list doesn't match to the content of the manifest file. */
1878#define VERR_MANIFEST_FILE_MISMATCH (-903)
1879/** The specified attribute (name) was not found in the manifest. */
1880#define VERR_MANIFEST_ATTR_NOT_FOUND (-904)
1881/** The attribute type did not match. */
1882#define VERR_MANIFEST_ATTR_TYPE_MISMATCH (-905)
1883/** No attribute of the specified types was found. */
1884#define VERR_MANIFEST_ATTR_TYPE_NOT_FOUND (-906)
1885/** @} */
1886
1887/** @name RTTar status codes
1888 * @{ */
1889/** The checksum of a tar header record doesn't match. */
1890#define VERR_TAR_CHKSUM_MISMATCH (-925)
1891/** The tar end of file record was read. */
1892#define VERR_TAR_END_OF_FILE (-926)
1893/** The tar file ended unexpectedly. */
1894#define VERR_TAR_UNEXPECTED_EOS (-927)
1895/** The tar termination records was encountered without reaching the end of
1896 * the input stream. */
1897#define VERR_TAR_EOS_MORE_INPUT (-928)
1898/** A number tar header field was malformed. */
1899#define VERR_TAR_BAD_NUM_FIELD (-929)
1900/** A numeric tar header field was not terminated correctly. */
1901#define VERR_TAR_BAD_NUM_FIELD_TERM (-930)
1902/** A number tar header field was encoded using base-256 which this
1903 * tar implementation currently does not support. */
1904#define VERR_TAR_BASE_256_NOT_SUPPORTED (-931)
1905/** A number tar header field yielded a value too large for the internal
1906 * variable of the tar interpreter. */
1907#define VERR_TAR_NUM_VALUE_TOO_LARGE (-932)
1908/** The combined minor and major device number type is too small to hold the
1909 * value stored in the tar header. */
1910#define VERR_TAR_DEV_VALUE_TOO_LARGE (-933)
1911/** The mode field in a tar header is bad. */
1912#define VERR_TAR_BAD_MODE_FIELD (-934)
1913/** The mode field should not include the type. */
1914#define VERR_TAR_MODE_WITH_TYPE (-935)
1915/** The size field should be zero for links and symlinks. */
1916#define VERR_TAR_SIZE_NOT_ZERO (-936)
1917/** Encountered an unknown type flag. */
1918#define VERR_TAR_UNKNOWN_TYPE_FLAG (-937)
1919/** The tar header is all zeros. */
1920#define VERR_TAR_ZERO_HEADER (-938)
1921/** Not a uniform standard tape v0.0 archive header. */
1922#define VERR_TAR_NOT_USTAR_V00 (-939)
1923/** The name is empty. */
1924#define VERR_TAR_EMPTY_NAME (-940)
1925/** A non-directory entry has a name ending with a slash. */
1926#define VERR_TAR_NON_DIR_ENDS_WITH_SLASH (-941)
1927/** Encountered an unsupported portable archive exchange (pax) header. */
1928#define VERR_TAR_UNSUPPORTED_PAX_TYPE (-942)
1929/** Encountered an unsupported Solaris Tar extension. */
1930#define VERR_TAR_UNSUPPORTED_SOLARIS_HDR_TYPE (-943)
1931/** Encountered an unsupported GNU Tar extension. */
1932#define VERR_TAR_UNSUPPORTED_GNU_HDR_TYPE (-944)
1933/** Malformed checksum field in the tar header. */
1934#define VERR_TAR_BAD_CHKSUM_FIELD (-945)
1935/** Malformed checksum field in the tar header. */
1936#define VERR_TAR_MALFORMED_GNU_LONGXXXX (-946)
1937/** Too long name or link string. */
1938#define VERR_TAR_NAME_TOO_LONG (-947)
1939/** A directory entry in the archive. */
1940#define VINF_TAR_DIR_PATH (948)
1941/** @} */
1942
1943/** @name RTPoll status codes
1944 * @{ */
1945/** The handle is not pollable. */
1946#define VERR_POLL_HANDLE_NOT_POLLABLE (-950)
1947/** The handle ID is already present in the poll set. */
1948#define VERR_POLL_HANDLE_ID_EXISTS (-951)
1949/** The handle ID was not found in the set. */
1950#define VERR_POLL_HANDLE_ID_NOT_FOUND (-952)
1951/** The poll set is full. */
1952#define VERR_POLL_SET_IS_FULL (-953)
1953/** @} */
1954
1955/** @name Pkzip status codes
1956 * @{ */
1957/** No end of central directory record found. */
1958#define VERR_PKZIP_NO_EOCB (-960)
1959/** Too long name string. */
1960#define VERR_PKZIP_NAME_TOO_LONG (-961)
1961/** Local file header corrupt. */
1962#define VERR_PKZIP_BAD_LF_HEADER (-962)
1963/** Central directory file header corrupt. */
1964#define VERR_PKZIP_BAD_CDF_HEADER (-963)
1965/** Encountered an unknown type flag. */
1966#define VERR_PKZIP_UNKNOWN_TYPE_FLAG (-964)
1967/** Found a ZIP64 Extra Information Field in a ZIP32 file. */
1968#define VERR_PKZIP_ZIP64EX_IN_ZIP32 (-965)
1969
1970
1971/** @name RTZip status codes
1972 * @{ */
1973/** Generic zip error. */
1974#define VERR_ZIP_ERROR (-22000)
1975/** The compressed data was corrupted. */
1976#define VERR_ZIP_CORRUPTED (-22001)
1977/** Ran out of memory while compressing or uncompressing. */
1978#define VERR_ZIP_NO_MEMORY (-22002)
1979/** The compression format version is unsupported. */
1980#define VERR_ZIP_UNSUPPORTED_VERSION (-22003)
1981/** The compression method is unsupported. */
1982#define VERR_ZIP_UNSUPPORTED_METHOD (-22004)
1983/** The compressed data started with a bad header. */
1984#define VERR_ZIP_BAD_HEADER (-22005)
1985/** @} */
1986
1987/** @name RTVfs status codes
1988 * @{ */
1989/** The VFS chain specification does not have a valid prefix. */
1990#define VERR_VFS_CHAIN_NO_PREFIX (-22100)
1991/** The VFS chain specification is empty. */
1992#define VERR_VFS_CHAIN_EMPTY (-22101)
1993/** Expected an element. */
1994#define VERR_VFS_CHAIN_EXPECTED_ELEMENT (-22102)
1995/** The VFS object type is not known. */
1996#define VERR_VFS_CHAIN_UNKNOWN_TYPE (-22103)
1997/** Expected a left parentheses. */
1998#define VERR_VFS_CHAIN_EXPECTED_LEFT_PARENTHESES (-22104)
1999/** Expected a right parentheses. */
2000#define VERR_VFS_CHAIN_EXPECTED_RIGHT_PARENTHESES (-22105)
2001/** Expected a provider name. */
2002#define VERR_VFS_CHAIN_EXPECTED_PROVIDER_NAME (-22106)
2003/** Expected an element separator (| or :). */
2004#define VERR_VFS_CHAIN_EXPECTED_SEPARATOR (-22107)
2005/** Leading element separator not permitted. */
2006#define VERR_VFS_CHAIN_LEADING_SEPARATOR (-22108)
2007/** Trailing element separator not permitted. */
2008#define VERR_VFS_CHAIN_TRAILING_SEPARATOR (-22109)
2009/** The provider is only allowed as the first element. */
2010#define VERR_VFS_CHAIN_MUST_BE_FIRST_ELEMENT (-22110)
2011/** The provider cannot be the first element. */
2012#define VERR_VFS_CHAIN_CANNOT_BE_FIRST_ELEMENT (-22111)
2013/** VFS object cast failed. */
2014#define VERR_VFS_CHAIN_CAST_FAILED (-22112)
2015/** Internal error in the VFS chain code. */
2016#define VERR_VFS_CHAIN_IPE (-22113)
2017/** VFS chain element provider not found. */
2018#define VERR_VFS_CHAIN_PROVIDER_NOT_FOUND (-22114)
2019/** VFS chain does not terminate with the desired object type. */
2020#define VERR_VFS_CHAIN_FINAL_TYPE_MISMATCH (-22115)
2021/** VFS chain element takes no arguments. */
2022#define VERR_VFS_CHAIN_NO_ARGS (-22116)
2023/** VFS chain element takes exactly one argument. */
2024#define VERR_VFS_CHAIN_ONE_ARG (-22117)
2025/** VFS chain element expected at most one argument. */
2026#define VERR_VFS_CHAIN_AT_MOST_ONE_ARG (-22118)
2027/** VFS chain element expected at least one argument. */
2028#define VERR_VFS_CHAIN_AT_LEAST_ONE_ARG (-22119)
2029/** VFS chain element takes exactly two arguments. */
2030#define VERR_VFS_CHAIN_TWO_ARGS (-22120)
2031/** VFS chain element expected at least two arguments. */
2032#define VERR_VFS_CHAIN_AT_LEAST_TWO_ARGS (-22121)
2033/** VFS chain element expected at most two arguments. */
2034#define VERR_VFS_CHAIN_AT_MOST_TWO_ARGS (-22122)
2035/** VFS chain element takes exactly three arguments. */
2036#define VERR_VFS_CHAIN_THREE_ARGS (-22123)
2037/** VFS chain element expected at least three arguments. */
2038#define VERR_VFS_CHAIN_AT_LEAST_THREE_ARGS (-22124)
2039/** VFS chain element expected at most three arguments. */
2040#define VERR_VFS_CHAIN_AT_MOST_THREE_ARGS (-22125)
2041/** VFS chain element takes exactly four arguments. */
2042#define VERR_VFS_CHAIN_FOUR_ARGS (-22126)
2043/** VFS chain element expected at least four arguments. */
2044#define VERR_VFS_CHAIN_AT_LEAST_FOUR_ARGS (-22127)
2045/** VFS chain element expected at most four arguments. */
2046#define VERR_VFS_CHAIN_AT_MOST_FOUR_ARGS (-22128)
2047/** VFS chain element takes exactly five arguments. */
2048#define VERR_VFS_CHAIN_FIVE_ARGS (-22129)
2049/** VFS chain element expected at least five arguments. */
2050#define VERR_VFS_CHAIN_AT_LEAST_FIVE_ARGS (-22130)
2051/** VFS chain element expected at most five arguments. */
2052#define VERR_VFS_CHAIN_AT_MOST_FIVE_ARGS (-22131)
2053/** VFS chain element takes exactly six arguments. */
2054#define VERR_VFS_CHAIN_SIX_ARGS (-22132)
2055/** VFS chain element expected at least six arguments. */
2056#define VERR_VFS_CHAIN_AT_LEAST_SIX_ARGS (-22133)
2057/** VFS chain element expected at most six arguments. */
2058#define VERR_VFS_CHAIN_AT_MOST_SIX_ARGS (-22134)
2059/** VFS chain element expected at most six arguments. */
2060#define VERR_VFS_CHAIN_TOO_FEW_ARGS (-22135)
2061/** VFS chain element expected at most six arguments. */
2062#define VERR_VFS_CHAIN_TOO_MANY_ARGS (-22136)
2063/** VFS chain element expected non-empty argument. */
2064#define VERR_VFS_CHAIN_EMPTY_ARG (-22137)
2065/** Invalid argument to VFS chain element. */
2066#define VERR_VFS_CHAIN_INVALID_ARGUMENT (-22138)
2067/** VFS chain element only provides file and I/O stream (ios) objects. */
2068#define VERR_VFS_CHAIN_ONLY_FILE_OR_IOS (-22139)
2069/** VFS chain element only provides I/O stream (ios) objects. */
2070#define VERR_VFS_CHAIN_ONLY_IOS (-22140)
2071/** VFS chain element only provides directory (dir) objects. */
2072#define VERR_VFS_CHAIN_ONLY_DIR (-22141)
2073/** VFS chain element only provides file system stream (fss) objects. */
2074#define VERR_VFS_CHAIN_ONLY_FSS (-22142)
2075/** VFS chain element only provides file system (vfs) objects. */
2076#define VERR_VFS_CHAIN_ONLY_VFS (-22143)
2077/** VFS chain element only provides file, I/O stream (ios), or
2078 * directory (dir) objects. */
2079#define VERR_VFS_CHAIN_ONLY_FILE_OR_IOS_OR_DIR (-22144)
2080/** VFS chain element only provides file, I/O stream (ios), or
2081 * directory (dir) objects. */
2082#define VERR_VFS_CHAIN_ONLY_DIR_OR_VFS (-22145)
2083/** VFS chain element takes a file object as input. */
2084#define VERR_VFS_CHAIN_TAKES_FILE (-22146)
2085/** VFS chain element takes a file or I/O stream (ios) object as input. */
2086#define VERR_VFS_CHAIN_TAKES_FILE_OR_IOS (-22147)
2087/** VFS chain element takes a directory (dir) object as input. */
2088#define VERR_VFS_CHAIN_TAKES_DIR (-22148)
2089/** VFS chain element takes a file system stream (fss) object as input. */
2090#define VERR_VFS_CHAIN_TAKES_FSS (-22149)
2091/** VFS chain element takes a file system (vfs) object as input. */
2092#define VERR_VFS_CHAIN_TAKES_VFS (-22150)
2093/** VFS chain element takes a directory (dir) or file system (vfs)
2094 * object as input. */
2095#define VERR_VFS_CHAIN_TAKES_DIR_OR_VFS (-22151)
2096/** VFS chain element takes a directory (dir), file system stream (fss),
2097 * or file system (vfs) object as input. */
2098#define VERR_VFS_CHAIN_TAKES_DIR_OR_FSS_OR_VFS (-22152)
2099/** VFS chain element only provides a read-only I/O stream, while the chain
2100 * requires write access. */
2101#define VERR_VFS_CHAIN_READ_ONLY_IOS (-22153)
2102/** VFS chain element only provides a read-only I/O stream, while the chain
2103 * read access. */
2104#define VERR_VFS_CHAIN_WRITE_ONLY_IOS (-22154)
2105/** VFS chain only has a single element and it is just a path, need to be
2106 * treated as a normal file system request. */
2107#define VERR_VFS_CHAIN_PATH_ONLY (-22155)
2108/** VFS chain element preceding the final path needs to be a directory, file
2109 * system or file system stream. */
2110#define VERR_VFS_CHAIN_TYPE_MISMATCH_PATH_ONLY (-22156)
2111/** VFS chain doesn't end with a path only element. */
2112#define VERR_VFS_CHAIN_NOT_PATH_ONLY (-22157)
2113/** The path only element at the end of the VFS chain is too short to make out
2114 * the parent directory. */
2115#define VERR_VFS_CHAIN_TOO_SHORT_FOR_PARENT (-22158)
2116/** @} */
2117
2118/** @name RTDvm status codes
2119 * @{ */
2120/** The volume map doesn't contain any valid volume. */
2121#define VERR_DVM_MAP_EMPTY (-22200)
2122/** There is no volume behind the current one. */
2123#define VERR_DVM_MAP_NO_VOLUME (-22201)
2124/** @} */
2125
2126/** @name Logger status codes
2127 * @{ */
2128/** The internal logger revision did not match. */
2129#define VERR_LOG_REVISION_MISMATCH (-22300)
2130/** @} */
2131
2132/* see above, 22400..22499 is used for misc codes! */
2133
2134/** @name Logger status codes
2135 * @{ */
2136/** Power off is not supported by the hardware or the OS. */
2137#define VERR_SYS_CANNOT_POWER_OFF (-22500)
2138/** The halt action was requested, but the OS may actually power
2139 * off the machine. */
2140#define VINF_SYS_MAY_POWER_OFF (22501)
2141/** Shutdown failed. */
2142#define VERR_SYS_SHUTDOWN_FAILED (-22502)
2143/** @} */
2144
2145/** @name Filesystem status codes
2146 * @{ */
2147/** Filesystem can't be opened because it is corrupt. */
2148#define VERR_FILESYSTEM_CORRUPT (-22600)
2149/** @} */
2150
2151/** @name RTZipXar status codes.
2152 * @{ */
2153/** Wrong magic value. */
2154#define VERR_XAR_WRONG_MAGIC (-22700)
2155/** Bad header size. */
2156#define VERR_XAR_BAD_HDR_SIZE (-22701)
2157/** Unsupported version. */
2158#define VERR_XAR_UNSUPPORTED_VERSION (-22702)
2159/** Unsupported hashing function. */
2160#define VERR_XAR_UNSUPPORTED_HASH_FUNCTION (-22703)
2161/** The table of content (TOC) is too small and therefore can't be valid. */
2162#define VERR_XAR_TOC_TOO_SMALL (-22704)
2163/** The table of content (TOC) is too big. */
2164#define VERR_XAR_TOC_TOO_BIG (-22705)
2165/** The compressed table of content is too big. */
2166#define VERR_XAR_TOC_TOO_BIG_COMPRESSED (-22706)
2167/** The uncompressed table of content size in the header didn't match what
2168 * ZLib returned. */
2169#define VERR_XAR_TOC_UNCOMP_SIZE_MISMATCH (-22707)
2170/** The table of content string length didn't match the size specified in the
2171 * header. */
2172#define VERR_XAR_TOC_STRLEN_MISMATCH (-22708)
2173/** The table of content isn't valid UTF-8. */
2174#define VERR_XAR_TOC_UTF8_ENCODING (-22709)
2175/** XML error while parsing the table of content. */
2176#define VERR_XAR_TOC_XML_PARSE_ERROR (-22710)
2177/** The table of content XML document does not have a toc element. */
2178#define VERR_XML_TOC_ELEMENT_MISSING (-22711)
2179/** The table of content XML element (toc) has siblings, we expected it to be
2180 * an only child or the root element (xar). */
2181#define VERR_XML_TOC_ELEMENT_HAS_SIBLINGS (-22712)
2182/** The XAR table of content digest doesn't match. */
2183#define VERR_XAR_TOC_DIGEST_MISMATCH (-22713)
2184/** Bad or missing XAR checksum element. */
2185#define VERR_XAR_BAD_CHECKSUM_ELEMENT (-22714)
2186/** The hash function in the header doesn't match the one in the table of
2187 * content. */
2188#define VERR_XAR_HASH_FUNCTION_MISMATCH (-22715)
2189/** Bad digest length encountered in the table of content. */
2190#define VERR_XAR_BAD_DIGEST_LENGTH (-22716)
2191/** The order of elements in the XAR file does not lend it self to expansion
2192 * from via an I/O stream. */
2193#define VERR_XAR_NOT_STREAMBLE_ELEMENT_ORDER (-22717)
2194/** Missing offset element in table of content sub-element. */
2195#define VERR_XAR_MISSING_OFFSET_ELEMENT (-22718)
2196/** Bad offset element in table of content sub-element. */
2197#define VERR_XAR_BAD_OFFSET_ELEMENT (-22719)
2198/** Missing size element in table of content sub-element. */
2199#define VERR_XAR_MISSING_SIZE_ELEMENT (-22720)
2200/** Bad size element in table of content sub-element. */
2201#define VERR_XAR_BAD_SIZE_ELEMENT (-22721)
2202/** Missing length element in table of content sub-element. */
2203#define VERR_XAR_MISSING_LENGTH_ELEMENT (-22722)
2204/** Bad length element in table of content sub-element. */
2205#define VERR_XAR_BAD_LENGTH_ELEMENT (-22723)
2206/** Bad file element in XAR table of content. */
2207#define VERR_XAR_BAD_FILE_ELEMENT (-22724)
2208/** Missing data element for XAR file. */
2209#define VERR_XAR_MISSING_DATA_ELEMENT (-22725)
2210/** Unknown XAR file type value. */
2211#define VERR_XAR_UNKNOWN_FILE_TYPE (-22726)
2212/** Missing encoding element for XAR data stream. */
2213#define VERR_XAR_NO_ENCODING (-22727)
2214/** Bad timestamp for XAR file. */
2215#define VERR_XAR_BAD_FILE_TIMESTAMP (-22728)
2216/** Bad file mode for XAR file. */
2217#define VERR_XAR_BAD_FILE_MODE (-22729)
2218/** Bad file user id for XAR file. */
2219#define VERR_XAR_BAD_FILE_UID (-22730)
2220/** Bad file group id for XAR file. */
2221#define VERR_XAR_BAD_FILE_GID (-22731)
2222/** Bad file inode device number for XAR file. */
2223#define VERR_XAR_BAD_FILE_DEVICE_NO (-22732)
2224/** Bad file inode number for XAR file. */
2225#define VERR_XAR_BAD_FILE_INODE (-22733)
2226/** Invalid name for XAR file. */
2227#define VERR_XAR_INVALID_FILE_NAME (-22734)
2228/** The message digest of the extracted data does not match the one supplied. */
2229#define VERR_XAR_EXTRACTED_HASH_MISMATCH (-22735)
2230/** The extracted data has exceeded the expected size. */
2231#define VERR_XAR_EXTRACTED_SIZE_EXCEEDED (-22736)
2232/** The message digest of the archived data does not match the one supplied. */
2233#define VERR_XAR_ARCHIVED_HASH_MISMATCH (-22737)
2234/** The decompressor completed without using all the input data. */
2235#define VERR_XAR_UNUSED_ARCHIVED_DATA (-22738)
2236/** Expected the archived and extracted XAR data sizes to be the same for
2237 * uncompressed data. */
2238#define VERR_XAR_ARCHIVED_AND_EXTRACTED_SIZES_MISMATCH (-22739)
2239/** @} */
2240
2241/** @name RTX509 status codes
2242 * @{ */
2243/** Error reading a certificate in PEM format from BIO. */
2244#define VERR_X509_READING_CERT_FROM_BIO (-23100)
2245/** Error extracting a public key from the certificate. */
2246#define VERR_X509_EXTRACT_PUBKEY_FROM_CERT (-23101)
2247/** Error extracting RSA from the public key. */
2248#define VERR_X509_EXTRACT_RSA_FROM_PUBLIC_KEY (-23102)
2249/** Signature verification failed. */
2250#define VERR_X509_RSA_VERIFICATION_FUILURE (-23103)
2251/** Basic constraints were not found. */
2252#define VERR_X509_NO_BASIC_CONSTARAINTS (-23104)
2253/** Error getting extensions from the certificate. */
2254#define VERR_X509_GETTING_EXTENSION_FROM_CERT (-23105)
2255/** Error getting a data from the extension. */
2256#define VERR_X509_GETTING_DATA_FROM_EXTENSION (-23106)
2257/** Error formatting an extension. */
2258#define VERR_X509_PRINT_EXTENSION_TO_BIO (-23107)
2259/** X509 certificate verification error. */
2260#define VERR_X509_CERTIFICATE_VERIFICATION_FAILURE (-23108)
2261/** X509 certificate isn't self signed. */
2262#define VERR_X509_NOT_SELFSIGNED_CERTIFICATE (-23109)
2263/** Warning X509 certificate isn't self signed. */
2264#define VINF_X509_NOT_SELFSIGNED_CERTIFICATE 23109
2265/** @} */
2266
2267/** @name RTAsn1 status codes
2268 * @{ */
2269/** Temporary place holder. */
2270#define VERR_ASN1_ERROR (-22800)
2271/** Encountered an ASN.1 string type that is not supported. */
2272#define VERR_ASN1_STRING_TYPE_NOT_IMPLEMENTED (-22801)
2273/** Invalid ASN.1 UTF-8 STRING encoding. */
2274#define VERR_ASN1_INVALID_UTF8_STRING_ENCODING (-22802)
2275/** Invalid ASN.1 NUMERIC STRING encoding. */
2276#define VERR_ASN1_INVALID_NUMERIC_STRING_ENCODING (-22803)
2277/** Invalid ASN.1 PRINTABLE STRING encoding. */
2278#define VERR_ASN1_INVALID_PRINTABLE_STRING_ENCODING (-22804)
2279/** Invalid ASN.1 T61/TELETEX STRING encoding. */
2280#define VERR_ASN1_INVALID_T61_STRING_ENCODING (-22805)
2281/** Invalid ASN.1 VIDEOTEX STRING encoding. */
2282#define VERR_ASN1_INVALID_VIDEOTEX_STRING_ENCODING (-22806)
2283/** Invalid ASN.1 IA5 STRING encoding. */
2284#define VERR_ASN1_INVALID_IA5_STRING_ENCODING (-22807)
2285/** Invalid ASN.1 GRAPHIC STRING encoding. */
2286#define VERR_ASN1_INVALID_GRAPHIC_STRING_ENCODING (-22808)
2287/** Invalid ASN.1 ISO-646/VISIBLE STRING encoding. */
2288#define VERR_ASN1_INVALID_VISIBLE_STRING_ENCODING (-22809)
2289/** Invalid ASN.1 GENERAL STRING encoding. */
2290#define VERR_ASN1_INVALID_GENERAL_STRING_ENCODING (-22810)
2291/** Invalid ASN.1 UNIVERSAL STRING encoding. */
2292#define VERR_ASN1_INVALID_UNIVERSAL_STRING_ENCODING (-22811)
2293/** Invalid ASN.1 BMP STRING encoding. */
2294#define VERR_ASN1_INVALID_BMP_STRING_ENCODING (-22812)
2295/** Invalid ASN.1 OBJECT IDENTIFIER encoding. */
2296#define VERR_ASN1_INVALID_OBJID_ENCODING (-22813)
2297/** A component value of an ASN.1 OBJECT IDENTIFIER is too big for our
2298 * internal representation (32-bits). */
2299#define VERR_ASN1_OBJID_COMPONENT_TOO_BIG (-22814)
2300/** Too many components in an ASN.1 OBJECT IDENTIFIER for our internal
2301 * representation. */
2302#define VERR_ASN1_OBJID_TOO_MANY_COMPONENTS (-22815)
2303/** The dotted-string representation of an ASN.1 OBJECT IDENTIFIER would be too
2304 * long for our internal representation. */
2305#define VERR_ASN1_OBJID_TOO_LONG_STRING_FORM (-22816)
2306/** Invalid dotted string. */
2307#define VERR_ASN1_OBJID_INVALID_DOTTED_STRING (-22817)
2308/** Constructed string type not implemented. */
2309#define VERR_ASN1_CONSTRUCTED_STRING_NOT_IMPL (-22818)
2310/** Expected a different string tag. */
2311#define VERR_ASN1_STRING_TAG_MISMATCH (-22819)
2312/** Expected a different time tag. */
2313#define VERR_ASN1_TIME_TAG_MISMATCH (-22820)
2314/** More unconsumed data available. */
2315#define VINF_ASN1_MORE_DATA (22821)
2316/** RTAsnEncodeWriteHeader return code indicating that nothing was written
2317 * and the content should be skipped as well. */
2318#define VINF_ASN1_NOT_ENCODED (22822)
2319/** Unknown escape sequence encountered in TeletexString. */
2320#define VERR_ASN1_TELETEX_UNKNOWN_ESC_SEQ (-22823)
2321/** Unsupported escape sequence encountered in TeletexString. */
2322#define VERR_ASN1_TELETEX_UNSUPPORTED_ESC_SEQ (-22824)
2323/** Unsupported character set. */
2324#define VERR_ASN1_TELETEX_UNSUPPORTED_CHARSET (-22825)
2325/** ASN.1 object has no virtual method table. */
2326#define VERR_ASN1_NO_VTABLE (-22826)
2327/** ASN.1 object has no pfnCheckSanity method. */
2328#define VERR_ASN1_NO_CHECK_SANITY_METHOD (-22827)
2329/** ASN.1 object is not present */
2330#define VERR_ASN1_NOT_PRESENT (-22828)
2331/** There are unconsumed bytes after decoding an ASN.1 object. */
2332#define VERR_ASN1_CURSOR_NOT_AT_END (-22829)
2333/** Long ASN.1 tag form is not implemented. */
2334#define VERR_ASN1_CURSOR_LONG_TAG (-22830)
2335/** Bad ASN.1 object length encoding. */
2336#define VERR_ASN1_CURSOR_BAD_LENGTH_ENCODING (-22831)
2337/** Indefinite length form is against the rules. */
2338#define VERR_ASN1_CURSOR_ILLEGAL_IDEFINITE_LENGTH (-22832)
2339/** Indefinite length form is not implemented. */
2340#define VERR_ASN1_CURSOR_IDEFINITE_LENGTH_NOT_SUP (-22833)
2341/** ASN.1 object length goes beyond the end of the byte stream being decoded. */
2342#define VERR_ASN1_CURSOR_BAD_LENGTH (-22834)
2343/** Not more data in ASN.1 byte stream. */
2344#define VERR_ASN1_CURSOR_NO_MORE_DATA (-22835)
2345/** Too little data in ASN.1 byte stream. */
2346#define VERR_ASN1_CURSOR_TOO_LITTLE_DATA_LEFT (-22836)
2347/** Constructed string is not according to the encoding rules. */
2348#define VERR_ASN1_CURSOR_ILLEGAL_CONSTRUCTED_STRING (-22837)
2349/** Unexpected ASN.1 tag encountered while decoding. */
2350#define VERR_ASN1_CURSOR_TAG_MISMATCH (-22838)
2351/** Unexpected ASN.1 tag class/flag encountered while decoding. */
2352#define VERR_ASN1_CURSOR_TAG_FLAG_CLASS_MISMATCH (-22839)
2353/** ASN.1 bit string object is out of bounds. */
2354#define VERR_ASN1_BITSTRING_OUT_OF_BOUNDS (-22840)
2355/** Bad ASN.1 time object. */
2356#define VERR_ASN1_TIME_BAD_NORMALIZE_INPUT (-22841)
2357/** Failed to normalize ASN.1 time object. */
2358#define VERR_ASN1_TIME_NORMALIZE_ERROR (-22842)
2359/** Normalization of ASN.1 time object didn't work out. */
2360#define VERR_ASN1_TIME_NORMALIZE_MISMATCH (-22843)
2361/** Invalid ASN.1 UTC TIME encoding. */
2362#define VERR_ASN1_INVALID_UTC_TIME_ENCODING (-22844)
2363/** Invalid ASN.1 GENERALIZED TIME encoding. */
2364#define VERR_ASN1_INVALID_GENERALIZED_TIME_ENCODING (-22845)
2365/** Invalid ASN.1 BOOLEAN encoding. */
2366#define VERR_ASN1_INVALID_BOOLEAN_ENCODING (-22846)
2367/** Invalid ASN.1 NULL encoding. */
2368#define VERR_ASN1_INVALID_NULL_ENCODING (-22847)
2369/** Invalid ASN.1 BIT STRING encoding. */
2370#define VERR_ASN1_INVALID_BITSTRING_ENCODING (-22848)
2371/** Unimplemented ASN.1 tag reached the RTAsn1DynType code. */
2372#define VERR_ASN1_DYNTYPE_TAG_NOT_IMPL (-22849)
2373/** ASN.1 tag and flags/class mismatch in RTAsn1DynType code. */
2374#define VERR_ASN1_DYNTYPE_BAD_TAG (-22850)
2375/** Unexpected ASN.1 fake/dummy object. */
2376#define VERR_ASN1_DUMMY_OBJECT (-22851)
2377/** ASN.1 object is too long. */
2378#define VERR_ASN1_TOO_LONG (-22852)
2379/** Expected primitive ASN.1 object. */
2380#define VERR_ASN1_EXPECTED_PRIMITIVE (-22853)
2381/** Expected valid data pointer for ASN.1 object. */
2382#define VERR_ASN1_INVALID_DATA_POINTER (-22854)
2383/** The ASN.1 encoding is too deeply nested for the decoder. */
2384#define VERR_ASN1_TOO_DEEPLY_NESTED (-22855)
2385/** Generic unexpected object ID error. */
2386#define VERR_ASN1_UNEXPECTED_OBJ_ID (-22856)
2387/** Invalid ASN.1 INTEGER encoding. */
2388#define VERR_ASN1_INVALID_INTEGER_ENCODING (-22857)
2389
2390/** ANS.1 internal error 1. */
2391#define VERR_ASN1_INTERNAL_ERROR_1 (-22895)
2392/** ANS.1 internal error 2. */
2393#define VERR_ASN1_INTERNAL_ERROR_2 (-22896)
2394/** ANS.1 internal error 3. */
2395#define VERR_ASN1_INTERNAL_ERROR_3 (-22897)
2396/** ANS.1 internal error 4. */
2397#define VERR_ASN1_INTERNAL_ERROR_4 (-22898)
2398/** ANS.1 internal error 5. */
2399#define VERR_ASN1_INTERNAL_ERROR_5 (-22899)
2400/** @} */
2401
2402/** @name More RTLdr status codes.
2403 * @{ */
2404/** Image Verification Failure: No Authenticode Signature. */
2405#define VERR_LDRVI_NOT_SIGNED (-22900)
2406/** Image Verification Warning: No Authenticode Signature, but on whitelist. */
2407#define VINF_LDRVI_NOT_SIGNED (22900)
2408/** Image Verification Failure: Error reading image headers. */
2409#define VERR_LDRVI_READ_ERROR_HDR (-22901)
2410/** Image Verification Failure: Error reading section headers. */
2411#define VERR_LDRVI_READ_ERROR_SHDRS (-22902)
2412/** Image Verification Failure: Error reading authenticode signature data. */
2413#define VERR_LDRVI_READ_ERROR_SIGNATURE (-22903)
2414/** Image Verification Failure: Error reading file for hashing. */
2415#define VERR_LDRVI_READ_ERROR_HASH (-22904)
2416/** Image Verification Failure: Error determining the file length. */
2417#define VERR_LDRVI_FILE_LENGTH_ERROR (-22905)
2418/** Image Verification Failure: Error allocating memory for state data. */
2419#define VERR_LDRVI_NO_MEMORY_STATE (-22906)
2420/** Image Verification Failure: Error allocating memory for authenticode
2421 * signature data. */
2422#define VERR_LDRVI_NO_MEMORY_SIGNATURE (-22907)
2423/** Image Verification Failure: Error allocating memory for section headers. */
2424#define VERR_LDRVI_NO_MEMORY_SHDRS (-22908)
2425/** Image Verification Failure: Authenticode parsing output. */
2426#define VERR_LDRVI_NO_MEMORY_PARSE_OUTPUT (-22909)
2427/** Image Verification Failure: Invalid security directory entry. */
2428#define VERR_LDRVI_INVALID_SECURITY_DIR_ENTRY (-22910)
2429/** Image Verification Failure: */
2430#define VERR_LDRVI_BAD_CERT_HDR_LENGTH (-22911)
2431/** Image Verification Failure: */
2432#define VERR_LDRVI_BAD_CERT_HDR_REVISION (-22912)
2433/** Image Verification Failure: */
2434#define VERR_LDRVI_BAD_CERT_HDR_TYPE (-22913)
2435/** Image Verification Failure: More than one certificate table entry. */
2436#define VERR_LDRVI_BAD_CERT_MULTIPLE (-22914)
2437
2438/** Image Verification Failure: */
2439#define VERR_LDRVI_BAD_MZ_OFFSET (-22915)
2440/** Image Verification Failure: Invalid section count. */
2441#define VERR_LDRVI_INVALID_SECTION_COUNT (-22916)
2442/** Image Verification Failure: Raw data offsets and sizes are out of range. */
2443#define VERR_LDRVI_SECTION_RAW_DATA_VALUES (-22917)
2444/** Optional header magic and target machine does not match. */
2445#define VERR_LDRVI_MACHINE_OPT_HDR_MAGIC_MISMATCH (-22918)
2446/** Unsupported image target architecture. */
2447#define VERR_LDRVI_UNSUPPORTED_ARCH (-22919)
2448
2449/** Image Verification Failure: Internal error in signature parser. */
2450#define VERR_LDRVI_PARSE_IPE (-22921)
2451/** Generic BER parse error. Will be refined later. */
2452#define VERR_LDRVI_PARSE_BER_ERROR (-22922)
2453
2454/** Expected the signed data content to be the object ID of
2455 * SpcIndirectDataContent, found something else instead. */
2456#define VERR_LDRVI_EXPECTED_INDIRECT_DATA_CONTENT_OID (-22923)
2457/** Page hash table size overflow. */
2458#define VERR_LDRVI_PAGE_HASH_TAB_SIZE_OVERFLOW (-22924)
2459/** Page hash table is too long (covers signature data, i.e. itself). */
2460#define VERR_LDRVI_PAGE_HASH_TAB_TOO_LONG (-22925)
2461/** The page hash table is not strictly ordered by offset. */
2462#define VERR_LDRVI_PAGE_HASH_TAB_NOT_STRICTLY_SORTED (-22926)
2463/** The page hash table hashes data outside the defined and implicit sections. */
2464#define VERR_PAGE_HASH_TAB_HASHES_NON_SECTION_DATA (-22927)
2465/** Page hash mismatch. */
2466#define VERR_LDRVI_PAGE_HASH_MISMATCH (-22928)
2467/** Image hash mismatch. */
2468#define VERR_LDRVI_IMAGE_HASH_MISMATCH (-22929)
2469
2470/** Cannot resolve symbol because it's a forwarder. */
2471#define VERR_LDR_FORWARDER (-22950)
2472/** The symbol is not a forwarder. */
2473#define VERR_LDR_NOT_FORWARDER (-22951)
2474/** Malformed forwarder entry. */
2475#define VERR_LDR_BAD_FORWARDER (-22952)
2476/** Too long forwarder chain or there is a loop. */
2477#define VERR_LDR_FORWARDER_CHAIN_TOO_LONG (-22953)
2478/** Support for forwarders has not been implemented. */
2479#define VERR_LDR_FORWARDERS_NOT_SUPPORTED (-22954)
2480/** @} */
2481
2482/** @name RTCrX509 status codes.
2483 * @{ */
2484/** Generic X.509 error. */
2485#define VERR_CR_X509_GENERIC_ERROR (-23000)
2486/** Internal error in the X.509 code. */
2487#define VERR_CR_X509_INTERNAL_ERROR (-23001)
2488/** Internal error in the X.509 certificate path building and verification
2489 * code. */
2490#define VERR_CR_X509_CERTPATHS_INTERNAL_ERROR (-23002)
2491/** Path not verified yet. */
2492#define VERR_CR_X509_NOT_VERIFIED (-23003)
2493/** The certificate path has no trust anchor. */
2494#define VERR_CR_X509_NO_TRUST_ANCHOR (-23004)
2495/** Unknown X.509 certificate signature algorithm. */
2496#define VERR_CR_X509_UNKNOWN_CERT_SIGN_ALGO (-23005)
2497/** Certificate signature algorithm mismatch. */
2498#define VERR_CR_X509_CERT_SIGN_ALGO_MISMATCH (-23006)
2499/** The signature algorithm in the to-be-signed certificate part does not match
2500 * the one associated with the signature. */
2501#define VERR_CR_X509_CERT_TBS_SIGN_ALGO_MISMATCH (-23007)
2502/** Certificate extensions requires certificate version 3 or later. */
2503#define VERR_CR_X509_TBSCERT_EXTS_REQ_V3 (-23008)
2504/** Unique issuer and subject IDs require version certificate 2. */
2505#define VERR_CR_X509_TBSCERT_UNIQUE_IDS_REQ_V2 (-23009)
2506/** Certificate serial number length is out of bounds. */
2507#define VERR_CR_X509_TBSCERT_SERIAL_NUMBER_OUT_OF_BOUNDS (-23010)
2508/** Unsupported X.509 certificate version. */
2509#define VERR_CR_X509_TBSCERT_UNSUPPORTED_VERSION (-23011)
2510/** Public key is too small. */
2511#define VERR_CR_X509_PUBLIC_KEY_TOO_SMALL (-23012)
2512/** Invalid string tag for a X.509 name object. */
2513#define VERR_CR_X509_INVALID_NAME_STRING_TAG (-23013)
2514/** Empty string in X.509 name object. */
2515#define VERR_CR_X509_NAME_EMPTY_STRING (-23014)
2516/** Non-string object inside X.509 name object. */
2517#define VERR_CR_X509_NAME_NOT_STRING (-23015)
2518/** Empty set inside X.509 name. */
2519#define VERR_CR_X509_NAME_EMPTY_SET (-23016)
2520/** Empty sub-string set inside X.509 name. */
2521#define VERR_CR_X509_NAME_EMPTY_SUB_SET (-23017)
2522/** The NotBefore and NotAfter values of an X.509 Validity object seems to
2523 * have been swapped around. */
2524#define VERR_CR_X509_VALIDITY_SWAPPED (-23018)
2525/** Duplicate certificate extension. */
2526#define VERR_CR_X509_TBSCERT_DUPLICATE_EXTENSION (-23019)
2527/** Missing relative distinguished name map entry. */
2528#define VERR_CR_X509_NAME_MISSING_RDN_MAP_ENTRY (-23020)
2529/** Certificate path validator: No trusted certificate paths. */
2530#define VERR_CR_X509_CPV_NO_TRUSTED_PATHS (-23021)
2531/** Certificate path validator: No valid certificate policy. */
2532#define VERR_CR_X509_CPV_NO_VALID_POLICY (-23022)
2533/** Certificate path validator: Unknown critical certificate extension. */
2534#define VERR_CR_X509_CPV_UNKNOWN_CRITICAL_EXTENSION (-23023)
2535/** Certificate path validator: Intermediate certificate is missing the
2536 * KeyCertSign usage flag. */
2537#define VERR_CR_X509_CPV_MISSING_KEY_CERT_SIGN (-23024)
2538/** Certificate path validator: Hit the max certificate path length before
2539 * reaching trust anchor. */
2540#define VERR_CR_X509_CPV_MAX_PATH_LENGTH (-23025)
2541/** Certificate path validator: Intermediate certificate is not marked as a
2542 * certificate authority (CA). */
2543#define VERR_CR_X509_CPV_NOT_CA_CERT (-23026)
2544/** Certificate path validator: Intermediate certificate is not a version 3
2545 * certificate. */
2546#define VERR_CR_X509_CPV_NOT_V3_CERT (-23027)
2547/** Certificate path validator: Invalid policy mapping (to/from anyPolicy). */
2548#define VERR_CR_X509_CPV_INVALID_POLICY_MAPPING (-23028)
2549/** Certificate path validator: Name constraints permits no names. */
2550#define VERR_CR_X509_CPV_NO_PERMITTED_NAMES (-23029)
2551/** Certificate path validator: Name constraints does not permits the
2552 * certificate name. */
2553#define VERR_CR_X509_CPV_NAME_NOT_PERMITTED (-23030)
2554/** Certificate path validator: Name constraints does not permits the
2555 * alternative certificate name. */
2556#define VERR_CR_X509_CPV_ALT_NAME_NOT_PERMITTED (-23031)
2557/** Certificate path validator: Intermediate certificate subject does not
2558 * match child issuer property. */
2559#define VERR_CR_X509_CPV_ISSUER_MISMATCH (-23032)
2560/** Certificate path validator: The certificate is not valid at the
2561 * specified time. */
2562#define VERR_CR_X509_CPV_NOT_VALID_AT_TIME (-23033)
2563/** Certificate path validator: Unexpected choice found in general subtree
2564 * object (name constraints). */
2565#define VERR_CR_X509_CPV_UNEXP_GENERAL_SUBTREE_CHOICE (-23034)
2566/** Certificate path validator: Unexpected minimum value found in general
2567 * subtree object (name constraints). */
2568#define VERR_CR_X509_CPV_UNEXP_GENERAL_SUBTREE_MIN (-23035)
2569/** Certificate path validator: Unexpected maximum value found in
2570 * general subtree object (name constraints). */
2571#define VERR_CR_X509_CPV_UNEXP_GENERAL_SUBTREE_MAX (-23036)
2572/** Certificate path builder: Encountered bad certificate context. */
2573#define VERR_CR_X509_CPB_BAD_CERT_CTX (-23037)
2574/** OpenSSL d2i_X509 failed. */
2575#define VERR_CR_X509_OSSL_D2I_FAILED (-23090)
2576/** @} */
2577
2578/** @name RTCrPkcs7 status codes.
2579 * @{ */
2580/** Generic PKCS \#7 error. */
2581#define VERR_CR_PKCS7_GENERIC_ERROR (-23300)
2582/** Signed data verification failed because there are zero signer infos. */
2583#define VERR_CR_PKCS7_NO_SIGNER_INFOS (-23301)
2584/** Signed data certificate not found. */
2585#define VERR_CR_PKCS7_SIGNED_DATA_CERT_NOT_FOUND (-23302)
2586/** Signed data verification failed due to key usage issues. */
2587#define VERR_CR_PKCS7_KEY_USAGE_MISMATCH (-23303)
2588/** Signed data verification failed because of missing (or duplicate)
2589 * authenticated content-type attribute. */
2590#define VERR_CR_PKCS7_MISSING_CONTENT_TYPE_ATTRIB (-23304)
2591/** Signed data verification failed because of the authenticated content-type
2592 * attribute did not match. */
2593#define VERR_CR_PKCS7_CONTENT_TYPE_ATTRIB_MISMATCH (-23305)
2594/** Signed data verification failed because of a malformed authenticated
2595 * content-type attribute. */
2596#define VERR_CR_PKCS7_BAD_CONTENT_TYPE_ATTRIB (-23306)
2597/** Signed data verification failed because of missing (or duplicate)
2598 * authenticated message-digest attribute. */
2599#define VERR_CR_PKCS7_MISSING_MESSAGE_DIGEST_ATTRIB (-23307)
2600/** Signed data verification failed because the authenticated message-digest
2601 * attribute did not match. */
2602#define VERR_CR_PKCS7_MESSAGE_DIGEST_ATTRIB_MISMATCH (-23308)
2603/** Signed data verification failed because of a malformed authenticated
2604 * message-digest attribute. */
2605#define VERR_CR_PKCS7_BAD_MESSAGE_DIGEST_ATTRIB (-23309)
2606/** Signature verification failed. */
2607#define VERR_CR_PKCS7_SIGNATURE_VERIFICATION_FAILED (-23310)
2608/** Internal PKCS \#7 error. */
2609#define VERR_CR_PKCS7_INTERNAL_ERROR (-22311)
2610/** OpenSSL d2i_PKCS7 failed. */
2611#define VERR_CR_PKCS7_OSSL_D2I_FAILED (-22312)
2612/** OpenSSL PKCS \#7 verification failed. */
2613#define VERR_CR_PKCS7_OSSL_VERIFY_FAILED (-22313)
2614/** Digest algorithm parameters are not supported by the PKCS \#7 code. */
2615#define VERR_CR_PKCS7_DIGEST_PARAMS_NOT_IMPL (-22314)
2616/** The digest algorithm of a signer info entry was not found in the list of
2617 * digest algorithms in the signed data. */
2618#define VERR_CR_PKCS7_DIGEST_ALGO_NOT_FOUND_IN_LIST (-22315)
2619/** The PKCS \#7 content is not signed data. */
2620#define VERR_CR_PKCS7_NOT_SIGNED_DATA (-22316)
2621/** No digest algorithms listed in PKCS \#7 signed data. */
2622#define VERR_CR_PKCS7_NO_DIGEST_ALGORITHMS (-22317)
2623/** Too many digest algorithms used by PKCS \#7 signed data. This is an
2624 * internal limitation of the code that aims at saving kernel stack space. */
2625#define VERR_CR_PKCS7_TOO_MANY_DIGEST_ALGORITHMS (-22318)
2626/** Error creating digest algorithm calculator. */
2627#define VERR_CR_PKCS7_DIGEST_CREATE_ERROR (-22319)
2628/** Error while calculating a digest for a PKCS \#7 verification operation. */
2629#define VERR_CR_PKCS7_DIGEST_CALC_ERROR (-22320)
2630/** Unsupported PKCS \#7 signed data version. */
2631#define VERR_CR_PKCS7_SIGNED_DATA_VERSION (-22350)
2632/** PKCS \#7 signed data has no digest algorithms listed. */
2633#define VERR_CR_PKCS7_SIGNED_DATA_NO_DIGEST_ALGOS (-22351)
2634/** Unknown digest algorithm used by PKCS \#7 object. */
2635#define VERR_CR_PKCS7_UNKNOWN_DIGEST_ALGORITHM (-22352)
2636/** Expected PKCS \#7 object to ship at least one certificate. */
2637#define VERR_CR_PKCS7_NO_CERTIFICATES (-22353)
2638/** Expected PKCS \#7 object to not contain any CRLs. */
2639#define VERR_CR_PKCS7_EXPECTED_NO_CRLS (-22354)
2640/** Expected PKCS \#7 object to contain exactly on signer info entry. */
2641#define VERR_CR_PKCS7_EXPECTED_ONE_SIGNER_INFO (-22355)
2642/** Unsupported PKCS \#7 signer info version. */
2643#define VERR_CR_PKCS7_SIGNER_INFO_VERSION (-22356)
2644/** PKCS \#7 singer info contains no issuer serial number. */
2645#define VERR_CR_PKCS7_SIGNER_INFO_NO_ISSUER_SERIAL_NO (-22357)
2646/** Expected PKCS \#7 object to ship the signer certificate(s). */
2647#define VERR_CR_PKCS7_SIGNER_CERT_NOT_SHIPPED (-22358)
2648/** The encrypted digest algorithm does not match the one in the certificate. */
2649#define VERR_CR_PKCS7_SIGNER_INFO_DIGEST_ENCRYPT_MISMATCH (-22359)
2650/** @} */
2651
2652/** @name RTCrSpc status codes.
2653 * @{ */
2654/** Generic SPC error. */
2655#define VERR_CR_SPC_GENERIC_ERROR (-23400)
2656/** SPC requires there to be exactly one SignerInfo entry. */
2657#define VERR_CR_SPC_NOT_EXACTLY_ONE_SIGNER_INFOS (-23401)
2658/** There shall be exactly one digest algorithm to go with the single
2659 * SingerInfo entry required by SPC. */
2660#define VERR_CR_SPC_NOT_EXACTLY_ONE_DIGEST_ALGO (-23402)
2661/** The digest algorithm in the SignerInfo does not match the one in the
2662 * indirect data. */
2663#define VERR_CR_SPC_SIGNED_IND_DATA_DIGEST_ALGO_MISMATCH (-23403)
2664/** The digest algorithm in the indirect data was not found in the list of
2665 * digest algorithms in the signed data structure. */
2666#define VERR_CR_SPC_IND_DATA_DIGEST_ALGO_NOT_IN_DIGEST_ALGOS (-23404)
2667/** The digest algorithm is not known to us. */
2668#define VERR_CR_SPC_UNKNOWN_DIGEST_ALGO (-23405)
2669/** The indirect data digest size does not match the digest algorithm. */
2670#define VERR_CR_SPC_IND_DATA_DIGEST_SIZE_MISMATCH (-23406)
2671/** Expected PE image data inside indirect data object. */
2672#define VERR_CR_SPC_EXPECTED_PE_IMAGE_DATA (-23407)
2673/** Internal SPC error: The PE image data is missing. */
2674#define VERR_CR_SPC_PEIMAGE_DATA_NOT_PRESENT (-23408)
2675/** Bad SPC object moniker UUID field. */
2676#define VERR_CR_SPC_BAD_MONIKER_UUID (-23409)
2677/** Unknown SPC object moniker UUID. */
2678#define VERR_CR_SPC_UNKNOWN_MONIKER_UUID (-23410)
2679/** Internal SPC error: Bad object moniker choice value. */
2680#define VERR_CR_SPC_BAD_MONIKER_CHOICE (-23411)
2681/** Internal SPC error: Bad object moniker data pointer. */
2682#define VERR_CR_SPC_MONIKER_BAD_DATA (-23412)
2683/** Multiple PE image page hash tables. */
2684#define VERR_CR_SPC_PEIMAGE_MULTIPLE_HASH_TABS (-23413)
2685/** Unknown SPC PE image attribute. */
2686#define VERR_CR_SPC_PEIMAGE_UNKNOWN_ATTRIBUTE (-23414)
2687/** URL not expected in SPC PE image data. */
2688#define VERR_CR_SPC_PEIMAGE_URL_UNEXPECTED (-23415)
2689/** PE image data without any valid content was not expected. */
2690#define VERR_CR_SPC_PEIMAGE_NO_CONTENT (-23416)
2691/** @} */
2692
2693/** @name RTCrPkix status codes.
2694 * @{ */
2695/** Generic PKCS \#7 error. */
2696#define VERR_CR_PKIX_GENERIC_ERROR (-23500)
2697/** Parameters was presented to a signature schema that does not take any. */
2698#define VERR_CR_PKIX_SIGNATURE_TAKES_NO_PARAMETERS (-23501)
2699/** Unknown hash digest type. */
2700#define VERR_CR_PKIX_UNKNOWN_DIGEST_TYPE (-23502)
2701/** Internal error. */
2702#define VERR_CR_PKIX_INTERNAL_ERROR (-23503)
2703/** The hash is too long for the key used when signing/verifying. */
2704#define VERR_CR_PKIX_HASH_TOO_LONG_FOR_KEY (-23504)
2705/** The signature is too long for the scratch buffer. */
2706#define VERR_CR_PKIX_SIGNATURE_TOO_LONG (-23505)
2707/** The signature is greater than or equal to the key. */
2708#define VERR_CR_PKIX_SIGNATURE_GE_KEY (-23506)
2709/** The signature is negative. */
2710#define VERR_CR_PKIX_SIGNATURE_NEGATIVE (-23507)
2711/** Invalid signature length. */
2712#define VERR_CR_PKIX_INVALID_SIGNATURE_LENGTH (-23508)
2713/** PKIX signature no does not match up to the current data. */
2714#define VERR_CR_PKIX_SIGNATURE_MISMATCH (-23509)
2715/** PKIX cipher algorithm parameters are not implemented. */
2716#define VERR_CR_PKIX_CIPHER_ALGO_PARAMS_NOT_IMPL (-23510)
2717/** Cipher algorithm is not known to us. */
2718#define VERR_CR_PKIX_CIPHER_ALGO_NOT_KNOWN (-23511)
2719/** PKIX cipher algorithm is not known to OpenSSL. */
2720#define VERR_CR_PKIX_OSSL_CIPHER_ALGO_NOT_KNOWN (-23512)
2721/** PKIX cipher algorithm is not known to OpenSSL EVP API. */
2722#define VERR_CR_PKIX_OSSL_CIPHER_ALGO_NOT_KNOWN_EVP (-23513)
2723/** OpenSSL failed to init PKIX cipher algorithm context. */
2724#define VERR_CR_PKIX_OSSL_CIPHER_ALOG_INIT_FAILED (-23514)
2725/** Final OpenSSL PKIX verification failed. */
2726#define VERR_CR_PKIX_OSSL_VERIFY_FINAL_FAILED (-23515)
2727/** OpenSSL failed to decode the public key. */
2728#define VERR_CR_PKIX_OSSL_D2I_PUBLIC_KEY_FAILED (-23516)
2729/** The EVP_PKEY_type API in OpenSSL failed. */
2730#define VERR_CR_PKIX_OSSL_EVP_PKEY_TYPE_ERROR (-23517)
2731/** OpenSSL failed to decode the public key. */
2732#define VERR_CR_PKIX_OSSL_D2I_PRIVATE_KEY_FAILED (-23518)
2733/** The EVP_PKEY_CTX_set_rsa_padding API in OpenSSL failed. */
2734#define VERR_CR_PKIX_OSSL_EVP_PKEY_RSA_PAD_ERROR (-23519)
2735/** Final OpenSSL PKIX signing failed. */
2736#define VERR_CR_PKIX_OSSL_SIGN_FINAL_FAILED (-23520)
2737/** OpenSSL and IPRT disagree on the signature size. */
2738#define VERR_CR_PKIX_OSSL_VS_IPRT_SIGNATURE_SIZE (-23521)
2739/** OpenSSL and IPRT disagree on the signature. */
2740#define VERR_CR_PKIX_OSSL_VS_IPRT_SIGNATURE (-23522)
2741/** Expected RSA private key. */
2742#define VERR_CR_PKIX_NOT_RSA_PRIVATE_KEY (-23523)
2743/** Expected RSA public key. */
2744#define VERR_CR_PKIX_NOT_RSA_PUBLIC_KEY (-23524)
2745/** @} */
2746
2747/** @name RTCrStore status codes.
2748 * @{ */
2749/** Generic store error. */
2750#define VERR_CR_STORE_GENERIC_ERROR (-23700)
2751/** @} */
2752
2753/** @name RTCrKey status codes.
2754 * @{ */
2755/** Could not recognize the key type. */
2756#define VERR_CR_KEY_UNKNOWN_TYPE (-23800)
2757/** Unsupported key format. */
2758#define VERR_CR_KEY_FORMAT_NOT_SUPPORTED (-23801)
2759/** Key encrypted but no password was given. */
2760#define VERR_CR_KEY_ENCRYPTED (-23802)
2761/** The key was marked as encrypted by no DEK-Info field with the encryption
2762 * algortihms was found. */
2763#define VERR_CR_KEY_NO_DEK_INFO (-23803)
2764/** The algorithms part of the DEK-Info field is too long. */
2765#define VERR_CR_KEY_DEK_INFO_TOO_LONG (-23804)
2766/** Key decryption is not supported. */
2767#define VERR_CR_KEY_DECRYPTION_NOT_SUPPORTED (-23805)
2768/** Unsupported key encryption cipher. */
2769#define VERR_CR_KEY_UNSUPPORTED_CIPHER (-23806)
2770/** Found unexpected cipher parameters for encrypted key. */
2771#define VERR_CR_KEY_UNEXPECTED_CIPHER_PARAMS (-23807)
2772/** Missing ciper parameters for encrypted key. */
2773#define VERR_CR_KEY_MISSING_CIPHER_PARAMS (-23808)
2774/** To short initialization vector for encrypted key ciper. */
2775#define VERR_CR_KEY_TOO_SHORT_CIPHER_IV (-23809)
2776/** Malformed initialization vector for encrypted key ciper. */
2777#define VERR_CR_KEY_MALFORMED_CIPHER_IV (-23810)
2778/** Error encoding the password for key decryption. */
2779#define VERR_CR_KEY_PASSWORD_ENCODING (-23811)
2780/** EVP_DecryptInit_ex failed. */
2781#define VERR_CR_KEY_OSSL_DECRYPT_INIT_ERROR (-23812)
2782/** Key decryption failed, perhaps due to an incorrect password. */
2783#define VERR_CR_KEY_DECRYPTION_FAILED (-23813)
2784/** The key was decrypted. */
2785#define VINF_CR_KEY_WAS_DECRYPTED (23814)
2786/** @} */
2787
2788/** @name RTCrRsa status codes.
2789 * @{ */
2790/** Generic RSA error. */
2791#define VERR_CR_RSA_GENERIC_ERROR (-23900)
2792/** @} */
2793
2794/** @name RTBigNum status codes.
2795 * @{ */
2796/** Sensitive input requires the result(s) to be initialized as sensitive. */
2797#define VERR_BIGNUM_SENSITIVE_INPUT (-24000)
2798/** Attempt to divide by zero. */
2799#define VERR_BIGNUM_DIV_BY_ZERO (-24001)
2800/** Negative exponent makes no sense to integer math. */
2801#define VERR_BIGNUM_NEGATIVE_EXPONENT (-24002)
2802
2803/** @} */
2804
2805/** @name RTCrDigest status codes.
2806 * @{ */
2807/** OpenSSL failed to initialize the digest algorithm context. */
2808#define VERR_CR_DIGEST_OSSL_DIGEST_INIT_ERROR (-24200)
2809/** OpenSSL failed to clone the digest algorithm context. */
2810#define VERR_CR_DIGEST_OSSL_DIGEST_CTX_COPY_ERROR (-24201)
2811/** Deprecated digest. */
2812#define VINF_CR_DIGEST_DEPRECATED (24202)
2813/** Deprecated digest. */
2814#define VERR_CR_DIGEST_DEPRECATED (-24202)
2815/** Compromised digest. */
2816#define VINF_CR_DIGEST_COMPROMISED (24203)
2817/** Compromised digest. */
2818#define VERR_CR_DIGEST_COMPROMISED (-24203)
2819/** Severely compromised digest. */
2820#define VINF_CR_DIGEST_SEVERELY_COMPROMISED (24204)
2821/** Severely compromised digest. */
2822#define VERR_CR_DIGEST_SEVERELY_COMPROMISED (-24204)
2823/** @} */
2824
2825/** @name RTCr misc status codes.
2826 * @{ */
2827/** Malformed or failed to parse PEM formatted data. */
2828#define VERR_CR_MALFORMED_PEM_HEADER (-24399)
2829/** @} */
2830
2831/** @name RTPath status codes.
2832 * @{ */
2833/** Unknown glob variable. */
2834#define VERR_PATH_MATCH_UNKNOWN_VARIABLE (-24400)
2835/** The specified glob variable must be first in the pattern. */
2836#define VERR_PATH_MATCH_VARIABLE_MUST_BE_FIRST (-24401)
2837/** Hit unimplemented glob pattern matching feature. */
2838#define VERR_PATH_MATCH_FEATURE_NOT_IMPLEMENTED (-24402)
2839/** Unknown character class in glob pattern. */
2840#define VERR_PATH_GLOB_UNKNOWN_CHAR_CLASS (-24403)
2841/** @} */
2842
2843/** @name RTUri status codes.
2844 * @{ */
2845/** The URI is empty */
2846#define VERR_URI_EMPTY (-24600)
2847/** The URI is too short to be a valid URI. */
2848#define VERR_URI_TOO_SHORT (-24601)
2849/** Invalid scheme. */
2850#define VERR_URI_INVALID_SCHEME (-24602)
2851/** Invalid port number. */
2852#define VERR_URI_INVALID_PORT_NUMBER (-24603)
2853/** Invalid escape sequence. */
2854#define VERR_URI_INVALID_ESCAPE_SEQ (-24604)
2855/** Escape URI char decodes as zero (the C string terminator). */
2856#define VERR_URI_ESCAPED_ZERO (-24605)
2857/** Escaped URI characters does not decode to valid UTF-8. */
2858#define VERR_URI_ESCAPED_CHARS_NOT_VALID_UTF8 (-24606)
2859/** Escaped URI character is not a valid UTF-8 lead byte. */
2860#define VERR_URI_INVALID_ESCAPED_UTF8_LEAD_BYTE (-24607)
2861/** Escaped URI character sequence with invalid UTF-8 continutation byte. */
2862#define VERR_URI_INVALID_ESCAPED_UTF8_CONTINUATION_BYTE (-24608)
2863/** Missing UTF-8 continutation in escaped URI character sequence. */
2864#define VERR_URI_MISSING_UTF8_CONTINUATION_BYTE (-24609)
2865/** Expected URI using the 'file:' scheme. */
2866#define VERR_URI_NOT_FILE_SCHEME (-24610)
2867/** @} */
2868
2869/** @name RTJson status codes.
2870 * @{ */
2871/** The called method does not work with the value type of the given JSON value. */
2872#define VERR_JSON_VALUE_INVALID_TYPE (-24700)
2873/** The iterator reached the end. */
2874#define VERR_JSON_ITERATOR_END (-24701)
2875/** The JSON document is malformed. */
2876#define VERR_JSON_MALFORMED (-24702)
2877/** @} */
2878
2879/** @name RTVfs status codes.
2880 * @{ */
2881/** Unknown file system format. */
2882#define VERR_VFS_UNKNOWN_FORMAT (-24800)
2883/** Found bogus values in the file system. */
2884#define VERR_VFS_BOGUS_FORMAT (-24801)
2885/** Found bogus offset in the file system. */
2886#define VERR_VFS_BOGUS_OFFSET (-24802)
2887/** Unsupported file system format. */
2888#define VERR_VFS_UNSUPPORTED_FORMAT (-24803)
2889/** Unsupported create type in an RTVfsObjOpen or RTVfsDirOpenObj call. */
2890#define VERR_VFS_UNSUPPORTED_CREATE_TYPE (-24804)
2891/** @} */
2892
2893/** @name RTFsIsoMaker status codes.
2894 * @{ */
2895/** No validation entry in the boot catalog. */
2896#define VERR_ISOMK_BOOT_CAT_NO_VALIDATION_ENTRY (-25000)
2897/** No default entry in the boot catalog. */
2898#define VERR_ISOMK_BOOT_CAT_NO_DEFAULT_ENTRY (-25001)
2899/** Expected section header. */
2900#define VERR_ISOMK_BOOT_CAT_EXPECTED_SECTION_HEADER (-25002)
2901/** Entry in a boot catalog section is empty. */
2902#define VERR_ISOMK_BOOT_CAT_EMPTY_ENTRY (-25003)
2903/** Entry in a boot catalog section is another section. */
2904#define VERR_ISOMK_BOOT_CAT_INVALID_SECTION_SIZE (-25004)
2905/** Unsectioned boot catalog entry. */
2906#define VERR_ISOMK_BOOT_CAT_ERRATIC_ENTRY (-25005)
2907/** The file is too big for the current ISO level (4GB+ sized files
2908 * requires ISO level 3). */
2909#define VERR_ISOMK_FILE_TOO_BIG_REQ_ISO_LEVEL_3 (-25006)
2910/** Cannot add symbolic link to namespace which isn't configured to support it. */
2911#define VERR_ISOMK_SYMLINK_REQ_ROCK_RIDGE (-25007)
2912/** Cannot add symbolic link to one of the selected namespaces. */
2913#define VINF_ISOMK_SYMLINK_REQ_ROCK_RIDGE (25007)
2914/** Cannot add symbolic link because no namespace is configured to support it. */
2915#define VERR_ISOMK_SYMLINK_SUPPORT_DISABLED (-25008)
2916/** No space for rock ridge 'CE' entry in directory record. */
2917#define VERR_ISOMK_RR_NO_SPACE_FOR_CE (-25009)
2918/** Internal ISO maker error: Rock ridge read problem. */
2919#define VERR_ISOMK_IPE_RR_READ (-25010)
2920/** Internal ISO maker error: Buggy namespace table. */
2921#define VERR_ISOMK_IPE_TABLE (-25011)
2922/** Internal ISO maker error: Namespace problem \#1. */
2923#define VERR_ISOMK_IPE_NAMESPACE_1 (-25012)
2924/** Internal ISO maker error: Namespace problem \#2. */
2925#define VERR_ISOMK_IPE_NAMESPACE_2 (-25013)
2926/** Internal ISO maker error: Namespace problem \#3. */
2927#define VERR_ISOMK_IPE_NAMESPACE_3 (-25014)
2928/** Internal ISO maker error: Namespace problem \#4. */
2929#define VERR_ISOMK_IPE_NAMESPACE_4 (-25015)
2930/** Internal ISO maker error: Namespace problem \#5. */
2931#define VERR_ISOMK_IPE_NAMESPACE_5 (-25016)
2932/** Internal ISO maker error: Namespace problem \#6. */
2933#define VERR_ISOMK_IPE_NAMESPACE_6 (-25017)
2934/** Internal ISO maker error: Empty path. */
2935#define VERR_ISOMK_IPE_EMPTY_PATH (-25018)
2936/** Internal ISO maker error: Unexpected empty component. */
2937#define VERR_ISOMK_IPE_EMPTY_COMPONENT (-25019)
2938/** Internal ISO maker error: Expected path to start with root slash. */
2939#define VERR_ISOMK_IPE_ROOT_SLASH (-25020)
2940/** Internal ISO maker error: Descriptor miscounting. */
2941#define VERR_ISOMK_IPE_DESC_COUNT (-25021)
2942/** Internal ISO maker error: Buffer size. */
2943#define VERR_ISOMK_IPE_BUFFER_SIZE (-25022)
2944/** Internal ISO maker error: Boot catalog file handle problem. */
2945#define VERR_ISOMK_IPE_BOOT_CAT_FILE (-25023)
2946/** Internal ISO maker error: Inconsistency produing trans.tbl file. */
2947#define VERR_ISOMK_IPE_PRODUCE_TRANS_TBL (-25024)
2948/** Internal ISO maker error: Read file data probem \#1. */
2949#define VERR_ISOMK_IPE_READ_FILE_DATA_1 (-25025)
2950/** Internal ISO maker error: Read file data probem \#2. */
2951#define VERR_ISOMK_IPE_READ_FILE_DATA_2 (-25026)
2952/** Internal ISO maker error: Read file data probem \#3. */
2953#define VERR_ISOMK_IPE_READ_FILE_DATA_3 (-25027)
2954/** Internal ISO maker error: Finalization problem \#1. */
2955#define VERR_ISOMK_IPE_FINALIZE_1 (-25028)
2956/** The spill file grew larger than 4GB. */
2957#define VERR_ISOMK_RR_SPILL_FILE_FULL (-25029)
2958
2959/** Requested to import an unknown ISO format. */
2960#define VERR_ISOMK_IMPORT_UNKNOWN_FORMAT (-25100)
2961/** Too many volume descriptors in the import ISO. */
2962#define VERR_ISOMK_IMPORT_TOO_MANY_VOL_DESCS (-25101)
2963/** Import ISO contains a bad volume descriptor header. */
2964#define VERR_ISOMK_IMPORT_INVALID_VOL_DESC_HDR (-25102)
2965/** Import ISO contains more than one primary volume descriptor. */
2966#define VERR_ISOMK_IMPORT_MULTIPLE_PRIMARY_VOL_DESCS (-25103)
2967/** Import ISO contains more than one el torito descriptor. */
2968#define VERR_ISOMK_IMPORT_MULTIPLE_EL_TORITO_DESCS (-25104)
2969/** Import ISO contains more than one joliet volume descriptor. */
2970#define VERR_ISOMK_IMPORT_MULTIPLE_JOLIET_VOL_DESCS (-25105)
2971/** Import ISO starts with supplementary volume descriptor before any
2972 * primary ones. */
2973#define VERR_ISOMK_IMPORT_SUPPLEMENTARY_BEFORE_PRIMARY (-25106)
2974/** Import ISO contains an unsupported primary volume descriptor version. */
2975#define VERR_IOSMK_IMPORT_PRIMARY_VOL_DESC_VER (-25107)
2976/** Import ISO contains a bad primary volume descriptor. */
2977#define VERR_ISOMK_IMPORT_BAD_PRIMARY_VOL_DESC (-25108)
2978/** Import ISO contains an unsupported supplementary volume descriptor
2979 * version. */
2980#define VERR_IOSMK_IMPORT_SUP_VOL_DESC_VER (-25109)
2981/** Import ISO contains a bad supplementary volume descriptor. */
2982#define VERR_ISOMK_IMPORT_BAD_SUP_VOL_DESC (-25110)
2983/** Import ISO uses a logical block size other than 2KB. */
2984#define VERR_ISOMK_IMPORT_LOGICAL_BLOCK_SIZE_NOT_2KB (-25111)
2985/** Import ISO contains more than volume. */
2986#define VERR_ISOMK_IMPORT_MORE_THAN_ONE_VOLUME_IN_SET (-25112)
2987/** Import ISO uses invalid volume sequence number. */
2988#define VERR_ISOMK_IMPORT_INVALID_VOLUMNE_SEQ_NO (-25113)
2989/** Import ISO has different volume space sizes of primary and supplementary
2990 * volume descriptors. */
2991#define VERR_ISOMK_IMPORT_VOLUME_SPACE_SIZE_MISMATCH (-25114)
2992/** Import ISO has different volume set sizes of primary and supplementary
2993 * volume descriptors. */
2994#define VERR_ISOMK_IMPORT_VOLUME_IN_SET_MISMATCH (-25115)
2995/** Import ISO contains a bad root directory record. */
2996#define VERR_ISOMK_IMPORT_BAD_ROOT_DIR_REC (-25116)
2997/** Import ISO contains a zero sized root directory. */
2998#define VERR_ISOMK_IMPORT_ZERO_SIZED_ROOT_DIR (-25117)
2999/** Import ISO contains a root directory with a mismatching volume sequence
3000 * number. */
3001#define VERR_ISOMK_IMPORT_ROOT_VOLUME_SEQ_NO (-25118)
3002/** Import ISO contains a root directory with an out of bounds data extent. */
3003#define VERR_ISOMK_IMPORT_ROOT_DIR_EXTENT_OUT_OF_BOUNDS (-25119)
3004/** Import ISO contains a root directory with a bad record length. */
3005#define VERR_ISOMK_IMPORT_BAD_ROOT_DIR_REC_LENGTH (-25120)
3006/** Import ISO contains a root directory without the directory flag set. */
3007#define VERR_ISOMK_IMPORT_ROOT_DIR_WITHOUT_DIR_FLAG (-25121)
3008/** Import ISO contains a root directory with multiple extents. */
3009#define VERR_ISOMK_IMPORT_ROOT_DIR_IS_MULTI_EXTENT (-25122)
3010/** Import ISO contains a too deep directory subtree. */
3011#define VERR_ISOMK_IMPORT_TOO_DEEP_DIR_TREE (-25123)
3012/** Import ISO contains a bad directory record. */
3013#define VERR_ISOMK_IMPORT_BAD_DIR_REC (-25124)
3014/** Import ISO contains a directory record with a mismatching volume sequence
3015 * number. */
3016#define VERR_ISOMK_IMPORT_DIR_REC_VOLUME_SEQ_NO (-25125)
3017/** Import ISO contains a directory with an extent that is out of bounds. */
3018#define VERR_ISOMK_IMPORT_DIR_REC_EXTENT_OUT_OF_BOUNDS (-25126)
3019/** Import ISO contains a directory with a bad record length. */
3020#define VERR_ISOMK_IMPORT_BAD_DIR_REC_LENGTH (-25127)
3021/** Import ISO contains a '.' or '..' directory record with a bad name
3022 * length. */
3023#define VERR_ISOMK_IMPORT_DOT_DIR_REC_BAD_NAME_LENGTH (-25128)
3024/** Import ISO contains a '.' or '..' directory record with a bad name. */
3025#define VERR_ISOMK_IMPORT_DOT_DIR_REC_BAD_NAME (-25129)
3026/** Import ISO contains a directory with a more than one extent, that's
3027 * currently not supported. */
3028#define VERR_ISOMK_IMPORT_DIR_WITH_MORE_EXTENTS (-25130)
3029/** Import ISO contains a multi-extent directory record that differs
3030 * significantly from first record. */
3031#define VERR_ISOMK_IMPORT_MISMATCHING_MULTI_EXTENT_REC (-25131)
3032/** Import ISO contains a non-final multi-extent directory record with a
3033 * size that isn't block aligned. */
3034#define VERR_ISOMK_IMPORT_MISALIGNED_MULTI_EXTENT (-25132)
3035/** Import ISO contains a non-contigiuous multi-extent data, this is
3036 * currently not supported. */
3037#define VERR_ISOMK_IMPORT_NON_CONTIGUOUS_MULTI_EXTENT (-25133)
3038
3039/** The boot catalog block in the import ISO is out of bounds. */
3040#define VERR_ISOMK_IMPORT_BOOT_CAT_BAD_OUT_OF_BOUNDS (-25140)
3041/** The boot catalog block in the import ISO has an incorrect validation
3042 * header ID. */
3043#define VERR_ISOMK_IMPORT_BOOT_CAT_BAD_VALIDATION_HEADER_ID (-25141)
3044/** The boot catalog validation entry in the import ISO has incorrect keys. */
3045#define VERR_ISOMK_IMPORT_BOOT_CAT_BAD_VALIDATION_KEYS (-25142)
3046/** The boot catalog validation entry in the import ISO has an incorrect checksum. */
3047#define VERR_ISOMK_IMPORT_BOOT_CAT_BAD_VALIDATION_CHECKSUM (-25143)
3048/** A boot catalog entry in the import ISO has an unknown type. */
3049#define VERR_ISOMK_IMPORT_BOOT_CAT_UNKNOWN_HEADER_ID (-25144)
3050/** A boot catalog entry in the import ISO has an invalid boot media type. */
3051#define VERR_ISOMK_IMPORT_BOOT_CAT_INVALID_BOOT_MEDIA_TYPE (-25145)
3052/** The default boot catalog entry in the import ISO has invalid flags set. */
3053#define VERR_ISOMK_IMPORT_BOOT_CAT_DEF_ENTRY_INVALID_FLAGS (-25146)
3054/** A boot catalog entry in the import ISO has reserved flag set. */
3055#define VERR_ISOMK_IMPORT_BOOT_CAT_ENTRY_RESERVED_FLAG (-25147)
3056/** A boot catalog entry in the import ISO is using the unused field. */
3057#define VERR_ISOMK_IMPORT_BOOT_CAT_ENTRY_USES_UNUSED_FIELD (-25148)
3058/** A boot catalog entry in the import ISO points to a block after the end of
3059 * the image input file. */
3060#define VERR_ISOMK_IMPORT_BOOT_CAT_ENTRY_IMAGE_OUT_OF_BOUNDS (-25149)
3061/** A boot catalog entry in the import ISO has an image with an
3062 * indeterminate size. */
3063#define VERR_ISOMK_IMPORT_BOOT_CAT_ENTRY_UNKNOWN_IMAGE_SIZE (-25150)
3064/** The boot catalog in the import ISO is larger than a sector or it is
3065 * missing the final section header entry. */
3066#define VERR_ISOMK_IMPORT_BOOT_CAT_MISSING_FINAL_OR_TOO_BIG (-25151)
3067/** The default boot catalog entry in the import ISO an invalid boot
3068 * indicator value. */
3069#define VERR_ISOMK_IMPORT_BOOT_CAT_DEF_ENTRY_INVALID_BOOT_IND (-25152)
3070/** A boot catalog extension entry in the import ISO was either flagged
3071 * incorrectly in the previous entry or has an invalid header ID. */
3072#define VERR_ISOMK_IMPORT_BOOT_CAT_EXT_ENTRY_INVALID_ID (-25153)
3073/** A boot catalog extension entry in the import ISO uses undefined flags
3074 * which will be lost. */
3075#define VERR_ISOMK_IMPORT_BOOT_CAT_EXT_ENTRY_UNDEFINED_FLAGS (-25154)
3076/** A boot catalog extension entry in the import ISO indicates more entries when
3077 * we reached the end of the boot catalog sector. */
3078#define VERR_ISOMK_IMPORT_BOOT_CAT_EXT_ENTRY_END_OF_SECTOR (-25155)
3079/** A boot catalog entry in the import ISO sets the continuation flag when using
3080 * NONE as the selection criteria type. */
3081#define VERR_ISOMK_IMPORT_BOOT_CAT_ENTRY_CONTINUATION_WITH_NONE (-25156)
3082/** A boot catalog entry in the import ISO sets the continuation flag when
3083 * we reached the ned of the boot catalog secotr. */
3084#define VERR_ISOMK_IMPORT_BOOT_CAT_ENTRY_CONTINUATION_EOS (-25157)
3085
3086/** @} */
3087
3088
3089/** @name RTFsIsoVol status codes
3090 * @{ */
3091/** Descriptor tag is all zeros. */
3092#define VERR_ISOFS_TAG_IS_ALL_ZEROS (-25300)
3093/** Unsupported descriptor tag version. */
3094#define VERR_ISOFS_UNSUPPORTED_TAG_VERSION (-25301)
3095/** Bad descriptor tag checksum. */
3096#define VERR_ISOFS_BAD_TAG_CHECKSUM (-25302)
3097/** Descriptor tag sector number mismatch. */
3098#define VERR_ISOFS_TAG_SECTOR_MISMATCH (-25303)
3099/** Descriptor CRC mismatch. */
3100#define VERR_ISOFS_DESC_CRC_MISMATCH (-25304)
3101/** Insufficient data to check descriptor CRC. */
3102#define VERR_ISOFS_INSUFFICIENT_DATA_FOR_DESC_CRC (-25305)
3103/** Unexpected/unknown/bad descriptor in volume descriptor sequence. */
3104#define VERR_ISOFS_UNEXPECTED_VDS_DESC (-25306)
3105/** Too many primary volume descriptors. */
3106#define VERR_ISOFS_TOO_MANY_PVDS (-25307)
3107/** Too many logical volume descriptors. */
3108#define VERR_ISOFS_TOO_MANY_LVDS (-25308)
3109/** Too many partition descriptors. */
3110#define VERR_ISOFS_TOO_MANY_PDS (-25309)
3111/** The logical volume descriptor has a too big partition map. */
3112#define VERR_ISOFS_TOO_BIT_PARTMAP_IN_LVD (-25310)
3113/** No primary volume descriptors found. */
3114#define VERR_ISOFS_NO_PVD (-25311)
3115/** No logical volume descriptors found. */
3116#define VERR_ISOFS_NO_LVD (-25312)
3117/** No partition descriptors found. */
3118#define VERR_ISOFS_NO_PD (-25313)
3119/** Multiple primary volume descriptors found, we can only deal with one. */
3120#define VERR_ISOFS_MULTIPLE_PVDS (-25314)
3121/** Multiple logical volume descriptors found, we can only deal with one. */
3122#define VERR_ISOFS_MULTIPLE_LVDS (-25315)
3123/** Too many partition maps in the logical volume descriptor. */
3124#define VERR_ISOFS_TOO_MANY_PART_MAPS (-25316)
3125/** Malformed partition map table in the logical volume descriptor. */
3126#define VERR_ISOFS_MALFORMED_PART_MAP_TABLE (-25317)
3127/** Unable to find partition descriptor for a partition map table entry. */
3128#define VERR_ISOFS_PARTITION_NOT_FOUND (-25318)
3129/** Partition mapping table is shorted than described. */
3130#define VERR_ISOFS_INCOMPLETE_PART_MAP_TABLE (-25319)
3131/** Unknown partition map entry type. */
3132#define VERR_ISOFS_UNKNOWN_PART_MAP_ENTRY_TYPE (-25320)
3133/** Unkonwn paritition ID found in the partition map table. */
3134#define VERR_ISOFS_UNKNOWN_PART_MAP_TYPE_ID (-25321)
3135/** Support for virtual partitions as not yet been implemented. */
3136#define VERR_ISOFS_VPM_NOT_SUPPORTED (-25322)
3137/** Support for sparable partitions as not yet been implemented. */
3138#define VERR_ISOFS_SPM_NOT_SUPPORTED (-25323)
3139/** Support for metadata partitions as not yet been implemented. */
3140#define VERR_ISOFS_MPM_NOT_SUPPORTED (-25324)
3141/** Invalid or unsupported logical block size. */
3142#define VERR_ISOFS_UNSUPPORTED_LOGICAL_BLOCK_SIZE (-25325)
3143/** Unsupported domain ID in logical volume descriptor. */
3144#define VERR_ISOFS_BAD_LVD_DOMAIN_ID (-25326)
3145/** Malformed or invalid file set descriptor location. */
3146#define VERR_ISOFS_BAD_LVD_FILE_SET_DESC_LOCATION (-25327)
3147/** Non-standard descriptor character set in the logical volume descriptor. */
3148#define VERR_ISOFS_BAD_LVD_DESC_CHAR_SET (-25329)
3149/** Invalid partition index in a location. */
3150#define VERR_ISOFS_INVALID_PARTITION_INDEX (-25330)
3151/** Unsupported file system charset. */
3152#define VERR_ISOFS_FSD_UNSUPPORTED_CHAR_SET (-25331)
3153/** File set descriptor has an zero length or invalid root dir extent. */
3154#define VERR_ISOFS_FSD_ZERO_ROOT_DIR (-25332)
3155/** File set descriptor has a next extent member. */
3156#define VERR_ISOFS_FSD_NEXT_EXTENT (-25333)
3157/** The ICB for is too big. */
3158#define VERR_ISOFS_ICB_TOO_BIG (-25334)
3159/** The ICB for is too small. */
3160#define VERR_ISOFS_ICB_TOO_SMALL (-25335)
3161/** No direct ICB entries found. */
3162#define VERR_ISOFS_NO_DIRECT_ICB_ENTRIES (-25336)
3163/** Too many ICB indirections, possibly a loop. */
3164#define VERR_ISOFS_TOO_MANY_ICB_INDIRECTIONS (-25337)
3165/** Too deep ICB recursion. */
3166#define VERR_ISOFS_TOO_DEEP_ICB_RECURSION (-25338)
3167/** ICB is too small to contain anything useful. */
3168#define VERR_ISOFS_ICB_ENTRY_TOO_SMALL (-25339)
3169/** Unsupported tag encountered in ICB. */
3170#define VERR_ISOFS_UNSUPPORTED_ICB (-25340)
3171/** Bad file entry (ICB). */
3172#define VERR_ISOFS_BAD_FILE_ENTRY (-25341)
3173/** Unknown allocation descriptor type. */
3174#define VERR_ISO_FS_UNKNOWN_AD_TYPE (-25342)
3175/** Malformed extended allocation descriptor. */
3176#define VERR_ISOFS_BAD_EXTAD (-25343)
3177/** Wrong file type. */
3178#define VERR_ISOFS_WRONG_FILE_TYPE (-25344)
3179/** Unknow file type. */
3180#define VERR_ISOFS_UNKNOWN_FILE_TYPE (-25345)
3181
3182/** Not implemented for UDF. */
3183#define VERR_ISOFS_UDF_NOT_IMPLEMENTED (-25390)
3184/** Internal processing error \#1. */
3185#define VERR_ISOFS_IPE_1 (-25391)
3186/** Internal processing error \#2. */
3187#define VERR_ISOFS_IPE_2 (-25392)
3188/** Internal processing error \#3. */
3189#define VERR_ISOFS_IPE_3 (-25393)
3190/** Internal processing error \#4. */
3191#define VERR_ISOFS_IPE_4 (-25394)
3192/** Internal processing error \#5. */
3193#define VERR_ISOFS_IPE_5 (-25395)
3194
3195/** @} */
3196
3197
3198/** @name RTSerialPort status codes
3199 * @{ */
3200/** A break was detected until all requested data could be received. */
3201#define VERR_SERIALPORT_BREAK_DETECTED (-25500)
3202/** The chosen baudrate is invalid or not supported by the given serial port. */
3203#define VERR_SERIALPORT_INVALID_BAUDRATE (-25501)
3204
3205/** @} */
3206
3207/* SED-END */
3208
3209/** @} */
3210
3211#endif
3212
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette