Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

err.h

Go to the documentation of this file.
/** @file
 * IPRT - Status Codes.
 */

/*
 * Copyright (C) 2006-2009 Oracle Corporation
 *
 * This file is part of VirtualBox Open Source Edition (OSE), as
 * available from http://www.virtualbox.org. This file is free software;
 * you can redistribute it and/or modify it under the terms of the GNU
 * General Public License (GPL) as published by the Free Software
 * Foundation, in version 2 as it comes in the "COPYING" file of the
 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
 *
 * The contents of this file may alternatively be used under the terms
 * of the Common Development and Distribution License Version 1.0
 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
 * VirtualBox OSE distribution, in which case the provisions of the
 * CDDL are applicable instead of those of the GPL.
 *
 * You may elect to license modified versions of this file under the
 * terms and conditions of either the GPL or the CDDL or both.
 */

#ifndef ___iprt_err_h
#define ___iprt_err_h

#include <iprt/cdefs.h>
#include <iprt/types.h>

RT_C_DECLS_BEGIN

/** @defgroup grp_rt_err            RTErr - Status Codes
 * @ingroup grp_rt
 * @{
 */

/** @defgroup grp_rt_err_hlp        Status Code Helpers
 * @ingroup grp_rt_err
 * @{
 */

#ifdef __cplusplus
/**
 * Strict type validation class.
 *
 * This is only really useful for type checking the arguments to RT_SUCCESS,
 * RT_SUCCESS_NP, RT_FAILURE and RT_FAILURE_NP.  The RTErrStrictType2
 * constructor is for integration with external status code strictness regimes.
 */
class RTErrStrictType
{
protected:
    int32_t m_rc;

public:
    /**
     * Constructor for interaction with external status code strictness regimes.
     *
     * This is a special constructor for helping external return code validator
     * classes interact cleanly with RT_SUCCESS, RT_SUCCESS_NP, RT_FAILURE and
     * RT_FAILURE_NP while barring automatic cast to integer.
     *
     * @param   rcObj       IPRT status code object from an automatic cast.
     */
    RTErrStrictType(RTErrStrictType2 const rcObj)
        : m_rc(rcObj.getValue())
    {
    }

    /**
     * Integer constructor used by RT_SUCCESS_NP.
     *
     * @param   rc          IPRT style status code.
     */
    RTErrStrictType(int32_t rc)
        : m_rc(rc)
    {
    }

#if 0 /** @todo figure where int32_t is long instead of int. */
    /**
     * Integer constructor used by RT_SUCCESS_NP.
     *
     * @param   rc          IPRT style status code.
     */
    RTErrStrictType(signed int rc)
        : m_rc(rc)
    {
    }
#endif

    /**
     * Test for success.
     */
    bool success() const
    {
        return m_rc >= 0;
    }

private:
    /** @name Try ban a number of wrong types.
     * @{ */
    RTErrStrictType(uint8_t rc)         : m_rc(-999) { NOREF(rc); }
    RTErrStrictType(uint16_t rc)        : m_rc(-999) { NOREF(rc); }
    RTErrStrictType(uint32_t rc)        : m_rc(-999) { NOREF(rc); }
    RTErrStrictType(uint64_t rc)        : m_rc(-999) { NOREF(rc); }
    RTErrStrictType(int8_t rc)          : m_rc(-999) { NOREF(rc); }
    RTErrStrictType(int16_t rc)         : m_rc(-999) { NOREF(rc); }
    RTErrStrictType(int64_t rc)         : m_rc(-999) { NOREF(rc); }
    /** @todo fight long here - clashes with int32_t/int64_t on some platforms. */
    /** @} */
};
#endif /* __cplusplus */


/** @def RTERR_STRICT_RC
 * Indicates that RT_SUCCESS_NP, RT_SUCCESS, RT_FAILURE_NP and RT_FAILURE should
 * make type enforcing at compile time.
 *
 * @remarks     Only define this for C++ code.
 */
#if defined(__cplusplus) \
 && !defined(RTERR_STRICT_RC) \
 && (   defined(DOXYGEN_RUNNING) \
     || defined(DEBUG) \
     || defined(RT_STRICT) )
# define RTERR_STRICT_RC        1
#endif


/** @def RT_SUCCESS
 * Check for success. We expect success in normal cases, that is the code path depending on
 * this check is normally taken. To prevent any prediction use RT_SUCCESS_NP instead.
 *
 * @returns true if rc indicates success.
 * @returns false if rc indicates failure.
 *
 * @param   rc  The iprt status code to test.
 */
00142 #define RT_SUCCESS(rc)      ( RT_LIKELY(RT_SUCCESS_NP(rc)) )

/** @def RT_SUCCESS_NP
 * Check for success. Don't predict the result.
 *
 * @returns true if rc indicates success.
 * @returns false if rc indicates failure.
 *
 * @param   rc  The iprt status code to test.
 */
#ifdef RTERR_STRICT_RC
# define RT_SUCCESS_NP(rc)   ( RTErrStrictType(rc).success() )
#else
00155 # define RT_SUCCESS_NP(rc)   ( (int)(rc) >= VINF_SUCCESS )
#endif

/** @def RT_FAILURE
 * Check for failure. We don't expect in normal cases, that is the code path depending on
 * this check is normally NOT taken. To prevent any prediction use RT_FAILURE_NP instead.
 *
 * @returns true if rc indicates failure.
 * @returns false if rc indicates success.
 *
 * @param   rc  The iprt status code to test.
 */
00167 #define RT_FAILURE(rc)      ( RT_UNLIKELY(!RT_SUCCESS_NP(rc)) )

/** @def RT_FAILURE_NP
 * Check for failure. Don't predict the result.
 *
 * @returns true if rc indicates failure.
 * @returns false if rc indicates success.
 *
 * @param   rc  The iprt status code to test.
 */
00177 #define RT_FAILURE_NP(rc)   ( !RT_SUCCESS_NP(rc) )

/**
 * Converts a Darwin HRESULT error to an iprt status code.
 *
 * @returns iprt status code.
 * @param   iNativeCode    HRESULT error code.
 * @remark  Darwin ring-3 only.
 */
RTDECL(int)  RTErrConvertFromDarwinCOM(int32_t iNativeCode);

/**
 * Converts a Darwin IOReturn error to an iprt status code.
 *
 * @returns iprt status code.
 * @param   iNativeCode    IOReturn error code.
 * @remark  Darwin only.
 */
RTDECL(int)  RTErrConvertFromDarwinIO(int iNativeCode);

/**
 * Converts a Darwin kern_return_t error to an iprt status code.
 *
 * @returns iprt status code.
 * @param   iNativeCode    kern_return_t error code.
 * @remark  Darwin only.
 */
RTDECL(int)  RTErrConvertFromDarwinKern(int iNativeCode);

/**
 * Converts a Darwin error to an iprt status code.
 *
 * This will consult RTErrConvertFromDarwinKern, RTErrConvertFromDarwinIO
 * and RTErrConvertFromDarwinCOM in this order. The latter is ring-3 only as it
 * doesn't apply elsewhere.
 *
 * @returns iprt status code.
 * @param   iNativeCode    Darwin error code.
 * @remarks Darwin only.
 * @remarks This is recommended over RTErrConvertFromDarwinKern and RTErrConvertFromDarwinIO
 *          since these are really just subsets of the same error space.
 */
