1 | /** @file
|
---|
2 | * IPRT - Status Codes.
|
---|
3 | */
|
---|
4 |
|
---|
5 | /*
|
---|
6 | * Copyright (C) 2006-2007 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 |
|
---|
36 | __BEGIN_DECLS
|
---|
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 | /** @def RT_SUCCESS
|
---|
49 | * Check for success. We expect success in normal cases, that is the code path depending on
|
---|
50 | * this check is normally taken. To prevent any prediction use RT_SUCCESS_NP instead.
|
---|
51 | *
|
---|
52 | * @returns true if rc indicates success.
|
---|
53 | * @returns false if rc indicates failure.
|
---|
54 | *
|
---|
55 | * @param rc The iprt status code to test.
|
---|
56 | */
|
---|
57 | #define RT_SUCCESS(rc) ( RT_LIKELY((int)(rc) >= VINF_SUCCESS) )
|
---|
58 |
|
---|
59 | /** @def RT_SUCCESS_NP
|
---|
60 | * Check for success. Don't predict the result.
|
---|
61 | *
|
---|
62 | * @returns true if rc indicates success.
|
---|
63 | * @returns false if rc indicates failure.
|
---|
64 | *
|
---|
65 | * @param rc The iprt status code to test.
|
---|
66 | */
|
---|
67 | #define RT_SUCCESS_NP(rc) ( (int)(rc) >= VINF_SUCCESS )
|
---|
68 |
|
---|
69 | /** @def RT_FAILURE
|
---|
70 | * Check for failure. We don't expect in normal cases, that is the code path depending on
|
---|
71 | * this check is normally NOT taken. To prevent any prediction use RT_FAILURE_NP instead.
|
---|
72 | *
|
---|
73 | * @returns true if rc indicates failure.
|
---|
74 | * @returns false if rc indicates success.
|
---|
75 | *
|
---|
76 | * @param rc The iprt status code to test.
|
---|
77 | */
|
---|
78 | #define RT_FAILURE(rc) ( RT_UNLIKELY(!RT_SUCCESS_NP(rc)) )
|
---|
79 |
|
---|
80 | /** @def RT_FAILURE_NP
|
---|
81 | * Check for failure. Don't predict the result.
|
---|
82 | *
|
---|
83 | * @returns true if rc indicates failure.
|
---|
84 | * @returns false if rc indicates success.
|
---|
85 | *
|
---|
86 | * @param rc The iprt status code to test.
|
---|
87 | */
|
---|
88 | #define RT_FAILURE_NP(rc) ( !RT_SUCCESS_NP(rc) )
|
---|
89 |
|
---|
90 | /**
|
---|
91 | * Converts a Darwin HRESULT error to an iprt status code.
|
---|
92 | *
|
---|
93 | * @returns iprt status code.
|
---|
94 | * @param iNativeCode errno code.
|
---|
95 | * @remark Darwin only.
|
---|
96 | */
|
---|
97 | RTDECL(int) RTErrConvertFromDarwinCOM(int32_t iNativeCode);
|
---|
98 |
|
---|
99 | /**
|
---|
100 | * Converts a Darwin IOReturn error to an iprt status code.
|
---|
101 | *
|
---|
102 | * @returns iprt status code.
|
---|
103 | * @param iNativeCode errno code.
|
---|
104 | * @remark Darwin only.
|
---|
105 | */
|
---|
106 | RTDECL(int) RTErrConvertFromDarwinIO(int iNativeCode);
|
---|
107 |
|
---|
108 | /**
|
---|
109 | * Converts a Darwin kern_return_t error to an iprt status code.
|
---|
110 | *
|
---|
111 | * @returns iprt status code.
|
---|
112 | * @param iNativeCode errno code.
|
---|
113 | * @remark Darwin only.
|
---|
114 | */
|
---|
115 | RTDECL(int) RTErrConvertFromDarwinKern(int iNativeCode);
|
---|
116 |
|
---|
117 | /**
|
---|
118 | * Converts errno to iprt status code.
|
---|
119 | *
|
---|
120 | * @returns iprt status code.
|
---|
121 | * @param uNativeCode errno code.
|
---|
122 | */
|
---|
123 | RTDECL(int) RTErrConvertFromErrno(unsigned uNativeCode);
|
---|
124 |
|
---|
125 | /**
|
---|
126 | * Converts a L4 errno to a iprt status code.
|
---|
127 | *
|
---|
128 | * @returns iprt status code.
|
---|
129 | * @param uNativeCode l4 errno.
|
---|
130 | * @remark L4 only.
|
---|
131 | */
|
---|
132 | RTDECL(int) RTErrConvertFromL4Errno(unsigned uNativeCode);
|
---|
133 |
|
---|
134 | /**
|
---|
135 | * Converts NT status code to iprt status code.
|
---|
136 | *
|
---|
137 | * Needless to say, this is only available on NT and winXX targets.
|
---|
138 | *
|
---|
139 | * @returns iprt status code.
|
---|
140 | * @param lNativeCode NT status code.
|
---|
141 | * @remark Windows only.
|
---|
142 | */
|
---|
143 | RTDECL(int) RTErrConvertFromNtStatus(long lNativeCode);
|
---|
144 |
|
---|
145 | /**
|
---|
146 | * Converts OS/2 error code to iprt status code.
|
---|
147 | *
|
---|
148 | * @returns iprt status code.
|
---|
149 | * @param uNativeCode OS/2 error code.
|
---|
150 | * @remark OS/2 only.
|
---|
151 | */
|
---|
152 | RTDECL(int) RTErrConvertFromOS2(unsigned uNativeCode);
|
---|
153 |
|
---|
154 | /**
|
---|
155 | * Converts Win32 error code to iprt status code.
|
---|
156 | *
|
---|
157 | * @returns iprt status code.
|
---|
158 | * @param uNativeCode Win32 error code.
|
---|
159 | * @remark Windows only.
|
---|
160 | */
|
---|
161 | RTDECL(int) RTErrConvertFromWin32(unsigned uNativeCode);
|
---|
162 |
|
---|
163 | /**
|
---|
164 | * Converts an iprt status code to a errno status code.
|
---|
165 | *
|
---|
166 | * @returns errno status code.
|
---|
167 | * @param iErr iprt status code.
|
---|
168 | */
|
---|
169 | RTDECL(int) RTErrConvertToErrno(int iErr);
|
---|
170 |
|
---|
171 |
|
---|
172 | #ifdef IN_RING3
|
---|
173 |
|
---|
174 | /**
|
---|
175 | * iprt status code message.
|
---|
176 | */
|
---|
177 | typedef struct RTSTATUSMSG
|
---|
178 | {
|
---|
179 | /** Pointer to the short message string. */
|
---|
180 | const char *pszMsgShort;
|
---|
181 | /** Pointer to the full message string. */
|
---|
182 | const char *pszMsgFull;
|
---|
183 | /** Pointer to the define string. */
|
---|
184 | const char *pszDefine;
|
---|
185 | /** Status code number. */
|
---|
186 | int iCode;
|
---|
187 | } RTSTATUSMSG;
|
---|
188 | /** Pointer to iprt status code message. */
|
---|
189 | typedef RTSTATUSMSG *PRTSTATUSMSG;
|
---|
190 | /** Pointer to const iprt status code message. */
|
---|
191 | typedef const RTSTATUSMSG *PCRTSTATUSMSG;
|
---|
192 |
|
---|
193 | /**
|
---|
194 | * Get the message structure corresponding to a given iprt status code.
|
---|
195 | *
|
---|
196 | * @returns Pointer to read-only message description.
|
---|
197 | * @param rc The status code.
|
---|
198 | */
|
---|
199 | RTDECL(PCRTSTATUSMSG) RTErrGet(int rc);
|
---|
200 |
|
---|
201 | /**
|
---|
202 | * Get the define corresponding to a given iprt status code.
|
---|
203 | *
|
---|
204 | * @returns Pointer to read-only string with the \#define identifier.
|
---|
205 | * @param rc The status code.
|
---|
206 | */
|
---|
207 | #define RTErrGetDefine(rc) (RTErrGet(rc)->pszDefine)
|
---|
208 |
|
---|
209 | /**
|
---|
210 | * Get the short description corresponding to a given iprt status code.
|
---|
211 | *
|
---|
212 | * @returns Pointer to read-only string with the description.
|
---|
213 | * @param rc The status code.
|
---|
214 | */
|
---|
215 | #define RTErrGetShort(rc) (RTErrGet(rc)->pszMsgShort)
|
---|
216 |
|
---|
217 | /**
|
---|
218 | * Get the full description corresponding to a given iprt status code.
|
---|
219 | *
|
---|
220 | * @returns Pointer to read-only string with the description.
|
---|
221 | * @param rc The status code.
|
---|
222 | */
|
---|
223 | #define RTErrGetFull(rc) (RTErrGet(rc)->pszMsgFull)
|
---|
224 |
|
---|
225 | #ifdef RT_OS_WINDOWS
|
---|
226 | /**
|
---|
227 | * Windows error code message.
|
---|
228 | */
|
---|
229 | typedef struct RTWINERRMSG
|
---|
230 | {
|
---|
231 | /** Pointer to the full message string. */
|
---|
232 | const char *pszMsgFull;
|
---|
233 | /** Pointer to the define string. */
|
---|
234 | const char *pszDefine;
|
---|
235 | /** Error code number. */
|
---|
236 | long iCode;
|
---|
237 | } RTWINERRMSG;
|
---|
238 | /** Pointer to Windows error code message. */
|
---|
239 | typedef RTWINERRMSG *PRTWINERRMSG;
|
---|
240 | /** Pointer to const Windows error code message. */
|
---|
241 | typedef const RTWINERRMSG *PCRTWINERRMSG;
|
---|
242 |
|
---|
243 | /**
|
---|
244 | * Get the message structure corresponding to a given Windows error code.
|
---|
245 | *
|
---|
246 | * @returns Pointer to read-only message description.
|
---|
247 | * @param rc The status code.
|
---|
248 | */
|
---|
249 | RTDECL(PCRTWINERRMSG) RTErrWinGet(long rc);
|
---|
250 | #endif /* RT_OS_WINDOWS */
|
---|
251 |
|
---|
252 | #endif /* IN_RING3 */
|
---|
253 |
|
---|
254 | /** @} */
|
---|
255 |
|
---|
256 |
|
---|
257 | /* SED-START */
|
---|
258 |
|
---|
259 | /** @name Misc. Status Codes
|
---|
260 | * @{
|
---|
261 | */
|
---|
262 | /** Success. */
|
---|
263 | #define VINF_SUCCESS 0
|
---|
264 |
|
---|
265 | /** General failure - DON'T USE THIS!!!
|
---|
266 | * (aka SUPDRV_ERR_GENERAL_FAILURE) */
|
---|
267 | #define VERR_GENERAL_FAILURE (-1)
|
---|
268 | /** Invalid parameter.
|
---|
269 | * (aka SUPDRV_ERR_INVALID_PARAM) */
|
---|
270 | #define VERR_INVALID_PARAMETER (-2)
|
---|
271 | /** Invalid magic or cookie.
|
---|
272 | * (aka SUPDRV_ERR_INVALID_MAGIC) */
|
---|
273 | #define VERR_INVALID_MAGIC (-3)
|
---|
274 | /** Invalid loader handle.
|
---|
275 | * (aka SUPDRV_ERR_INVALID_HANDLE) */
|
---|
276 | #define VERR_INVALID_HANDLE (-4)
|
---|
277 | /** Failed to lock the address range.
|
---|
278 | * (aka SUPDRV_ERR_INVALID_HANDLE) */
|
---|
279 | #define VERR_LOCK_FAILED (-5)
|
---|
280 | /** Invalid memory pointer.
|
---|
281 | * (aka SUPDRV_ERR_INVALID_POINTER) */
|
---|
282 | #define VERR_INVALID_POINTER (-6)
|
---|
283 | /** Failed to patch the IDT.
|
---|
284 | * (aka SUPDRV_ERR_IDT_FAILED) */
|
---|
285 | #define VERR_IDT_FAILED (-7)
|
---|
286 | /** Memory allocation failed.
|
---|
287 | * (aka SUPDRV_ERR_NO_MEMORY) */
|
---|
288 | #define VERR_NO_MEMORY (-8)
|
---|
289 | /** Already loaded.
|
---|
290 | * (aka SUPDRV_ERR_ALREADY_LOADED) */
|
---|
291 | #define VERR_ALREADY_LOADED (-9)
|
---|
292 | /** Permission denied.
|
---|
293 | * (aka SUPDRV_ERR_PERMISSION_DENIED) */
|
---|
294 | #define VERR_PERMISSION_DENIED (-10)
|
---|
295 | /** Version mismatch.
|
---|
296 | * (aka SUPDRV_ERR_VERSION_MISMATCH) */
|
---|
297 | #define VERR_VERSION_MISMATCH (-11)
|
---|
298 | /** The request function is not implemented. */
|
---|
299 | #define VERR_NOT_IMPLEMENTED (-12)
|
---|
300 |
|
---|
301 | /** Failed to allocate temporary memory. */
|
---|
302 | #define VERR_NO_TMP_MEMORY (-20)
|
---|
303 | /** Invalid file mode mask (RTFMODE). */
|
---|
304 | #define VERR_INVALID_FMODE (-21)
|
---|
305 | /** Incorrect call order. */
|
---|
306 | #define VERR_WRONG_ORDER (-22)
|
---|
307 | /** There is no TLS (thread local storage) available for storing the current thread. */
|
---|
308 | #define VERR_NO_TLS_FOR_SELF (-23)
|
---|
309 | /** Failed to set the TLS (thread local storage) entry which points to our thread structure. */
|
---|
310 | #define VERR_FAILED_TO_SET_SELF_TLS (-24)
|
---|
311 | /** Not able to allocate contiguous memory. */
|
---|
312 | #define VERR_NO_CONT_MEMORY (-26)
|
---|
313 | /** No memory available for page table or page directory. */
|
---|
314 | #define VERR_NO_PAGE_MEMORY (-27)
|
---|
315 | /** Already initialized. */
|
---|
316 | #define VINF_ALREADY_INITIALIZED 28
|
---|
317 | /** The specified thread is dead. */
|
---|
318 | #define VERR_THREAD_IS_DEAD (-29)
|
---|
319 | /** The specified thread is not waitable. */
|
---|
320 | #define VERR_THREAD_NOT_WAITABLE (-30)
|
---|
321 | /** Pagetable not present. */
|
---|
322 | #define VERR_PAGE_TABLE_NOT_PRESENT (-31)
|
---|
323 | /** Internal error - we're screwed if this happens. */
|
---|
324 | #define VERR_INTERNAL_ERROR (-32)
|
---|
325 | /** The per process timer is busy. */
|
---|
326 | #define VERR_TIMER_BUSY (-33)
|
---|
327 | /** Address conflict. */
|
---|
328 | #define VERR_ADDRESS_CONFLICT (-34)
|
---|
329 | /** Unresolved (unknown) host platform error. */
|
---|
330 | #define VERR_UNRESOLVED_ERROR (-35)
|
---|
331 | /** Invalid function. */
|
---|
332 | #define VERR_INVALID_FUNCTION (-36)
|
---|
333 | /** Not supported. */
|
---|
334 | #define VERR_NOT_SUPPORTED (-37)
|
---|
335 | /** Access denied. */
|
---|
336 | #define VERR_ACCESS_DENIED (-38)
|
---|
337 | /** Call interrupted. */
|
---|
338 | #define VERR_INTERRUPTED (-39)
|
---|
339 | /** Timeout. */
|
---|
340 | #define VERR_TIMEOUT (-40)
|
---|
341 | /** Buffer too small to save result. */
|
---|
342 | #define VERR_BUFFER_OVERFLOW (-41)
|
---|
343 | /** Buffer too small to save result. */
|
---|
344 | #define VINF_BUFFER_OVERFLOW 41
|
---|
345 | /** Data size overflow. */
|
---|
346 | #define VERR_TOO_MUCH_DATA (-42)
|
---|
347 | /** Max threads number reached. */
|
---|
348 | #define VERR_MAX_THRDS_REACHED (-43)
|
---|
349 | /** Max process number reached. */
|
---|
350 | #define VERR_MAX_PROCS_REACHED (-44)
|
---|
351 | /** The recipient process has refused the signal. */
|
---|
352 | #define VERR_SIGNAL_REFUSED (-45)
|
---|
353 | /** A signal is already pending. */
|
---|
354 | #define VERR_SIGNAL_PENDING (-46)
|
---|
355 | /** The signal being posted is not correct. */
|
---|
356 | #define VERR_SIGNAL_INVALID (-47)
|
---|
357 | /** The state changed.
|
---|
358 | * This is a generic error message and needs a context to make sense. */
|
---|
359 | #define VERR_STATE_CHANGED (-48)
|
---|
360 | /** Warning, the state changed.
|
---|
361 | * This is a generic error message and needs a context to make sense. */
|
---|
362 | #define VWRN_STATE_CHANGED 48
|
---|
363 | /** Error while parsing UUID string */
|
---|
364 | #define VERR_INVALID_UUID_FORMAT (-49)
|
---|
365 | /** The specified process was not found. */
|
---|
366 | #define VERR_PROCESS_NOT_FOUND (-50)
|
---|
367 | /** The process specified to a non-block wait had not exitted. */
|
---|
368 | #define VERR_PROCESS_RUNNING (-51)
|
---|
369 | /** Retry the operation. */
|
---|
370 | #define VERR_TRY_AGAIN (-52)
|
---|
371 | /** Generic parse error. */
|
---|
372 | #define VERR_PARSE_ERROR (-53)
|
---|
373 | /** Value out of range. */
|
---|
374 | #define VERR_OUT_OF_RANGE (-54)
|
---|
375 | /** A numeric convertion encountered a value which was too big for the target. */
|
---|
376 | #define VERR_NUMBER_TOO_BIG (-55)
|
---|
377 | /** A numeric convertion encountered a value which was too big for the target. */
|
---|
378 | #define VWRN_NUMBER_TOO_BIG 55
|
---|
379 | /** The number begin converted (string) contained no digits. */
|
---|
380 | #define VERR_NO_DIGITS (-56)
|
---|
381 | /** The number begin converted (string) contained no digits. */
|
---|
382 | #define VWRN_NO_DIGITS 56
|
---|
383 | /** Encountered a '-' during convertion to an unsigned value. */
|
---|
384 | #define VERR_NEGATIVE_UNSIGNED (-57)
|
---|
385 | /** Encountered a '-' during convertion to an unsigned value. */
|
---|
386 | #define VWRN_NEGATIVE_UNSIGNED 57
|
---|
387 | /** Error while characters translation (unicode and so). */
|
---|
388 | #define VERR_NO_TRANSLATION (-58)
|
---|
389 | /** Encountered unicode code point which is reserved for use as endian indicator (0xffff or 0xfffe). */
|
---|
390 | #define VERR_CODE_POINT_ENDIAN_INDICATOR (-59)
|
---|
391 | /** Encountered unicode code point in the surrogate range (0xd800 to 0xdfff). */
|
---|
392 | #define VERR_CODE_POINT_SURROGATE (-60)
|
---|
393 | /** A string claiming to be UTF-8 is incorrectly encoded. */
|
---|
394 | #define VERR_INVALID_UTF8_ENCODING (-61)
|
---|
395 | /** Ad string claiming to be in UTF-16 is incorrectly encoded. */
|
---|
396 | #define VERR_INVALID_UTF16_ENCODING (-62)
|
---|
397 | /** Encountered a unicode code point which cannot be represented as UTF-16. */
|
---|
398 | #define VERR_CANT_RECODE_AS_UTF16 (-63)
|
---|
399 | /** Got an out of memory condition trying to allocate a string. */
|
---|
400 | #define VERR_NO_STR_MEMORY (-64)
|
---|
401 | /** Got an out of memory condition trying to allocate a UTF-16 (/UCS-2) string. */
|
---|
402 | #define VERR_NO_UTF16_MEMORY (-65)
|
---|
403 | /** Get an out of memory condition trying to allocate a code point array. */
|
---|
404 | #define VERR_NO_CODE_POINT_MEMORY (-66)
|
---|
405 | /** Can't free the memory because it's used in mapping. */
|
---|
406 | #define VERR_MEMORY_BUSY (-67)
|
---|
407 | /** The timer can't be started because it's already active. */
|
---|
408 | #define VERR_TIMER_ACTIVE (-68)
|
---|
409 | /** The timer can't be stopped because i's already suspended. */
|
---|
410 | #define VERR_TIMER_SUSPENDED (-69)
|
---|
411 | /** The operation was cancelled by the user. */
|
---|
412 | #define VERR_CANCELLED (-70)
|
---|
413 | /** Failed to initialize a memory object.
|
---|
414 | * Exactly what this means is OS specific. */
|
---|
415 | #define VERR_MEMOBJ_INIT_FAILED (-71)
|
---|
416 | /** Out of memory condition when allocating memory with low physical backing. */
|
---|
417 | #define VERR_NO_LOW_MEMORY (-72)
|
---|
418 | /** Out of memory condition when allocating physical memory (without mapping). */
|
---|
419 | #define VERR_NO_PHYS_MEMORY (-73)
|
---|
420 | /** The address (virtual or physical) is too big. */
|
---|
421 | #define VERR_ADDRESS_TOO_BIG (-74)
|
---|
422 | /** Failed to map a memory object. */
|
---|
423 | #define VERR_MAP_FAILED (-75)
|
---|
424 | /** Trailing characters. */
|
---|
425 | #define VERR_TRAILING_CHARS (-76)
|
---|
426 | /** Trailing characters. */
|
---|
427 | #define VWRN_TRAILING_CHARS 76
|
---|
428 | /** Trailing spaces. */
|
---|
429 | #define VERR_TRAILING_SPACES (-77)
|
---|
430 | /** Trailing spaces. */
|
---|
431 | #define VWRN_TRAILING_SPACES 77
|
---|
432 | /** RTGetOpt: command line option not recognized. */
|
---|
433 | #define VERR_GETOPT_UNKNOWN_OPTION (-78)
|
---|
434 | /** RTGetOpt: command line option needs argument. */
|
---|
435 | #define VERR_GETOPT_REQUIRED_ARGUMENT_MISSING (-79)
|
---|
436 | /** RTGetOpt: command line option has argument with bad format. */
|
---|
437 | #define VERR_GETOPT_INVALID_ARGUMENT_FORMAT (-80)
|
---|
438 | /** Generic not found error. */
|
---|
439 | #define VERR_NOT_FOUND (-81)
|
---|
440 | /** @} */
|
---|
441 |
|
---|
442 |
|
---|
443 | /** @name Common File/Disk/Pipe/etc Status Codes
|
---|
444 | * @{
|
---|
445 | */
|
---|
446 | /** Unresolved (unknown) file i/o error. */
|
---|
447 | #define VERR_FILE_IO_ERROR (-100)
|
---|
448 | /** File/Device open failed. */
|
---|
449 | #define VERR_OPEN_FAILED (-101)
|
---|
450 | /** File not found. */
|
---|
451 | #define VERR_FILE_NOT_FOUND (-102)
|
---|
452 | /** Path not found. */
|
---|
453 | #define VERR_PATH_NOT_FOUND (-103)
|
---|
454 | /** Invalid (malformed) file/path name. */
|
---|
455 | #define VERR_INVALID_NAME (-104)
|
---|
456 | /** File/Device already exists. */
|
---|
457 | #define VERR_ALREADY_EXISTS (-105)
|
---|
458 | /** Too many open files. */
|
---|
459 | #define VERR_TOO_MANY_OPEN_FILES (-106)
|
---|
460 | /** Seek error. */
|
---|
461 | #define VERR_SEEK (-107)
|
---|
462 | /** Seek below file start. */
|
---|
463 | #define VERR_NEGATIVE_SEEK (-108)
|
---|
464 | /** Trying to seek on device. */
|
---|
465 | #define VERR_SEEK_ON_DEVICE (-109)
|
---|
466 | /** Reached the end of the file. */
|
---|
467 | #define VERR_EOF (-110)
|
---|
468 | /** Reached the end of the file. */
|
---|
469 | #define VINF_EOF 110
|
---|
470 | /** Generic file read error. */
|
---|
471 | #define VERR_READ_ERROR (-111)
|
---|
472 | /** Generic file write error. */
|
---|
473 | #define VERR_WRITE_ERROR (-112)
|
---|
474 | /** Write protect error. */
|
---|
475 | #define VERR_WRITE_PROTECT (-113)
|
---|
476 | /** Sharing violation, file is being used by another process. */
|
---|
477 | #define VERR_SHARING_VIOLATION (-114)
|
---|
478 | /** Unable to lock a region of a file. */
|
---|
479 | #define VERR_FILE_LOCK_FAILED (-115)
|
---|
480 | /** File access error, another process has locked a portion of the file. */
|
---|
481 | #define VERR_FILE_LOCK_VIOLATION (-116)
|
---|
482 | /** File or directory can't be created. */
|
---|
483 | #define VERR_CANT_CREATE (-117)
|
---|
484 | /** Directory can't be deleted. */
|
---|
485 | #define VERR_CANT_DELETE_DIRECTORY (-118)
|
---|
486 | /** Can't move file to another disk. */
|
---|
487 | #define VERR_NOT_SAME_DEVICE (-119)
|
---|
488 | /** The filename or extension is too long. */
|
---|
489 | #define VERR_FILENAME_TOO_LONG (-120)
|
---|
490 | /** Media not present in drive. */
|
---|
491 | #define VERR_MEDIA_NOT_PRESENT (-121)
|
---|
492 | /** The type of media was not recognized. Not formatted? */
|
---|
493 | #define VERR_MEDIA_NOT_RECOGNIZED (-122)
|
---|
494 | /** Can't unlock - region was not locked. */
|
---|
495 | #define VERR_FILE_NOT_LOCKED (-123)
|
---|
496 | /** Unrecoverable error: lock was lost. */
|
---|
497 | #define VERR_FILE_LOCK_LOST (-124)
|
---|
498 | /** Can't delete directory with files. */
|
---|
499 | #define VERR_DIR_NOT_EMPTY (-125)
|
---|
500 | /** A directory operation was attempted on a non-directory object. */
|
---|
501 | #define VERR_NOT_A_DIRECTORY (-126)
|
---|
502 | /** A non-directory operation was attempted on a directory object. */
|
---|
503 | #define VERR_IS_A_DIRECTORY (-127)
|
---|
504 | /** Tried to grow a file beyond the limit imposed by the process or the filesystem. */
|
---|
505 | #define VERR_FILE_TOO_BIG (-128)
|
---|
506 | /** @} */
|
---|
507 |
|
---|
508 |
|
---|
509 | /** @name Generic Filesystem I/O Status Codes
|
---|
510 | * @{
|
---|
511 | */
|
---|
512 | /** Unresolved (unknown) disk i/o error. */
|
---|
513 | #define VERR_DISK_IO_ERROR (-150)
|
---|
514 | /** Invalid drive number. */
|
---|
515 | #define VERR_INVALID_DRIVE (-151)
|
---|
516 | /** Disk is full. */
|
---|
517 | #define VERR_DISK_FULL (-152)
|
---|
518 | /** Disk was changed. */
|
---|
519 | #define VERR_DISK_CHANGE (-153)
|
---|
520 | /** Drive is locked. */
|
---|
521 | #define VERR_DRIVE_LOCKED (-154)
|
---|
522 | /** The specified disk or diskette cannot be accessed. */
|
---|
523 | #define VERR_DISK_INVALID_FORMAT (-155)
|
---|
524 | /** Too many symbolic links. */
|
---|
525 | #define VERR_TOO_MANY_SYMLINKS (-156)
|
---|
526 | /** @} */
|
---|
527 |
|
---|
528 |
|
---|
529 | /** @name Generic Directory Enumeration Status Codes
|
---|
530 | * @{
|
---|
531 | */
|
---|
532 | /** Unresolved (unknown) search error. */
|
---|
533 | #define VERR_SEARCH_ERROR (-200)
|
---|
534 | /** No more files found. */
|
---|
535 | #define VERR_NO_MORE_FILES (-201)
|
---|
536 | /** No more search handles available. */
|
---|
537 | #define VERR_NO_MORE_SEARCH_HANDLES (-202)
|
---|
538 | /** RTDirReadEx() failed to retrieve the extra data which was requested. */
|
---|
539 | #define VWRN_NO_DIRENT_INFO 203
|
---|
540 | /** @} */
|
---|
541 |
|
---|
542 |
|
---|
543 | /** @name Generic Device I/O Status Codes
|
---|
544 | * @{
|
---|
545 | */
|
---|
546 | /** Unresolved (unknown) device i/o error. */
|
---|
547 | #define VERR_DEV_IO_ERROR (-250)
|
---|
548 | /** Device i/o: Bad unit. */
|
---|
549 | #define VERR_IO_BAD_UNIT (-251)
|
---|
550 | /** Device i/o: Not ready. */
|
---|
551 | #define VERR_IO_NOT_READY (-252)
|
---|
552 | /** Device i/o: Bad command. */
|
---|
553 | #define VERR_IO_BAD_COMMAND (-253)
|
---|
554 | /** Device i/o: CRC error. */
|
---|
555 | #define VERR_IO_CRC (-254)
|
---|
556 | /** Device i/o: Bad length. */
|
---|
557 | #define VERR_IO_BAD_LENGTH (-255)
|
---|
558 | /** Device i/o: Sector not found. */
|
---|
559 | #define VERR_IO_SECTOR_NOT_FOUND (-256)
|
---|
560 | /** Device i/o: General failure. */
|
---|
561 | #define VERR_IO_GEN_FAILURE (-257)
|
---|
562 | /** @} */
|
---|
563 |
|
---|
564 |
|
---|
565 | /** @name Generic Pipe I/O Status Codes
|
---|
566 | * @{
|
---|
567 | */
|
---|
568 | /** Unresolved (unknown) pipe i/o error. */
|
---|
569 | #define VERR_PIPE_IO_ERROR (-300)
|
---|
570 | /** Broken pipe. */
|
---|
571 | #define VERR_BROKEN_PIPE (-301)
|
---|
572 | /** Bad pipe. */
|
---|
573 | #define VERR_BAD_PIPE (-302)
|
---|
574 | /** Pipe is busy. */
|
---|
575 | #define VERR_PIPE_BUSY (-303)
|
---|
576 | /** No data in pipe. */
|
---|
577 | #define VERR_NO_DATA (-304)
|
---|
578 | /** Pipe is not connected. */
|
---|
579 | #define VERR_PIPE_NOT_CONNECTED (-305)
|
---|
580 | /** More data available in pipe. */
|
---|
581 | #define VERR_MORE_DATA (-306)
|
---|
582 | /** @} */
|
---|
583 |
|
---|
584 |
|
---|
585 | /** @name Generic Semaphores Status Codes
|
---|
586 | * @{
|
---|
587 | */
|
---|
588 | /** Unresolved (unknown) semaphore error. */
|
---|
589 | #define VERR_SEM_ERROR (-350)
|
---|
590 | /** Too many semaphores. */
|
---|
591 | #define VERR_TOO_MANY_SEMAPHORES (-351)
|
---|
592 | /** Exclusive semaphore is owned by another process. */
|
---|
593 | #define VERR_EXCL_SEM_ALREADY_OWNED (-352)
|
---|
594 | /** The semaphore is set and cannot be closed. */
|
---|
595 | #define VERR_SEM_IS_SET (-353)
|
---|
596 | /** The semaphore cannot be set again. */
|
---|
597 | #define VERR_TOO_MANY_SEM_REQUESTS (-354)
|
---|
598 | /** Attempt to release mutex not owned by caller. */
|
---|
599 | #define VERR_NOT_OWNER (-355)
|
---|
600 | /** The semaphore has been opened too many times. */
|
---|
601 | #define VERR_TOO_MANY_OPENS (-356)
|
---|
602 | /** The maximum posts for the event semaphore has been reached. */
|
---|
603 | #define VERR_TOO_MANY_POSTS (-357)
|
---|
604 | /** The event semaphore has already been posted. */
|
---|
605 | #define VERR_ALREADY_POSTED (-358)
|
---|
606 | /** The event semaphore has already been reset. */
|
---|
607 | #define VERR_ALREADY_RESET (-359)
|
---|
608 | /** The semaphore is in use. */
|
---|
609 | #define VERR_SEM_BUSY (-360)
|
---|
610 | /** The previous ownership of this semaphore has ended. */
|
---|
611 | #define VERR_SEM_OWNER_DIED (-361)
|
---|
612 | /** Failed to open semaphore by name - not found. */
|
---|
613 | #define VERR_SEM_NOT_FOUND (-362)
|
---|
614 | /** Semaphore destroyed while waiting. */
|
---|
615 | #define VERR_SEM_DESTROYED (-363)
|
---|
616 | /** Nested ownership requests are not permitted for this semaphore type. */
|
---|
617 | #define VERR_SEM_NESTED (-364)
|
---|
618 | /** Deadlock detected. */
|
---|
619 | #define VERR_DEADLOCK (-365)
|
---|
620 | /** Ping-Pong listen or speak out of turn error. */
|
---|
621 | #define VERR_SEM_OUT_OF_TURN (-366)
|
---|
622 | /** @} */
|
---|
623 |
|
---|
624 |
|
---|
625 | /** @name Generic Network I/O Status Codes
|
---|
626 | * @{
|
---|
627 | */
|
---|
628 | /** Unresolved (unknown) network error. */
|
---|
629 | #define VERR_NET_IO_ERROR (-400)
|
---|
630 | /** The network is busy or is out of resources. */
|
---|
631 | #define VERR_NET_OUT_OF_RESOURCES (-401)
|
---|
632 | /** Net host name not found. */
|
---|
633 | #define VERR_NET_HOST_NOT_FOUND (-402)
|
---|
634 | /** Network path not found. */
|
---|
635 | #define VERR_NET_PATH_NOT_FOUND (-403)
|
---|
636 | /** General network printing error. */
|
---|
637 | #define VERR_NET_PRINT_ERROR (-404)
|
---|
638 | /** The machine is not on the network. */
|
---|
639 | #define VERR_NET_NO_NETWORK (-405)
|
---|
640 | /** Name is not unique on the network. */
|
---|
641 | #define VERR_NET_NOT_UNIQUE_NAME (-406)
|
---|
642 |
|
---|
643 | /* These are BSD networking error codes - numbers correspond, don't mess! */
|
---|
644 | /** Operation in progress. */
|
---|
645 | #define VERR_NET_IN_PROGRESS (-436)
|
---|
646 | /** Operation already in progress. */
|
---|
647 | #define VERR_NET_ALREADY_IN_PROGRESS (-437)
|
---|
648 | /** Attempted socket operation with a non-socket handle.
|
---|
649 | * (This includes closed handles.) */
|
---|
650 | #define VERR_NET_NOT_SOCKET (-438)
|
---|
651 | /** Destination address required. */
|
---|
652 | #define VERR_NET_DEST_ADDRESS_REQUIRED (-439)
|
---|
653 | /** Message too long. */
|
---|
654 | #define VERR_NET_MSG_SIZE (-440)
|
---|
655 | /** Protocol wrong type for socket. */
|
---|
656 | #define VERR_NET_PROTOCOL_TYPE (-441)
|
---|
657 | /** Protocol not available. */
|
---|
658 | #define VERR_NET_PROTOCOL_NOT_AVAILABLE (-442)
|
---|
659 | /** Protocol not supported. */
|
---|
660 | #define VERR_NET_PROTOCOL_NOT_SUPPORTED (-443)
|
---|
661 | /** Socket type not supported. */
|
---|
662 | #define VERR_NET_SOCKET_TYPE_NOT_SUPPORTED (-444)
|
---|
663 | /** Operation not supported. */
|
---|
664 | #define VERR_NET_OPERATION_NOT_SUPPORTED (-445)
|
---|
665 | /** Protocol family not supported. */
|
---|
666 | #define VERR_NET_PROTOCOL_FAMILY_NOT_SUPPORTED (-446)
|
---|
667 | /** Address family not supported by protocol family. */
|
---|
668 | #define VERR_NET_ADDRESS_FAMILY_NOT_SUPPORTED (-447)
|
---|
669 | /** Address already in use. */
|
---|
670 | #define VERR_NET_ADDRESS_IN_USE (-448)
|
---|
671 | /** Can't assign requested address. */
|
---|
672 | #define VERR_NET_ADDRESS_NOT_AVAILABLE (-449)
|
---|
673 | /** Network is down. */
|
---|
674 | #define VERR_NET_DOWN (-450)
|
---|
675 | /** Network is unreachable. */
|
---|
676 | #define VERR_NET_UNREACHABLE (-451)
|
---|
677 | /** Network dropped connection on reset. */
|
---|
678 | #define VERR_NET_CONNECTION_RESET (-452)
|
---|
679 | /** Software caused connection abort. */
|
---|
680 | #define VERR_NET_CONNECTION_ABORTED (-453)
|
---|
681 | /** Connection reset by peer. */
|
---|
682 | #define VERR_NET_CONNECTION_RESET_BY_PEER (-454)
|
---|
683 | /** No buffer space available. */
|
---|
684 | #define VERR_NET_NO_BUFFER_SPACE (-455)
|
---|
685 | /** Socket is already connected. */
|
---|
686 | #define VERR_NET_ALREADY_CONNECTED (-456)
|
---|
687 | /** Socket is not connected. */
|
---|
688 | #define VERR_NET_NOT_CONNECTED (-457)
|
---|
689 | /** Can't send after socket shutdown. */
|
---|
690 | #define VERR_NET_SHUTDOWN (-458)
|
---|
691 | /** Too many references: can't splice. */
|
---|
692 | #define VERR_NET_TOO_MANY_REFERENCES (-459)
|
---|
693 | /** Too many references: can't splice. */
|
---|
694 | #define VERR_NET_CONNECTION_TIMED_OUT (-460)
|
---|
695 | /** Connection refused. */
|
---|
696 | #define VERR_NET_CONNECTION_REFUSED (-461)
|
---|
697 | /* ELOOP is not net. */
|
---|
698 | /* ENAMETOOLONG is not net. */
|
---|
699 | /** Host is down. */
|
---|
700 | #define VERR_NET_HOST_DOWN (-464)
|
---|
701 | /** No route to host. */
|
---|
702 | #define VERR_NET_HOST_UNREACHABLE (-465)
|
---|
703 | /** @} */
|
---|
704 |
|
---|
705 |
|
---|
706 | /** @name TCP Status Codes
|
---|
707 | * @{
|
---|
708 | */
|
---|
709 | /** Stop the TCP server. */
|
---|
710 | #define VERR_TCP_SERVER_STOP (-500)
|
---|
711 | /** The server was stopped. */
|
---|
712 | #define VINF_TCP_SERVER_STOP 500
|
---|
713 | /** @} */
|
---|
714 |
|
---|
715 |
|
---|
716 | /** @name L4 Specific Status Codes
|
---|
717 | * @{
|
---|
718 | */
|
---|
719 | /** Invalid offset in an L4 dataspace */
|
---|
720 | #define VERR_L4_INVALID_DS_OFFSET (-550)
|
---|
721 | /** IPC error */
|
---|
722 | #define VERR_IPC (-551)
|
---|
723 | /** Item already used */
|
---|
724 | #define VERR_RESOURCE_IN_USE (-552)
|
---|
725 | /** Source/destination not found */
|
---|
726 | #define VERR_IPC_PROCESS_NOT_FOUND (-553)
|
---|
727 | /** Receive timeout */
|
---|
728 | #define VERR_IPC_RECEIVE_TIMEOUT (-554)
|
---|
729 | /** Send timeout */
|
---|
730 | #define VERR_IPC_SEND_TIMEOUT (-555)
|
---|
731 | /** Receive cancelled */
|
---|
732 | #define VERR_IPC_RECEIVE_CANCELLED (-556)
|
---|
733 | /** Send cancelled */
|
---|
734 | #define VERR_IPC_SEND_CANCELLED (-557)
|
---|
735 | /** Receive aborted */
|
---|
736 | #define VERR_IPC_RECEIVE_ABORTED (-558)
|
---|
737 | /** Send aborted */
|
---|
738 | #define VERR_IPC_SEND_ABORTED (-559)
|
---|
739 | /** Couldn't map pages during receive */
|
---|
740 | #define VERR_IPC_RECEIVE_MAP_FAILED (-560)
|
---|
741 | /** Couldn't map pages during send */
|
---|
742 | #define VERR_IPC_SEND_MAP_FAILED (-561)
|
---|
743 | /** Send pagefault timeout in receive */
|
---|
744 | #define VERR_IPC_RECEIVE_SEND_PF_TIMEOUT (-562)
|
---|
745 | /** Send pagefault timeout in send */
|
---|
746 | #define VERR_IPC_SEND_SEND_PF_TIMEOUT (-563)
|
---|
747 | /** (One) receive buffer was too small, or too few buffers */
|
---|
748 | #define VINF_IPC_RECEIVE_MSG_CUT 564
|
---|
749 | /** (One) send buffer was too small, or too few buffers */
|
---|
750 | #define VINF_IPC_SEND_MSG_CUT 565
|
---|
751 | /** Dataspace manager server not found */
|
---|
752 | #define VERR_L4_DS_MANAGER_NOT_FOUND (-566)
|
---|
753 | /** @} */
|
---|
754 |
|
---|
755 |
|
---|
756 | /** @name Loader Status Codes.
|
---|
757 | * @{
|
---|
758 | */
|
---|
759 | /** Invalid executable signature. */
|
---|
760 | #define VERR_INVALID_EXE_SIGNATURE (-600)
|
---|
761 | /** The iprt loader recognized a ELF image, but doesn't support loading it. */
|
---|
762 | #define VERR_ELF_EXE_NOT_SUPPORTED (-601)
|
---|
763 | /** The iprt loader recognized a PE image, but doesn't support loading it. */
|
---|
764 | #define VERR_PE_EXE_NOT_SUPPORTED (-602)
|
---|
765 | /** The iprt loader recognized a LX image, but doesn't support loading it. */
|
---|
766 | #define VERR_LX_EXE_NOT_SUPPORTED (-603)
|
---|
767 | /** The iprt loader recognized a LE image, but doesn't support loading it. */
|
---|
768 | #define VERR_LE_EXE_NOT_SUPPORTED (-604)
|
---|
769 | /** The iprt loader recognized a NE image, but doesn't support loading it. */
|
---|
770 | #define VERR_NE_EXE_NOT_SUPPORTED (-605)
|
---|
771 | /** The iprt loader recognized a MZ image, but doesn't support loading it. */
|
---|
772 | #define VERR_MZ_EXE_NOT_SUPPORTED (-606)
|
---|
773 | /** The iprt loader recognized an a.out image, but doesn't support loading it. */
|
---|
774 | #define VERR_AOUT_EXE_NOT_SUPPORTED (-607)
|
---|
775 | /** Bad executable. */
|
---|
776 | #define VERR_BAD_EXE_FORMAT (-608)
|
---|
777 | /** Symbol (export) not found. */
|
---|
778 | #define VERR_SYMBOL_NOT_FOUND (-609)
|
---|
779 | /** Module not found. */
|
---|
780 | #define VERR_MODULE_NOT_FOUND (-610)
|
---|
781 | /** The loader resolved an external symbol to an address to big for the image format. */
|
---|
782 | #define VERR_SYMBOL_VALUE_TOO_BIG (-611)
|
---|
783 | /** The image is too big. */
|
---|
784 | #define VERR_IMAGE_TOO_BIG (-612)
|
---|
785 | /** The image base address is to high for this image type. */
|
---|
786 | #define VERR_IMAGE_BASE_TOO_HIGH (-614)
|
---|
787 | /** The PE loader encountered delayed imports, a feature which hasn't been implemented yet. */
|
---|
788 | #define VERR_LDRPE_DELAY_IMPORT (-620)
|
---|
789 | /** The PE loader doesn't have a clue what the security data directory entry is all about. */
|
---|
790 | #define VERR_LDRPE_SECURITY (-621)
|
---|
791 | /** The PE loader doesn't know how to deal with the global pointer data directory entry yet. */
|
---|
792 | #define VERR_LDRPE_GLOBALPTR (-622)
|
---|
793 | /** The PE loader doesn't support the TLS data directory yet. */
|
---|
794 | #define VERR_LDRPE_TLS (-623)
|
---|
795 | /** The PE loader doesn't grok the COM descriptor data directory entry. */
|
---|
796 | #define VERR_LDRPE_COM_DESCRIPTOR (-624)
|
---|
797 | /** The PE loader encountered an unknown load config directory/header size. */
|
---|
798 | #define VERR_LDRPE_LOAD_CONFIG_SIZE (-625)
|
---|
799 | /** The PE loader encountered a lock prefix table, a feature which hasn't been implemented yet. */
|
---|
800 | #define VERR_LDRPE_LOCK_PREFIX_TABLE (-626)
|
---|
801 | /** The ELF loader doesn't handle foreign endianness. */
|
---|
802 | #define VERR_LDRELF_ODD_ENDIAN (-630)
|
---|
803 | /** The ELF image is 'dynamic', the ELF loader can only deal with 'relocatable' images at present. */
|
---|
804 | #define VERR_LDRELF_DYN (-631)
|
---|
805 | /** The ELF image is 'executable', the ELF loader can only deal with 'relocatable' images at present. */
|
---|
806 | #define VERR_LDRELF_EXEC (-632)
|
---|
807 | /** The ELF image was created for an unsupported target machine type. */
|
---|
808 | #define VERR_LDRELF_MACHINE (-633)
|
---|
809 | /** The ELF version is not supported. */
|
---|
810 | #define VERR_LDRELF_VERSION (-634)
|
---|
811 | /** The ELF loader cannot handle multiple SYMTAB sections. */
|
---|
812 | #define VERR_LDRELF_MULTIPLE_SYMTABS (-635)
|
---|
813 | /** The ELF loader encountered a relocation type which is not implemented. */
|
---|
814 | #define VERR_LDRELF_RELOCATION_NOT_SUPPORTED (-636)
|
---|
815 | /** The ELF loader encountered a bad symbol index. */
|
---|
816 | #define VERR_LDRELF_INVALID_SYMBOL_INDEX (-637)
|
---|
817 | /** The ELF loader encountered an invalid symbol name offset. */
|
---|
818 | #define VERR_LDRELF_INVALID_SYMBOL_NAME_OFFSET (-638)
|
---|
819 | /** The ELF loader encountered an invalid relocation offset. */
|
---|
820 | #define VERR_LDRELF_INVALID_RELOCATION_OFFSET (-639)
|
---|
821 | /** The ELF loader didn't find the symbol/string table for the image. */
|
---|
822 | #define VERR_LDRELF_NO_SYMBOL_OR_NO_STRING_TABS (-640)
|
---|
823 | /** @}*/
|
---|
824 |
|
---|
825 | /** @name Debug Info Reader Status Codes.
|
---|
826 | * @{
|
---|
827 | */
|
---|
828 | /** The specified segment:offset address was invalid. Typically an attempt at
|
---|
829 | * addressing outside the segment boundrary. */
|
---|
830 | #define VERR_DBGMOD_INVALID_ADDRESS (-650)
|
---|
831 | /** @} */
|
---|
832 |
|
---|
833 | /** @name Request Packet Status Codes.
|
---|
834 | * @{
|
---|
835 | */
|
---|
836 | /** Invalid RT request type.
|
---|
837 | * For the RTReqAlloc() case, the caller just specified an illegal enmType. For
|
---|
838 | * all the other occurences it means indicates corruption, broken logic, or stupid
|
---|
839 | * interface user. */
|
---|
840 | #define VERR_RT_REQUEST_INVALID_TYPE (-700)
|
---|
841 | /** Invalid RT request state.
|
---|
842 | * The state of the request packet was not the expected and accepted one(s). Either
|
---|
843 | * the interface user screwed up, or we've got corruption/broken logic. */
|
---|
844 | #define VERR_RT_REQUEST_STATE (-701)
|
---|
845 | /** Invalid RT request packet.
|
---|
846 | * One or more of the RT controlled packet members didn't contain the correct
|
---|
847 | * values. Some thing's broken. */
|
---|
848 | #define VERR_RT_REQUEST_INVALID_PACKAGE (-702)
|
---|
849 | /** The status field has not been updated yet as the request is still
|
---|
850 | * pending completion. Someone queried the iStatus field before the request
|
---|
851 | * has been fully processed. */
|
---|
852 | #define VERR_RT_REQUEST_STATUS_STILL_PENDING (-703)
|
---|
853 | /** The request has been freed, don't read the status now.
|
---|
854 | * Someone is reading the iStatus field of a freed request packet. */
|
---|
855 | #define VERR_RT_REQUEST_STATUS_FREED (-704)
|
---|
856 | /** @} */
|
---|
857 |
|
---|
858 | /** @name Environment Status Code
|
---|
859 | * @{
|
---|
860 | */
|
---|
861 | /** The specified environment variable was not found. (RTEnvGetEx) */
|
---|
862 | #define VERR_ENV_VAR_NOT_FOUND (-750)
|
---|
863 | /** The specified environment variable was not found. (RTEnvUnsetEx) */
|
---|
864 | #define VINF_ENV_VAR_NOT_FOUND (750)
|
---|
865 | /** @} */
|
---|
866 |
|
---|
867 | /** @name Multiprocessor Status Code
|
---|
868 | * @{
|
---|
869 | */
|
---|
870 | /** The specified cpu is offline. */
|
---|
871 | #define VERR_CPU_OFFLINE (-800)
|
---|
872 | /** The specified cpu was not found. */
|
---|
873 | #define VERR_CPU_NOT_FOUND (-801)
|
---|
874 | /** @} */
|
---|
875 |
|
---|
876 | /* SED-END */
|
---|
877 |
|
---|
878 | /** @} */
|
---|
879 |
|
---|
880 | __END_DECLS
|
---|
881 |
|
---|
882 | #endif
|
---|
883 |
|
---|