VirtualBox

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

Last change on this file since 26201 was 25692, checked in by vboxsync, 15 years ago

iprt/lockvalidator: Implemented order validatation and the autodidactic class code.

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