RTDECL(int)  RTErrConvertFromDarwin(int iNativeCode);

/**
 * Converts errno to iprt status code.
 *
 * @returns iprt status code.
 * @param   uNativeCode    errno code.
 */
RTDECL(int)  RTErrConvertFromErrno(unsigned uNativeCode);

/**
 * Converts a L4 errno to a iprt status code.
 *
 * @returns iprt status code.
 * @param   uNativeCode l4 errno.
 * @remark  L4 only.
 */
RTDECL(int)  RTErrConvertFromL4Errno(unsigned uNativeCode);

/**
 * Converts NT status code to iprt status code.
 *
 * Needless to say, this is only available on NT and winXX targets.
 *
 * @returns iprt status code.
 * @param   lNativeCode    NT status code.
 * @remark  Windows only.
 */
RTDECL(int)  RTErrConvertFromNtStatus(long lNativeCode);

/**
 * Converts OS/2 error code to iprt status code.
 *
 * @returns iprt status code.
 * @param   uNativeCode    OS/2 error code.
 * @remark  OS/2 only.
 */
RTDECL(int)  RTErrConvertFromOS2(unsigned uNativeCode);

/**
 * Converts Win32 error code to iprt status code.
 *
 * @returns iprt status code.
 * @param   uNativeCode    Win32 error code.
 * @remark  Windows only.
 */
RTDECL(int)  RTErrConvertFromWin32(unsigned uNativeCode);

/**
 * Converts an iprt status code to a errno status code.
 *
 * @returns errno status code.
 * @param   iErr    iprt status code.
 */
RTDECL(int)  RTErrConvertToErrno(int iErr);


#ifdef IN_RING3

/**
 * iprt status code message.
 */
typedef struct RTSTATUSMSG
{
    /** Pointer to the short message string. */
    const char *pszMsgShort;
    /** Pointer to the full message string. */
    const char *pszMsgFull;
    /** Pointer to the define string. */
    const char *pszDefine;
    /** Status code number. */
    int         iCode;
} RTSTATUSMSG;
/** Pointer to iprt status code message. */
typedef RTSTATUSMSG *PRTSTATUSMSG;
/** Pointer to const iprt status code message. */
typedef const RTSTATUSMSG *PCRTSTATUSMSG;

/**
 * Get the message structure corresponding to a given iprt status code.
 *
 * @returns Pointer to read-only message description.
 * @param   rc      The status code.
 */
RTDECL(PCRTSTATUSMSG) RTErrGet(int rc);

/**
 * Get the define corresponding to a given iprt status code.
 *
 * @returns Pointer to read-only string with the \#define identifier.
 * @param   rc      The status code.
 */
#define RTErrGetDefine(rc)      (RTErrGet(rc)->pszDefine)

/**
 * Get the short description corresponding to a given iprt status code.
 *
 * @returns Pointer to read-only string with the description.
 * @param   rc      The status code.
 */
#define RTErrGetShort(rc)       (RTErrGet(rc)->pszMsgShort)

/**
 * Get the full description corresponding to a given iprt status code.
 *
 * @returns Pointer to read-only string with the description.
 * @param   rc      The status code.
 */
#define RTErrGetFull(rc)        (RTErrGet(rc)->pszMsgFull)

#ifdef RT_OS_WINDOWS
/**
 * Windows error code message.
 */
typedef struct RTWINERRMSG
{
    /** Pointer to the full message string. */
    const char *pszMsgFull;
    /** Pointer to the define string. */
    const char *pszDefine;
    /** Error code number. */
    long        iCode;
} RTWINERRMSG;
/** Pointer to Windows error code message. */
typedef RTWINERRMSG *PRTWINERRMSG;
/** Pointer to const Windows error code message. */
typedef const RTWINERRMSG *PCRTWINERRMSG;

/**
 * Get the message structure corresponding to a given Windows error code.
 *
 * @returns Pointer to read-only message description.
 * @param   rc      The status code.
 */
RTDECL(PCRTWINERRMSG) RTErrWinGet(long rc);

/** On windows COM errors are part of the Windows error database. */
typedef RTWINERRMSG RTCOMERRMSG;

#else  /* !RT_OS_WINDOWS */

/**
 * COM/XPCOM error code message.
 */
typedef struct RTCOMERRMSG
{
    /** Pointer to the full message string. */
    const char *pszMsgFull;
    /** Pointer to the define string. */
    const char *pszDefine;
    /** Error code number. */
    uint32_t    iCode;
} RTCOMERRMSG;
#endif /* !RT_OS_WINDOWS */
/** Pointer to a XPCOM/COM error code message. */
typedef RTCOMERRMSG *PRTCOMERRMSG;
/** Pointer to const a XPCOM/COM error code message. */
typedef const RTCOMERRMSG *PCRTCOMERRMSG;

/**
 * Get the message structure corresponding to a given COM/XPCOM error code.
 *
 * @returns Pointer to read-only message description.
 * @param   rc      The status code.
 */
RTDECL(PCRTCOMERRMSG) RTErrCOMGet(uint32_t rc);

#endif /* IN_RING3 */

/** @} */


/* SED-START */

/** @name Misc. Status Codes
 * @{
 */
/** Success. */
00397 #define VINF_SUCCESS                        0

/** General failure - DON'T USE THIS!!! */
00400 #define VERR_GENERAL_FAILURE                (-1)
/** Invalid parameter. */
00402 #define VERR_INVALID_PARAMETER              (-2)
/** Invalid parameter. */
00404 #define VWRN_INVALID_PARAMETER              2
/** Invalid magic or cookie. */
00406 #define VERR_INVALID_MAGIC                  (-3)
/** Invalid magic or cookie. */
00408 #define VWRN_INVALID_MAGIC                  3
/** Invalid loader handle. */
00410 #define VERR_INVALID_HANDLE                 (-4)
/** Invalid loader handle. */
00412 #define VWRN_INVALID_HANDLE                 4
/** Failed to lock the address range. */
00414 #define VERR_LOCK_FAILED                    (-5)
/** Invalid memory pointer. */
00416 #define VERR_INVALID_POINTER                (-6)
/** Failed to patch the IDT. */
00418 #define VERR_IDT_FAILED                     (-7)
/** Memory allocation failed. */
00420 #define VERR_NO_MEMORY                      (-8)
/** Already loaded. */
00422 #define VERR_ALREADY_LOADED                 (-9)
/** Permission denied. */
00424 #define VERR_PERMISSION_DENIED              (-10)
/** Permission denied. */
00426 #define VINF_PERMISSION_DENIED              10
/** Version mismatch. */
00428 #define VERR_VERSION_MISMATCH               (-11)
/** The request function is not implemented. */
00430 #define VERR_NOT_IMPLEMENTED                (-12)

