VirtualBox

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

Last change on this file since 34056 was 34056, checked in by vboxsync, 14 years ago

forgot this.

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

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