1 | /** @file
|
---|
2 | * IPRT - Status Codes.
|
---|
3 | */
|
---|
4 |
|
---|
5 | /*
|
---|
6 | * Copyright (C) 2006-2015 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 | */
|
---|
57 | class RTErrStrictType
|
---|
58 | {
|
---|
59 | protected:
|
---|
60 | int32_t m_rc;
|
---|
61 |
|
---|
62 | public:
|
---|
63 | /**
|
---|
64 | * Constructor for interaction with external status code strictness regimes.
|
---|
65 | *
|
---|
66 | * This is a special constructor for helping external return code validator
|
---|
67 | * classes interact cleanly with RT_SUCCESS, RT_SUCCESS_NP, RT_FAILURE and
|
---|
68 | * RT_FAILURE_NP while barring automatic cast to integer.
|
---|
69 | *
|
---|
70 | * @param rcObj IPRT status code object from an automatic cast.
|
---|
71 | */
|
---|
72 | RTErrStrictType(RTErrStrictType2 const rcObj)
|
---|
73 | : m_rc(rcObj.getValue())
|
---|
74 | {
|
---|
75 | }
|
---|
76 |
|
---|
77 | /**
|
---|
78 | * Integer constructor used by RT_SUCCESS_NP.
|
---|
79 | *
|
---|
80 | * @param rc IPRT style status code.
|
---|
81 | */
|
---|
82 | RTErrStrictType(int32_t rc)
|
---|
83 | : m_rc(rc)
|
---|
84 | {
|
---|
85 | }
|
---|
86 |
|
---|
87 | #if 0 /** @todo figure where int32_t is long instead of int. */
|
---|
88 | /**
|
---|
89 | * Integer constructor used by RT_SUCCESS_NP.
|
---|
90 | *
|
---|
91 | * @param rc IPRT style status code.
|
---|
92 | */
|
---|
93 | RTErrStrictType(signed int rc)
|
---|
94 | : m_rc(rc)
|
---|
95 | {
|
---|
96 | }
|
---|
97 | #endif
|
---|
98 |
|
---|
99 | /**
|
---|
100 | * Test for success.
|
---|
101 | */
|
---|
102 | bool success() const
|
---|
103 | {
|
---|
104 | return m_rc >= 0;
|
---|
105 | }
|
---|
106 |
|
---|
107 | private:
|
---|
108 | /** @name Try ban a number of wrong types.
|
---|
109 | * @{ */
|
---|
110 | RTErrStrictType(uint8_t rc) : m_rc(-999) { NOREF(rc); }
|
---|
111 | RTErrStrictType(uint16_t rc) : m_rc(-999) { NOREF(rc); }
|
---|
112 | RTErrStrictType(uint32_t rc) : m_rc(-999) { NOREF(rc); }
|
---|
113 | RTErrStrictType(uint64_t rc) : m_rc(-999) { NOREF(rc); }
|
---|
114 | RTErrStrictType(int8_t rc) : m_rc(-999) { NOREF(rc); }
|
---|
115 | RTErrStrictType(int16_t rc) : m_rc(-999) { NOREF(rc); }
|
---|
116 | RTErrStrictType(int64_t rc) : m_rc(-999) { NOREF(rc); }
|
---|
117 | /** @todo fight long here - clashes with int32_t/int64_t on some platforms. */
|
---|
118 | /** @} */
|
---|
119 | };
|
---|
120 | #endif /* __cplusplus */
|
---|
121 |
|
---|
122 |
|
---|
123 | /** @def RTERR_STRICT_RC
|
---|
124 | * Indicates that RT_SUCCESS_NP, RT_SUCCESS, RT_FAILURE_NP and RT_FAILURE should
|
---|
125 | * make type enforcing at compile time.
|
---|
126 | *
|
---|
127 | * @remarks Only define this for C++ code.
|
---|
128 | */
|
---|
129 | #if defined(__cplusplus) \
|
---|
130 | && !defined(RTERR_STRICT_RC) \
|
---|
131 | && ( defined(DOXYGEN_RUNNING) \
|
---|
132 | || defined(DEBUG) \
|
---|
133 | || defined(RT_STRICT) )
|
---|
134 | # define RTERR_STRICT_RC 1
|
---|
135 | #endif
|
---|
136 |
|
---|
137 |
|
---|
138 | /** @def RT_SUCCESS
|
---|
139 | * Check for success. We expect success in normal cases, that is the code path depending on
|
---|
140 | * this check is normally taken. To prevent any prediction use RT_SUCCESS_NP instead.
|
---|
141 | *
|
---|
142 | * @returns true if rc indicates success.
|
---|
143 | * @returns false if rc indicates failure.
|
---|
144 | *
|
---|
145 | * @param rc The iprt status code to test.
|
---|
146 | */
|
---|
147 | #define RT_SUCCESS(rc) ( RT_LIKELY(RT_SUCCESS_NP(rc)) )
|
---|
148 |
|
---|
149 | /** @def RT_SUCCESS_NP
|
---|
150 | * Check for success. Don't predict the result.
|
---|
151 | *
|
---|
152 | * @returns true if rc indicates success.
|
---|
153 | * @returns false if rc indicates failure.
|
---|
154 | *
|
---|
155 | * @param rc The iprt status code to test.
|
---|
156 | */
|
---|
157 | #ifdef RTERR_STRICT_RC
|
---|
158 | # define RT_SUCCESS_NP(rc) ( RTErrStrictType(rc).success() )
|
---|
159 | #else
|
---|
160 | # define RT_SUCCESS_NP(rc) ( (int)(rc) >= VINF_SUCCESS )
|
---|
161 | #endif
|
---|
162 |
|
---|
163 | /** @def RT_FAILURE
|
---|
164 | * Check for failure, 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 |
|
---|
191 | RT_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 | */
|
---|
200 | RTDECL(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 | */
|
---|
209 | RTDECL(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 | */
|
---|
218 | RTDECL(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 | */
|
---|
233 | RTDECL(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 | */
|
---|
241 | RTDECL(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 | */
|
---|
250 | RTDECL(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 | */
|
---|
261 | RTDECL(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 | */
|
---|
270 | RTDECL(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 | */
|
---|
279 | RTDECL(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 | */
|
---|
287 | RTDECL(int) RTErrConvertToErrno(int iErr);
|
---|
288 |
|
---|
289 | #ifdef IN_RING3
|
---|
290 |
|
---|
291 | /**
|
---|
292 | * iprt status code message.
|
---|
293 | */
|
---|
294 | typedef 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. */
|
---|
306 | typedef RTSTATUSMSG *PRTSTATUSMSG;
|
---|
307 | /** Pointer to const iprt status code message. */
|
---|
308 | typedef 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 | */
|
---|
316 | RTDECL(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 | */
|
---|
346 | typedef 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. */
|
---|
356 | typedef RTWINERRMSG *PRTWINERRMSG;
|
---|
357 | /** Pointer to const Windows error code message. */
|
---|
358 | typedef 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 | */
|
---|
366 | RTDECL(PCRTWINERRMSG) RTErrWinGet(long rc);
|
---|
367 |
|
---|
368 | /** On windows COM errors are part of the Windows error database. */
|
---|
369 | typedef RTWINERRMSG RTCOMERRMSG;
|
---|
370 |
|
---|
371 | #else /* !RT_OS_WINDOWS */
|
---|
372 |
|
---|
373 | /**
|
---|
374 | * COM/XPCOM error code message.
|
---|
375 | */
|
---|
376 | typedef 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. */
|
---|
387 | typedef RTCOMERRMSG *PRTCOMERRMSG;
|
---|
388 | /** Pointer to const a XPCOM/COM error code message. */
|
---|
389 | typedef 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 | */
|
---|
397 | RTDECL(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 | */
|
---|
429 | DECLINLINE(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 | */
|
---|
449 | DECLINLINE(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 | */
|
---|
464 | RTDECL(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 | */
|
---|
477 | RTDECL(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 | */
|
---|
485 | RTDECL(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 | */
|
---|
496 | RTDECL(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 | */
|
---|
508 | RTDECL(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 | */
|
---|
520 | RTDECL(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 | */
|
---|
531 | RTDECL(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 | */
|
---|
543 | RTDECL(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 | */
|
---|
555 | RTDECL(int) RTErrInfoAddV(PRTERRINFO pErrInfo, int rc, const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(3, 0);
|
---|
556 |
|
---|
557 | /**
|
---|
558 | * Checks if the error info is set.
|
---|
559 | *
|
---|
560 | * @returns true if set, false if not.
|
---|
561 | * @param pErrInfo The error info structure. NULL is OK.
|
---|
562 | */
|
---|
563 | DECLINLINE(bool) RTErrInfoIsSet(PCRTERRINFO pErrInfo)
|
---|
564 | {
|
---|
565 | if (!pErrInfo)
|
---|
566 | return false;
|
---|
567 | return (pErrInfo->fFlags & (RTERRINFO_FLAGS_MAGIC_MASK | RTERRINFO_FLAGS_SET))
|
---|
568 | == (RTERRINFO_FLAGS_MAGIC | RTERRINFO_FLAGS_SET);
|
---|
569 | }
|
---|
570 |
|
---|
571 | /**
|
---|
572 | * Clears the error info structure.
|
---|
573 | *
|
---|
574 | * @param pErrInfo The error info structure. NULL is OK.
|
---|
575 | */
|
---|
576 | DECLINLINE(void) RTErrInfoClear(PRTERRINFO pErrInfo)
|
---|
577 | {
|
---|
578 | if (pErrInfo)
|
---|
579 | {
|
---|
580 | pErrInfo->fFlags &= ~RTERRINFO_FLAGS_SET;
|
---|
581 | pErrInfo->rc = /*VINF_SUCCESS*/0;
|
---|
582 | *pErrInfo->pszMsg = '\0';
|
---|
583 | }
|
---|
584 | }
|
---|
585 |
|
---|
586 | /**
|
---|
587 | * Storage for error variables.
|
---|
588 | *
|
---|
589 | * @remarks Do NOT touch the members! They are platform specific and what's
|
---|
590 | * where may change at any time!
|
---|
591 | */
|
---|
592 | typedef union RTERRVARS
|
---|
593 | {
|
---|
594 | int8_t ai8Vars[32];
|
---|
595 | int16_t ai16Vars[16];
|
---|
596 | int32_t ai32Vars[8];
|
---|
597 | int64_t ai64Vars[4];
|
---|
598 | } RTERRVARS;
|
---|
599 | /** Pointer to an error variable storage union. */
|
---|
600 | typedef RTERRVARS *PRTERRVARS;
|
---|
601 | /** Pointer to a const error variable storage union. */
|
---|
602 | typedef RTERRVARS const *PCRTERRVARS;
|
---|
603 |
|
---|
604 | /**
|
---|
605 | * Saves the error variables.
|
---|
606 | *
|
---|
607 | * @returns @a pVars.
|
---|
608 | * @param pVars The variable storage union.
|
---|
609 | */
|
---|
610 | RTDECL(PRTERRVARS) RTErrVarsSave(PRTERRVARS pVars);
|
---|
611 |
|
---|
612 | /**
|
---|
613 | * Restores the error variables.
|
---|
614 | *
|
---|
615 | * @param pVars The variable storage union.
|
---|
616 | */
|
---|
617 | RTDECL(void) RTErrVarsRestore(PCRTERRVARS pVars);
|
---|
618 |
|
---|
619 | /**
|
---|
620 | * Checks if the first variable set equals the second.
|
---|
621 | *
|
---|
622 | * @returns true if they are equal, false if not.
|
---|
623 | * @param pVars1 The first variable storage union.
|
---|
624 | * @param pVars2 The second variable storage union.
|
---|
625 | */
|
---|
626 | RTDECL(bool) RTErrVarsAreEqual(PCRTERRVARS pVars1, PCRTERRVARS pVars2);
|
---|
627 |
|
---|
628 | /**
|
---|
629 | * Checks if the (live) error variables have changed since we saved them.
|
---|
630 | *
|
---|
631 | * @returns @c true if they have changed, @c false if not.
|
---|
632 | * @param pVars The saved variables to compare the current state
|
---|
633 | * against.
|
---|
634 | */
|
---|
635 | RTDECL(bool) RTErrVarsHaveChanged(PCRTERRVARS pVars);
|
---|
636 |
|
---|
637 | RT_C_DECLS_END
|
---|
638 |
|
---|
639 | /** @} */
|
---|
640 |
|
---|
641 | /** @name Status Code Ranges
|
---|
642 | * @{ */
|
---|
643 | /** The first status code in the primary IPRT range. */
|
---|
644 | #define RTERR_RANGE1_FIRST 0
|
---|
645 | /** The last status code in the primary IPRT range. */
|
---|
646 | #define RTERR_RANGE1_LAST 999
|
---|
647 |
|
---|
648 | /** The first status code in the secondary IPRT range. */
|
---|
649 | #define RTERR_RANGE2_FIRST 22000
|
---|
650 | /** The last status code in the secondary IPRT range. */
|
---|
651 | #define RTERR_RANGE2_LAST 32766
|
---|
652 |
|
---|
653 | /** The first status code in the user range. */
|
---|
654 | #define RTERR_USER_FIRST 1000
|
---|
655 | /** The last status code in the user range. */
|
---|
656 | #define RTERR_USER_LAST 21999
|
---|
657 | /** @} */
|
---|
658 |
|
---|
659 |
|
---|
660 | /* SED-START */
|
---|
661 |
|
---|
662 | /** @name Misc. Status Codes
|
---|
663 | * @{
|
---|
664 | */
|
---|
665 | /** Success. */
|
---|
666 | #define VINF_SUCCESS 0
|
---|
667 |
|
---|
668 | /** General failure - DON'T USE THIS!!! */
|
---|
669 | #define VERR_GENERAL_FAILURE (-1)
|
---|
670 | /** Invalid parameter. */
|
---|
671 | #define VERR_INVALID_PARAMETER (-2)
|
---|
672 | /** Invalid parameter. */
|
---|
673 | #define VWRN_INVALID_PARAMETER 2
|
---|
674 | /** Invalid magic or cookie. */
|
---|
675 | #define VERR_INVALID_MAGIC (-3)
|
---|
676 | /** Invalid magic or cookie. */
|
---|
677 | #define VWRN_INVALID_MAGIC 3
|
---|
678 | /** Invalid loader handle. */
|
---|
679 | #define VERR_INVALID_HANDLE (-4)
|
---|
680 | /** Invalid loader handle. */
|
---|
681 | #define VWRN_INVALID_HANDLE 4
|
---|
682 | /** Failed to lock the address range. */
|
---|
683 | #define VERR_LOCK_FAILED (-5)
|
---|
684 | /** Invalid memory pointer. */
|
---|
685 | #define VERR_INVALID_POINTER (-6)
|
---|
686 | /** Failed to patch the IDT. */
|
---|
687 | #define VERR_IDT_FAILED (-7)
|
---|
688 | /** Memory allocation failed. */
|
---|
689 | #define VERR_NO_MEMORY (-8)
|
---|
690 | /** Already loaded. */
|
---|
691 | #define VERR_ALREADY_LOADED (-9)
|
---|
692 | /** Permission denied. */
|
---|
693 | #define VERR_PERMISSION_DENIED (-10)
|
---|
694 | /** Permission denied. */
|
---|
695 | #define VINF_PERMISSION_DENIED 10
|
---|
696 | /** Version mismatch. */
|
---|
697 | #define VERR_VERSION_MISMATCH (-11)
|
---|
698 | /** The request function is not implemented. */
|
---|
699 | #define VERR_NOT_IMPLEMENTED (-12)
|
---|
700 | /** Invalid flags was given. */
|
---|
701 | #define VERR_INVALID_FLAGS (-13)
|
---|
702 |
|
---|
703 | /** Not equal. */
|
---|
704 | #define VERR_NOT_EQUAL (-18)
|
---|
705 | /** The specified path does not point at a symbolic link. */
|
---|
706 | #define VERR_NOT_SYMLINK (-19)
|
---|
707 | /** Failed to allocate temporary memory. */
|
---|
708 | #define VERR_NO_TMP_MEMORY (-20)
|
---|
709 | /** Invalid file mode mask (RTFMODE). */
|
---|
710 | #define VERR_INVALID_FMODE (-21)
|
---|
711 | /** Incorrect call order. */
|
---|
712 | #define VERR_WRONG_ORDER (-22)
|
---|
713 | /** There is no TLS (thread local storage) available for storing the current thread. */
|
---|
714 | #define VERR_NO_TLS_FOR_SELF (-23)
|
---|
715 | /** Failed to set the TLS (thread local storage) entry which points to our thread structure. */
|
---|
716 | #define VERR_FAILED_TO_SET_SELF_TLS (-24)
|
---|
717 | /** Not able to allocate contiguous memory. */
|
---|
718 | #define VERR_NO_CONT_MEMORY (-26)
|
---|
719 | /** No memory available for page table or page directory. */
|
---|
720 | #define VERR_NO_PAGE_MEMORY (-27)
|
---|
721 | /** Already initialized. */
|
---|
722 | #define VINF_ALREADY_INITIALIZED 28
|
---|
723 | /** The specified thread is dead. */
|
---|
724 | #define VERR_THREAD_IS_DEAD (-29)
|
---|
725 | /** The specified thread is not waitable. */
|
---|
726 | #define VERR_THREAD_NOT_WAITABLE (-30)
|
---|
727 | /** Pagetable not present. */
|
---|
728 | #define VERR_PAGE_TABLE_NOT_PRESENT (-31)
|
---|
729 | /** Invalid context.
|
---|
730 | * Typically an API was used by the wrong thread. */
|
---|
731 | #define VERR_INVALID_CONTEXT (-32)
|
---|
732 | /** The per process timer is busy. */
|
---|
733 | #define VERR_TIMER_BUSY (-33)
|
---|
734 | /** Address conflict. */
|
---|
735 | #define VERR_ADDRESS_CONFLICT (-34)
|
---|
736 | /** Unresolved (unknown) host platform error. */
|
---|
737 | #define VERR_UNRESOLVED_ERROR (-35)
|
---|
738 | /** Invalid function. */
|
---|
739 | #define VERR_INVALID_FUNCTION (-36)
|
---|
740 | /** Not supported. */
|
---|
741 | #define VERR_NOT_SUPPORTED (-37)
|
---|
742 | /** Not supported. */
|
---|
743 | #define VINF_NOT_SUPPORTED 37
|
---|
744 | /** Access denied. */
|
---|
745 | #define VERR_ACCESS_DENIED (-38)
|
---|
746 | /** Call interrupted. */
|
---|
747 | #define VERR_INTERRUPTED (-39)
|
---|
748 | /** Call interrupted. */
|
---|
749 | #define VINF_INTERRUPTED 39
|
---|
750 | /** Timeout. */
|
---|
751 | #define VERR_TIMEOUT (-40)
|
---|
752 | /** Timeout. */
|
---|
753 | #define VINF_TIMEOUT 40
|
---|
754 | /** Buffer too small to save result. */
|
---|
755 | #define VERR_BUFFER_OVERFLOW (-41)
|
---|
756 | /** Buffer too small to save result. */
|
---|
757 | #define VINF_BUFFER_OVERFLOW 41
|
---|
758 | /** Data size overflow. */
|
---|
759 | #define VERR_TOO_MUCH_DATA (-42)
|
---|
760 | /** Max threads number reached. */
|
---|
761 | #define VERR_MAX_THRDS_REACHED (-43)
|
---|
762 | /** Max process number reached. */
|
---|
763 | #define VERR_MAX_PROCS_REACHED (-44)
|
---|
764 | /** The recipient process has refused the signal. */
|
---|
765 | #define VERR_SIGNAL_REFUSED (-45)
|
---|
766 | /** A signal is already pending. */
|
---|
767 | #define VERR_SIGNAL_PENDING (-46)
|
---|
768 | /** The signal being posted is not correct. */
|
---|
769 | #define VERR_SIGNAL_INVALID (-47)
|
---|
770 | /** The state changed.
|
---|
771 | * This is a generic error message and needs a context to make sense. */
|
---|
772 | #define VERR_STATE_CHANGED (-48)
|
---|
773 | /** Warning, the state changed.
|
---|
774 | * This is a generic error message and needs a context to make sense. */
|
---|
775 | #define VWRN_STATE_CHANGED 48
|
---|
776 | /** Error while parsing UUID string */
|
---|
777 | #define VERR_INVALID_UUID_FORMAT (-49)
|
---|
778 | /** The specified process was not found. */
|
---|
779 | #define VERR_PROCESS_NOT_FOUND (-50)
|
---|
780 | /** The process specified to a non-block wait had not exited. */
|
---|
781 | #define VERR_PROCESS_RUNNING (-51)
|
---|
782 | /** Retry the operation. */
|
---|
783 | #define VERR_TRY_AGAIN (-52)
|
---|
784 | /** Retry the operation. */
|
---|
785 | #define VINF_TRY_AGAIN 52
|
---|
786 | /** Generic parse error. */
|
---|
787 | #define VERR_PARSE_ERROR (-53)
|
---|
788 | /** Value out of range. */
|
---|
789 | #define VERR_OUT_OF_RANGE (-54)
|
---|
790 | /** A numeric conversion encountered a value which was too big for the target. */
|
---|
791 | #define VERR_NUMBER_TOO_BIG (-55)
|
---|
792 | /** A numeric conversion encountered a value which was too big for the target. */
|
---|
793 | #define VWRN_NUMBER_TOO_BIG 55
|
---|
794 | /** The number begin converted (string) contained no digits. */
|
---|
795 | #define VERR_NO_DIGITS (-56)
|
---|
796 | /** The number begin converted (string) contained no digits. */
|
---|
797 | #define VWRN_NO_DIGITS 56
|
---|
798 | /** Encountered a '-' during conversion to an unsigned value. */
|
---|
799 | #define VERR_NEGATIVE_UNSIGNED (-57)
|
---|
800 | /** Encountered a '-' during conversion to an unsigned value. */
|
---|
801 | #define VWRN_NEGATIVE_UNSIGNED 57
|
---|
802 | /** Error while characters translation (unicode and so). */
|
---|
803 | #define VERR_NO_TRANSLATION (-58)
|
---|
804 | /** Error while characters translation (unicode and so). */
|
---|
805 | #define VWRN_NO_TRANSLATION 58
|
---|
806 | /** Encountered unicode code point which is reserved for use as endian indicator (0xffff or 0xfffe). */
|
---|
807 | #define VERR_CODE_POINT_ENDIAN_INDICATOR (-59)
|
---|
808 | /** Encountered unicode code point in the surrogate range (0xd800 to 0xdfff). */
|
---|
809 | #define VERR_CODE_POINT_SURROGATE (-60)
|
---|
810 | /** A string claiming to be UTF-8 is incorrectly encoded. */
|
---|
811 | #define VERR_INVALID_UTF8_ENCODING (-61)
|
---|
812 | /** A string claiming to be in UTF-16 is incorrectly encoded. */
|
---|
813 | #define VERR_INVALID_UTF16_ENCODING (-62)
|
---|
814 | /** Encountered a unicode code point which cannot be represented as UTF-16. */
|
---|
815 | #define VERR_CANT_RECODE_AS_UTF16 (-63)
|
---|
816 | /** Got an out of memory condition trying to allocate a string. */
|
---|
817 | #define VERR_NO_STR_MEMORY (-64)
|
---|
818 | /** Got an out of memory condition trying to allocate a UTF-16 (/UCS-2) string. */
|
---|
819 | #define VERR_NO_UTF16_MEMORY (-65)
|
---|
820 | /** Get an out of memory condition trying to allocate a code point array. */
|
---|
821 | #define VERR_NO_CODE_POINT_MEMORY (-66)
|
---|
822 | /** Can't free the memory because it's used in mapping. */
|
---|
823 | #define VERR_MEMORY_BUSY (-67)
|
---|
824 | /** The timer can't be started because it's already active. */
|
---|
825 | #define VERR_TIMER_ACTIVE (-68)
|
---|
826 | /** The timer can't be stopped because it's already suspended. */
|
---|
827 | #define VERR_TIMER_SUSPENDED (-69)
|
---|
828 | /** The operation was cancelled by the user (copy) or another thread (local ipc). */
|
---|
829 | #define VERR_CANCELLED (-70)
|
---|
830 | /** Failed to initialize a memory object.
|
---|
831 | * Exactly what this means is OS specific. */
|
---|
832 | #define VERR_MEMOBJ_INIT_FAILED (-71)
|
---|
833 | /** Out of memory condition when allocating memory with low physical backing. */
|
---|
834 | #define VERR_NO_LOW_MEMORY (-72)
|
---|
835 | /** Out of memory condition when allocating physical memory (without mapping). */
|
---|
836 | #define VERR_NO_PHYS_MEMORY (-73)
|
---|
837 | /** The address (virtual or physical) is too big. */
|
---|
838 | #define VERR_ADDRESS_TOO_BIG (-74)
|
---|
839 | /** Failed to map a memory object. */
|
---|
840 | #define VERR_MAP_FAILED (-75)
|
---|
841 | /** Trailing characters. */
|
---|
842 | #define VERR_TRAILING_CHARS (-76)
|
---|
843 | /** Trailing characters. */
|
---|
844 | #define VWRN_TRAILING_CHARS 76
|
---|
845 | /** Trailing spaces. */
|
---|
846 | #define VERR_TRAILING_SPACES (-77)
|
---|
847 | /** Trailing spaces. */
|
---|
848 | #define VWRN_TRAILING_SPACES 77
|
---|
849 | /** Generic not found error. */
|
---|
850 | #define VERR_NOT_FOUND (-78)
|
---|
851 | /** Generic not found warning. */
|
---|
852 | #define VWRN_NOT_FOUND 78
|
---|
853 | /** Generic invalid state error. */
|
---|
854 | #define VERR_INVALID_STATE (-79)
|
---|
855 | /** Generic invalid state warning. */
|
---|
856 | #define VWRN_INVALID_STATE 79
|
---|
857 | /** Generic out of resources error. */
|
---|
858 | #define VERR_OUT_OF_RESOURCES (-80)
|
---|
859 | /** Generic out of resources warning. */
|
---|
860 | #define VWRN_OUT_OF_RESOURCES 80
|
---|
861 | /** No more handles available, too many open handles. */
|
---|
862 | #define VERR_NO_MORE_HANDLES (-81)
|
---|
863 | /** Preemption is disabled.
|
---|
864 | * The requested operation can only be performed when preemption is enabled. */
|
---|
865 | #define VERR_PREEMPT_DISABLED (-82)
|
---|
866 | /** End of string. */
|
---|
867 | #define VERR_END_OF_STRING (-83)
|
---|
868 | /** End of string. */
|
---|
869 | #define VINF_END_OF_STRING 83
|
---|
870 | /** A page count is out of range. */
|
---|
871 | #define VERR_PAGE_COUNT_OUT_OF_RANGE (-84)
|
---|
872 | /** Generic object destroyed status. */
|
---|
873 | #define VERR_OBJECT_DESTROYED (-85)
|
---|
874 | /** Generic object was destroyed by the call status. */
|
---|
875 | #define VINF_OBJECT_DESTROYED 85
|
---|
876 | /** Generic dangling objects status. */
|
---|
877 | #define VERR_DANGLING_OBJECTS (-86)
|
---|
878 | /** Generic dangling objects status. */
|
---|
879 | #define VWRN_DANGLING_OBJECTS 86
|
---|
880 | /** Invalid Base64 encoding. */
|
---|
881 | #define VERR_INVALID_BASE64_ENCODING (-87)
|
---|
882 | /** Return instigated by a callback or similar. */
|
---|
883 | #define VERR_CALLBACK_RETURN (-88)
|
---|
884 | /** Return instigated by a callback or similar. */
|
---|
885 | #define VINF_CALLBACK_RETURN 88
|
---|
886 | /** Authentication failure. */
|
---|
887 | #define VERR_AUTHENTICATION_FAILURE (-89)
|
---|
888 | /** Not a power of two. */
|
---|
889 | #define VERR_NOT_POWER_OF_TWO (-90)
|
---|
890 | /** Status code, typically given as a parameter, that isn't supposed to be used. */
|
---|
891 | #define VERR_IGNORED (-91)
|
---|
892 | /** Concurrent access to the object is not allowed. */
|
---|
893 | #define VERR_CONCURRENT_ACCESS (-92)
|
---|
894 | /** The caller does not have a reference to the object.
|
---|
895 | * This status is used when two threads is caught sharing the same object
|
---|
896 | * reference. */
|
---|
897 | #define VERR_CALLER_NO_REFERENCE (-93)
|
---|
898 | /** Generic no change error. */
|
---|
899 | #define VERR_NO_CHANGE (-95)
|
---|
900 | /** Generic no change info. */
|
---|
901 | #define VINF_NO_CHANGE 95
|
---|
902 | /** Out of memory condition when allocating executable memory. */
|
---|
903 | #define VERR_NO_EXEC_MEMORY (-96)
|
---|
904 | /** The alignment is not supported. */
|
---|
905 | #define VERR_UNSUPPORTED_ALIGNMENT (-97)
|
---|
906 | /** The alignment is not really supported, however we got lucky with this
|
---|
907 | * allocation. */
|
---|
908 | #define VINF_UNSUPPORTED_ALIGNMENT 97
|
---|
909 | /** Duplicate something. */
|
---|
910 | #define VERR_DUPLICATE (-98)
|
---|
911 | /** Something is missing. */
|
---|
912 | #define VERR_MISSING (-99)
|
---|
913 | /** An unexpected (/unknown) exception was caught. */
|
---|
914 | #define VERR_UNEXPECTED_EXCEPTION (-22400)
|
---|
915 | /** Buffer underflow. */
|
---|
916 | #define VERR_BUFFER_UNDERFLOW (-22401)
|
---|
917 | /** Buffer underflow. */
|
---|
918 | #define VINF_BUFFER_UNDERFLOW 22401
|
---|
919 | /** Uneven input. */
|
---|
920 | #define VERR_UNEVEN_INPUT (-22402)
|
---|
921 | /** Something is not available or not working properly. */
|
---|
922 | #define VERR_NOT_AVAILABLE (-22403)
|
---|
923 | /** The RTPROC_FLAGS_DETACHED flag isn't supported. */
|
---|
924 | #define VERR_PROC_DETACH_NOT_SUPPORTED (-22404)
|
---|
925 | /** An account is restricted in a certain way. */
|
---|
926 | #define VERR_ACCOUNT_RESTRICTED (-22405)
|
---|
927 | /** An account is restricted in a certain way. */
|
---|
928 | #define VINF_ACCOUNT_RESTRICTED 22405
|
---|
929 | /** Not able satisfy all the requirements of the request. */
|
---|
930 | #define VERR_UNABLE_TO_SATISFY_REQUIREMENTS (-22406)
|
---|
931 | /** Not able satisfy all the requirements of the request. */
|
---|
932 | #define VWRN_UNABLE_TO_SATISFY_REQUIREMENTS 22406
|
---|
933 | /** The requested allocation is too big. */
|
---|
934 | #define VERR_ALLOCATION_TOO_BIG (-22407)
|
---|
935 | /** Mismatch. */
|
---|
936 | #define VERR_MISMATCH (-22408)
|
---|
937 | /** Wrong type. */
|
---|
938 | #define VERR_WRONG_TYPE (-22409)
|
---|
939 | /** This indicates that the process does not have sufficient privileges to
|
---|
940 | * perform the operation. */
|
---|
941 | #define VERR_PRIVILEGE_NOT_HELD (-22410)
|
---|
942 | /** Process does not have the trusted code base (TCB) privilege needed for user
|
---|
943 | * authentication or/and process creation as a given user. TCB is also called
|
---|
944 | * 'Act as part of the operating system'. */
|
---|
945 | #define VERR_PROC_TCB_PRIV_NOT_HELD (-22411)
|
---|
946 | /** Process does not have the assign primary token (APT) privilege needed
|
---|
947 | * for creating process as a given user. APT is also called 'Replace a process
|
---|
948 | * level token'. */
|
---|
949 | #define VERR_PROC_APT_PRIV_NOT_HELD (-22412)
|
---|
950 | /** Process does not have the increase quota (IQ) privilege needed for
|
---|
951 | * creating a process as a given user. IQ is also called 'Increase quotas'. */
|
---|
952 | #define VERR_PROC_IQ_PRIV_NOT_HELD (-22413)
|
---|
953 | /** @} */
|
---|
954 |
|
---|
955 |
|
---|
956 | /** @name Common File/Disk/Pipe/etc Status Codes
|
---|
957 | * @{
|
---|
958 | */
|
---|
959 | /** Unresolved (unknown) file i/o error. */
|
---|
960 | #define VERR_FILE_IO_ERROR (-100)
|
---|
961 | /** File/Device open failed. */
|
---|
962 | #define VERR_OPEN_FAILED (-101)
|
---|
963 | /** File not found. */
|
---|
964 | #define VERR_FILE_NOT_FOUND (-102)
|
---|
965 | /** Path not found. */
|
---|
966 | #define VERR_PATH_NOT_FOUND (-103)
|
---|
967 | /** Invalid (malformed) file/path name. */
|
---|
968 | #define VERR_INVALID_NAME (-104)
|
---|
969 | /** The object in question already exists. */
|
---|
970 | #define VERR_ALREADY_EXISTS (-105)
|
---|
971 | /** The object in question already exists. */
|
---|
972 | #define VWRN_ALREADY_EXISTS 105
|
---|
973 | /** Too many open files. */
|
---|
974 | #define VERR_TOO_MANY_OPEN_FILES (-106)
|
---|
975 | /** Seek error. */
|
---|
976 | #define VERR_SEEK (-107)
|
---|
977 | /** Seek below file start. */
|
---|
978 | #define VERR_NEGATIVE_SEEK (-108)
|
---|
979 | /** Trying to seek on device. */
|
---|
980 | #define VERR_SEEK_ON_DEVICE (-109)
|
---|
981 | /** Reached the end of the file. */
|
---|
982 | #define VERR_EOF (-110)
|
---|
983 | /** Reached the end of the file. */
|
---|
984 | #define VINF_EOF 110
|
---|
985 | /** Generic file read error. */
|
---|
986 | #define VERR_READ_ERROR (-111)
|
---|
987 | /** Generic file write error. */
|
---|
988 | #define VERR_WRITE_ERROR (-112)
|
---|
989 | /** Write protect error. */
|
---|
990 | #define VERR_WRITE_PROTECT (-113)
|
---|
991 | /** Sharing violation, file is being used by another process. */
|
---|
992 | #define VERR_SHARING_VIOLATION (-114)
|
---|
993 | /** Unable to lock a region of a file. */
|
---|
994 | #define VERR_FILE_LOCK_FAILED (-115)
|
---|
995 | /** File access error, another process has locked a portion of the file. */
|
---|
996 | #define VERR_FILE_LOCK_VIOLATION (-116)
|
---|
997 | /** File or directory can't be created. */
|
---|
998 | #define VERR_CANT_CREATE (-117)
|
---|
999 | /** Directory can't be deleted. */
|
---|
1000 | #define VERR_CANT_DELETE_DIRECTORY (-118)
|
---|
1001 | /** Can't move file to another disk. */
|
---|
1002 | #define VERR_NOT_SAME_DEVICE (-119)
|
---|
1003 | /** The filename or extension is too long. */
|
---|
1004 | #define VERR_FILENAME_TOO_LONG (-120)
|
---|
1005 | /** Media not present in drive. */
|
---|
1006 | #define VERR_MEDIA_NOT_PRESENT (-121)
|
---|
1007 | /** The type of media was not recognized. Not formatted? */
|
---|
1008 | #define VERR_MEDIA_NOT_RECOGNIZED (-122)
|
---|
1009 | /** Can't unlock - region was not locked. */
|
---|
1010 | #define VERR_FILE_NOT_LOCKED (-123)
|
---|
1011 | /** Unrecoverable error: lock was lost. */
|
---|
1012 | #define VERR_FILE_LOCK_LOST (-124)
|
---|
1013 | /** Can't delete directory with files. */
|
---|
1014 | #define VERR_DIR_NOT_EMPTY (-125)
|
---|
1015 | /** A directory operation was attempted on a non-directory object. */
|
---|
1016 | #define VERR_NOT_A_DIRECTORY (-126)
|
---|
1017 | /** A non-directory operation was attempted on a directory object. */
|
---|
1018 | #define VERR_IS_A_DIRECTORY (-127)
|
---|
1019 | /** Tried to grow a file beyond the limit imposed by the process or the filesystem. */
|
---|
1020 | #define VERR_FILE_TOO_BIG (-128)
|
---|
1021 | /** No pending request the aio context has to wait for completion. */
|
---|
1022 | #define VERR_FILE_AIO_NO_REQUEST (-129)
|
---|
1023 | /** The request could not be canceled or prepared for another transfer
|
---|
1024 | * because it is still in progress. */
|
---|
1025 | #define VERR_FILE_AIO_IN_PROGRESS (-130)
|
---|
1026 | /** The request could not be canceled because it already completed. */
|
---|
1027 | #define VERR_FILE_AIO_COMPLETED (-131)
|
---|
1028 | /** The I/O context couldn't be destroyed because there are still pending requests. */
|
---|
1029 | #define VERR_FILE_AIO_BUSY (-132)
|
---|
1030 | /** The requests couldn't be submitted because that would exceed the capacity of the context. */
|
---|
1031 | #define VERR_FILE_AIO_LIMIT_EXCEEDED (-133)
|
---|
1032 | /** The request was canceled. */
|
---|
1033 | #define VERR_FILE_AIO_CANCELED (-134)
|
---|
1034 | /** The request wasn't submitted so it can't be canceled. */
|
---|
1035 | #define VERR_FILE_AIO_NOT_SUBMITTED (-135)
|
---|
1036 | /** A request was not prepared and thus could not be submitted. */
|
---|
1037 | #define VERR_FILE_AIO_NOT_PREPARED (-136)
|
---|
1038 | /** Not all requests could be submitted due to resource shortage. */
|
---|
1039 | #define VERR_FILE_AIO_INSUFFICIENT_RESSOURCES (-137)
|
---|
1040 | /** Device or resource is busy. */
|
---|
1041 | #define VERR_RESOURCE_BUSY (-138)
|
---|
1042 | /** A file operation was attempted on a non-file object. */
|
---|
1043 | #define VERR_NOT_A_FILE (-139)
|
---|
1044 | /** A non-file operation was attempted on a file object. */
|
---|
1045 | #define VERR_IS_A_FILE (-140)
|
---|
1046 | /** Unexpected filesystem object type. */
|
---|
1047 | #define VERR_UNEXPECTED_FS_OBJ_TYPE (-141)
|
---|
1048 | /** A path does not start with a root specification. */
|
---|
1049 | #define VERR_PATH_DOES_NOT_START_WITH_ROOT (-142)
|
---|
1050 | /** A path is relative, expected an absolute path. */
|
---|
1051 | #define VERR_PATH_IS_RELATIVE (-143)
|
---|
1052 | /** A path is not relative (start with root), expected an relative path. */
|
---|
1053 | #define VERR_PATH_IS_NOT_RELATIVE (-144)
|
---|
1054 | /** Zero length path. */
|
---|
1055 | #define VERR_PATH_ZERO_LENGTH (-145)
|
---|
1056 | /** There are not enough events available on the host to create the I/O context.
|
---|
1057 | * This exact meaning is host platform dependent. */
|
---|
1058 | #define VERR_FILE_AIO_INSUFFICIENT_EVENTS (-146)
|
---|
1059 | /** @} */
|
---|
1060 |
|
---|
1061 |
|
---|
1062 | /** @name Generic Filesystem I/O Status Codes
|
---|
1063 | * @{
|
---|
1064 | */
|
---|
1065 | /** Unresolved (unknown) disk i/o error. */
|
---|
1066 | #define VERR_DISK_IO_ERROR (-150)
|
---|
1067 | /** Invalid drive number. */
|
---|
1068 | #define VERR_INVALID_DRIVE (-151)
|
---|
1069 | /** Disk is full. */
|
---|
1070 | #define VERR_DISK_FULL (-152)
|
---|
1071 | /** Disk was changed. */
|
---|
1072 | #define VERR_DISK_CHANGE (-153)
|
---|
1073 | /** Drive is locked. */
|
---|
1074 | #define VERR_DRIVE_LOCKED (-154)
|
---|
1075 | /** The specified disk or diskette cannot be accessed. */
|
---|
1076 | #define VERR_DISK_INVALID_FORMAT (-155)
|
---|
1077 | /** Too many symbolic links. */
|
---|
1078 | #define VERR_TOO_MANY_SYMLINKS (-156)
|
---|
1079 | /** The OS does not support setting the time stamps on a symbolic link. */
|
---|
1080 | #define VERR_NS_SYMLINK_SET_TIME (-157)
|
---|
1081 | /** The OS does not support changing the owner of a symbolic link. */
|
---|
1082 | #define VERR_NS_SYMLINK_CHANGE_OWNER (-158)
|
---|
1083 | /** @} */
|
---|
1084 |
|
---|
1085 |
|
---|
1086 | /** @name Generic Directory Enumeration Status Codes
|
---|
1087 | * @{
|
---|
1088 | */
|
---|
1089 | /** Unresolved (unknown) search error. */
|
---|
1090 | #define VERR_SEARCH_ERROR (-200)
|
---|
1091 | /** No more files found. */
|
---|
1092 | #define VERR_NO_MORE_FILES (-201)
|
---|
1093 | /** No more search handles available. */
|
---|
1094 | #define VERR_NO_MORE_SEARCH_HANDLES (-202)
|
---|
1095 | /** RTDirReadEx() failed to retrieve the extra data which was requested. */
|
---|
1096 | #define VWRN_NO_DIRENT_INFO 203
|
---|
1097 | /** @} */
|
---|
1098 |
|
---|
1099 |
|
---|
1100 | /** @name Internal Processing Errors
|
---|
1101 | * @{
|
---|
1102 | */
|
---|
1103 | /** Internal error - this should never happen. */
|
---|
1104 | #define VERR_INTERNAL_ERROR (-225)
|
---|
1105 | /** Internal error no. 2. */
|
---|
1106 | #define VERR_INTERNAL_ERROR_2 (-226)
|
---|
1107 | /** Internal error no. 3. */
|
---|
1108 | #define VERR_INTERNAL_ERROR_3 (-227)
|
---|
1109 | /** Internal error no. 4. */
|
---|
1110 | #define VERR_INTERNAL_ERROR_4 (-228)
|
---|
1111 | /** Internal error no. 5. */
|
---|
1112 | #define VERR_INTERNAL_ERROR_5 (-229)
|
---|
1113 | /** Internal error: Unexpected status code. */
|
---|
1114 | #define VERR_IPE_UNEXPECTED_STATUS (-230)
|
---|
1115 | /** Internal error: Unexpected status code. */
|
---|
1116 | #define VERR_IPE_UNEXPECTED_INFO_STATUS (-231)
|
---|
1117 | /** Internal error: Unexpected status code. */
|
---|
1118 | #define VERR_IPE_UNEXPECTED_ERROR_STATUS (-232)
|
---|
1119 | /** Internal error: Uninitialized status code.
|
---|
1120 | * @remarks This is used by value elsewhere. */
|
---|
1121 | #define VERR_IPE_UNINITIALIZED_STATUS (-233)
|
---|
1122 | /** Internal error: Supposedly unreachable default case in a switch. */
|
---|
1123 | #define VERR_IPE_NOT_REACHED_DEFAULT_CASE (-234)
|
---|
1124 | /** @} */
|
---|
1125 |
|
---|
1126 |
|
---|
1127 | /** @name Generic Device I/O Status Codes
|
---|
1128 | * @{
|
---|
1129 | */
|
---|
1130 | /** Unresolved (unknown) device i/o error. */
|
---|
1131 | #define VERR_DEV_IO_ERROR (-250)
|
---|
1132 | /** Device i/o: Bad unit. */
|
---|
1133 | #define VERR_IO_BAD_UNIT (-251)
|
---|
1134 | /** Device i/o: Not ready. */
|
---|
1135 | #define VERR_IO_NOT_READY (-252)
|
---|
1136 | /** Device i/o: Bad command. */
|
---|
1137 | #define VERR_IO_BAD_COMMAND (-253)
|
---|
1138 | /** Device i/o: CRC error. */
|
---|
1139 | #define VERR_IO_CRC (-254)
|
---|
1140 | /** Device i/o: Bad length. */
|
---|
1141 | #define VERR_IO_BAD_LENGTH (-255)
|
---|
1142 | /** Device i/o: Sector not found. */
|
---|
1143 | #define VERR_IO_SECTOR_NOT_FOUND (-256)
|
---|
1144 | /** Device i/o: General failure. */
|
---|
1145 | #define VERR_IO_GEN_FAILURE (-257)
|
---|
1146 | /** @} */
|
---|
1147 |
|
---|
1148 |
|
---|
1149 | /** @name Generic Pipe I/O Status Codes
|
---|
1150 | * @{
|
---|
1151 | */
|
---|
1152 | /** Unresolved (unknown) pipe i/o error. */
|
---|
1153 | #define VERR_PIPE_IO_ERROR (-300)
|
---|
1154 | /** Broken pipe. */
|
---|
1155 | #define VERR_BROKEN_PIPE (-301)
|
---|
1156 | /** Bad pipe. */
|
---|
1157 | #define VERR_BAD_PIPE (-302)
|
---|
1158 | /** Pipe is busy. */
|
---|
1159 | #define VERR_PIPE_BUSY (-303)
|
---|
1160 | /** No data in pipe. */
|
---|
1161 | #define VERR_NO_DATA (-304)
|
---|
1162 | /** Pipe is not connected. */
|
---|
1163 | #define VERR_PIPE_NOT_CONNECTED (-305)
|
---|
1164 | /** More data available in pipe. */
|
---|
1165 | #define VERR_MORE_DATA (-306)
|
---|
1166 | /** Expected read pipe, got a write pipe instead. */
|
---|
1167 | #define VERR_PIPE_NOT_READ (-307)
|
---|
1168 | /** Expected write pipe, got a read pipe instead. */
|
---|
1169 | #define VERR_PIPE_NOT_WRITE (-308)
|
---|
1170 | /** @} */
|
---|
1171 |
|
---|
1172 |
|
---|
1173 | /** @name Generic Semaphores Status Codes
|
---|
1174 | * @{
|
---|
1175 | */
|
---|
1176 | /** Unresolved (unknown) semaphore error. */
|
---|
1177 | #define VERR_SEM_ERROR (-350)
|
---|
1178 | /** Too many semaphores. */
|
---|
1179 | #define VERR_TOO_MANY_SEMAPHORES (-351)
|
---|
1180 | /** Exclusive semaphore is owned by another process. */
|
---|
1181 | #define VERR_EXCL_SEM_ALREADY_OWNED (-352)
|
---|
1182 | /** The semaphore is set and cannot be closed. */
|
---|
1183 | #define VERR_SEM_IS_SET (-353)
|
---|
1184 | /** The semaphore cannot be set again. */
|
---|
1185 | #define VERR_TOO_MANY_SEM_REQUESTS (-354)
|
---|
1186 | /** Attempt to release mutex not owned by caller. */
|
---|
1187 | #define VERR_NOT_OWNER (-355)
|
---|
1188 | /** The semaphore has been opened too many times. */
|
---|
1189 | #define VERR_TOO_MANY_OPENS (-356)
|
---|
1190 | /** The maximum posts for the event semaphore has been reached. */
|
---|
1191 | #define VERR_TOO_MANY_POSTS (-357)
|
---|
1192 | /** The event semaphore has already been posted. */
|
---|
1193 | #define VERR_ALREADY_POSTED (-358)
|
---|
1194 | /** The event semaphore has already been reset. */
|
---|
1195 | #define VERR_ALREADY_RESET (-359)
|
---|
1196 | /** The semaphore is in use. */
|
---|
1197 | #define VERR_SEM_BUSY (-360)
|
---|
1198 | /** The previous ownership of this semaphore has ended. */
|
---|
1199 | #define VERR_SEM_OWNER_DIED (-361)
|
---|
1200 | /** Failed to open semaphore by name - not found. */
|
---|
1201 | #define VERR_SEM_NOT_FOUND (-362)
|
---|
1202 | /** Semaphore destroyed while waiting. */
|
---|
1203 | #define VERR_SEM_DESTROYED (-363)
|
---|
1204 | /** Nested ownership requests are not permitted for this semaphore type. */
|
---|
1205 | #define VERR_SEM_NESTED (-364)
|
---|
1206 | /** The release call only release a semaphore nesting, i.e. the caller is still
|
---|
1207 | * holding the semaphore. */
|
---|
1208 | #define VINF_SEM_NESTED (364)
|
---|
1209 | /** Deadlock detected. */
|
---|
1210 | #define VERR_DEADLOCK (-365)
|
---|
1211 | /** Ping-Pong listen or speak out of turn error. */
|
---|
1212 | #define VERR_SEM_OUT_OF_TURN (-366)
|
---|
1213 | /** Tried to take a semaphore in a bad context. */
|
---|
1214 | #define VERR_SEM_BAD_CONTEXT (-367)
|
---|
1215 | /** Don't spin for the semaphore, but it is safe to try grab it. */
|
---|
1216 | #define VINF_SEM_BAD_CONTEXT (367)
|
---|
1217 | /** Wrong locking order detected. */
|
---|
1218 | #define VERR_SEM_LV_WRONG_ORDER (-368)
|
---|
1219 | /** Wrong release order detected. */
|
---|
1220 | #define VERR_SEM_LV_WRONG_RELEASE_ORDER (-369)
|
---|
1221 | /** Attempt to recursively enter a non-recursive lock. */
|
---|
1222 | #define VERR_SEM_LV_NESTED (-370)
|
---|
1223 | /** Invalid parameters passed to the lock validator. */
|
---|
1224 | #define VERR_SEM_LV_INVALID_PARAMETER (-371)
|
---|
1225 | /** The lock validator detected a deadlock. */
|
---|
1226 | #define VERR_SEM_LV_DEADLOCK (-372)
|
---|
1227 | /** The lock validator detected an existing deadlock.
|
---|
1228 | * The deadlock was not caused by the current operation, but existed already. */
|
---|
1229 | #define VERR_SEM_LV_EXISTING_DEADLOCK (-373)
|
---|
1230 | /** Not the lock owner according our records. */
|
---|
1231 | #define VERR_SEM_LV_NOT_OWNER (-374)
|
---|
1232 | /** An illegal lock upgrade was attempted. */
|
---|
1233 | #define VERR_SEM_LV_ILLEGAL_UPGRADE (-375)
|
---|
1234 | /** The thread is not a valid signaller of the event. */
|
---|
1235 | #define VERR_SEM_LV_NOT_SIGNALLER (-376)
|
---|
1236 | /** Internal error in the lock validator or related components. */
|
---|
1237 | #define VERR_SEM_LV_INTERNAL_ERROR (-377)
|
---|
1238 | /** @} */
|
---|
1239 |
|
---|
1240 |
|
---|
1241 | /** @name Generic Network I/O Status Codes
|
---|
1242 | * @{
|
---|
1243 | */
|
---|
1244 | /** Unresolved (unknown) network error. */
|
---|
1245 | #define VERR_NET_IO_ERROR (-400)
|
---|
1246 | /** The network is busy or is out of resources. */
|
---|
1247 | #define VERR_NET_OUT_OF_RESOURCES (-401)
|
---|
1248 | /** Net host name not found. */
|
---|
1249 | #define VERR_NET_HOST_NOT_FOUND (-402)
|
---|
1250 | /** Network path not found. */
|
---|
1251 | #define VERR_NET_PATH_NOT_FOUND (-403)
|
---|
1252 | /** General network printing error. */
|
---|
1253 | #define VERR_NET_PRINT_ERROR (-404)
|
---|
1254 | /** The machine is not on the network. */
|
---|
1255 | #define VERR_NET_NO_NETWORK (-405)
|
---|
1256 | /** Name is not unique on the network. */
|
---|
1257 | #define VERR_NET_NOT_UNIQUE_NAME (-406)
|
---|
1258 |
|
---|
1259 | /* These are BSD networking error codes - numbers correspond, don't mess! */
|
---|
1260 | /** Operation in progress. */
|
---|
1261 | #define VERR_NET_IN_PROGRESS (-436)
|
---|
1262 | /** Operation already in progress. */
|
---|
1263 | #define VERR_NET_ALREADY_IN_PROGRESS (-437)
|
---|
1264 | /** Attempted socket operation with a non-socket handle.
|
---|
1265 | * (This includes closed handles.) */
|
---|
1266 | #define VERR_NET_NOT_SOCKET (-438)
|
---|
1267 | /** Destination address required. */
|
---|
1268 | #define VERR_NET_DEST_ADDRESS_REQUIRED (-439)
|
---|
1269 | /** Message too long. */
|
---|
1270 | #define VERR_NET_MSG_SIZE (-440)
|
---|
1271 | /** Protocol wrong type for socket. */
|
---|
1272 | #define VERR_NET_PROTOCOL_TYPE (-441)
|
---|
1273 | /** Protocol not available. */
|
---|
1274 | #define VERR_NET_PROTOCOL_NOT_AVAILABLE (-442)
|
---|
1275 | /** Protocol not supported. */
|
---|
1276 | #define VERR_NET_PROTOCOL_NOT_SUPPORTED (-443)
|
---|
1277 | /** Socket type not supported. */
|
---|
1278 | #define VERR_NET_SOCKET_TYPE_NOT_SUPPORTED (-444)
|
---|
1279 | /** Operation not supported. */
|
---|
1280 | #define VERR_NET_OPERATION_NOT_SUPPORTED (-445)
|
---|
1281 | /** Protocol family not supported. */
|
---|
1282 | #define VERR_NET_PROTOCOL_FAMILY_NOT_SUPPORTED (-446)
|
---|
1283 | /** Address family not supported by protocol family. */
|
---|
1284 | #define VERR_NET_ADDRESS_FAMILY_NOT_SUPPORTED (-447)
|
---|
1285 | /** Address already in use. */
|
---|
1286 | #define VERR_NET_ADDRESS_IN_USE (-448)
|
---|
1287 | /** Can't assign requested address. */
|
---|
1288 | #define VERR_NET_ADDRESS_NOT_AVAILABLE (-449)
|
---|
1289 | /** Network is down. */
|
---|
1290 | #define VERR_NET_DOWN (-450)
|
---|
1291 | /** Network is unreachable. */
|
---|
1292 | #define VERR_NET_UNREACHABLE (-451)
|
---|
1293 | /** Network dropped connection on reset. */
|
---|
1294 | #define VERR_NET_CONNECTION_RESET (-452)
|
---|
1295 | /** Software caused connection abort. */
|
---|
1296 | #define VERR_NET_CONNECTION_ABORTED (-453)
|
---|
1297 | /** Connection reset by peer. */
|
---|
1298 | #define VERR_NET_CONNECTION_RESET_BY_PEER (-454)
|
---|
1299 | /** No buffer space available. */
|
---|
1300 | #define VERR_NET_NO_BUFFER_SPACE (-455)
|
---|
1301 | /** Socket is already connected. */
|
---|
1302 | #define VERR_NET_ALREADY_CONNECTED (-456)
|
---|
1303 | /** Socket is not connected. */
|
---|
1304 | #define VERR_NET_NOT_CONNECTED (-457)
|
---|
1305 | /** Can't send after socket shutdown. */
|
---|
1306 | #define VERR_NET_SHUTDOWN (-458)
|
---|
1307 | /** Too many references: can't splice. */
|
---|
1308 | #define VERR_NET_TOO_MANY_REFERENCES (-459)
|
---|
1309 | /** Too many references: can't splice. */
|
---|
1310 | #define VERR_NET_CONNECTION_TIMED_OUT (-460)
|
---|
1311 | /** Connection refused. */
|
---|
1312 | #define VERR_NET_CONNECTION_REFUSED (-461)
|
---|
1313 | /* ELOOP is not net. */
|
---|
1314 | /* ENAMETOOLONG is not net. */
|
---|
1315 | /** Host is down. */
|
---|
1316 | #define VERR_NET_HOST_DOWN (-464)
|
---|
1317 | /** No route to host. */
|
---|
1318 | #define VERR_NET_HOST_UNREACHABLE (-465)
|
---|
1319 | /** Protocol error. */
|
---|
1320 | #define VERR_NET_PROTOCOL_ERROR (-466)
|
---|
1321 | /** Incomplete packet was submitted by guest. */
|
---|
1322 | #define VERR_NET_INCOMPLETE_TX_PACKET (-467)
|
---|
1323 | /** @} */
|
---|
1324 |
|
---|
1325 |
|
---|
1326 | /** @name TCP Status Codes
|
---|
1327 | * @{
|
---|
1328 | */
|
---|
1329 | /** Stop the TCP server. */
|
---|
1330 | #define VERR_TCP_SERVER_STOP (-500)
|
---|
1331 | /** The server was stopped. */
|
---|
1332 | #define VINF_TCP_SERVER_STOP 500
|
---|
1333 | /** The TCP server was shut down using RTTcpServerShutdown. */
|
---|
1334 | #define VERR_TCP_SERVER_SHUTDOWN (-501)
|
---|
1335 | /** The TCP server was destroyed. */
|
---|
1336 | #define VERR_TCP_SERVER_DESTROYED (-502)
|
---|
1337 | /** The TCP server has no client associated with it. */
|
---|
1338 | #define VINF_TCP_SERVER_NO_CLIENT 503
|
---|
1339 | /** @} */
|
---|
1340 |
|
---|
1341 |
|
---|
1342 | /** @name UDP Status Codes
|
---|
1343 | * @{
|
---|
1344 | */
|
---|
1345 | /** Stop the UDP server. */
|
---|
1346 | #define VERR_UDP_SERVER_STOP (-520)
|
---|
1347 | /** The server was stopped. */
|
---|
1348 | #define VINF_UDP_SERVER_STOP 520
|
---|
1349 | /** The UDP server was shut down using RTUdpServerShutdown. */
|
---|
1350 | #define VERR_UDP_SERVER_SHUTDOWN (-521)
|
---|
1351 | /** The UDP server was destroyed. */
|
---|
1352 | #define VERR_UDP_SERVER_DESTROYED (-522)
|
---|
1353 | /** The UDP server has no client associated with it. */
|
---|
1354 | #define VINF_UDP_SERVER_NO_CLIENT 523
|
---|
1355 | /** @} */
|
---|
1356 |
|
---|
1357 |
|
---|
1358 | /** @name L4 Specific Status Codes
|
---|
1359 | * @{
|
---|
1360 | */
|
---|
1361 | /** Invalid offset in an L4 dataspace */
|
---|
1362 | #define VERR_L4_INVALID_DS_OFFSET (-550)
|
---|
1363 | /** IPC error */
|
---|
1364 | #define VERR_IPC (-551)
|
---|
1365 | /** Item already used */
|
---|
1366 | #define VERR_RESOURCE_IN_USE (-552)
|
---|
1367 | /** Source/destination not found */
|
---|
1368 | #define VERR_IPC_PROCESS_NOT_FOUND (-553)
|
---|
1369 | /** Receive timeout */
|
---|
1370 | #define VERR_IPC_RECEIVE_TIMEOUT (-554)
|
---|
1371 | /** Send timeout */
|
---|
1372 | #define VERR_IPC_SEND_TIMEOUT (-555)
|
---|
1373 | /** Receive cancelled */
|
---|
1374 | #define VERR_IPC_RECEIVE_CANCELLED (-556)
|
---|
1375 | /** Send cancelled */
|
---|
1376 | #define VERR_IPC_SEND_CANCELLED (-557)
|
---|
1377 | /** Receive aborted */
|
---|
1378 | #define VERR_IPC_RECEIVE_ABORTED (-558)
|
---|
1379 | /** Send aborted */
|
---|
1380 | #define VERR_IPC_SEND_ABORTED (-559)
|
---|
1381 | /** Couldn't map pages during receive */
|
---|
1382 | #define VERR_IPC_RECEIVE_MAP_FAILED (-560)
|
---|
1383 | /** Couldn't map pages during send */
|
---|
1384 | #define VERR_IPC_SEND_MAP_FAILED (-561)
|
---|
1385 | /** Send pagefault timeout in receive */
|
---|
1386 | #define VERR_IPC_RECEIVE_SEND_PF_TIMEOUT (-562)
|
---|
1387 | /** Send pagefault timeout in send */
|
---|
1388 | #define VERR_IPC_SEND_SEND_PF_TIMEOUT (-563)
|
---|
1389 | /** (One) receive buffer was too small, or too few buffers */
|
---|
1390 | #define VINF_IPC_RECEIVE_MSG_CUT 564
|
---|
1391 | /** (One) send buffer was too small, or too few buffers */
|
---|
1392 | #define VINF_IPC_SEND_MSG_CUT 565
|
---|
1393 | /** Dataspace manager server not found */
|
---|
1394 | #define VERR_L4_DS_MANAGER_NOT_FOUND (-566)
|
---|
1395 | /** @} */
|
---|
1396 |
|
---|
1397 |
|
---|
1398 | /** @name Loader Status Codes.
|
---|
1399 | * @{
|
---|
1400 | */
|
---|
1401 | /** Invalid executable signature. */
|
---|
1402 | #define VERR_INVALID_EXE_SIGNATURE (-600)
|
---|
1403 | /** The iprt loader recognized a ELF image, but doesn't support loading it. */
|
---|
1404 | #define VERR_ELF_EXE_NOT_SUPPORTED (-601)
|
---|
1405 | /** The iprt loader recognized a PE image, but doesn't support loading it. */
|
---|
1406 | #define VERR_PE_EXE_NOT_SUPPORTED (-602)
|
---|
1407 | /** The iprt loader recognized a LX image, but doesn't support loading it. */
|
---|
1408 | #define VERR_LX_EXE_NOT_SUPPORTED (-603)
|
---|
1409 | /** The iprt loader recognized a LE image, but doesn't support loading it. */
|
---|
1410 | #define VERR_LE_EXE_NOT_SUPPORTED (-604)
|
---|
1411 | /** The iprt loader recognized a NE image, but doesn't support loading it. */
|
---|
1412 | #define VERR_NE_EXE_NOT_SUPPORTED (-605)
|
---|
1413 | /** The iprt loader recognized a MZ image, but doesn't support loading it. */
|
---|
1414 | #define VERR_MZ_EXE_NOT_SUPPORTED (-606)
|
---|
1415 | /** The iprt loader recognized an a.out image, but doesn't support loading it. */
|
---|
1416 | #define VERR_AOUT_EXE_NOT_SUPPORTED (-607)
|
---|
1417 | /** Bad executable. */
|
---|
1418 | #define VERR_BAD_EXE_FORMAT (-608)
|
---|
1419 | /** Symbol (export) not found. */
|
---|
1420 | #define VERR_SYMBOL_NOT_FOUND (-609)
|
---|
1421 | /** Module not found. */
|
---|
1422 | #define VERR_MODULE_NOT_FOUND (-610)
|
---|
1423 | /** The loader resolved an external symbol to an address to big for the image format. */
|
---|
1424 | #define VERR_SYMBOL_VALUE_TOO_BIG (-611)
|
---|
1425 | /** The image is too big. */
|
---|
1426 | #define VERR_IMAGE_TOO_BIG (-612)
|
---|
1427 | /** The image base address is to high for this image type. */
|
---|
1428 | #define VERR_IMAGE_BASE_TOO_HIGH (-614)
|
---|
1429 | /** Mismatching architecture. */
|
---|
1430 | #define VERR_LDR_ARCH_MISMATCH (-615)
|
---|
1431 | /** Mismatch between IPRT and native loader. */
|
---|
1432 | #define VERR_LDR_MISMATCH_NATIVE (-616)
|
---|
1433 | /** Failed to resolve an imported (external) symbol. */
|
---|
1434 | #define VERR_LDR_IMPORTED_SYMBOL_NOT_FOUND (-617)
|
---|
1435 | /** Generic loader failure. */
|
---|
1436 | #define VERR_LDR_GENERAL_FAILURE (-618)
|
---|
1437 | /** Code signing error. */
|
---|
1438 | #define VERR_LDR_IMAGE_HASH (-619)
|
---|
1439 | /** The PE loader encountered delayed imports, a feature which hasn't been implemented yet. */
|
---|
1440 | #define VERR_LDRPE_DELAY_IMPORT (-620)
|
---|
1441 | /** The PE loader encountered a malformed certificate. */
|
---|
1442 | #define VERR_LDRPE_CERT_MALFORMED (-621)
|
---|
1443 | /** The PE loader encountered a certificate with an unsupported type or structure revision. */
|
---|
1444 | #define VERR_LDRPE_CERT_UNSUPPORTED (-622)
|
---|
1445 | /** The PE loader doesn't know how to deal with the global pointer data directory entry yet. */
|
---|
1446 | #define VERR_LDRPE_GLOBALPTR (-623)
|
---|
1447 | /** The PE loader doesn't support the TLS data directory yet. */
|
---|
1448 | #define VERR_LDRPE_TLS (-624)
|
---|
1449 | /** The PE loader doesn't grok the COM descriptor data directory entry. */
|
---|
1450 | #define VERR_LDRPE_COM_DESCRIPTOR (-625)
|
---|
1451 | /** The PE loader encountered an unknown load config directory/header size. */
|
---|
1452 | #define VERR_LDRPE_LOAD_CONFIG_SIZE (-626)
|
---|
1453 | /** The PE loader encountered a lock prefix table, a feature which hasn't been implemented yet. */
|
---|
1454 | #define VERR_LDRPE_LOCK_PREFIX_TABLE (-627)
|
---|
1455 | /** The ELF loader doesn't handle foreign endianness. */
|
---|
1456 | #define VERR_LDRELF_ODD_ENDIAN (-630)
|
---|
1457 | /** The ELF image is 'dynamic', the ELF loader can only deal with 'relocatable' images at present. */
|
---|
1458 | #define VERR_LDRELF_DYN (-631)
|
---|
1459 | /** The ELF image is 'executable', the ELF loader can only deal with 'relocatable' images at present. */
|
---|
1460 | #define VERR_LDRELF_EXEC (-632)
|
---|
1461 | /** The ELF image was created for an unsupported target machine type. */
|
---|
1462 | #define VERR_LDRELF_MACHINE (-633)
|
---|
1463 | /** The ELF version is not supported. */
|
---|
1464 | #define VERR_LDRELF_VERSION (-634)
|
---|
1465 | /** The ELF loader cannot handle multiple SYMTAB sections. */
|
---|
1466 | #define VERR_LDRELF_MULTIPLE_SYMTABS (-635)
|
---|
1467 | /** The ELF loader encountered a relocation type which is not implemented. */
|
---|
1468 | #define VERR_LDRELF_RELOCATION_NOT_SUPPORTED (-636)
|
---|
1469 | /** The ELF loader encountered a bad symbol index. */
|
---|
1470 | #define VERR_LDRELF_INVALID_SYMBOL_INDEX (-637)
|
---|
1471 | /** The ELF loader encountered an invalid symbol name offset. */
|
---|
1472 | #define VERR_LDRELF_INVALID_SYMBOL_NAME_OFFSET (-638)
|
---|
1473 | /** The ELF loader encountered an invalid relocation offset. */
|
---|
1474 | #define VERR_LDRELF_INVALID_RELOCATION_OFFSET (-639)
|
---|
1475 | /** The ELF loader didn't find the symbol/string table for the image. */
|
---|
1476 | #define VERR_LDRELF_NO_SYMBOL_OR_NO_STRING_TABS (-640)
|
---|
1477 | /** Invalid link address. */
|
---|
1478 | #define VERR_LDR_INVALID_LINK_ADDRESS (-647)
|
---|
1479 | /** Invalid image relative virtual address. */
|
---|
1480 | #define VERR_LDR_INVALID_RVA (-648)
|
---|
1481 | /** Invalid segment:offset address. */
|
---|
1482 | #define VERR_LDR_INVALID_SEG_OFFSET (-649)
|
---|
1483 | /** @}*/
|
---|
1484 |
|
---|
1485 | /** @name Debug Info Reader Status Codes.
|
---|
1486 | * @{
|
---|
1487 | */
|
---|
1488 | /** The module contains no line number information. */
|
---|
1489 | #define VERR_DBG_NO_LINE_NUMBERS (-650)
|
---|
1490 | /** The module contains no symbol information. */
|
---|
1491 | #define VERR_DBG_NO_SYMBOLS (-651)
|
---|
1492 | /** The specified segment:offset address was invalid. Typically an attempt at
|
---|
1493 | * addressing outside the segment boundary. */
|
---|
1494 | #define VERR_DBG_INVALID_ADDRESS (-652)
|
---|
1495 | /** Invalid segment index. */
|
---|
1496 | #define VERR_DBG_INVALID_SEGMENT_INDEX (-653)
|
---|
1497 | /** Invalid segment offset. */
|
---|
1498 | #define VERR_DBG_INVALID_SEGMENT_OFFSET (-654)
|
---|
1499 | /** Invalid image relative virtual address. */
|
---|
1500 | #define VERR_DBG_INVALID_RVA (-655)
|
---|
1501 | /** Invalid image relative virtual address. */
|
---|
1502 | #define VERR_DBG_SPECIAL_SEGMENT (-656)
|
---|
1503 | /** Address conflict within a module/segment.
|
---|
1504 | * Attempted to add a segment, symbol or line number that fully or partially
|
---|
1505 | * overlaps with an existing one. */
|
---|
1506 | #define VERR_DBG_ADDRESS_CONFLICT (-657)
|
---|
1507 | /** Duplicate symbol within the module.
|
---|
1508 | * Attempted to add a symbol which name already exists within the module. */
|
---|
1509 | #define VERR_DBG_DUPLICATE_SYMBOL (-658)
|
---|
1510 | /** The segment index specified when adding a new segment is already in use. */
|
---|
1511 | #define VERR_DBG_SEGMENT_INDEX_CONFLICT (-659)
|
---|
1512 | /** No line number was found for the specified address/ordinal/whatever. */
|
---|
1513 | #define VERR_DBG_LINE_NOT_FOUND (-660)
|
---|
1514 | /** The length of the symbol name is out of range.
|
---|
1515 | * This means it is an empty string or that it's greater or equal to
|
---|
1516 | * RTDBG_SYMBOL_NAME_LENGTH. */
|
---|
1517 | #define VERR_DBG_SYMBOL_NAME_OUT_OF_RANGE (-661)
|
---|
1518 | /** The length of the file name is out of range.
|
---|
1519 | * This means it is an empty string or that it's greater or equal to
|
---|
1520 | * RTDBG_FILE_NAME_LENGTH. */
|
---|
1521 | #define VERR_DBG_FILE_NAME_OUT_OF_RANGE (-662)
|
---|
1522 | /** The length of the segment name is out of range.
|
---|
1523 | * This means it is an empty string or that it is greater or equal to
|
---|
1524 | * RTDBG_SEGMENT_NAME_LENGTH. */
|
---|
1525 | #define VERR_DBG_SEGMENT_NAME_OUT_OF_RANGE (-663)
|
---|
1526 | /** The specified address range wraps around. */
|
---|
1527 | #define VERR_DBG_ADDRESS_WRAP (-664)
|
---|
1528 | /** The file is not a valid NM map file. */
|
---|
1529 | #define VERR_DBG_NOT_NM_MAP_FILE (-665)
|
---|
1530 | /** The file is not a valid /proc/kallsyms file. */
|
---|
1531 | #define VERR_DBG_NOT_LINUX_KALLSYMS (-666)
|
---|
1532 | /** No debug module interpreter matching the debug info. */
|
---|
1533 | #define VERR_DBG_NO_MATCHING_INTERPRETER (-667)
|
---|
1534 | /** Bad DWARF line number header. */
|
---|
1535 | #define VERR_DWARF_BAD_LINE_NUMBER_HEADER (-668)
|
---|
1536 | /** Unexpected end of DWARF unit. */
|
---|
1537 | #define VERR_DWARF_UNEXPECTED_END (-669)
|
---|
1538 | /** DWARF LEB value overflows the decoder type. */
|
---|
1539 | #define VERR_DWARF_LEB_OVERFLOW (-670)
|
---|
1540 | /** Bad DWARF extended line number opcode. */
|
---|
1541 | #define VERR_DWARF_BAD_LNE (-671)
|
---|
1542 | /** Bad DWARF string. */
|
---|
1543 | #define VERR_DWARF_BAD_STRING (-672)
|
---|
1544 | /** Bad DWARF position. */
|
---|
1545 | #define VERR_DWARF_BAD_POS (-673)
|
---|
1546 | /** Bad DWARF info. */
|
---|
1547 | #define VERR_DWARF_BAD_INFO (-674)
|
---|
1548 | /** Bad DWARF abbreviation data. */
|
---|
1549 | #define VERR_DWARF_BAD_ABBREV (-675)
|
---|
1550 | /** A DWARF abbreviation was not found. */
|
---|
1551 | #define VERR_DWARF_ABBREV_NOT_FOUND (-676)
|
---|
1552 | /** Encountered an unknown attribute form. */
|
---|
1553 | #define VERR_DWARF_UNKNOWN_FORM (-677)
|
---|
1554 | /** Encountered an unexpected attribute form. */
|
---|
1555 | #define VERR_DWARF_UNEXPECTED_FORM (-678)
|
---|
1556 | /** Unfinished code. */
|
---|
1557 | #define VERR_DWARF_TODO (-679)
|
---|
1558 | /** Unknown location opcode. */
|
---|
1559 | #define VERR_DWARF_UNKNOWN_LOC_OPCODE (-680)
|
---|
1560 | /** Expression stack overflow. */
|
---|
1561 | #define VERR_DWARF_STACK_OVERFLOW (-681)
|
---|
1562 | /** Expression stack underflow. */
|
---|
1563 | #define VERR_DWARF_STACK_UNDERFLOW (-682)
|
---|
1564 | /** Internal processing error in the DWARF code. */
|
---|
1565 | #define VERR_DWARF_IPE (-683)
|
---|
1566 | /** Invalid configuration property value. */
|
---|
1567 | #define VERR_DBG_CFG_INVALID_VALUE (-684)
|
---|
1568 | /** Not an integer property. */
|
---|
1569 | #define VERR_DBG_CFG_NOT_UINT_PROP (-685)
|
---|
1570 | /** Deferred loading of information failed. */
|
---|
1571 | #define VERR_DBG_DEFERRED_LOAD_FAILED (-686)
|
---|
1572 | /** Unfinished debug info reader code. */
|
---|
1573 | #define VERR_DBG_TODO (-687)
|
---|
1574 | /** Found file, but it didn't match the search criteria. */
|
---|
1575 | #define VERR_DBG_FILE_MISMATCH (-688)
|
---|
1576 | /** Internal processing error in the debug module reader code. */
|
---|
1577 | #define VERR_DBG_MOD_IPE (-689)
|
---|
1578 | /** The symbol size was adjusted while adding it. */
|
---|
1579 | #define VINF_DBG_ADJUSTED_SYM_SIZE 690
|
---|
1580 | /** Unable to parse the CodeView debug information. */
|
---|
1581 | #define VERR_CV_BAD_FORMAT (-691)
|
---|
1582 | /** Unfinished CodeView debug information feature. */
|
---|
1583 | #define VERR_CV_TODO (-692)
|
---|
1584 | /** Internal processing error the CodeView debug information reader. */
|
---|
1585 | #define VERR_CV_IPE (-693)
|
---|
1586 | /** @} */
|
---|
1587 |
|
---|
1588 | /** @name Request Packet Status Codes.
|
---|
1589 | * @{
|
---|
1590 | */
|
---|
1591 | /** Invalid RT request type.
|
---|
1592 | * For the RTReqAlloc() case, the caller just specified an illegal enmType. For
|
---|
1593 | * all the other occurrences it means indicates corruption, broken logic, or stupid
|
---|
1594 | * interface user. */
|
---|
1595 | #define VERR_RT_REQUEST_INVALID_TYPE (-700)
|
---|
1596 | /** Invalid RT request state.
|
---|
1597 | * The state of the request packet was not the expected and accepted one(s). Either
|
---|
1598 | * the interface user screwed up, or we've got corruption/broken logic. */
|
---|
1599 | #define VERR_RT_REQUEST_STATE (-701)
|
---|
1600 | /** Invalid RT request packet.
|
---|
1601 | * One or more of the RT controlled packet members didn't contain the correct
|
---|
1602 | * values. Some thing's broken. */
|
---|
1603 | #define VERR_RT_REQUEST_INVALID_PACKAGE (-702)
|
---|
1604 | /** The status field has not been updated yet as the request is still
|
---|
1605 | * pending completion. Someone queried the iStatus field before the request
|
---|
1606 | * has been fully processed. */
|
---|
1607 | #define VERR_RT_REQUEST_STATUS_STILL_PENDING (-703)
|
---|
1608 | /** The request has been freed, don't read the status now.
|
---|
1609 | * Someone is reading the iStatus field of a freed request packet. */
|
---|
1610 | #define VERR_RT_REQUEST_STATUS_FREED (-704)
|
---|
1611 | /** @} */
|
---|
1612 |
|
---|
1613 | /** @name Environment Status Code
|
---|
1614 | * @{
|
---|
1615 | */
|
---|
1616 | /** The specified environment variable was not found. (RTEnvGetEx) */
|
---|
1617 | #define VERR_ENV_VAR_NOT_FOUND (-750)
|
---|
1618 | /** The specified environment variable was not found. (RTEnvUnsetEx) */
|
---|
1619 | #define VINF_ENV_VAR_NOT_FOUND (750)
|
---|
1620 | /** Unable to translate all the variables in the default environment due to
|
---|
1621 | * codeset issues (LANG / LC_ALL / LC_CTYPE). */
|
---|
1622 | #define VWRN_ENV_NOT_FULLY_TRANSLATED (751)
|
---|
1623 | /** Invalid environment variable name. */
|
---|
1624 | #define VERR_ENV_INVALID_VAR_NAME (-752)
|
---|
1625 | /** The environment variable is an unset record. */
|
---|
1626 | #define VINF_ENV_VAR_UNSET (753)
|
---|
1627 | /** The environment variable has been recorded as being unset. */
|
---|
1628 | #define VERR_ENV_VAR_UNSET (-753)
|
---|
1629 | /** @} */
|
---|
1630 |
|
---|
1631 | /** @name Multiprocessor Status Codes.
|
---|
1632 | * @{
|
---|
1633 | */
|
---|
1634 | /** The specified cpu is offline. */
|
---|
1635 | #define VERR_CPU_OFFLINE (-800)
|
---|
1636 | /** The specified cpu was not found. */
|
---|
1637 | #define VERR_CPU_NOT_FOUND (-801)
|
---|
1638 | /** Not all of the requested CPUs showed up in the PFNRTMPWORKER. */
|
---|
1639 | #define VERR_NOT_ALL_CPUS_SHOWED (-802)
|
---|
1640 | /** Internal processing error in the RTMp code.*/
|
---|
1641 | #define VERR_CPU_IPE_1 (-803)
|
---|
1642 | /** @} */
|
---|
1643 |
|
---|
1644 | /** @name RTGetOpt status codes
|
---|
1645 | * @{ */
|
---|
1646 | /** RTGetOpt: Command line option not recognized. */
|
---|
1647 | #define VERR_GETOPT_UNKNOWN_OPTION (-825)
|
---|
1648 | /** RTGetOpt: Command line option needs argument. */
|
---|
1649 | #define VERR_GETOPT_REQUIRED_ARGUMENT_MISSING (-826)
|
---|
1650 | /** RTGetOpt: Command line option has argument with bad format. */
|
---|
1651 | #define VERR_GETOPT_INVALID_ARGUMENT_FORMAT (-827)
|
---|
1652 | /** RTGetOpt: Not an option. */
|
---|
1653 | #define VINF_GETOPT_NOT_OPTION 828
|
---|
1654 | /** RTGetOpt: Command line option needs an index. */
|
---|
1655 | #define VERR_GETOPT_INDEX_MISSING (-829)
|
---|
1656 | /** @} */
|
---|
1657 |
|
---|
1658 | /** @name RTCache status codes
|
---|
1659 | * @{ */
|
---|
1660 | /** RTCache: cache is full. */
|
---|
1661 | #define VERR_CACHE_FULL (-850)
|
---|
1662 | /** RTCache: cache is empty. */
|
---|
1663 | #define VERR_CACHE_EMPTY (-851)
|
---|
1664 | /** @} */
|
---|
1665 |
|
---|
1666 | /** @name RTMemCache status codes
|
---|
1667 | * @{ */
|
---|
1668 | /** Reached the max cache size. */
|
---|
1669 | #define VERR_MEM_CACHE_MAX_SIZE (-855)
|
---|
1670 | /** @} */
|
---|
1671 |
|
---|
1672 | /** @name RTS3 status codes
|
---|
1673 | * @{ */
|
---|
1674 | /** Access denied error. */
|
---|
1675 | #define VERR_S3_ACCESS_DENIED (-875)
|
---|
1676 | /** The bucket/key wasn't found. */
|
---|
1677 | #define VERR_S3_NOT_FOUND (-876)
|
---|
1678 | /** Bucket already exists. */
|
---|
1679 | #define VERR_S3_BUCKET_ALREADY_EXISTS (-877)
|
---|
1680 | /** Can't delete bucket with keys. */
|
---|
1681 | #define VERR_S3_BUCKET_NOT_EMPTY (-878)
|
---|
1682 | /** The current operation was canceled. */
|
---|
1683 | #define VERR_S3_CANCELED (-879)
|
---|
1684 | /** @} */
|
---|
1685 |
|
---|
1686 | /** @name HTTP status codes
|
---|
1687 | * @{ */
|
---|
1688 | /** HTTP initialization failed. */
|
---|
1689 | #define VERR_HTTP_INIT_FAILED (-885)
|
---|
1690 | /** The server has not found anything matching the URI given. */
|
---|
1691 | #define VERR_HTTP_NOT_FOUND (-886)
|
---|
1692 | /** The request is for something forbidden. Authorization will not help. */
|
---|
1693 | #define VERR_HTTP_ACCESS_DENIED (-887)
|
---|
1694 | /** The server did not understand the request due to bad syntax. */
|
---|
1695 | #define VERR_HTTP_BAD_REQUEST (-888)
|
---|
1696 | /** Couldn't connect to the server (proxy?). */
|
---|
1697 | #define VERR_HTTP_COULDNT_CONNECT (-889)
|
---|
1698 | /** SSL connection error. */
|
---|
1699 | #define VERR_HTTP_SSL_CONNECT_ERROR (-890)
|
---|
1700 | /** CAcert is missing or has the wrong format. */
|
---|
1701 | #define VERR_HTTP_CACERT_WRONG_FORMAT (-891)
|
---|
1702 | /** Certificate cannot be authenticated with the given CA certificates. */
|
---|
1703 | #define VERR_HTTP_CACERT_CANNOT_AUTHENTICATE (-892)
|
---|
1704 | /** The current HTTP request was forcefully aborted */
|
---|
1705 | #define VERR_HTTP_ABORTED (-893)
|
---|
1706 | /** Request was redirected. */
|
---|
1707 | #define VERR_HTTP_REDIRECTED (-894)
|
---|
1708 | /** Proxy couldn't be resolved. */
|
---|
1709 | #define VERR_HTTP_PROXY_NOT_FOUND (-895)
|
---|
1710 | /** The remote host couldn't be resolved. */
|
---|
1711 | #define VERR_HTTP_HOST_NOT_FOUND (-896)
|
---|
1712 | /** Unexpected cURL error configure the proxy. */
|
---|
1713 | #define VERR_HTTP_CURL_PROXY_CONFIG (-897)
|
---|
1714 | /** Generic CURL error. */
|
---|
1715 | #define VERR_HTTP_CURL_ERROR (-899)
|
---|
1716 | /** @} */
|
---|
1717 |
|
---|
1718 | /** @name RTManifest status codes
|
---|
1719 | * @{ */
|
---|
1720 | /** A digest type used in the manifest file isn't supported. */
|
---|
1721 | #define VERR_MANIFEST_UNSUPPORTED_DIGEST_TYPE (-900)
|
---|
1722 | /** An entry in the manifest file couldn't be interpreted correctly. */
|
---|
1723 | #define VERR_MANIFEST_WRONG_FILE_FORMAT (-901)
|
---|
1724 | /** A digest doesn't match the corresponding file. */
|
---|
1725 | #define VERR_MANIFEST_DIGEST_MISMATCH (-902)
|
---|
1726 | /** The file list doesn't match to the content of the manifest file. */
|
---|
1727 | #define VERR_MANIFEST_FILE_MISMATCH (-903)
|
---|
1728 | /** The specified attribute (name) was not found in the manifest. */
|
---|
1729 | #define VERR_MANIFEST_ATTR_NOT_FOUND (-904)
|
---|
1730 | /** The attribute type did not match. */
|
---|
1731 | #define VERR_MANIFEST_ATTR_TYPE_MISMATCH (-905)
|
---|
1732 | /** No attribute of the specified types was found. */
|
---|
1733 | #define VERR_MANIFEST_ATTR_TYPE_NOT_FOUND (-906)
|
---|
1734 | /** @} */
|
---|
1735 |
|
---|
1736 | /** @name RTTar status codes
|
---|
1737 | * @{ */
|
---|
1738 | /** The checksum of a tar header record doesn't match. */
|
---|
1739 | #define VERR_TAR_CHKSUM_MISMATCH (-925)
|
---|
1740 | /** The tar end of file record was read. */
|
---|
1741 | #define VERR_TAR_END_OF_FILE (-926)
|
---|
1742 | /** The tar file ended unexpectedly. */
|
---|
1743 | #define VERR_TAR_UNEXPECTED_EOS (-927)
|
---|
1744 | /** The tar termination records was encountered without reaching the end of
|
---|
1745 | * the input stream. */
|
---|
1746 | #define VERR_TAR_EOS_MORE_INPUT (-928)
|
---|
1747 | /** A number tar header field was malformed. */
|
---|
1748 | #define VERR_TAR_BAD_NUM_FIELD (-929)
|
---|
1749 | /** A numeric tar header field was not terminated correctly. */
|
---|
1750 | #define VERR_TAR_BAD_NUM_FIELD_TERM (-930)
|
---|
1751 | /** A number tar header field was encoded using base-256 which this
|
---|
1752 | * tar implementation currently does not support. */
|
---|
1753 | #define VERR_TAR_BASE_256_NOT_SUPPORTED (-931)
|
---|
1754 | /** A number tar header field yielded a value too large for the internal
|
---|
1755 | * variable of the tar interpreter. */
|
---|
1756 | #define VERR_TAR_NUM_VALUE_TOO_LARGE (-932)
|
---|
1757 | /** The combined minor and major device number type is too small to hold the
|
---|
1758 | * value stored in the tar header. */
|
---|
1759 | #define VERR_TAR_DEV_VALUE_TOO_LARGE (-933)
|
---|
1760 | /** The mode field in a tar header is bad. */
|
---|
1761 | #define VERR_TAR_BAD_MODE_FIELD (-934)
|
---|
1762 | /** The mode field should not include the type. */
|
---|
1763 | #define VERR_TAR_MODE_WITH_TYPE (-935)
|
---|
1764 | /** The size field should be zero for links and symlinks. */
|
---|
1765 | #define VERR_TAR_SIZE_NOT_ZERO (-936)
|
---|
1766 | /** Encountered an unknown type flag. */
|
---|
1767 | #define VERR_TAR_UNKNOWN_TYPE_FLAG (-937)
|
---|
1768 | /** The tar header is all zeros. */
|
---|
1769 | #define VERR_TAR_ZERO_HEADER (-938)
|
---|
1770 | /** Not a uniform standard tape v0.0 archive header. */
|
---|
1771 | #define VERR_TAR_NOT_USTAR_V00 (-939)
|
---|
1772 | /** The name is empty. */
|
---|
1773 | #define VERR_TAR_EMPTY_NAME (-940)
|
---|
1774 | /** A non-directory entry has a name ending with a slash. */
|
---|
1775 | #define VERR_TAR_NON_DIR_ENDS_WITH_SLASH (-941)
|
---|
1776 | /** Encountered an unsupported portable archive exchange (pax) header. */
|
---|
1777 | #define VERR_TAR_UNSUPPORTED_PAX_TYPE (-942)
|
---|
1778 | /** Encountered an unsupported Solaris Tar extension. */
|
---|
1779 | #define VERR_TAR_UNSUPPORTED_SOLARIS_HDR_TYPE (-943)
|
---|
1780 | /** Encountered an unsupported GNU Tar extension. */
|
---|
1781 | #define VERR_TAR_UNSUPPORTED_GNU_HDR_TYPE (-944)
|
---|
1782 | /** Malformed checksum field in the tar header. */
|
---|
1783 | #define VERR_TAR_BAD_CHKSUM_FIELD (-945)
|
---|
1784 | /** Malformed checksum field in the tar header. */
|
---|
1785 | #define VERR_TAR_MALFORMED_GNU_LONGXXXX (-946)
|
---|
1786 | /** Too long name or link string. */
|
---|
1787 | #define VERR_TAR_NAME_TOO_LONG (-947)
|
---|
1788 | /** A directory entry in the archive. */
|
---|
1789 | #define VINF_TAR_DIR_PATH (948)
|
---|
1790 | /** @} */
|
---|
1791 |
|
---|
1792 | /** @name RTPoll status codes
|
---|
1793 | * @{ */
|
---|
1794 | /** The handle is not pollable. */
|
---|
1795 | #define VERR_POLL_HANDLE_NOT_POLLABLE (-950)
|
---|
1796 | /** The handle ID is already present in the poll set. */
|
---|
1797 | #define VERR_POLL_HANDLE_ID_EXISTS (-951)
|
---|
1798 | /** The handle ID was not found in the set. */
|
---|
1799 | #define VERR_POLL_HANDLE_ID_NOT_FOUND (-952)
|
---|
1800 | /** The poll set is full. */
|
---|
1801 | #define VERR_POLL_SET_IS_FULL (-953)
|
---|
1802 | /** @} */
|
---|
1803 |
|
---|
1804 | /** @name Pkzip status codes
|
---|
1805 | * @{ */
|
---|
1806 | /** No end of central directory record found. */
|
---|
1807 | #define VERR_PKZIP_NO_EOCB (-960)
|
---|
1808 | /** Too long name string. */
|
---|
1809 | #define VERR_PKZIP_NAME_TOO_LONG (-961)
|
---|
1810 | /** Local file header corrupt. */
|
---|
1811 | #define VERR_PKZIP_BAD_LF_HEADER (-962)
|
---|
1812 | /** Central directory file header corrupt. */
|
---|
1813 | #define VERR_PKZIP_BAD_CDF_HEADER (-963)
|
---|
1814 | /** Encountered an unknown type flag. */
|
---|
1815 | #define VERR_PKZIP_UNKNOWN_TYPE_FLAG (-964)
|
---|
1816 | /** Found a ZIP64 Extra Information Field in a ZIP32 file. */
|
---|
1817 | #define VERR_PKZIP_ZIP64EX_IN_ZIP32 (-965)
|
---|
1818 |
|
---|
1819 |
|
---|
1820 | /** @name RTZip status codes
|
---|
1821 | * @{ */
|
---|
1822 | /** Generic zip error. */
|
---|
1823 | #define VERR_ZIP_ERROR (-22000)
|
---|
1824 | /** The compressed data was corrupted. */
|
---|
1825 | #define VERR_ZIP_CORRUPTED (-22001)
|
---|
1826 | /** Ran out of memory while compressing or uncompressing. */
|
---|
1827 | #define VERR_ZIP_NO_MEMORY (-22002)
|
---|
1828 | /** The compression format version is unsupported. */
|
---|
1829 | #define VERR_ZIP_UNSUPPORTED_VERSION (-22003)
|
---|
1830 | /** The compression method is unsupported. */
|
---|
1831 | #define VERR_ZIP_UNSUPPORTED_METHOD (-22004)
|
---|
1832 | /** The compressed data started with a bad header. */
|
---|
1833 | #define VERR_ZIP_BAD_HEADER (-22005)
|
---|
1834 | /** @} */
|
---|
1835 |
|
---|
1836 | /** @name RTVfs status codes
|
---|
1837 | * @{ */
|
---|
1838 | /** The VFS chain specification does not have a valid prefix. */
|
---|
1839 | #define VERR_VFS_CHAIN_NO_PREFIX (-22100)
|
---|
1840 | /** The VFS chain specification is empty. */
|
---|
1841 | #define VERR_VFS_CHAIN_EMPTY (-22101)
|
---|
1842 | /** Expected an element. */
|
---|
1843 | #define VERR_VFS_CHAIN_EXPECTED_ELEMENT (-22102)
|
---|
1844 | /** The VFS object type is not known. */
|
---|
1845 | #define VERR_VFS_CHAIN_UNKNOWN_TYPE (-22103)
|
---|
1846 | /** Expected a left parentheses. */
|
---|
1847 | #define VERR_VFS_CHAIN_EXPECTED_LEFT_PARENTHESES (-22104)
|
---|
1848 | /** Expected a right parentheses. */
|
---|
1849 | #define VERR_VFS_CHAIN_EXPECTED_RIGHT_PARENTHESES (-22105)
|
---|
1850 | /** Expected a provider name. */
|
---|
1851 | #define VERR_VFS_CHAIN_EXPECTED_PROVIDER_NAME (-22106)
|
---|
1852 | /** Expected an action (> or |). */
|
---|
1853 | #define VERR_VFS_CHAIN_EXPECTED_ACTION (-22107)
|
---|
1854 | /** Only one action element is currently supported. */
|
---|
1855 | #define VERR_VFS_CHAIN_MULTIPLE_ACTIONS (-22108)
|
---|
1856 | /** Expected to find a driving action (>), but there is none. */
|
---|
1857 | #define VERR_VFS_CHAIN_NO_ACTION (-22109)
|
---|
1858 | /** Expected pipe action. */
|
---|
1859 | #define VERR_VFS_CHAIN_EXPECTED_PIPE (-22110)
|
---|
1860 | /** Unexpected action type. */
|
---|
1861 | #define VERR_VFS_CHAIN_UNEXPECTED_ACTION_TYPE (-22111)
|
---|
1862 | /** @} */
|
---|
1863 |
|
---|
1864 | /** @name RTDvm status codes
|
---|
1865 | * @{ */
|
---|
1866 | /** The volume map doesn't contain any valid volume. */
|
---|
1867 | #define VERR_DVM_MAP_EMPTY (-22200)
|
---|
1868 | /** There is no volume behind the current one. */
|
---|
1869 | #define VERR_DVM_MAP_NO_VOLUME (-22201)
|
---|
1870 | /** @} */
|
---|
1871 |
|
---|
1872 | /** @name Logger status codes
|
---|
1873 | * @{ */
|
---|
1874 | /** The internal logger revision did not match. */
|
---|
1875 | #define VERR_LOG_REVISION_MISMATCH (-22300)
|
---|
1876 | /** @} */
|
---|
1877 |
|
---|
1878 | /* see above, 22400..22499 is used for misc codes! */
|
---|
1879 |
|
---|
1880 | /** @name Logger status codes
|
---|
1881 | * @{ */
|
---|
1882 | /** Power off is not supported by the hardware or the OS. */
|
---|
1883 | #define VERR_SYS_CANNOT_POWER_OFF (-22500)
|
---|
1884 | /** The halt action was requested, but the OS may actually power
|
---|
1885 | * off the machine. */
|
---|
1886 | #define VINF_SYS_MAY_POWER_OFF (22501)
|
---|
1887 | /** Shutdown failed. */
|
---|
1888 | #define VERR_SYS_SHUTDOWN_FAILED (-22502)
|
---|
1889 | /** @} */
|
---|
1890 |
|
---|
1891 | /** @name Filesystem status codes
|
---|
1892 | * @{ */
|
---|
1893 | /** Filesystem can't be opened because it is corrupt. */
|
---|
1894 | #define VERR_FILESYSTEM_CORRUPT (-22600)
|
---|
1895 | /** @} */
|
---|
1896 |
|
---|
1897 | /** @name RTZipXar status codes.
|
---|
1898 | * @{ */
|
---|
1899 | /** Wrong magic value. */
|
---|
1900 | #define VERR_XAR_WRONG_MAGIC (-22700)
|
---|
1901 | /** Bad header size. */
|
---|
1902 | #define VERR_XAR_BAD_HDR_SIZE (-22701)
|
---|
1903 | /** Unsupported version. */
|
---|
1904 | #define VERR_XAR_UNSUPPORTED_VERSION (-22702)
|
---|
1905 | /** Unsupported hashing function. */
|
---|
1906 | #define VERR_XAR_UNSUPPORTED_HASH_FUNCTION (-22703)
|
---|
1907 | /** The table of content (TOC) is too small and therefore can't be valid. */
|
---|
1908 | #define VERR_XAR_TOC_TOO_SMALL (-22704)
|
---|
1909 | /** The table of content (TOC) is too big. */
|
---|
1910 | #define VERR_XAR_TOC_TOO_BIG (-22705)
|
---|
1911 | /** The compressed table of content is too big. */
|
---|
1912 | #define VERR_XAR_TOC_TOO_BIG_COMPRESSED (-22706)
|
---|
1913 | /** The uncompressed table of content size in the header didn't match what
|
---|
1914 | * ZLib returned. */
|
---|
1915 | #define VERR_XAR_TOC_UNCOMP_SIZE_MISMATCH (-22707)
|
---|
1916 | /** The table of content string length didn't match the size specified in the
|
---|
1917 | * header. */
|
---|
1918 | #define VERR_XAR_TOC_STRLEN_MISMATCH (-22708)
|
---|
1919 | /** The table of content isn't valid UTF-8. */
|
---|
1920 | #define VERR_XAR_TOC_UTF8_ENCODING (-22709)
|
---|
1921 | /** XML error while parsing the table of content. */
|
---|
1922 | #define VERR_XAR_TOC_XML_PARSE_ERROR (-22710)
|
---|
1923 | /** The table of content XML document does not have a toc element. */
|
---|
1924 | #define VERR_XML_TOC_ELEMENT_MISSING (-22711)
|
---|
1925 | /** The table of content XML element (toc) has siblings, we expected it to be
|
---|
1926 | * an only child or the root element (xar). */
|
---|
1927 | #define VERR_XML_TOC_ELEMENT_HAS_SIBLINGS (-22712)
|
---|
1928 | /** The XAR table of content digest doesn't match. */
|
---|
1929 | #define VERR_XAR_TOC_DIGEST_MISMATCH (-22713)
|
---|
1930 | /** Bad or missing XAR checksum element. */
|
---|
1931 | #define VERR_XAR_BAD_CHECKSUM_ELEMENT (-22714)
|
---|
1932 | /** The hash function in the header doesn't match the one in the table of
|
---|
1933 | * content. */
|
---|
1934 | #define VERR_XAR_HASH_FUNCTION_MISMATCH (-22715)
|
---|
1935 | /** Bad digest length encountered in the table of content. */
|
---|
1936 | #define VERR_XAR_BAD_DIGEST_LENGTH (-22716)
|
---|
1937 | /** The order of elements in the XAR file does not lend it self to expansion
|
---|
1938 | * from via an I/O stream. */
|
---|
1939 | #define VERR_XAR_NOT_STREAMBLE_ELEMENT_ORDER (-22717)
|
---|
1940 | /** Missing offset element in table of content sub-element. */
|
---|
1941 | #define VERR_XAR_MISSING_OFFSET_ELEMENT (-22718)
|
---|
1942 | /** Bad offset element in table of content sub-element. */
|
---|
1943 | #define VERR_XAR_BAD_OFFSET_ELEMENT (-22719)
|
---|
1944 | /** Missing size element in table of content sub-element. */
|
---|
1945 | #define VERR_XAR_MISSING_SIZE_ELEMENT (-22720)
|
---|
1946 | /** Bad size element in table of content sub-element. */
|
---|
1947 | #define VERR_XAR_BAD_SIZE_ELEMENT (-22721)
|
---|
1948 | /** Missing length element in table of content sub-element. */
|
---|
1949 | #define VERR_XAR_MISSING_LENGTH_ELEMENT (-22722)
|
---|
1950 | /** Bad length element in table of content sub-element. */
|
---|
1951 | #define VERR_XAR_BAD_LENGTH_ELEMENT (-22723)
|
---|
1952 | /** Bad file element in XAR table of content. */
|
---|
1953 | #define VERR_XAR_BAD_FILE_ELEMENT (-22724)
|
---|
1954 | /** Missing data element for XAR file. */
|
---|
1955 | #define VERR_XAR_MISSING_DATA_ELEMENT (-22725)
|
---|
1956 | /** Unknown XAR file type value. */
|
---|
1957 | #define VERR_XAR_UNKNOWN_FILE_TYPE (-22726)
|
---|
1958 | /** Missing encoding element for XAR data stream. */
|
---|
1959 | #define VERR_XAR_NO_ENCODING (-22727)
|
---|
1960 | /** Bad timestamp for XAR file. */
|
---|
1961 | #define VERR_XAR_BAD_FILE_TIMESTAMP (-22728)
|
---|
1962 | /** Bad file mode for XAR file. */
|
---|
1963 | #define VERR_XAR_BAD_FILE_MODE (-22729)
|
---|
1964 | /** Bad file user id for XAR file. */
|
---|
1965 | #define VERR_XAR_BAD_FILE_UID (-22730)
|
---|
1966 | /** Bad file group id for XAR file. */
|
---|
1967 | #define VERR_XAR_BAD_FILE_GID (-22731)
|
---|
1968 | /** Bad file inode device number for XAR file. */
|
---|
1969 | #define VERR_XAR_BAD_FILE_DEVICE_NO (-22732)
|
---|
1970 | /** Bad file inode number for XAR file. */
|
---|
1971 | #define VERR_XAR_BAD_FILE_INODE (-22733)
|
---|
1972 | /** Invalid name for XAR file. */
|
---|
1973 | #define VERR_XAR_INVALID_FILE_NAME (-22734)
|
---|
1974 | /** The message digest of the extracted data does not match the one supplied. */
|
---|
1975 | #define VERR_XAR_EXTRACTED_HASH_MISMATCH (-22735)
|
---|
1976 | /** The extracted data has exceeded the expected size. */
|
---|
1977 | #define VERR_XAR_EXTRACTED_SIZE_EXCEEDED (-22736)
|
---|
1978 | /** The message digest of the archived data does not match the one supplied. */
|
---|
1979 | #define VERR_XAR_ARCHIVED_HASH_MISMATCH (-22737)
|
---|
1980 | /** The decompressor completed without using all the input data. */
|
---|
1981 | #define VERR_XAR_UNUSED_ARCHIVED_DATA (-22738)
|
---|
1982 | /** Expected the archived and extracted XAR data sizes to be the same for
|
---|
1983 | * uncompressed data. */
|
---|
1984 | #define VERR_XAR_ARCHIVED_AND_EXTRACTED_SIZES_MISMATCH (-22739)
|
---|
1985 | /** @} */
|
---|
1986 |
|
---|
1987 | /** @name RTX509 status codes
|
---|
1988 | * @{ */
|
---|
1989 | /** Error reading a certificate in PEM format from BIO. */
|
---|
1990 | #define VERR_X509_READING_CERT_FROM_BIO (-23100)
|
---|
1991 | /** Error extracting a public key from the certificate. */
|
---|
1992 | #define VERR_X509_EXTRACT_PUBKEY_FROM_CERT (-23101)
|
---|
1993 | /** Error extracting RSA from the public key. */
|
---|
1994 | #define VERR_X509_EXTRACT_RSA_FROM_PUBLIC_KEY (-23102)
|
---|
1995 | /** Signature verification failed. */
|
---|
1996 | #define VERR_X509_RSA_VERIFICATION_FUILURE (-23103)
|
---|
1997 | /** Basic constraints were not found. */
|
---|
1998 | #define VERR_X509_NO_BASIC_CONSTARAINTS (-23104)
|
---|
1999 | /** Error getting extensions from the certificate. */
|
---|
2000 | #define VERR_X509_GETTING_EXTENSION_FROM_CERT (-23105)
|
---|
2001 | /** Error getting a data from the extension. */
|
---|
2002 | #define VERR_X509_GETTING_DATA_FROM_EXTENSION (-23106)
|
---|
2003 | /** Error formatting an extension. */
|
---|
2004 | #define VERR_X509_PRINT_EXTENSION_TO_BIO (-23107)
|
---|
2005 | /** X509 certificate verification error. */
|
---|
2006 | #define VERR_X509_CERTIFICATE_VERIFICATION_FAILURE (-23108)
|
---|
2007 | /** X509 certificate isn't self signed. */
|
---|
2008 | #define VERR_X509_NOT_SELFSIGNED_CERTIFICATE (-23109)
|
---|
2009 | /** Warning X509 certificate isn't self signed. */
|
---|
2010 | #define VINF_X509_NOT_SELFSIGNED_CERTIFICATE 23109
|
---|
2011 | /** @} */
|
---|
2012 |
|
---|
2013 | /** @name RTAsn1 status codes
|
---|
2014 | * @{ */
|
---|
2015 | /** Temporary place holder. */
|
---|
2016 | #define VERR_ASN1_ERROR (-22800)
|
---|
2017 | /** Encountered an ASN.1 string type that is not supported. */
|
---|
2018 | #define VERR_ASN1_STRING_TYPE_NOT_IMPLEMENTED (-22801)
|
---|
2019 | /** Invalid ASN.1 UTF-8 STRING encoding. */
|
---|
2020 | #define VERR_ASN1_INVALID_UTF8_STRING_ENCODING (-22802)
|
---|
2021 | /** Invalid ASN.1 NUMERIC STRING encoding. */
|
---|
2022 | #define VERR_ASN1_INVALID_NUMERIC_STRING_ENCODING (-22803)
|
---|
2023 | /** Invalid ASN.1 PRINTABLE STRING encoding. */
|
---|
2024 | #define VERR_ASN1_INVALID_PRINTABLE_STRING_ENCODING (-22804)
|
---|
2025 | /** Invalid ASN.1 T61/TELETEX STRING encoding. */
|
---|
2026 | #define VERR_ASN1_INVALID_T61_STRING_ENCODING (-22805)
|
---|
2027 | /** Invalid ASN.1 VIDEOTEX STRING encoding. */
|
---|
2028 | #define VERR_ASN1_INVALID_VIDEOTEX_STRING_ENCODING (-22806)
|
---|
2029 | /** Invalid ASN.1 IA5 STRING encoding. */
|
---|
2030 | #define VERR_ASN1_INVALID_IA5_STRING_ENCODING (-22807)
|
---|
2031 | /** Invalid ASN.1 GRAPHIC STRING encoding. */
|
---|
2032 | #define VERR_ASN1_INVALID_GRAPHIC_STRING_ENCODING (-22808)
|
---|
2033 | /** Invalid ASN.1 ISO-646/VISIBLE STRING encoding. */
|
---|
2034 | #define VERR_ASN1_INVALID_VISIBLE_STRING_ENCODING (-22809)
|
---|
2035 | /** Invalid ASN.1 GENERAL STRING encoding. */
|
---|
2036 | #define VERR_ASN1_INVALID_GENERAL_STRING_ENCODING (-22810)
|
---|
2037 | /** Invalid ASN.1 UNIVERSAL STRING encoding. */
|
---|
2038 | #define VERR_ASN1_INVALID_UNIVERSAL_STRING_ENCODING (-22811)
|
---|
2039 | /** Invalid ASN.1 BMP STRING encoding. */
|
---|
2040 | #define VERR_ASN1_INVALID_BMP_STRING_ENCODING (-22812)
|
---|
2041 | /** Invalid ASN.1 OBJECT IDENTIFIER encoding. */
|
---|
2042 | #define VERR_ASN1_INVALID_OBJID_ENCODING (-22813)
|
---|
2043 | /** A component value of an ASN.1 OBJECT IDENTIFIER is too big for our
|
---|
2044 | * internal representation (32-bits). */
|
---|
2045 | #define VERR_ASN1_OBJID_COMPONENT_TOO_BIG (-22814)
|
---|
2046 | /** Too many components in an ASN.1 OBJECT IDENTIFIER for our internal
|
---|
2047 | * representation. */
|
---|
2048 | #define VERR_ASN1_OBJID_TOO_MANY_COMPONENTS (-22815)
|
---|
2049 | /** The dotted-string representation of an ASN.1 OBJECT IDENTIFIER would be too
|
---|
2050 | * long for our internal representation. */
|
---|
2051 | #define VERR_ASN1_OBJID_TOO_LONG_STRING_FORM (-22816)
|
---|
2052 | /** Invalid dotted string. */
|
---|
2053 | #define VERR_ASN1_OBJID_INVALID_DOTTED_STRING (-22817)
|
---|
2054 | /** Constructed string type not implemented. */
|
---|
2055 | #define VERR_ASN1_CONSTRUCTED_STRING_NOT_IMPL (-22818)
|
---|
2056 | /** Expected a different string tag. */
|
---|
2057 | #define VERR_ASN1_STRING_TAG_MISMATCH (-22819)
|
---|
2058 | /** Expected a different time tag. */
|
---|
2059 | #define VERR_ASN1_TIME_TAG_MISMATCH (-22820)
|
---|
2060 | /** More unconsumed data available. */
|
---|
2061 | #define VINF_ASN1_MORE_DATA (22821)
|
---|
2062 | /** RTAsnEncodeWriteHeader return code indicating that nothing was written
|
---|
2063 | * and the content should be skipped as well. */
|
---|
2064 | #define VINF_ASN1_NOT_ENCODED (22822)
|
---|
2065 | /** Unknown escape sequence encountered in TeletexString. */
|
---|
2066 | #define VERR_ASN1_TELETEX_UNKNOWN_ESC_SEQ (-22823)
|
---|
2067 | /** Unsupported escape sequence encountered in TeletexString. */
|
---|
2068 | #define VERR_ASN1_TELETEX_UNSUPPORTED_ESC_SEQ (-22824)
|
---|
2069 | /** Unsupported character set. */
|
---|
2070 | #define VERR_ASN1_TELETEX_UNSUPPORTED_CHARSET (-22825)
|
---|
2071 | /** ASN.1 object has no virtual method table. */
|
---|
2072 | #define VERR_ASN1_NO_VTABLE (-22826)
|
---|
2073 | /** ASN.1 object has no pfnCheckSanity method. */
|
---|
2074 | #define VERR_ASN1_NO_CHECK_SANITY_METHOD (-22827)
|
---|
2075 | /** ASN.1 object is not present */
|
---|
2076 | #define VERR_ASN1_NOT_PRESENT (-22828)
|
---|
2077 | /** There are unconsumed bytes after decoding an ASN.1 object. */
|
---|
2078 | #define VERR_ASN1_CURSOR_NOT_AT_END (-22829)
|
---|
2079 | /** Long ASN.1 tag form is not implemented. */
|
---|
2080 | #define VERR_ASN1_CURSOR_LONG_TAG (-22830)
|
---|
2081 | /** Bad ASN.1 object length encoding. */
|
---|
2082 | #define VERR_ASN1_CURSOR_BAD_LENGTH_ENCODING (-22831)
|
---|
2083 | /** Indefinite length form is against the rules. */
|
---|
2084 | #define VERR_ASN1_CURSOR_ILLEGAL_IDEFINITE_LENGTH (-22832)
|
---|
2085 | /** Indefinite length form is not implemented. */
|
---|
2086 | #define VERR_ASN1_CURSOR_IDEFINITE_LENGTH_NOT_SUP (-22833)
|
---|
2087 | /** ASN.1 object length goes beyond the end of the byte stream being decoded. */
|
---|
2088 | #define VERR_ASN1_CURSOR_BAD_LENGTH (-22834)
|
---|
2089 | /** Not more data in ASN.1 byte stream. */
|
---|
2090 | #define VERR_ASN1_CURSOR_NO_MORE_DATA (-22835)
|
---|
2091 | /** Too little data in ASN.1 byte stream. */
|
---|
2092 | #define VERR_ASN1_CURSOR_TOO_LITTLE_DATA_LEFT (-22836)
|
---|
2093 | /** Constructed string is not according to the encoding rules. */
|
---|
2094 | #define VERR_ASN1_CURSOR_ILLEGAL_CONSTRUCTED_STRING (-22837)
|
---|
2095 | /** Unexpected ASN.1 tag encountered while decoding. */
|
---|
2096 | #define VERR_ASN1_CURSOR_TAG_MISMATCH (-22838)
|
---|
2097 | /** Unexpected ASN.1 tag class/flag encountered while decoding. */
|
---|
2098 | #define VERR_ASN1_CURSOR_TAG_FLAG_CLASS_MISMATCH (-22839)
|
---|
2099 | /** ASN.1 bit string object is out of bounds. */
|
---|
2100 | #define VERR_ASN1_BITSTRING_OUT_OF_BOUNDS (-22840)
|
---|
2101 | /** Bad ASN.1 time object. */
|
---|
2102 | #define VERR_ASN1_TIME_BAD_NORMALIZE_INPUT (-22841)
|
---|
2103 | /** Failed to normalize ASN.1 time object. */
|
---|
2104 | #define VERR_ASN1_TIME_NORMALIZE_ERROR (-22842)
|
---|
2105 | /** Normalization of ASN.1 time object didn't work out. */
|
---|
2106 | #define VERR_ASN1_TIME_NORMALIZE_MISMATCH (-22843)
|
---|
2107 | /** Invalid ASN.1 UTC TIME encoding. */
|
---|
2108 | #define VERR_ASN1_INVALID_UTC_TIME_ENCODING (-22844)
|
---|
2109 | /** Invalid ASN.1 GENERALIZED TIME encoding. */
|
---|
2110 | #define VERR_ASN1_INVALID_GENERALIZED_TIME_ENCODING (-22845)
|
---|
2111 | /** Invalid ASN.1 BOOLEAN encoding. */
|
---|
2112 | #define VERR_ASN1_INVALID_BOOLEAN_ENCODING (-22846)
|
---|
2113 | /** Invalid ASN.1 NULL encoding. */
|
---|
2114 | #define VERR_ASN1_INVALID_NULL_ENCODING (-22847)
|
---|
2115 | /** Invalid ASN.1 BIT STRING encoding. */
|
---|
2116 | #define VERR_ASN1_INVALID_BITSTRING_ENCODING (-22848)
|
---|
2117 | /** Unimplemented ASN.1 tag reached the RTAsn1DynType code. */
|
---|
2118 | #define VERR_ASN1_DYNTYPE_TAG_NOT_IMPL (-22849)
|
---|
2119 | /** ASN.1 tag and flags/class mismatch in RTAsn1DynType code. */
|
---|
2120 | #define VERR_ASN1_DYNTYPE_BAD_TAG (-22850)
|
---|
2121 | /** Unexpected ASN.1 fake/dummy object. */
|
---|
2122 | #define VERR_ASN1_DUMMY_OBJECT (-22851)
|
---|
2123 | /** ASN.1 object is too long. */
|
---|
2124 | #define VERR_ASN1_TOO_LONG (-22852)
|
---|
2125 | /** Expected primitive ASN.1 object. */
|
---|
2126 | #define VERR_ASN1_EXPECTED_PRIMITIVE (-22853)
|
---|
2127 | /** Expected valid data pointer for ASN.1 object. */
|
---|
2128 | #define VERR_ASN1_INVALID_DATA_POINTER (-22854)
|
---|
2129 | /** The ASN.1 encoding is too deeply nested for the decoder. */
|
---|
2130 | #define VERR_ASN1_TOO_DEEPLY_NESTED (-22855)
|
---|
2131 |
|
---|
2132 | /** ANS.1 internal error 1. */
|
---|
2133 | #define VERR_ASN1_INTERNAL_ERROR_1 (-22895)
|
---|
2134 | /** ANS.1 internal error 2. */
|
---|
2135 | #define VERR_ASN1_INTERNAL_ERROR_2 (-22896)
|
---|
2136 | /** ANS.1 internal error 3. */
|
---|
2137 | #define VERR_ASN1_INTERNAL_ERROR_3 (-22897)
|
---|
2138 | /** ANS.1 internal error 4. */
|
---|
2139 | #define VERR_ASN1_INTERNAL_ERROR_4 (-22898)
|
---|
2140 | /** ANS.1 internal error 5. */
|
---|
2141 | #define VERR_ASN1_INTERNAL_ERROR_5 (-22899)
|
---|
2142 | /** @} */
|
---|
2143 |
|
---|
2144 | /** @name More RTLdr status codes.
|
---|
2145 | * @{ */
|
---|
2146 | /** Image Verification Failure: No Authenticode Signature. */
|
---|
2147 | #define VERR_LDRVI_NOT_SIGNED (-22900)
|
---|
2148 | /** Image Verification Warning: No Authenticode Signature, but on whitelist. */
|
---|
2149 | #define VINF_LDRVI_NOT_SIGNED (22900)
|
---|
2150 | /** Image Verification Failure: Error reading image headers. */
|
---|
2151 | #define VERR_LDRVI_READ_ERROR_HDR (-22901)
|
---|
2152 | /** Image Verification Failure: Error reading section headers. */
|
---|
2153 | #define VERR_LDRVI_READ_ERROR_SHDRS (-22902)
|
---|
2154 | /** Image Verification Failure: Error reading authenticode signature data. */
|
---|
2155 | #define VERR_LDRVI_READ_ERROR_SIGNATURE (-22903)
|
---|
2156 | /** Image Verification Failure: Error reading file for hashing. */
|
---|
2157 | #define VERR_LDRVI_READ_ERROR_HASH (-22904)
|
---|
2158 | /** Image Verification Failure: Error determining the file length. */
|
---|
2159 | #define VERR_LDRVI_FILE_LENGTH_ERROR (-22905)
|
---|
2160 | /** Image Verification Failure: Error allocating memory for state data. */
|
---|
2161 | #define VERR_LDRVI_NO_MEMORY_STATE (-22906)
|
---|
2162 | /** Image Verification Failure: Error allocating memory for authenticode
|
---|
2163 | * signature data. */
|
---|
2164 | #define VERR_LDRVI_NO_MEMORY_SIGNATURE (-22907)
|
---|
2165 | /** Image Verification Failure: Error allocating memory for section headers. */
|
---|
2166 | #define VERR_LDRVI_NO_MEMORY_SHDRS (-22908)
|
---|
2167 | /** Image Verification Failure: Authenticode parsing output. */
|
---|
2168 | #define VERR_LDRVI_NO_MEMORY_PARSE_OUTPUT (-22909)
|
---|
2169 | /** Image Verification Failure: Invalid security directory entry. */
|
---|
2170 | #define VERR_LDRVI_INVALID_SECURITY_DIR_ENTRY (-22910)
|
---|
2171 | /** Image Verification Failure: */
|
---|
2172 | #define VERR_LDRVI_BAD_CERT_HDR_LENGTH (-22911)
|
---|
2173 | /** Image Verification Failure: */
|
---|
2174 | #define VERR_LDRVI_BAD_CERT_HDR_REVISION (-22912)
|
---|
2175 | /** Image Verification Failure: */
|
---|
2176 | #define VERR_LDRVI_BAD_CERT_HDR_TYPE (-22913)
|
---|
2177 | /** Image Verification Failure: More than one certificate table entry. */
|
---|
2178 | #define VERR_LDRVI_BAD_CERT_MULTIPLE (-22914)
|
---|
2179 |
|
---|
2180 | /** Image Verification Failure: */
|
---|
2181 | #define VERR_LDRVI_BAD_MZ_OFFSET (-22915)
|
---|
2182 | /** Image Verification Failure: Invalid section count. */
|
---|
2183 | #define VERR_LDRVI_INVALID_SECTION_COUNT (-22916)
|
---|
2184 | /** Image Verification Failure: Raw data offsets and sizes are out of range. */
|
---|
2185 | #define VERR_LDRVI_SECTION_RAW_DATA_VALUES (-22917)
|
---|
2186 | /** Optional header magic and target machine does not match. */
|
---|
2187 | #define VERR_LDRVI_MACHINE_OPT_HDR_MAGIC_MISMATCH (-22918)
|
---|
2188 | /** Unsupported image target architecture. */
|
---|
2189 | #define VERR_LDRVI_UNSUPPORTED_ARCH (-22919)
|
---|
2190 |
|
---|
2191 | /** Image Verification Failure: Internal error in signature parser. */
|
---|
2192 | #define VERR_LDRVI_PARSE_IPE (-22921)
|
---|
2193 | /** Generic BER parse error. Will be refined later. */
|
---|
2194 | #define VERR_LDRVI_PARSE_BER_ERROR (-22922)
|
---|
2195 |
|
---|
2196 | /** Expected the signed data content to be the object ID of
|
---|
2197 | * SpcIndirectDataContent, found something else instead. */
|
---|
2198 | #define VERR_LDRVI_EXPECTED_INDIRECT_DATA_CONTENT_OID (-22923)
|
---|
2199 | /** Page hash table size overflow. */
|
---|
2200 | #define VERR_LDRVI_PAGE_HASH_TAB_SIZE_OVERFLOW (-22924)
|
---|
2201 | /** Page hash table is too long (covers signature data, i.e. itself). */
|
---|
2202 | #define VERR_LDRVI_PAGE_HASH_TAB_TOO_LONG (-22925)
|
---|
2203 | /** The page hash table is not strictly ordered by offset. */
|
---|
2204 | #define VERR_LDRVI_PAGE_HASH_TAB_NOT_STRICTLY_SORTED (-22926)
|
---|
2205 | /** The page hash table hashes data outside the defined and implicit sections. */
|
---|
2206 | #define VERR_PAGE_HASH_TAB_HASHES_NON_SECTION_DATA (-22927)
|
---|
2207 | /** Page hash mismatch. */
|
---|
2208 | #define VERR_LDRVI_PAGE_HASH_MISMATCH (-22928)
|
---|
2209 | /** Image hash mismatch. */
|
---|
2210 | #define VERR_LDRVI_IMAGE_HASH_MISMATCH (-22929)
|
---|
2211 |
|
---|
2212 | /** Cannot resolve symbol because it's a forwarder. */
|
---|
2213 | #define VERR_LDR_FORWARDER (-22950)
|
---|
2214 | /** The symbol is not a forwarder. */
|
---|
2215 | #define VERR_LDR_NOT_FORWARDER (-22951)
|
---|
2216 | /** Malformed forwarder entry. */
|
---|
2217 | #define VERR_LDR_BAD_FORWARDER (-22952)
|
---|
2218 | /** Too long forwarder chain or there is a loop. */
|
---|
2219 | #define VERR_LDR_FORWARDER_CHAIN_TOO_LONG (-22953)
|
---|
2220 | /** Support for forwarders has not been implemented. */
|
---|
2221 | #define VERR_LDR_FORWARDERS_NOT_SUPPORTED (-22954)
|
---|
2222 | /** @} */
|
---|
2223 |
|
---|
2224 | /** @name RTCrX509 status codes.
|
---|
2225 | * @{ */
|
---|
2226 | /** Generic X.509 error. */
|
---|
2227 | #define VERR_CR_X509_GENERIC_ERROR (-23000)
|
---|
2228 | /** Internal error in the X.509 code. */
|
---|
2229 | #define VERR_CR_X509_INTERNAL_ERROR (-23001)
|
---|
2230 | /** Internal error in the X.509 certificate path building and verification
|
---|
2231 | * code. */
|
---|
2232 | #define VERR_CR_X509_CERTPATHS_INTERNAL_ERROR (-23002)
|
---|
2233 | /** Path not verified yet. */
|
---|
2234 | #define VERR_CR_X509_NOT_VERIFIED (-23003)
|
---|
2235 | /** The certificate path has no trust anchor. */
|
---|
2236 | #define VERR_CR_X509_NO_TRUST_ANCHOR (-23004)
|
---|
2237 | /** Unknown X.509 certificate signature algorithm. */
|
---|
2238 | #define VERR_CR_X509_UNKNOWN_CERT_SIGN_ALGO (-23005)
|
---|
2239 | /** Certificate signature algorithm mismatch. */
|
---|
2240 | #define VERR_CR_X509_CERT_SIGN_ALGO_MISMATCH (-23006)
|
---|
2241 | /** The signature algorithm in the to-be-signed certificate part does not match
|
---|
2242 | * the one associated with the signature. */
|
---|
2243 | #define VERR_CR_X509_CERT_TBS_SIGN_ALGO_MISMATCH (-23007)
|
---|
2244 | /** Certificate extensions requires certificate version 3 or later. */
|
---|
2245 | #define VERR_CR_X509_TBSCERT_EXTS_REQ_V3 (-23008)
|
---|
2246 | /** Unique issuer and subject IDs require version certificate 2. */
|
---|
2247 | #define VERR_CR_X509_TBSCERT_UNIQUE_IDS_REQ_V2 (-23009)
|
---|
2248 | /** Certificate serial number length is out of bounds. */
|
---|
2249 | #define VERR_CR_X509_TBSCERT_SERIAL_NUMBER_OUT_OF_BOUNDS (-23010)
|
---|
2250 | /** Unsupported X.509 certificate version. */
|
---|
2251 | #define VERR_CR_X509_TBSCERT_UNSUPPORTED_VERSION (-23011)
|
---|
2252 | /** Public key is too small. */
|
---|
2253 | #define VERR_CR_X509_PUBLIC_KEY_TOO_SMALL (-23012)
|
---|
2254 | /** Invalid string tag for a X.509 name object. */
|
---|
2255 | #define VERR_CR_X509_INVALID_NAME_STRING_TAG (-23013)
|
---|
2256 | /** Empty string in X.509 name object. */
|
---|
2257 | #define VERR_CR_X509_NAME_EMPTY_STRING (-23014)
|
---|
2258 | /** Non-string object inside X.509 name object. */
|
---|
2259 | #define VERR_CR_X509_NAME_NOT_STRING (-23015)
|
---|
2260 | /** Empty set inside X.509 name. */
|
---|
2261 | #define VERR_CR_X509_NAME_EMPTY_SET (-23016)
|
---|
2262 | /** Empty sub-string set inside X.509 name. */
|
---|
2263 | #define VERR_CR_X509_NAME_EMPTY_SUB_SET (-23017)
|
---|
2264 | /** The NotBefore and NotAfter values of an X.509 Validity object seems to
|
---|
2265 | * have been swapped around. */
|
---|
2266 | #define VERR_CR_X509_VALIDITY_SWAPPED (-23018)
|
---|
2267 | /** Duplicate certificate extension. */
|
---|
2268 | #define VERR_CR_X509_TBSCERT_DUPLICATE_EXTENSION (-23019)
|
---|
2269 | /** Missing relative distinguished name map entry. */
|
---|
2270 | #define VERR_CR_X509_NAME_MISSING_RDN_MAP_ENTRY (-23020)
|
---|
2271 | /** Certificate path validator: No trusted certificate paths. */
|
---|
2272 | #define VERR_CR_X509_CPV_NO_TRUSTED_PATHS (-23021)
|
---|
2273 | /** Certificate path validator: No valid certificate policy. */
|
---|
2274 | #define VERR_CR_X509_CPV_NO_VALID_POLICY (-23022)
|
---|
2275 | /** Certificate path validator: Unknown critical certificate extension. */
|
---|
2276 | #define VERR_CR_X509_CPV_UNKNOWN_CRITICAL_EXTENSION (-23023)
|
---|
2277 | /** Certificate path validator: Intermediate certificate is missing the
|
---|
2278 | * KeyCertSign usage flag. */
|
---|
2279 | #define VERR_CR_X509_CPV_MISSING_KEY_CERT_SIGN (-23024)
|
---|
2280 | /** Certificate path validator: Hit the max certificate path length before
|
---|
2281 | * reaching trust anchor. */
|
---|
2282 | #define VERR_CR_X509_CPV_MAX_PATH_LENGTH (-23025)
|
---|
2283 | /** Certificate path validator: Intermediate certificate is not marked as a
|
---|
2284 | * certificate authority (CA). */
|
---|
2285 | #define VERR_CR_X509_CPV_NOT_CA_CERT (-23026)
|
---|
2286 | /** Certificate path validator: Intermediate certificate is not a version 3
|
---|
2287 | * certificate. */
|
---|
2288 | #define VERR_CR_X509_CPV_NOT_V3_CERT (-23027)
|
---|
2289 | /** Certificate path validator: Invalid policy mapping (to/from anyPolicy). */
|
---|
2290 | #define VERR_CR_X509_CPV_INVALID_POLICY_MAPPING (-23028)
|
---|
2291 | /** Certificate path validator: Name constraints permits no names. */
|
---|
2292 | #define VERR_CR_X509_CPV_NO_PERMITTED_NAMES (-23029)
|
---|
2293 | /** Certificate path validator: Name constraints does not permits the
|
---|
2294 | * certificate name. */
|
---|
2295 | #define VERR_CR_X509_CPV_NAME_NOT_PERMITTED (-23030)
|
---|
2296 | /** Certificate path validator: Name constraints does not permits the
|
---|
2297 | * alternative certificate name. */
|
---|
2298 | #define VERR_CR_X509_CPV_ALT_NAME_NOT_PERMITTED (-23031)
|
---|
2299 | /** Certificate path validator: Intermediate certificate subject does not
|
---|
2300 | * match child issuer property. */
|
---|
2301 | #define VERR_CR_X509_CPV_ISSUER_MISMATCH (-23032)
|
---|
2302 | /** Certificate path validator: The certificate is not valid at the
|
---|
2303 | * specified time. */
|
---|
2304 | #define VERR_CR_X509_CPV_NOT_VALID_AT_TIME (-23033)
|
---|
2305 | /** Certificate path validator: Unexpected choice found in general subtree
|
---|
2306 | * object (name constraints). */
|
---|
2307 | #define VERR_CR_X509_CPV_UNEXP_GENERAL_SUBTREE_CHOICE (-23034)
|
---|
2308 | /** Certificate path validator: Unexpected minimum value found in general
|
---|
2309 | * subtree object (name constraints). */
|
---|
2310 | #define VERR_CR_X509_CPV_UNEXP_GENERAL_SUBTREE_MIN (-23035)
|
---|
2311 | /** Certificate path validator: Unexpected maximum value found in
|
---|
2312 | * general subtree object (name constraints). */
|
---|
2313 | #define VERR_CR_X509_CPV_UNEXP_GENERAL_SUBTREE_MAX (-23036)
|
---|
2314 | /** Certificate path builder: Encountered bad certificate context. */
|
---|
2315 | #define VERR_CR_X509_CPB_BAD_CERT_CTX (-23037)
|
---|
2316 | /** OpenSSL d2i_X509 failed. */
|
---|
2317 | #define VERR_CR_X509_OSSL_D2I_FAILED (-23090)
|
---|
2318 | /** @} */
|
---|
2319 |
|
---|
2320 | /** @name RTCrPkcs7 status codes.
|
---|
2321 | * @{ */
|
---|
2322 | /** Generic PKCS \#7 error. */
|
---|
2323 | #define VERR_CR_PKCS7_GENERIC_ERROR (-23300)
|
---|
2324 | /** Signed data verification failed because there are zero signer infos. */
|
---|
2325 | #define VERR_CR_PKCS7_NO_SIGNER_INFOS (-23301)
|
---|
2326 | /** Signed data certificate not found. */
|
---|
2327 | #define VERR_CR_PKCS7_SIGNED_DATA_CERT_NOT_FOUND (-23302)
|
---|
2328 | /** Signed data verification failed due to key usage issues. */
|
---|
2329 | #define VERR_CR_PKCS7_KEY_USAGE_MISMATCH (-23303)
|
---|
2330 | /** Signed data verification failed because of missing (or duplicate)
|
---|
2331 | * authenticated content-type attribute. */
|
---|
2332 | #define VERR_CR_PKCS7_MISSING_CONTENT_TYPE_ATTRIB (-23304)
|
---|
2333 | /** Signed data verification failed because of the authenticated content-type
|
---|
2334 | * attribute did not match. */
|
---|
2335 | #define VERR_CR_PKCS7_CONTENT_TYPE_ATTRIB_MISMATCH (-23305)
|
---|
2336 | /** Signed data verification failed because of a malformed authenticated
|
---|
2337 | * content-type attribute. */
|
---|
2338 | #define VERR_CR_PKCS7_BAD_CONTENT_TYPE_ATTRIB (-23306)
|
---|
2339 | /** Signed data verification failed because of missing (or duplicate)
|
---|
2340 | * authenticated message-digest attribute. */
|
---|
2341 | #define VERR_CR_PKCS7_MISSING_MESSAGE_DIGEST_ATTRIB (-23307)
|
---|
2342 | /** Signed data verification failed because the authenticated message-digest
|
---|
2343 | * attribute did not match. */
|
---|
2344 | #define VERR_CR_PKCS7_MESSAGE_DIGEST_ATTRIB_MISMATCH (-23308)
|
---|
2345 | /** Signed data verification failed because of a malformed authenticated
|
---|
2346 | * message-digest attribute. */
|
---|
2347 | #define VERR_CR_PKCS7_BAD_MESSAGE_DIGEST_ATTRIB (-23309)
|
---|
2348 | /** Signature verification failed. */
|
---|
2349 | #define VERR_CR_PKCS7_SIGNATURE_VERIFICATION_FAILED (-23310)
|
---|
2350 | /** Internal PKCS \#7 error. */
|
---|
2351 | #define VERR_CR_PKCS7_INTERNAL_ERROR (-22311)
|
---|
2352 | /** OpenSSL d2i_PKCS7 failed. */
|
---|
2353 | #define VERR_CR_PKCS7_OSSL_D2I_FAILED (-22312)
|
---|
2354 | /** OpenSSL PKCS \#7 verification failed. */
|
---|
2355 | #define VERR_CR_PKCS7_OSSL_VERIFY_FAILED (-22313)
|
---|
2356 | /** Digest algorithm parameters are not supported by the PKCS \#7 code. */
|
---|
2357 | #define VERR_CR_PKCS7_DIGEST_PARAMS_NOT_IMPL (-22314)
|
---|
2358 | /** The digest algorithm of a signer info entry was not found in the list of
|
---|
2359 | * digest algorithms in the signed data. */
|
---|
2360 | #define VERR_CR_PKCS7_DIGEST_ALGO_NOT_FOUND_IN_LIST (-22315)
|
---|
2361 | /** The PKCS \#7 content is not signed data. */
|
---|
2362 | #define VERR_CR_PKCS7_NOT_SIGNED_DATA (-22316)
|
---|
2363 | /** No digest algorithms listed in PKCS \#7 signed data. */
|
---|
2364 | #define VERR_CR_PKCS7_NO_DIGEST_ALGORITHMS (-22317)
|
---|
2365 | /** Too many digest algorithms used by PKCS \#7 signed data. This is an
|
---|
2366 | * internal limitation of the code that aims at saving kernel stack space. */
|
---|
2367 | #define VERR_CR_PKCS7_TOO_MANY_DIGEST_ALGORITHMS (-22318)
|
---|
2368 | /** Error creating digest algorithm calculator. */
|
---|
2369 | #define VERR_CR_PKCS7_DIGEST_CREATE_ERROR (-22319)
|
---|
2370 | /** Error while calculating a digest for a PKCS \#7 verification operation. */
|
---|
2371 | #define VERR_CR_PKCS7_DIGEST_CALC_ERROR (-22320)
|
---|
2372 | /** Unsupported PKCS \#7 signed data version. */
|
---|
2373 | #define VERR_CR_PKCS7_SIGNED_DATA_VERSION (-22350)
|
---|
2374 | /** PKCS \#7 signed data has no digest algorithms listed. */
|
---|
2375 | #define VERR_CR_PKCS7_SIGNED_DATA_NO_DIGEST_ALGOS (-22351)
|
---|
2376 | /** Unknown digest algorithm used by PKCS \#7 object. */
|
---|
2377 | #define VERR_CR_PKCS7_UNKNOWN_DIGEST_ALGORITHM (-22352)
|
---|
2378 | /** Expected PKCS \#7 object to ship at least one certificate. */
|
---|
2379 | #define VERR_CR_PKCS7_NO_CERTIFICATES (-22353)
|
---|
2380 | /** Expected PKCS \#7 object to not contain any CRLs. */
|
---|
2381 | #define VERR_CR_PKCS7_EXPECTED_NO_CRLS (-22354)
|
---|
2382 | /** Expected PKCS \#7 object to contain exactly on signer info entry. */
|
---|
2383 | #define VERR_CR_PKCS7_EXPECTED_ONE_SIGNER_INFO (-22355)
|
---|
2384 | /** Unsupported PKCS \#7 signer info version. */
|
---|
2385 | #define VERR_CR_PKCS7_SIGNER_INFO_VERSION (-22356)
|
---|
2386 | /** PKCS \#7 singer info contains no issuer serial number. */
|
---|
2387 | #define VERR_CR_PKCS7_SIGNER_INFO_NO_ISSUER_SERIAL_NO (-22357)
|
---|
2388 | /** Expected PKCS \#7 object to ship the signer certificate(s). */
|
---|
2389 | #define VERR_CR_PKCS7_SIGNER_CERT_NOT_SHIPPED (-22358)
|
---|
2390 | /** The encrypted digest algorithm does not match the one in the certificate. */
|
---|
2391 | #define VERR_CR_PKCS7_SIGNER_INFO_DIGEST_ENCRYPT_MISMATCH (-22359)
|
---|
2392 | /** @} */
|
---|
2393 |
|
---|
2394 | /** @name RTCrSpc status codes.
|
---|
2395 | * @{ */
|
---|
2396 | /** Generic SPC error. */
|
---|
2397 | #define VERR_CR_SPC_GENERIC_ERROR (-23400)
|
---|
2398 | /** SPC requires there to be exactly one SignerInfo entry. */
|
---|
2399 | #define VERR_CR_SPC_NOT_EXACTLY_ONE_SIGNER_INFOS (-23401)
|
---|
2400 | /** There shall be exactly one digest algorithm to go with the single
|
---|
2401 | * SingerInfo entry required by SPC. */
|
---|
2402 | #define VERR_CR_SPC_NOT_EXACTLY_ONE_DIGEST_ALGO (-23402)
|
---|
2403 | /** The digest algorithm in the SignerInfo does not match the one in the
|
---|
2404 | * indirect data. */
|
---|
2405 | #define VERR_CR_SPC_SIGNED_IND_DATA_DIGEST_ALGO_MISMATCH (-23403)
|
---|
2406 | /** The digest algorithm in the indirect data was not found in the list of
|
---|
2407 | * digest algorithms in the signed data structure. */
|
---|
2408 | #define VERR_CR_SPC_IND_DATA_DIGEST_ALGO_NOT_IN_DIGEST_ALGOS (-23404)
|
---|
2409 | /** The digest algorithm is not known to us. */
|
---|
2410 | #define VERR_CR_SPC_UNKNOWN_DIGEST_ALGO (-23405)
|
---|
2411 | /** The indirect data digest size does not match the digest algorithm. */
|
---|
2412 | #define VERR_CR_SPC_IND_DATA_DIGEST_SIZE_MISMATCH (-23406)
|
---|
2413 | /** Expected PE image data inside indirect data object. */
|
---|
2414 | #define VERR_CR_SPC_EXPECTED_PE_IMAGE_DATA (-23407)
|
---|
2415 | /** Internal SPC error: The PE image data is missing. */
|
---|
2416 | #define VERR_CR_SPC_PEIMAGE_DATA_NOT_PRESENT (-23408)
|
---|
2417 | /** Bad SPC object moniker UUID field. */
|
---|
2418 | #define VERR_CR_SPC_BAD_MONIKER_UUID (-23409)
|
---|
2419 | /** Unknown SPC object moniker UUID. */
|
---|
2420 | #define VERR_CR_SPC_UNKNOWN_MONIKER_UUID (-23410)
|
---|
2421 | /** Internal SPC error: Bad object moniker choice value. */
|
---|
2422 | #define VERR_CR_SPC_BAD_MONIKER_CHOICE (-23411)
|
---|
2423 | /** Internal SPC error: Bad object moniker data pointer. */
|
---|
2424 | #define VERR_CR_SPC_MONIKER_BAD_DATA (-23412)
|
---|
2425 | /** Multiple PE image page hash tables. */
|
---|
2426 | #define VERR_CR_SPC_PEIMAGE_MULTIPLE_HASH_TABS (-23413)
|
---|
2427 | /** Unknown SPC PE image attribute. */
|
---|
2428 | #define VERR_CR_SPC_PEIMAGE_UNKNOWN_ATTRIBUTE (-23414)
|
---|
2429 | /** URL not expected in SPC PE image data. */
|
---|
2430 | #define VERR_CR_SPC_PEIMAGE_URL_UNEXPECTED (-23415)
|
---|
2431 | /** PE image data without any valid content was not expected. */
|
---|
2432 | #define VERR_CR_SPC_PEIMAGE_NO_CONTENT (-23416)
|
---|
2433 | /** @} */
|
---|
2434 |
|
---|
2435 | /** @name RTCrPkix status codes.
|
---|
2436 | * @{ */
|
---|
2437 | /** Generic PKCS \#7 error. */
|
---|
2438 | #define VERR_CR_PKIX_GENERIC_ERROR (-23500)
|
---|
2439 | /** Parameters was presented to a signature schema that does not take any. */
|
---|
2440 | #define VERR_CR_PKIX_SIGNATURE_TAKES_NO_PARAMETERS (-23501)
|
---|
2441 | /** Unknown hash digest type. */
|
---|
2442 | #define VERR_CR_PKIX_UNKNOWN_DIGEST_TYPE (-23502)
|
---|
2443 | /** Internal error. */
|
---|
2444 | #define VERR_CR_PKIX_INTERNAL_ERROR (-23503)
|
---|
2445 | /** The hash is too long for the key used when signing/verifying. */
|
---|
2446 | #define VERR_CR_PKIX_HASH_TOO_LONG_FOR_KEY (-23504)
|
---|
2447 | /** The signature is too long for the scratch buffer. */
|
---|
2448 | #define VERR_CR_PKIX_SIGNATURE_TOO_LONG (-23505)
|
---|
2449 | /** The signature is greater than or equal to the key. */
|
---|
2450 | #define VERR_CR_PKIX_SIGNATURE_GE_KEY (-23506)
|
---|
2451 | /** The signature is negative. */
|
---|
2452 | #define VERR_CR_PKIX_SIGNATURE_NEGATIVE (-23507)
|
---|
2453 | /** Invalid signature length. */
|
---|
2454 | #define VERR_CR_PKIX_INVALID_SIGNATURE_LENGTH (-23508)
|
---|
2455 | /** PKIX signature no does not match up to the current data. */
|
---|
2456 | #define VERR_CR_PKIX_SIGNATURE_MISMATCH (-23509)
|
---|
2457 | /** PKIX cipher algorithm parameters are not implemented. */
|
---|
2458 | #define VERR_CR_PKIX_CIPHER_ALGO_PARAMS_NOT_IMPL (-23510)
|
---|
2459 | /** Cipher algorithm is not known to us. */
|
---|
2460 | #define VERR_CR_PKIX_CIPHER_ALGO_NOT_KNOWN (-23511)
|
---|
2461 | /** PKIX cipher algorithm is not known to OpenSSL. */
|
---|
2462 | #define VERR_CR_PKIX_OSSL_CIPHER_ALGO_NOT_KNOWN (-23512)
|
---|
2463 | /** PKIX cipher algorithm is not known to OpenSSL EVP API. */
|
---|
2464 | #define VERR_CR_PKIX_OSSL_CIPHER_ALGO_NOT_KNOWN_EVP (-23513)
|
---|
2465 | /** OpenSSL failed to init PKIX cipher algorithm context. */
|
---|
2466 | #define VERR_CR_PKIX_OSSL_CIPHER_ALOG_INIT_FAILED (-23514)
|
---|
2467 | /** Final OpenSSL PKIX verification failed. */
|
---|
2468 | #define VERR_CR_PKIX_OSSL_VERIFY_FINAL_FAILED (-23515)
|
---|
2469 | /** OpenSSL failed to decode the public key. */
|
---|
2470 | #define VERR_CR_PKIX_OSSL_D2I_PUBLIC_KEY_FAILED (-23516)
|
---|
2471 | /** The EVP_PKEY_type API in OpenSSL failed. */
|
---|
2472 | #define VERR_CR_PKIX_OSSL_EVP_PKEY_TYPE_ERROR (-23517)
|
---|
2473 | /** @} */
|
---|
2474 |
|
---|
2475 | /** @name RTCrStore status codes.
|
---|
2476 | * @{ */
|
---|
2477 | /** Generic store error. */
|
---|
2478 | #define VERR_CR_STORE_GENERIC_ERROR (-23700)
|
---|
2479 | /** @} */
|
---|
2480 |
|
---|
2481 | /** @name RTCrRsa status codes.
|
---|
2482 | * @{ */
|
---|
2483 | /** Generic RSA error. */
|
---|
2484 | #define VERR_CR_RSA_GENERIC_ERROR (-23900)
|
---|
2485 | /** @} */
|
---|
2486 |
|
---|
2487 | /** @name RTBigNum status codes.
|
---|
2488 | * @{ */
|
---|
2489 | /** Sensitive input requires the result(s) to be initialized as sensitive. */
|
---|
2490 | #define VERR_BIGNUM_SENSITIVE_INPUT (-24000)
|
---|
2491 | /** Attempt to divide by zero. */
|
---|
2492 | #define VERR_BIGNUM_DIV_BY_ZERO (-24001)
|
---|
2493 | /** Negative exponent makes no sense to integer math. */
|
---|
2494 | #define VERR_BIGNUM_NEGATIVE_EXPONENT (-24002)
|
---|
2495 |
|
---|
2496 | /** @} */
|
---|
2497 |
|
---|
2498 | /** @name RTCrDigest status codes.
|
---|
2499 | * @{ */
|
---|
2500 | /** OpenSSL failed to initialize the digest algorithm context. */
|
---|
2501 | #define VERR_CR_DIGEST_OSSL_DIGEST_INIT_ERROR (-24200)
|
---|
2502 | /** OpenSSL failed to clone the digest algorithm context. */
|
---|
2503 | #define VERR_CR_DIGEST_OSSL_DIGEST_CTX_COPY_ERROR (-24201)
|
---|
2504 | /** @} */
|
---|
2505 |
|
---|
2506 | /** @name RTPath status codes.
|
---|
2507 | * @{ */
|
---|
2508 | /** Unknown glob variable. */
|
---|
2509 | #define VERR_PATH_MATCH_UNKNOWN_VARIABLE (-24400)
|
---|
2510 | /** The specified glob variable must be first in the pattern. */
|
---|
2511 | #define VERR_PATH_MATCH_VARIABLE_MUST_BE_FIRST (-24401)
|
---|
2512 | /** Hit unimplemented glob pattern matching feature. */
|
---|
2513 | #define VERR_PATH_MATCH_FEATURE_NOT_IMPLEMENTED (-24402)
|
---|
2514 | /** Unknown character class in glob pattern. */
|
---|
2515 | #define VERR_PATH_GLOB_UNKNOWN_CHAR_CLASS (-24403)
|
---|
2516 | /** @} */
|
---|
2517 |
|
---|
2518 | /** @name RTUri status codes.
|
---|
2519 | * @{ */
|
---|
2520 | /** The URI is empty */
|
---|
2521 | #define VERR_URI_EMPTY (-24600)
|
---|
2522 | /** The URI is too short to be a valid URI. */
|
---|
2523 | #define VERR_URI_TOO_SHORT (-24601)
|
---|
2524 | /** Invalid scheme. */
|
---|
2525 | #define VERR_URI_INVALID_SCHEME (-24602)
|
---|
2526 | /** Invalid port number. */
|
---|
2527 | #define VERR_URI_INVALID_PORT_NUMBER (-24603)
|
---|
2528 | /** Invalid escape sequence. */
|
---|
2529 | #define VERR_URI_INVALID_ESCAPE_SEQ (-24604)
|
---|
2530 | /** Escape URI char decodes as zero (the C string terminator). */
|
---|
2531 | #define VERR_URI_ESCAPED_ZERO (-24605)
|
---|
2532 | /** Escaped URI characters does not decode to valid UTF-8. */
|
---|
2533 | #define VERR_URI_ESCAPED_CHARS_NOT_VALID_UTF8 (-24606)
|
---|
2534 | /** Escaped URI character is not a valid UTF-8 lead byte. */
|
---|
2535 | #define VERR_URI_INVALID_ESCAPED_UTF8_LEAD_BYTE (-24607)
|
---|
2536 | /** Escaped URI character sequence with invalid UTF-8 continutation byte. */
|
---|
2537 | #define VERR_URI_INVALID_ESCAPED_UTF8_CONTINUATION_BYTE (-24608)
|
---|
2538 | /** Missing UTF-8 continutation in escaped URI character sequence. */
|
---|
2539 | #define VERR_URI_MISSING_UTF8_CONTINUATION_BYTE (-24609)
|
---|
2540 | /** Expected URI using the 'file:' scheme. */
|
---|
2541 | #define VERR_URI_NOT_FILE_SCHEME (-24610)
|
---|
2542 | /** @} */
|
---|
2543 |
|
---|
2544 | /* SED-END */
|
---|
2545 |
|
---|
2546 | /** @} */
|
---|
2547 |
|
---|
2548 | #endif
|
---|
2549 |
|
---|