/** Failed to allocate temporary memory. */
00433 #define VERR_NO_TMP_MEMORY                  (-20)
/** Invalid file mode mask (RTFMODE). */
00435 #define VERR_INVALID_FMODE                  (-21)
/** Incorrect call order. */
00437 #define VERR_WRONG_ORDER                    (-22)
/** There is no TLS (thread local storage) available for storing the current thread. */
00439 #define VERR_NO_TLS_FOR_SELF                (-23)
/** Failed to set the TLS (thread local storage) entry which points to our thread structure. */
00441 #define VERR_FAILED_TO_SET_SELF_TLS         (-24)
/** Not able to allocate contiguous memory. */
00443 #define VERR_NO_CONT_MEMORY                 (-26)
/** No memory available for page table or page directory. */
00445 #define VERR_NO_PAGE_MEMORY                 (-27)
/** Already initialized. */
00447 #define VINF_ALREADY_INITIALIZED            28
/** The specified thread is dead. */
00449 #define VERR_THREAD_IS_DEAD                 (-29)
/** The specified thread is not waitable. */
00451 #define VERR_THREAD_NOT_WAITABLE            (-30)
/** Pagetable not present. */
00453 #define VERR_PAGE_TABLE_NOT_PRESENT         (-31)
/** Invalid context.
 * Typically an API was used by the wrong thread. */
00456 #define VERR_INVALID_CONTEXT                (-32)
/** The per process timer is busy. */
00458 #define VERR_TIMER_BUSY                     (-33)
/** Address conflict. */
00460 #define VERR_ADDRESS_CONFLICT               (-34)
/** Unresolved (unknown) host platform error. */
00462 #define VERR_UNRESOLVED_ERROR               (-35)
/** Invalid function. */
00464 #define VERR_INVALID_FUNCTION               (-36)
/** Not supported. */
00466 #define VERR_NOT_SUPPORTED                  (-37)
/** Access denied. */
00468 #define VERR_ACCESS_DENIED                  (-38)
/** Call interrupted. */
00470 #define VERR_INTERRUPTED                    (-39)
/** Timeout. */
00472 #define VERR_TIMEOUT                        (-40)
/** Buffer too small to save result. */
00474 #define VERR_BUFFER_OVERFLOW                (-41)
/** Buffer too small to save result. */
00476 #define VINF_BUFFER_OVERFLOW                41
/** Data size overflow. */
00478 #define VERR_TOO_MUCH_DATA                  (-42)
/** Max threads number reached. */
00480 #define VERR_MAX_THRDS_REACHED              (-43)
/** Max process number reached. */
00482 #define VERR_MAX_PROCS_REACHED              (-44)
/** The recipient process has refused the signal. */
00484 #define VERR_SIGNAL_REFUSED                 (-45)
/** A signal is already pending. */
00486 #define VERR_SIGNAL_PENDING                 (-46)
/** The signal being posted is not correct. */
00488 #define VERR_SIGNAL_INVALID                 (-47)
/** The state changed.
 * This is a generic error message and needs a context to make sense. */
00491 #define VERR_STATE_CHANGED                  (-48)
/** Warning, the state changed.
 * This is a generic error message and needs a context to make sense. */
00494 #define VWRN_STATE_CHANGED                  48
/** Error while parsing UUID string */
00496 #define VERR_INVALID_UUID_FORMAT            (-49)
/** The specified process was not found. */
00498 #define VERR_PROCESS_NOT_FOUND              (-50)
/** The process specified to a non-block wait had not exited. */
00500 #define VERR_PROCESS_RUNNING                (-51)
/** Retry the operation. */
00502 #define VERR_TRY_AGAIN                      (-52)
/** Retry the operation. */
00504 #define VINF_TRY_AGAIN                      52
/** Generic parse error. */
00506 #define VERR_PARSE_ERROR                    (-53)
/** Value out of range. */
00508 #define VERR_OUT_OF_RANGE                   (-54)
/** A numeric conversion encountered a value which was too big for the target. */
00510 #define VERR_NUMBER_TOO_BIG                 (-55)
/** A numeric conversion encountered a value which was too big for the target. */
00512 #define VWRN_NUMBER_TOO_BIG                 55
/** The number begin converted (string) contained no digits. */
00514 #define VERR_NO_DIGITS                      (-56)
/** The number begin converted (string) contained no digits. */
00516 #define VWRN_NO_DIGITS                      56
/** Encountered a '-' during conversion to an unsigned value. */
00518 #define VERR_NEGATIVE_UNSIGNED              (-57)
/** Encountered a '-' during conversion to an unsigned value. */
00520 #define VWRN_NEGATIVE_UNSIGNED              57
/** Error while characters translation (unicode and so). */
00522 #define VERR_NO_TRANSLATION                 (-58)
/** Encountered unicode code point which is reserved for use as endian indicator (0xffff or 0xfffe). */
00524 #define VERR_CODE_POINT_ENDIAN_INDICATOR    (-59)
/** Encountered unicode code point in the surrogate range (0xd800 to 0xdfff). */
00526 #define VERR_CODE_POINT_SURROGATE           (-60)
/** A string claiming to be UTF-8 is incorrectly encoded. */
00528 #define VERR_INVALID_UTF8_ENCODING          (-61)
/** Ad string claiming to be in UTF-16 is incorrectly encoded. */
00530 #define VERR_INVALID_UTF16_ENCODING         (-62)
/** Encountered a unicode code point which cannot be represented as UTF-16. */
00532 #define VERR_CANT_RECODE_AS_UTF16           (-63)
/** Got an out of memory condition trying to allocate a string. */
00534 #define VERR_NO_STR_MEMORY                  (-64)
/** Got an out of memory condition trying to allocate a UTF-16 (/UCS-2) string. */
00536 #define VERR_NO_UTF16_MEMORY                (-65)
/** Get an out of memory condition trying to allocate a code point array. */
00538 #define VERR_NO_CODE_POINT_MEMORY           (-66)
/** Can't free the memory because it's used in mapping. */
00540 #define VERR_MEMORY_BUSY                    (-67)
/** The timer can't be started because it's already active. */
00542 #define VERR_TIMER_ACTIVE                   (-68)
/** The timer can't be stopped because i's already suspended. */
00544 #define VERR_TIMER_SUSPENDED                (-69)
/** The operation was cancelled by the user (copy) or another thread (local ipc). */
00546 #define VERR_CANCELLED                      (-70)
/** Failed to initialize a memory object.
 * Exactly what this means is OS specific. */
