VirtualBox

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

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

VBoxExtPAckHelperApp.cpp: More code.

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