00549 #define VERR_MEMOBJ_INIT_FAILED             (-71)
/** Out of memory condition when allocating memory with low physical backing. */
00551 #define VERR_NO_LOW_MEMORY                  (-72)
/** Out of memory condition when allocating physical memory (without mapping). */
00553 #define VERR_NO_PHYS_MEMORY                 (-73)
/** The address (virtual or physical) is too big. */
00555 #define VERR_ADDRESS_TOO_BIG                (-74)
/** Failed to map a memory object. */
00557 #define VERR_MAP_FAILED                     (-75)
/** Trailing characters. */
00559 #define VERR_TRAILING_CHARS                 (-76)
/** Trailing characters. */
00561 #define VWRN_TRAILING_CHARS                 76
/** Trailing spaces. */
00563 #define VERR_TRAILING_SPACES                (-77)
/** Trailing spaces. */
00565 #define VWRN_TRAILING_SPACES                77
/** Generic not found error. */
00567 #define VERR_NOT_FOUND                      (-78)
/** Generic not found warning. */
00569 #define VWRN_NOT_FOUND                      78
/** Generic invalid state error. */
00571 #define VERR_INVALID_STATE                  (-79)
/** Generic invalid state warning. */
00573 #define VWRN_INVALID_STATE                  79
/** Generic out of resources error. */
00575 #define VERR_OUT_OF_RESOURCES               (-80)
/** Generic out of resources warning. */
00577 #define VWRN_OUT_OF_RESOURCES               80
/** No more handles available, too many open handles. */
00579 #define VERR_NO_MORE_HANDLES                (-81)
/** Preemption is disabled.
 * The requested operation can only be performed when preemption is enabled. */
00582 #define VERR_PREEMPT_DISABLED               (-82)
/** End of string. */
00584 #define VERR_END_OF_STRING                  (-83)
/** End of string. */
00586 #define VINF_END_OF_STRING                  83
/** A page count is out of range. */
00588 #define VERR_PAGE_COUNT_OUT_OF_RANGE        (-84)
/** Generic object destroyed status. */
00590 #define VERR_OBJECT_DESTROYED               (-85)
/** Generic object was destroyed by the call status. */
00592 #define VINF_OBJECT_DESTROYED               85
/** Generic dangling objects status. */
00594 #define VERR_DANGLING_OBJECTS               (-86)
/** Generic dangling objects status. */
00596 #define VWRN_DANGLING_OBJECTS               86
/** Invalid Base64 encoding. */
00598 #define VERR_INVALID_BASE64_ENCODING        (-87)
/** Return instigated by a callback or similar. */
00600 #define VERR_CALLBACK_RETURN                (-88)
/** Return instigated by a callback or similar. */
00602 #define VINF_CALLBACK_RETURN                88
/** Authentication failure. */
00604 #define VERR_AUTHENTICATION_FAILURE         (-89)
/** Not a power of two. */
00606 #define VERR_NOT_POWER_OF_TWO               (-90)
/** Status code, typically given as a parameter, that isn't supposed to be used. */
00608 #define VERR_IGNORED                        (-91)
/** Concurrent access to the object is not allowed. */
00610 #define VERR_CONCURRENT_ACCESS              (-92)
/** The caller does not have a reference to the object.
 * This status is used when two threads is caught sharing the same object
 * reference. */
00614 #define VERR_CALLER_NO_REFERENCE            (-93)
/** Invalid login data given. */
00616 #define VERR_LOGON_FAILURE                  (-94)
/** Generic no change error. */
00618 #define VERR_NO_CHANGE                      (-95)
/** Generic no change info. */
00620 #define VINF_NO_CHANGE                      95
/** Out of memory condition when allocating executable memory. */
00622 #define VERR_NO_EXEC_MEMORY                 (-96)

/** @} */


/** @name Common File/Disk/Pipe/etc Status Codes
 * @{
 */
/** Unresolved (unknown) file i/o error. */
00631 #define VERR_FILE_IO_ERROR                  (-100)
/** File/Device open failed. */
00633 #define VERR_OPEN_FAILED                    (-101)
/** File not found. */
00635 #define VERR_FILE_NOT_FOUND                 (-102)
/** Path not found. */
00637 #define VERR_PATH_NOT_FOUND                 (-103)
/** Invalid (malformed) file/path name. */
00639 #define VERR_INVALID_NAME                   (-104)
/** File/Device already exists. */
00641 #define VERR_ALREADY_EXISTS                 (-105)
/** Too many open files. */
00643 #define VERR_TOO_MANY_OPEN_FILES            (-106)
/** Seek error. */
00645 #define VERR_SEEK                           (-107)
/** Seek below file start. */
00647 #define VERR_NEGATIVE_SEEK                  (-108)
/** Trying to seek on device. */
00649 #define VERR_SEEK_ON_DEVICE                 (-109)
/** Reached the end of the file. */
00651 #define VERR_EOF                            (-110)
/** Reached the end of the file. */
00653 #define VINF_EOF                            110
/** Generic file read error. */
00655 #define VERR_READ_ERROR                     (-111)
/** Generic file write error. */
00657 #define VERR_WRITE_ERROR                    (-112)
/** Write protect error. */
00659 #define VERR_WRITE_PROTECT                  (-113)
/** Sharing violation, file is being used by another process. */
00661 #define VERR_SHARING_VIOLATION              (-114)
/** Unable to lock a region of a file. */
00663 #define VERR_FILE_LOCK_FAILED               (-115)
/** File access error, another process has locked a portion of the file. */
00665 #define VERR_FILE_LOCK_VIOLATION            (-116)
/** File or directory can't be created. */
00667 #define VERR_CANT_CREATE                    (-117)
/** Directory can't be deleted. */
00669 #define VERR_CANT_DELETE_DIRECTORY          (-118)
/** Can't move file to another disk. */
00671 #define VERR_NOT_SAME_DEVICE                (-119)
/** The filename or extension is too long. */
00673 #define VERR_FILENAME_TOO_LONG              (-120)
/** Media not present in drive. */
00675 #define VERR_MEDIA_NOT_PRESENT              (-121)
/** The type of media was not recognized. Not formatted? */
00677 #define VERR_MEDIA_NOT_RECOGNIZED           (-122)
/** Can't unlock - region was not locked. */
00679 #define VERR_FILE_NOT_LOCKED                (-123)
/** Unrecoverable error: lock was lost. */
00681 #define VERR_FILE_LOCK_LOST                 (-124)
/** Can't delete directory with files. */
00683 #define VERR_DIR_NOT_EMPTY                  (-125)
/** A directory operation was attempted on a non-directory object. */
00685 #define VERR_NOT_A_DIRECTORY                (-126)
/** A non-directory operation was attempted on a directory object. */
00687 #define VERR_IS_A_DIRECTORY                 (-127)
/** Tried to grow a file beyond the limit imposed by the process or the filesystem. */
00689 #define VERR_FILE_TOO_BIG                   (-128)
/** No pending request the aio context has to wait for completion. */
00691 #define VERR_FILE_AIO_NO_REQUEST            (-129)
/** The request could not be canceled or prepared for another transfer
 *  because it is still in progress. */
00694 #define VERR_FILE_AIO_IN_PROGRESS           (-130)
/** The request could not be canceled because it already completed. */
00696 #define VERR_FILE_AIO_COMPLETED             (-131)
/** The I/O context couldn't be destroyed because there are still pending requests. */
00698 #define VERR_FILE_AIO_BUSY                  (-132)
/** The requests couldn't be submitted because that would exceed the capacity of the context. */
00700 #define VERR_FILE_AIO_LIMIT_EXCEEDED        (-133)
/** The request was canceled. */
00702 #define VERR_FILE_AIO_CANCELED              (-134)
/** The request wasn't submitted so it can't be canceled. */
00704 #define VERR_FILE_AIO_NOT_SUBMITTED         (-135)
/** A request was not prepared and thus could not be submitted. */
00706 #define VERR_FILE_AIO_NOT_PREPARED          (-136)
/** Not all requests could be submitted due to resource shortage. */
00708 #define VERR_FILE_AIO_INSUFFICIENT_RESSOURCES (-137)
/** Device or resource is busy. */
00710 #define VERR_RESOURCE_BUSY                  (-138)
/** @} */


/** @name Generic Filesystem I/O Status Codes
 * @{
 */
/** Unresolved (unknown) disk i/o error.  */
00718 #define VERR_DISK_IO_ERROR                  (-150)
/** Invalid drive number. */
00720 #define VERR_INVALID_DRIVE                  (-151)
/** Disk is full. */
00722 #define VERR_DISK_FULL                      (-152)
/** Disk was changed. */
00724 #define VERR_DISK_CHANGE                    (-153)
/** Drive is locked. */
00726 #define VERR_DRIVE_LOCKED                   (-154)
/** The specified disk or diskette cannot be accessed. */
00728 #define VERR_DISK_INVALID_FORMAT            (-155)
/** Too many symbolic links. */
00730 #define VERR_TOO_MANY_SYMLINKS              (-156)
/** The OS does not support setting the time stamps on a symbolic link. */
00732 #define VERR_NS_SYMLINK_SET_TIME            (-157)
/** @} */


/** @name Generic Directory Enumeration Status Codes
 * @{
 */
/** Unresolved (unknown) search error. */
00740 #define VERR_SEARCH_ERROR                   (-200)
/** No more files found. */
00742 #define VERR_NO_MORE_FILES                  (-201)
/** No more search handles available. */
00744 #define VERR_NO_MORE_SEARCH_HANDLES         (-202)
/** RTDirReadEx() failed to retrieve the extra data which was requested. */
00746 #define VWRN_NO_DIRENT_INFO                 203
/** @} */


/** @name Internal Processing Errors
 * @{
 */
/** Internal error - we're screwed if this happens.  */
00754 #define VERR_INTERNAL_ERROR                 (-225)
/** Internal error no. 2. */
00756 #define VERR_INTERNAL_ERROR_2               (-226)
/** Internal error no. 3. */
00758 #define VERR_INTERNAL_ERROR_3               (-227)
/** Internal error no. 4. */
00760 #define VERR_INTERNAL_ERROR_4               (-228)
/** Internal error no. 5. */
00762 #define VERR_INTERNAL_ERROR_5               (-229)
/** Internal error: Unexpected status code. */
00764 #define VERR_IPE_UNEXPECTED_STATUS          (-230)
/** Internal error: Unexpected status code. */
00766 #define VERR_IPE_UNEXPECTED_INFO_STATUS     (-231)
/** Internal error: Unexpected status code. */
00768 #define VERR_IPE_UNEXPECTED_ERROR_STATUS    (-232)
/** Internal error: Uninitialized status code.
 * @remarks This is used by value elsewhere.  */
00771 #define VERR_IPE_UNINITIALIZED_STATUS       (-233)
/** @} */


/** @name Generic Device I/O Status Codes
 * @{
 */
/** Unresolved (unknown) device i/o error. */
00779 #define VERR_DEV_IO_ERROR                   (-250)
/** Device i/o: Bad unit. */
00781 #define VERR_IO_BAD_UNIT                    (-251)
/** Device i/o: Not ready. */
00783 #define VERR_IO_NOT_READY                   (-252)
/** Device i/o: Bad command. */
00785 #define VERR_IO_BAD_COMMAND                 (-253)
/** Device i/o: CRC error. */
00787 #define VERR_IO_CRC                         (-254)
/** Device i/o: Bad length. */
00789 #define VERR_IO_BAD_LENGTH                  (-255)
/** Device i/o: Sector not found. */
00791 #define VERR_IO_SECTOR_NOT_FOUND            (-256)
/** Device i/o: General failure. */
00793 #define VERR_IO_GEN_FAILURE                 (-257)
/** @} */


/** @name Generic Pipe I/O Status Codes
 * @{
 */
/** Unresolved (unknown) pipe i/o error. */
00801 #define VERR_PIPE_IO_ERROR                  (-300)
/** Broken pipe. */
00803 #define VERR_BROKEN_PIPE                    (-301)
/** Bad pipe. */
00805 #define VERR_BAD_PIPE                       (-302)
/** Pipe is busy. */
00807 #define VERR_PIPE_BUSY                      (-303)
/** No data in pipe. */
00809 #define VERR_NO_DATA                        (-304)
/** Pipe is not connected. */
00811 #define VERR_PIPE_NOT_CONNECTED             (-305)
/** More data available in pipe. */
00813 #define VERR_MORE_DATA                      (-306)
/** @} */


/** @name Generic Semaphores Status Codes
 * @{
 */
/** Unresolved (unknown) semaphore error. */
00821 #define VERR_SEM_ERROR                      (-350)
/** Too many semaphores. */
00823 #define VERR_TOO_MANY_SEMAPHORES            (-351)
/** Exclusive semaphore is owned by another process. */
00825 #define VERR_EXCL_SEM_ALREADY_OWNED         (-352)
/** The semaphore is set and cannot be closed. */
00827 #define VERR_SEM_IS_SET                     (-353)
/** The semaphore cannot be set again. */
00829 #define VERR_TOO_MANY_SEM_REQUESTS          (-354)
/** Attempt to release mutex not owned by caller. */
00831 #define VERR_NOT_OWNER                      (-355)
/** The semaphore has been opened too many times. */
00833 #define VERR_TOO_MANY_OPENS                 (-356)
/** The maximum posts for the event semaphore has been reached. */
00835 #define VERR_TOO_MANY_POSTS                 (-357)
/** The event semaphore has already been posted. */
00837 #define VERR_ALREADY_POSTED                 (-358)
/** The event semaphore has already been reset. */
00839 #define VERR_ALREADY_RESET                  (-359)
/** The semaphore is in use. */
00841 #define VERR_SEM_BUSY                       (-360)
/** The previous ownership of this semaphore has ended. */
00843 #define VERR_SEM_OWNER_DIED                 (-361)
/** Failed to open semaphore by name - not found. */
00845 #define VERR_SEM_NOT_FOUND                  (-362)
/** Semaphore destroyed while waiting. */
00847 #define VERR_SEM_DESTROYED                  (-363)
/** Nested ownership requests are not permitted for this semaphore type. */
00849 #define VERR_SEM_NESTED                     (-364)
/** Deadlock detected. */
00851 #define VERR_DEADLOCK                       (-365)
/** Ping-Pong listen or speak out of turn error. */
00853 #define VERR_SEM_OUT_OF_TURN                (-366)
/** Tried to take a semaphore in a bad context. */
00855 #define VERR_SEM_BAD_CONTEXT                (-367)
/** Don't spin for the semaphore, but it is safe to try grab it. */
00857 #define VINF_SEM_BAD_CONTEXT                (367)
/** Wrong locking order detected. */
00859 #define VERR_SEM_LV_WRONG_ORDER             (-368)
/** Wrong release order detected. */
00861 #define VERR_SEM_LV_WRONG_RELEASE_ORDER     (-369)
/** Attempt to recursively enter a non-recurisve lock. */
00863 #define VERR_SEM_LV_NESTED                  (-370)
/** Invalid parameters passed to the lock validator. */
00865 #define VERR_SEM_LV_INVALID_PARAMETER       (-371)
/** The lock validator detected a deadlock. */
00867 #define VERR_SEM_LV_DEADLOCK                (-372)
/** The lock validator detected an existing deadlock.
 * The deadlock was not caused by the current operation, but existed already. */
00870 #define VERR_SEM_LV_EXISTING_DEADLOCK       (-373)
/** Not the lock owner according our records. */
00872 #define VERR_SEM_LV_NOT_OWNER               (-374)
/** An illegal lock upgrade was attempted. */
00874 #define VERR_SEM_LV_ILLEGAL_UPGRADE         (-375)
/** The thread is not a valid signaller of the event. */
00876 #define VERR_SEM_LV_NOT_SIGNALLER           (-376)
/** Internal error in the lock validator or related components. */
00878 #define VERR_SEM_LV_INTERNAL_ERROR          (-377)
/** @} */


/** @name Generic Network I/O Status Codes
 * @{
 */
/** Unresolved (unknown) network error. */
00886 #define VERR_NET_IO_ERROR                       (-400)
/** The network is busy or is out of resources. */
00888 #define VERR_NET_OUT_OF_RESOURCES               (-401)
/** Net host name not found. */
00890 #define VERR_NET_HOST_NOT_FOUND                 (-402)
/** Network path not found. */
00892 #define VERR_NET_PATH_NOT_FOUND                 (-403)
/** General network printing error. */
00894 #define VERR_NET_PRINT_ERROR                    (-404)
/** The machine is not on the network. */
00896 #define VERR_NET_NO_NETWORK                     (-405)
/** Name is not unique on the network. */
00898 #define VERR_NET_NOT_UNIQUE_NAME                (-406)

/* These are BSD networking error codes - numbers correspond, don't mess! */
/** Operation in progress. */
00902 #define VERR_NET_IN_PROGRESS                    (-436)
/** Operation already in progress. */
00904 #define VERR_NET_ALREADY_IN_PROGRESS            (-437)
/** Attempted socket operation with a non-socket handle.
 * (This includes closed handles.) */
00907 #define VERR_NET_NOT_SOCKET                     (-438)
/** Destination address required. */
00909 #define VERR_NET_DEST_ADDRESS_REQUIRED          (-439)
/** Message too long. */
00911 #define VERR_NET_MSG_SIZE                       (-440)
/** Protocol wrong type for socket. */
00913 #define VERR_NET_PROTOCOL_TYPE                  (-441)
/** Protocol not available. */
00915 #define VERR_NET_PROTOCOL_NOT_AVAILABLE         (-442)
/** Protocol not supported. */
00917 #define VERR_NET_PROTOCOL_NOT_SUPPORTED         (-443)
/** Socket type not supported. */
00919 #define VERR_NET_SOCKET_TYPE_NOT_SUPPORTED      (-444)
/** Operation not supported. */
00921 #define VERR_NET_OPERATION_NOT_SUPPORTED        (-445)
/** Protocol family not supported. */
00923 #define VERR_NET_PROTOCOL_FAMILY_NOT_SUPPORTED  (-446)
/** Address family not supported by protocol family. */
00925 #define VERR_NET_ADDRESS_FAMILY_NOT_SUPPORTED   (-447)
/** Address already in use. */
00927 #define VERR_NET_ADDRESS_IN_USE                 (-448)
/** Can't assign requested address. */
00929 #define VERR_NET_ADDRESS_NOT_AVAILABLE          (-449)
/** Network is down. */
00931 #define VERR_NET_DOWN                           (-450)
/** Network is unreachable. */
00933 #define VERR_NET_UNREACHABLE                    (-451)
/** Network dropped connection on reset. */
00935 #define VERR_NET_CONNECTION_RESET               (-452)
/** Software caused connection abort. */
00937 #define VERR_NET_CONNECTION_ABORTED             (-453)
/** Connection reset by peer. */
00939 #define VERR_NET_CONNECTION_RESET_BY_PEER       (-454)
/** No buffer space available. */
00941 #define VERR_NET_NO_BUFFER_SPACE                (-455)
/** Socket is already connected. */
00943 #define VERR_NET_ALREADY_CONNECTED              (-456)
/** Socket is not connected. */
00945 #define VERR_NET_NOT_CONNECTED                  (-457)
/** Can't send after socket shutdown. */
00947 #define VERR_NET_SHUTDOWN                       (-458)
/** Too many references: can't splice. */
00949 #define VERR_NET_TOO_MANY_REFERENCES            (-459)
/** Too many references: can't splice. */
00951 #define VERR_NET_CONNECTION_TIMED_OUT           (-460)
/** Connection refused. */
00953 #define VERR_NET_CONNECTION_REFUSED             (-461)
/* ELOOP is not net. */
/* ENAMETOOLONG is not net. */
/** Host is down. */
00957 #define VERR_NET_HOST_DOWN                      (-464)
/** No route to host. */
00959 #define VERR_NET_HOST_UNREACHABLE               (-465)
/** Protocol error. */
00961 #define VERR_NET_PROTOCOL_ERROR                 (-466)
/** @} */


/** @name TCP Status Codes
 * @{
 */
/** Stop the TCP server. */
00969 #define VERR_TCP_SERVER_STOP                    (-500)
/** The server was stopped. */
00971 #define VINF_TCP_SERVER_STOP                    500
/** The TCP server was shut down using RTTcpServerShutdown. */
00973 #define VERR_TCP_SERVER_SHUTDOWN                (-501)
/** The TCP server was destroyed. */
00975 #define VERR_TCP_SERVER_DESTROYED               (-502)
/** The TCP server has no client associated with it. */
00977 #define VINF_TCP_SERVER_NO_CLIENT               503
/** @} */


/** @name L4 Specific Status Codes
 * @{
 */
/** Invalid offset in an L4 dataspace */
00985 #define VERR_L4_INVALID_DS_OFFSET               (-550)
/** IPC error */
00987 #define VERR_IPC                                (-551)
/** Item already used */
00989 #define VERR_RESOURCE_IN_USE                    (-552)
/** Source/destination not found */
00991 #define VERR_IPC_PROCESS_NOT_FOUND              (-553)
/** Receive timeout */
00993 #define VERR_IPC_RECEIVE_TIMEOUT                (-554)
/** Send timeout */
00995 #define VERR_IPC_SEND_TIMEOUT                   (-555)
/** Receive cancelled */
00997 #define VERR_IPC_RECEIVE_CANCELLED              (-556)
/** Send cancelled */
00999 #define VERR_IPC_SEND_CANCELLED                 (-557)
/** Receive aborted */
01001 #define VERR_IPC_RECEIVE_ABORTED                (-558)
/** Send aborted */
01003 #define VERR_IPC_SEND_ABORTED                   (-559)
/** Couldn't map pages during receive */
01005 #define VERR_IPC_RECEIVE_MAP_FAILED             (-560)
/** Couldn't map pages during send */
01007 #define VERR_IPC_SEND_MAP_FAILED                (-561)
/** Send pagefault timeout in receive */
01009 #define VERR_IPC_RECEIVE_SEND_PF_TIMEOUT        (-562)
/** Send pagefault timeout in send */
01011 #define VERR_IPC_SEND_SEND_PF_TIMEOUT           (-563)
/** (One) receive buffer was too small, or too few buffers */
01013 #define VINF_IPC_RECEIVE_MSG_CUT                564
/** (One) send buffer was too small, or too few buffers */
01015 #define VINF_IPC_SEND_MSG_CUT                   565
/** Dataspace manager server not found */
01017 #define VERR_L4_DS_MANAGER_NOT_FOUND            (-566)
/** @} */


/** @name Loader Status Codes.
 * @{
 */
/** Invalid executable signature. */
01025 #define VERR_INVALID_EXE_SIGNATURE              (-600)
/** The iprt loader recognized a ELF image, but doesn't support loading it. */
01027 #define VERR_ELF_EXE_NOT_SUPPORTED              (-601)
/** The iprt loader recognized a PE image, but doesn't support loading it. */
01029 #define VERR_PE_EXE_NOT_SUPPORTED               (-602)
/** The iprt loader recognized a LX image, but doesn't support loading it. */
01031 #define VERR_LX_EXE_NOT_SUPPORTED               (-603)
/** The iprt loader recognized a LE image, but doesn't support loading it. */
01033 #define VERR_LE_EXE_NOT_SUPPORTED               (-604)
/** The iprt loader recognized a NE image, but doesn't support loading it. */
01035 #define VERR_NE_EXE_NOT_SUPPORTED               (-605)
/** The iprt loader recognized a MZ image, but doesn't support loading it. */
01037 #define VERR_MZ_EXE_NOT_SUPPORTED               (-606)
/** The iprt loader recognized an a.out image, but doesn't support loading it. */
01039 #define VERR_AOUT_EXE_NOT_SUPPORTED             (-607)
/** Bad executable. */
01041 #define VERR_BAD_EXE_FORMAT                     (-608)
/** Symbol (export) not found. */
01043 #define VERR_SYMBOL_NOT_FOUND                   (-609)
/** Module not found. */
01045 #define VERR_MODULE_NOT_FOUND                   (-610)
/** The loader resolved an external symbol to an address to big for the image format. */
01047 #define VERR_SYMBOL_VALUE_TOO_BIG               (-611)
/** The image is too big. */
01049 #define VERR_IMAGE_TOO_BIG                      (-612)
/** The image base address is to high for this image type. */
01051 #define VERR_IMAGE_BASE_TOO_HIGH                (-614)
/** Mismatching architecture. */
01053 #define VERR_LDR_ARCH_MISMATCH                  (-615)
/** Mismatch between IPRT and native loader. */
01055 #define VERR_LDR_MISMATCH_NATIVE                (-616)
/** Failed to resolve an imported (external) symbol. */
01057 #define VERR_LDR_IMPORTED_SYMBOL_NOT_FOUND      (-617)
/** Generic loader failure. */
01059 #define VERR_LDR_GENERAL_FAILURE                (-618)
/** Code signing error.  */
01061 #define VERR_LDR_IMAGE_HASH                     (-619)
/** The PE loader encountered delayed imports, a feature which hasn't been implemented yet. */
01063 #define VERR_LDRPE_DELAY_IMPORT                 (-620)
/** The PE loader encountered a malformed certificate. */
01065 #define VERR_LDRPE_CERT_MALFORMED               (-621)
/** The PE loader encountered a certificate with an unsupported type or structure revision. */
01067 #define VERR_LDRPE_CERT_UNSUPPORTED             (-622)
/** The PE loader doesn't know how to deal with the global pointer data directory entry yet. */
01069 #define VERR_LDRPE_GLOBALPTR                    (-623)
/** The PE loader doesn't support the TLS data directory yet. */
01071 #define VERR_LDRPE_TLS                          (-624)
/** The PE loader doesn't grok the COM descriptor data directory entry. */
01073 #define VERR_LDRPE_COM_DESCRIPTOR               (-625)
/** The PE loader encountered an unknown load config directory/header size. */
01075 #define VERR_LDRPE_LOAD_CONFIG_SIZE             (-626)
/** The PE loader encountered a lock prefix table, a feature which hasn't been implemented yet. */
01077 #define VERR_LDRPE_LOCK_PREFIX_TABLE            (-627)
/** The ELF loader doesn't handle foreign endianness. */
01079 #define VERR_LDRELF_ODD_ENDIAN                  (-630)
/** The ELF image is 'dynamic', the ELF loader can only deal with 'relocatable' images at present. */
01081 #define VERR_LDRELF_DYN                         (-631)
/** The ELF image is 'executable', the ELF loader can only deal with 'relocatable' images at present. */
01083 #define VERR_LDRELF_EXEC                        (-632)
/** The ELF image was created for an unsupported target machine type. */
01085 #define VERR_LDRELF_MACHINE                     (-633)
/** The ELF version is not supported. */
01087 #define VERR_LDRELF_VERSION                     (-634)
/** The ELF loader cannot handle multiple SYMTAB sections. */
01089 #define VERR_LDRELF_MULTIPLE_SYMTABS            (-635)
/** The ELF loader encountered a relocation type which is not implemented. */
01091 #define VERR_LDRELF_RELOCATION_NOT_SUPPORTED    (-636)
/** The ELF loader encountered a bad symbol index. */
01093 #define VERR_LDRELF_INVALID_SYMBOL_INDEX        (-637)
/** The ELF loader encountered an invalid symbol name offset. */
01095 #define VERR_LDRELF_INVALID_SYMBOL_NAME_OFFSET  (-638)
/** The ELF loader encountered an invalid relocation offset. */
01097 #define VERR_LDRELF_INVALID_RELOCATION_OFFSET   (-639)
/** The ELF loader didn't find the symbol/string table for the image. */
01099 #define VERR_LDRELF_NO_SYMBOL_OR_NO_STRING_TABS (-640)
/** @}*/

/** @name Debug Info Reader Status Codes.
 * @{
 */
/** The module contains no line number information. */
01106 #define VERR_DBG_NO_LINE_NUMBERS                (-650)
/** The module contains no symbol information. */
01108 #define VERR_DBG_NO_SYMBOLS                     (-651)
/** The specified segment:offset address was invalid. Typically an attempt at
 * addressing outside the segment boundary. */
01111 #define VERR_DBG_INVALID_ADDRESS                (-652)
/** Invalid segment index. */
01113 #define VERR_DBG_INVALID_SEGMENT_INDEX          (-653)
/** Invalid segment offset. */
01115 #define VERR_DBG_INVALID_SEGMENT_OFFSET         (-654)
/** Invalid image relative virtual address. */
01117 #define VERR_DBG_INVALID_RVA                    (-655)
/** Invalid image relative virtual address. */
01119 #define VERR_DBG_SPECIAL_SEGMENT                (-656)
/** Address conflict within a module/segment.
 * Attempted to add a segment, symbol or line number that fully or partially
 * overlaps with an existing one. */
01123 #define VERR_DBG_ADDRESS_CONFLICT               (-657)
/** Duplicate symbol within the module.
 * Attempted to add a symbol which name already exists within the module.  */
01126 #define VERR_DBG_DUPLICATE_SYMBOL               (-658)
/** The segment index specified when adding a new segment is already in use. */
01128 #define VERR_DBG_SEGMENT_INDEX_CONFLICT         (-659)
/** No line number was found for the specified address/ordinal/whatever. */
01130 #define VERR_DBG_LINE_NOT_FOUND                 (-660)
/** The length of the symbol name is out of range.
 * This means it is an empty string or that it's greater or equal to
 * RTDBG_SYMBOL_NAME_LENGTH. */
01134 #define VERR_DBG_SYMBOL_NAME_OUT_OF_RANGE       (-661)
/** The length of the file name is out of range.
 * This means it is an empty string or that it's greater or equal to
 * RTDBG_FILE_NAME_LENGTH. */
01138 #define VERR_DBG_FILE_NAME_OUT_OF_RANGE         (-662)
/** The length of the segment name is out of range.
 * This means it is an empty string or that it is greater or equal to
 * RTDBG_SEGMENT_NAME_LENGTH. */
01142 #define VERR_DBG_SEGMENT_NAME_OUT_OF_RANGE      (-663)
/** The specified address range wraps around. */
01144 #define VERR_DBG_ADDRESS_WRAP                   (-664)
/** The file is not a valid NM map file. */
01146 #define VERR_DBG_NOT_NM_MAP_FILE                (-665)
/** The file is not a valid /proc/kallsyms file. */
01148 #define VERR_DBG_NOT_LINUX_KALLSYMS             (-666)
/** No debug module interpreter matching the debug info. */
01150 #define VERR_DBG_NO_MATCHING_INTERPRETER        (-667)
/** @} */

/** @name Request Packet Status Codes.
 * @{
 */
/** Invalid RT request type.
 * For the RTReqAlloc() case, the caller just specified an illegal enmType. For
 * all the other occurrences it means indicates corruption, broken logic, or stupid
 * interface user. */
01160 #define VERR_RT_REQUEST_INVALID_TYPE            (-700)
/** Invalid RT request state.
 * The state of the request packet was not the expected and accepted one(s). Either
 * the interface user screwed up, or we've got corruption/broken logic. */
01164 #define VERR_RT_REQUEST_STATE                   (-701)
/** Invalid RT request packet.
 * One or more of the RT controlled packet members didn't contain the correct
 * values. Some thing's broken. */
01168 #define VERR_RT_REQUEST_INVALID_PACKAGE         (-702)
/** The status field has not been updated yet as the request is still
 * pending completion. Someone queried the iStatus field before the request
 * has been fully processed. */
01172 #define VERR_RT_REQUEST_STATUS_STILL_PENDING    (-703)
/** The request has been freed, don't read the status now.
 * Someone is reading the iStatus field of a freed request packet. */
01175 #define VERR_RT_REQUEST_STATUS_FREED            (-704)
/** @} */

/** @name Environment Status Code
 * @{
 */
/** The specified environment variable was not found. (RTEnvGetEx) */
01182 #define VERR_ENV_VAR_NOT_FOUND                  (-750)
/** The specified environment variable was not found. (RTEnvUnsetEx) */
01184 #define VINF_ENV_VAR_NOT_FOUND                  (750)
/** @} */

/** @name Multiprocessor Status Codes.
 * @{
 */
/** The specified cpu is offline. */
01191 #define VERR_CPU_OFFLINE                        (-800)
/** The specified cpu was not found. */
01193 #define VERR_CPU_NOT_FOUND                      (-801)
/** @} */

/** @name RTGetOpt status codes
 * @{ */
/** RTGetOpt: Command line option not recognized. */
01199 #define VERR_GETOPT_UNKNOWN_OPTION              (-825)
/** RTGetOpt: Command line option needs argument. */
01201 #define VERR_GETOPT_REQUIRED_ARGUMENT_MISSING   (-826)
/** RTGetOpt: Command line option has argument with bad format. */
01203 #define VERR_GETOPT_INVALID_ARGUMENT_FORMAT     (-827)
/** RTGetOpt: Not an option. */
01205 #define VINF_GETOPT_NOT_OPTION                  828
/** RTGetOpt: Command line option needs an index. */
01207 #define VERR_GETOPT_INDEX_MISSING               (-829)
/** @} */

/** @name RTCache status codes
 * @{ */
/** RTCache: cache is full. */
01213 #define VERR_CACHE_FULL                         (-850)
/** RTCache: cache is empty. */
01215 #define VERR_CACHE_EMPTY                        (-851)
/** @} */

/** @name RTMemCache status codes
 * @{ */
/** Reached the max cache size. */
01221 #define VERR_MEM_CACHE_MAX_SIZE                 (-855)
/** @} */

/** @name RTS3 status codes
 * @{ */
/** Access denied error. */
01227 #define VERR_S3_ACCESS_DENIED                   (-875)
/** The bucket/key wasn't found. */
01229 #define VERR_S3_NOT_FOUND                       (-876)
/** Bucket already exists. */
01231 #define VERR_S3_BUCKET_ALREADY_EXISTS           (-877)
/** Can't delete bucket with keys. */
01233 #define VERR_S3_BUCKET_NOT_EMPTY                (-878)
/** The current operation was canceled. */
01235 #define VERR_S3_CANCELED                        (-879)
/** @} */

/** @name RTManifest status codes
 * @{ */
/** A digest type used in the manifest file isn't supported. */
01241 #define VERR_MANIFEST_UNSUPPORTED_DIGEST_TYPE   (-900)
/** An entry in the manifest file couldn't be interpreted correctly. */
01243 #define VERR_MANIFEST_WRONG_FILE_FORMAT         (-901)
/** A digest doesn't match the corresponding file. */
01245 #define VERR_MANIFEST_DIGEST_MISMATCH           (-902)
/** The file list doesn't match to the content of the manifest file. */
01247 #define VERR_MANIFEST_FILE_MISMATCH             (-903)
/** @} */

/** @name RTTar status codes
 * @{ */
/** The checksum of a tar header record doesn't match. */
01253 #define VERR_TAR_CHKSUM_MISMATCH                (-925)
/** @} */

/** @name RTPoll status codes
 * @{ */
/** The handle is not pollable. */
01259 #define VERR_POLL_HANDLE_NOT_POLLABLE           (-950)
/** The handle ID is already present in the poll set. */
01261 #define VERR_POLL_HANDLE_ID_EXISTS              (-951)
/** The handle ID was not found in the set. */
01263 #define VERR_POLL_HANDLE_ID_NOT_FOUND           (-952)
/** The poll set is full. */
01265 #define VERR_POLL_SET_IS_FULL                   (-953)
/** @} */

/* SED-END */

/** @} */

RT_C_DECLS_END

#endif


Generated by  Doxygen 1.6.0   Back to index