err.h revision 1fe0fc99ff9cde0c9f1f0855fba9c71b1fcccb33
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @file
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * InnoTek Portable Runtime - Status Codes.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/*
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * Copyright (C) 2006 InnoTek Systemberatung GmbH
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync *
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * available from http://www.virtualbox.org. This file is free software;
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * you can redistribute it and/or modify it under the terms of the GNU
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * General Public License as published by the Free Software Foundation,
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * distribution. VirtualBox OSE is distributed in the hope that it will
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * be useful, but WITHOUT ANY WARRANTY of any kind.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync *
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * If you received this file as part of a commercial VirtualBox
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * distribution, then only the terms of your commercial VirtualBox
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * license agreement apply instead of the previous paragraph.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#ifndef __iprt_err_h__
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define __iprt_err_h__
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#include <iprt/cdefs.h>
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#include <iprt/types.h>
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync__BEGIN_DECLS
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @defgroup grp_rt_err RTErr - Status Codes
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @ingroup grp_rt
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @{
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/* SED-START */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @name Misc. Status Codes
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @{
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Success. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VINF_SUCCESS 0
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** General failure - DON'T USE THIS!!!
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * (aka SUPDRV_ERR_GENERAL_FAILURE) */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_GENERAL_FAILURE (-1)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Invalid parameter.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * (aka SUPDRV_ERR_INVALID_PARAM) */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_INVALID_PARAMETER (-2)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Invalid magic or cookie.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * (aka SUPDRV_ERR_INVALID_MAGIC) */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_INVALID_MAGIC (-3)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Invalid loader handle.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * (aka SUPDRV_ERR_INVALID_HANDLE) */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_INVALID_HANDLE (-4)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Failed to lock the address range.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * (aka SUPDRV_ERR_INVALID_HANDLE) */
dbec828311ed2a5cf6fbc68fe4391d516ba4f92fvboxsync#define VERR_LOCK_FAILED (-5)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Invalid memory pointer.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * (aka SUPDRV_ERR_INVALID_POINTER) */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_INVALID_POINTER (-6)
5eb36887f6970e0033f63fa135f3bb8fbfd6059bvboxsync/** Failed to patch the IDT.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * (aka SUPDRV_ERR_IDT_FAILED) */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_IDT_FAILED (-7)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Memory allocation failed.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * (aka SUPDRV_ERR_NO_MEMORY) */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NO_MEMORY (-8)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Already loaded.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * (aka SUPDRV_ERR_ALREADY_LOADED) */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_ALREADY_LOADED (-9)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Permission denied.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * (aka SUPDRV_ERR_PERMISSION_DENIED) */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_PERMISSION_DENIED (-10)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Version mismatch.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * (aka SUPDRV_ERR_VERSION_MISMATCH) */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_VERSION_MISMATCH (-11)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The request function is not implemented. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NOT_IMPLEMENTED (-12)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Failed to allocate temporary memory. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NO_TMP_MEMORY (-20)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Invalid file mode mask (RTFMODE). */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_INVALID_FMODE (-21)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Incorrect call order. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_WRONG_ORDER (-22)
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync/** There is no TLS (thread local storage) available for storing the current thread. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NO_TLS_FOR_SELF (-23)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Failed to set the TLS (thread local storage) entry which points to our thread structure. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_FAILED_TO_SET_SELF_TLS (-24)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Not able to allocate contiguous memory. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NO_CONT_MEMORY (-26)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** No memory available for page table or page directory. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NO_PAGE_MEMORY (-27)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Already initialized. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VINF_ALREADY_INITIALIZED 28
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The specified thread is dead. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_THREAD_IS_DEAD (-29)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The specified thread is not waitable. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_THREAD_NOT_WAITABLE (-30)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Pagetable not present. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_PAGE_TABLE_NOT_PRESENT (-31)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Internal error - we're screwed if this happens. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_INTERNAL_ERROR (-32)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The per process timer is busy. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_TIMER_BUSY (-33)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Address conflict. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_ADDRESS_CONFLICT (-34)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Unresolved (unknown) host platform error. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_UNRESOLVED_ERROR (-35)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Invalid function. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_INVALID_FUNCTION (-36)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Not supported. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NOT_SUPPORTED (-37)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Access denied. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_ACCESS_DENIED (-38)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Call interrupted. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_INTERRUPTED (-39)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Timeout. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_TIMEOUT (-40)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Buffer too small to save result. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_BUFFER_OVERFLOW (-41)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Buffer too small to save result. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VINF_BUFFER_OVERFLOW 41
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Data size overflow. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_TOO_MUCH_DATA (-42)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Max threads number reached. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_MAX_THRDS_REACHED (-43)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Max process number reached. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_MAX_PROCS_REACHED (-44)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The recipient process has refused the signal. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_SIGNAL_REFUSED (-45)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** A signal is already pending. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_SIGNAL_PENDING (-46)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The signal being posted is not correct. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_SIGNAL_INVALID (-47)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The state changed.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * This is a generic error message and needs a context to make sense. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_STATE_CHANGED (-48)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Warning, the state changed.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * This is a generic error message and needs a context to make sense. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VWRN_STATE_CHANGED 48
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Error while parsing UUID string */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_INVALID_UUID_FORMAT (-49)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The specified process was not found. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_PROCESS_NOT_FOUND (-50)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The process specified to a non-block wait had not exitted. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_PROCESS_RUNNING (-51)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Retry the operation. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_TRY_AGAIN (-52)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Generic parse error. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_PARSE_ERROR (-53)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Value out of range. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_OUT_OF_RANGE (-54)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** A numeric convertion encountered a value which was too big for the target. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NUMBER_TOO_BIG (-55)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** A numeric convertion encountered a value which was too big for the target. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VWRN_NUMBER_TOO_BIG 55
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The number begin converted (string) contained no digits. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NO_DIGITS (-56)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The number begin converted (string) contained no digits. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VWRN_NO_DIGITS 56
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Encountered a '-' during convertion to an unsigned value. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NEGATIVE_UNSIGNED (-57)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Encountered a '-' during convertion to an unsigned value. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VWRN_NEGATIVE_UNSIGNED 57
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Error while characters translation (unicode and so). */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NO_TRANSLATION (-58)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Encountered unicode code point which is reserved for use as endian indicator (0xffff or 0xfffe). */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_CODE_POINT_ENDIAN_INDICATOR (-59)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Encountered unicode code point in the surrogate range (0xd800 to 0xdfff). */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_CODE_POINT_SURROGATE (-60)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** A string claiming to be UTF-8 is incorrectly encoded. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_INVALID_UTF8_ENCODING (-61)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Ad string claiming to be in UTF-16 is incorrectly encoded. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_INVALID_UTF16_ENCODING (-62)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Encountered a unicode code point which cannot be represented as UTF-16. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_CANT_RECODE_AS_UTF16 (-63)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Got an out of memory condition trying to allocate a string. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NO_STR_MEMORY (-64)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Got an out of memory condition trying to allocate a UTF-16 (/UCS-2) string. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NO_UTF16_MEMORY (-65)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Get an out of memory condition trying to allocate a code point array. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NO_CODE_POINT_MEMORY (-66)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Can't free the memory because it's used in mapping. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_MEMORY_BUSY (-67)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The timer can't be started because it's already active. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_TIMER_ACTIVE (-68)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The timer can't be stopped because i's already suspended. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_TIMER_SUSPENDED (-69)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The operation was cancelled by the user. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_CANCELLED (-70)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Failed to initialize a memory object.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * Exactly what this means is OS specific. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_MEMOBJ_INIT_FAILED (-71)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Out of memory condition when allocating memory with low physical backing. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NO_LOW_MEMORY (-72)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Out of memory condition when allocating physical memory (without mapping). */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NO_PHYS_MEMORY (-73)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The address (virtual or physical) is too big. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_ADDRESS_TOO_BIG (-74)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Failed to map a memory object. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_MAP_FAILED (-75)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @} */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @name Common File/Disk/Pipe/etc Status Codes
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @{
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Unresolved (unknown) file i/o error. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_FILE_IO_ERROR (-100)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** File/Device open failed. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_OPEN_FAILED (-101)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** File not found. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_FILE_NOT_FOUND (-102)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Path not found. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_PATH_NOT_FOUND (-103)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Invalid (malformed) file/path name. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_INVALID_NAME (-104)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** File/Device already exists. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_ALREADY_EXISTS (-105)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Too many open files. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_TOO_MANY_OPEN_FILES (-106)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Seek error. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_SEEK (-107)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Seek below file start. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NEGATIVE_SEEK (-108)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Trying to seek on device. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_SEEK_ON_DEVICE (-109)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Reached the end of the file. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_EOF (-110)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Reached the end of the file. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VINF_EOF 110
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Generic file read error. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_READ_ERROR (-111)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Generic file write error. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_WRITE_ERROR (-112)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Write protect error. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_WRITE_PROTECT (-113)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Sharing violetion, file is being used by another process. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_SHARING_VIOLATION (-114)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Unable to lock a region of a file. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_FILE_LOCK_FAILED (-115)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** File access error, another process has locked a portion of the file. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_FILE_LOCK_VIOLATION (-116)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** File or directory can't be created. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_CANT_CREATE (-117)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Directory can't be deleted. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_CANT_DELETE_DIRECTORY (-118)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Can't move file to another disk. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NOT_SAME_DEVICE (-119)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The filename or extension is too long. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_FILENAME_TOO_LONG (-120)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Media not present in drive. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_MEDIA_NOT_PRESENT (-121)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The type of media was not recognized. Not formatted? */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_MEDIA_NOT_RECOGNIZED (-122)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Can't unlock - region was not locked. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_FILE_NOT_LOCKED (-123)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Unrecoverable error: lock was lost. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_FILE_LOCK_LOST (-124)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Can't delete directory with files. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_DIR_NOT_EMPTY (-125)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** A directory operation was attempted on a non-directory object. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NOT_A_DIRECTORY (-126)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** A non-directory operation was attempted on a directory object. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_IS_A_DIRECTORY (-127)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Tried to grow a file beyond the limit imposed by the process or the filesystem. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_FILE_TOO_BIG (-128)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @} */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @name Generic Filesystem I/O Status Codes
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @{
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Unresolved (unknown) disk i/o error. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_DISK_IO_ERROR (-150)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Invalid drive number. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_INVALID_DRIVE (-151)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Disk is full. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_DISK_FULL (-152)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Disk was changed. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_DISK_CHANGE (-153)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Drive is locked. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_DRIVE_LOCKED (-154)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The specified disk or diskette cannot be accessed. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_DISK_INVALID_FORMAT (-155)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Too many symbolic links. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_TOO_MANY_SYMLINKS (-156)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @} */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @name Generic Directory Enumeration Status Codes
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @{
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Unresolved (unknown) search error. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_SEARCH_ERROR (-200)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** No more files found. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NO_MORE_FILES (-201)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** No more search handles available. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NO_MORE_SEARCH_HANDLES (-202)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** RTDirReadEx() failed to retrieve the extra data which was requested. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VWRN_NO_DIRENT_INFO 203
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @} */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @name Generic Device I/O Status Codes
11c2b573e2625474a51ae55ee1f3f82936f125davboxsync * @{
b2e90826ea719b22452d1ff7b977d4f40995b428vboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Unresolved (unknown) device i/o error. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_DEV_IO_ERROR (-250)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Device i/o: Bad unit. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_IO_BAD_UNIT (-251)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Device i/o: Not ready. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_IO_NOT_READY (-252)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Device i/o: Bad command. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_IO_BAD_COMMAND (-253)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Device i/o: CRC error. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_IO_CRC (-254)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Device i/o: Bad length. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_IO_BAD_LENGTH (-255)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Device i/o: Sector not found. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_IO_SECTOR_NOT_FOUND (-256)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Device i/o: General failure. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_IO_GEN_FAILURE (-257)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @} */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @name Generic Pipe I/O Status Codes
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @{
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Unresolved (unknown) pipe i/o error. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_PIPE_IO_ERROR (-300)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Broken pipe. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_BROKEN_PIPE (-301)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Bad pipe. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_BAD_PIPE (-302)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Pipe is busy. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_PIPE_BUSY (-303)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** No data in pipe. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NO_DATA (-304)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Pipe is not connected. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_PIPE_NOT_CONNECTED (-305)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** More data available in pipe. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_MORE_DATA (-306)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @} */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @name Generic Semaphores Status Codes
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @{
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Unresolved (unknown) semaphore error. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_SEM_ERROR (-350)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Too many semaphores. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_TOO_MANY_SEMAPHORES (-351)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Exclusive semaphore is owned by another process. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_EXCL_SEM_ALREADY_OWNED (-352)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The semaphore is set and cannot be closed. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_SEM_IS_SET (-353)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The semaphore cannot be set again. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_TOO_MANY_SEM_REQUESTS (-354)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Attempt to release mutex not owned by caller. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NOT_OWNER (-355)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The semaphore has been opened too many times. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_TOO_MANY_OPENS (-356)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The maximum posts for the event semaphore has been reached. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_TOO_MANY_POSTS (-357)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The event semaphore has already been posted. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_ALREADY_POSTED (-358)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The event semaphore has already been reset. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_ALREADY_RESET (-359)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The semaphore is in use. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_SEM_BUSY (-360)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The previous ownership of this semaphore has ended. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_SEM_OWNER_DIED (-361)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Failed to open semaphore by name - not found. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_SEM_NOT_FOUND (-362)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Semaphore destroyed while waiting. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_SEM_DESTROYED (-363)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Nested ownership requests are not permitted for this semaphore type. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_SEM_NESTED (-364)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Deadlock detected. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_DEADLOCK (-365)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Ping-Pong listen or speak out of turn error. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_SEM_OUT_OF_TURN (-366)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @} */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @name Generic Network I/O Status Codes
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @{
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Unresolved (unknown) network error. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NET_IO_ERROR (-400)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The network is busy or is out of resources. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NET_OUT_OF_RESOURCES (-401)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Net host name not found. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NET_HOST_NOT_FOUND (-402)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Network path not found. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NET_PATH_NOT_FOUND (-403)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** General network printing error. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NET_PRINT_ERROR (-404)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The machine is not on the network. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NET_NO_NETWORK (-405)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Name is not unique on the network. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NET_NOT_UNIQUE_NAME (-406)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/* These are BSD networking error codes - numbers correspond, don't mess! */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Operation in progress. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NET_IN_PROGRESS (-436)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Operation already in progress. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NET_ALREADY_IN_PROGRESS (-437)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Attempted socket operation with a non-socket handle.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * (This includes closed handles.) */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NET_NOT_SOCKET (-438)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Destination address required. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NET_DEST_ADDRESS_REQUIRED (-439)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Message too long. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NET_MSG_SIZE (-440)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Protocol wrong type for socket. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NET_PROTOCOL_TYPE (-441)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Protocol not available. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NET_PROTOCOL_NOT_AVAILABLE (-442)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Protocol not supported. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NET_PROTOCOL_NOT_SUPPORTED (-443)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Socket type not supported. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NET_SOCKET_TYPE_NOT_SUPPORTED (-444)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Operation not supported. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NET_OPERATION_NOT_SUPPORTED (-445)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Protocol family not supported. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NET_PROTOCOL_FAMILY_NOT_SUPPORTED (-446)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Address family not supported by protocol family. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NET_ADDRESS_FAMILY_NOT_SUPPORTED (-447)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Address already in use. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NET_ADDRESS_IN_USE (-448)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Can't assign requested address. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NET_ADDRESS_NOT_AVAILABLE (-449)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Network is down. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NET_DOWN (-450)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Network is unreachable. */
090c459b9e90ca46e2ce2b8c81533ade3b23f3e9vboxsync#define VERR_NET_UNREACHABLE (-451)
090c459b9e90ca46e2ce2b8c81533ade3b23f3e9vboxsync/** Network dropped connection on reset. */
090c459b9e90ca46e2ce2b8c81533ade3b23f3e9vboxsync#define VERR_NET_CONNECTION_RESET (-452)
090c459b9e90ca46e2ce2b8c81533ade3b23f3e9vboxsync/** Software caused connection abort. */
090c459b9e90ca46e2ce2b8c81533ade3b23f3e9vboxsync#define VERR_NET_CONNECTION_ABORTED (-453)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Connection reset by peer. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NET_CONNECTION_RESET_BY_PEER (-454)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** No buffer space available. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NET_NO_BUFFER_SPACE (-455)
090c459b9e90ca46e2ce2b8c81533ade3b23f3e9vboxsync/** Socket is already connected. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NET_ALREADY_CONNECTED (-456)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Socket is not connected. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NET_NOT_CONNECTED (-457)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Can't send after socket shutdown. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NET_SHUTDOWN (-458)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Too many references: can't splice. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NET_TOO_MANY_REFERENCES (-459)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Too many references: can't splice. */
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync#define VERR_NET_CONNECTION_TIMED_OUT (-460)
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync/** Connection refused. */
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync#define VERR_NET_CONNECTION_REFUSED (-461)
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync/* ELOOP is not net. */
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync/* ENAMETOOLONG is not net. */
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync/** Host is down. */
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync#define VERR_NET_HOST_DOWN (-464)
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync/** No route to host. */
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync#define VERR_NET_HOST_UNREACHABLE (-465)
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync/** @} */
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @name TCP Status Codes
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @{
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync/** Stop the TCP server. */
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync#define VERR_TCP_SERVER_STOP (-500)
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync/** The server was stopped. */
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync#define VINF_TCP_SERVER_STOP 500
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync/** @} */
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync/** @name L4 Specific Status Codes
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync * @{
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync */
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync/** Invalid offset in an L4 dataspace */
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync#define VERR_L4_INVALID_DS_OFFSET (-550)
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync/** IPC error */
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync#define VERR_IPC (-551)
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync/** Item already used */
a86135e41c89c7b599607649347a4240809c784bvboxsync#define VERR_RESOURCE_IN_USE (-552)
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync/** Source/destination not found */
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync#define VERR_IPC_PROCESS_NOT_FOUND (-553)
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync/** Receive timeout */
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync#define VERR_IPC_RECEIVE_TIMEOUT (-554)
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync/** Send timeout */
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync#define VERR_IPC_SEND_TIMEOUT (-555)
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync/** Receive cancelled */
be9960565d2df0031f0e6c8a4610f5f0ae8c1845vboxsync#define VERR_IPC_RECEIVE_CANCELLED (-556)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Send cancelled */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_IPC_SEND_CANCELLED (-557)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Receive aborted */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_IPC_RECEIVE_ABORTED (-558)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Send aborted */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_IPC_SEND_ABORTED (-559)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Couldn't map pages during receive */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_IPC_RECEIVE_MAP_FAILED (-560)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Couldn't map pages during send */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_IPC_SEND_MAP_FAILED (-561)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Send pagefault timeout in receive */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_IPC_RECEIVE_SEND_PF_TIMEOUT (-562)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Send pagefault timeout in send */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_IPC_SEND_SEND_PF_TIMEOUT (-563)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** (One) receive buffer was too small, or too few buffers */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VINF_IPC_RECEIVE_MSG_CUT 564
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** (One) send buffer was too small, or too few buffers */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VINF_IPC_SEND_MSG_CUT 565
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Dataspace manager server not found */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_L4_DS_MANAGER_NOT_FOUND (-566)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @} */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @name Loader Status Codes.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @{
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Invalid executable signature. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_INVALID_EXE_SIGNATURE (-600)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The iprt loader recognized a ELF image, but doesn't support loading it. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_ELF_EXE_NOT_SUPPORTED (-601)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The iprt loader recognized a PE image, but doesn't support loading it. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_PE_EXE_NOT_SUPPORTED (-602)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The iprt loader recognized a LX image, but doesn't support loading it. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_LX_EXE_NOT_SUPPORTED (-603)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The iprt loader recognized a LE image, but doesn't support loading it. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_LE_EXE_NOT_SUPPORTED (-604)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The iprt loader recognized a NE image, but doesn't support loading it. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_NE_EXE_NOT_SUPPORTED (-605)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The iprt loader recognized a MZ image, but doesn't support loading it. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_MZ_EXE_NOT_SUPPORTED (-606)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The iprt loader recognized an a.out image, but doesn't support loading it. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_AOUT_EXE_NOT_SUPPORTED (-607)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Bad executable. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_BAD_EXE_FORMAT (-608)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Symbol (export) not found. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_SYMBOL_NOT_FOUND (-609)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Module not found. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_MODULE_NOT_FOUND (-610)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The loader resolved an external symbol to an address to big for the image format. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_SYMBOL_VALUE_TOO_BIG (-611)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The image is too big. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_IMAGE_TOO_BIG (-612)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The image base address is to high for this image type. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_IMAGE_BASE_TOO_HIGH (-614)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The PE loader encountered delayed imports, a feature which hasn't been implemented yet. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_LDRPE_DELAY_IMPORT (-620)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The PE loader doesn't have a clue what the security data directory entry is all about. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_LDRPE_SECURITY (-621)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The PE loader doesn't know how to deal with the global pointer data directory entry yet. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_LDRPE_GLOBALPTR (-622)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The PE loader doesn't support the TLS data directory yet. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_LDRPE_TLS (-623)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The PE loader doesn't grok the COM descriptor data directory entry. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_LDRPE_COM_DESCRIPTOR (-624)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The PE loader encountered an unknown load config directory/header size. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_LDRPE_LOAD_CONFIG_SIZE (-625)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The PE loader encountered a lock prefix table, a feature which hasn't been implemented yet. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_LDRPE_LOCK_PREFIX_TABLE (-626)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The ELF loader doesn't handle foreign endianness. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_LDRELF_ODD_ENDIAN (-630)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The ELF image is 'dynamic', the ELF loader can only deal with 'relocatable' images at present. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_LDRELF_DYN (-631)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The ELF image is 'executable', the ELF loader can only deal with 'relocatable' images at present. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_LDRELF_EXEC (-632)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The ELF image was created for an unsupported target machine type. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_LDRELF_MACHINE (-633)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The ELF version is not supported. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_LDRELF_VERSION (-634)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The ELF loader cannot handle multiple SYMTAB sections. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_LDRELF_MULTIPLE_SYMTABS (-635)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The ELF loader encountered a relocation type which is not implemented. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_LDRELF_RELOCATION_NOT_SUPPORTED (-636)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The ELF loader encountered a bad symbol index. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_LDRELF_INVALID_SYMBOL_INDEX (-637)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The ELF loader encountered an invalid symbol name offset. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_LDRELF_INVALID_SYMBOL_NAME_OFFSET (-638)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The ELF loader encountered an invalid relocation offset. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_ELFLDR_INVALID_RELOCATION_OFFSET (-639)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @}*/
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @name Debug Info Reader Status Codes.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @{
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The specified segment:offset address was invalid. Typically an attempt at
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * addressing outside the segment boundrary. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_DBGMOD_INVALID_ADDRESS (-650)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @} */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @name Request Packet Status Codes.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @{
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Invalid RT request type.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * For the RTReqAlloc() case, the caller just specified an illegal enmType. For
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * all the other occurences it means indicates corruption, broken logic, or stupid
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * interface user. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_RT_REQUEST_INVALID_TYPE (-700)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Invalid RT request state.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * The state of the request packet was not the expected and accepted one(s). Either
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * the interface user screwed up, or we've got corruption/broken logic. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_RT_REQUEST_STATE (-701)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Invalid RT request packet.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * One or more of the RT controlled packet members didn't contain the correct
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * values. Some thing's broken. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_RT_REQUEST_INVALID_PACKAGE (-702)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The status field has not been updated yet as the request is still
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * pending completion. Someone queried the iStatus field before the request
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * has been fully processed. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_RT_REQUEST_STATUS_STILL_PENDING (-703)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** The request has been freed, don't read the status now.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * Someone is reading the iStatus field of a freed request packet. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define VERR_RT_REQUEST_STATUS_FREED (-704)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @} */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/* SED-END */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @defgroup grp_rt_err_hlp Status Code Helpers
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @ingroup grp_rt_err
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @{
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @def RT_SUCCESS
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * Check for success. We expect success in normal cases, that is the code path depending on
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * this check is normally taken. To prevent any prediction use RT_SUCCESS_NP instead.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync *
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @returns true if rc indicates success.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @returns false if rc indicates failure.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync *
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @param rc The iprt status code to test.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define RT_SUCCESS(rc) ( RT_LIKELY((int)(rc) >= VINF_SUCCESS) )
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @def RT_SUCCESS_NP
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * Check for success. Don't predict the result.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync *
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @returns true if rc indicates success.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @returns false if rc indicates failure.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync *
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @param rc The iprt status code to test.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define RT_SUCCESS_NP(rc) ( (int)(rc) >= VINF_SUCCESS )
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @def RT_FAILURE
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * Check for failure. We don't expect in normal cases, that is the code path depending on
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * this check is normally NOT taken. To prevent any prediction use RT_FAILURE_NP instead.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync *
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @returns true if rc indicates failure.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @returns false if rc indicates success.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync *
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @param rc The iprt status code to test.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define RT_FAILURE(rc) ( RT_UNLIKELY(!RT_SUCCESS_NP(rc)) )
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @def RT_FAILURE_NP
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * Check for failure. Don't predict the result.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync *
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @returns true if rc indicates failure.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @returns false if rc indicates success.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync *
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @param rc The iprt status code to test.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define RT_FAILURE_NP(rc) ( !RT_SUCCESS_NP(rc) )
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/**
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * Converts a Darwin HRESULT error to an iprt status code.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync *
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @returns iprt status code.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @param iNativeCode errno code.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @remark Darwin only.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncRTDECL(int) RTErrConvertFromDarwinCOM(int32_t iNativeCode);
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/**
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * Converts a Darwin IOReturn error to an iprt status code.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync *
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @returns iprt status code.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @param iNativeCode errno code.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @remark Darwin only.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncRTDECL(int) RTErrConvertFromDarwinIO(int iNativeCode);
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/**
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * Converts a Darwin kern_return_t error to an iprt status code.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync *
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @returns iprt status code.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @param iNativeCode errno code.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @remark Darwin only.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncRTDECL(int) RTErrConvertFromDarwinKern(int iNativeCode);
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/**
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * Converts errno to iprt status code.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync *
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @returns iprt status code.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @param uNativeCode errno code.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncRTDECL(int) RTErrConvertFromErrno(unsigned uNativeCode);
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/**
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * Converts a L4 errno to a iprt status code.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync *
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @returns iprt status code.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @param uNativeCode l4 errno.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @remark L4 only.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncRTDECL(int) RTErrConvertFromL4Errno(unsigned uNativeCode);
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/**
af0a09edb4c1431b606fe207d4138da008f67f13vboxsync * Converts NT status code to iprt status code.
af0a09edb4c1431b606fe207d4138da008f67f13vboxsync *
af0a09edb4c1431b606fe207d4138da008f67f13vboxsync * Needless to say, this is only available on NT and winXX targets.
af0a09edb4c1431b606fe207d4138da008f67f13vboxsync *
af0a09edb4c1431b606fe207d4138da008f67f13vboxsync * @returns iprt status code.
af0a09edb4c1431b606fe207d4138da008f67f13vboxsync * @param lNativeCode NT status code.
af0a09edb4c1431b606fe207d4138da008f67f13vboxsync * @remark Windows only.
af0a09edb4c1431b606fe207d4138da008f67f13vboxsync */
af0a09edb4c1431b606fe207d4138da008f67f13vboxsyncRTDECL(int) RTErrConvertFromNtStatus(long lNativeCode);
af0a09edb4c1431b606fe207d4138da008f67f13vboxsync
af0a09edb4c1431b606fe207d4138da008f67f13vboxsync/**
564cc620447c495b6ff9cbb9274e225692fe38dfvboxsync * Converts OS/2 error code to iprt status code.
af0a09edb4c1431b606fe207d4138da008f67f13vboxsync *
af0a09edb4c1431b606fe207d4138da008f67f13vboxsync * @returns iprt status code.
af0a09edb4c1431b606fe207d4138da008f67f13vboxsync * @param uNativeCode OS/2 error code.
af0a09edb4c1431b606fe207d4138da008f67f13vboxsync * @remark OS/2 only.
af0a09edb4c1431b606fe207d4138da008f67f13vboxsync */
af0a09edb4c1431b606fe207d4138da008f67f13vboxsyncRTDECL(int) RTErrConvertFromOS2(unsigned uNativeCode);
af0a09edb4c1431b606fe207d4138da008f67f13vboxsync
dbec828311ed2a5cf6fbc68fe4391d516ba4f92fvboxsync/**
af0a09edb4c1431b606fe207d4138da008f67f13vboxsync * Converts Win32 error code to iprt status code.
af0a09edb4c1431b606fe207d4138da008f67f13vboxsync *
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @returns iprt status code.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @param uNativeCode Win32 error code.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @remark Windows only.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncRTDECL(int) RTErrConvertFromWin32(unsigned uNativeCode);
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#ifdef IN_RING3
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/**
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * iprt status code message.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsynctypedef struct RTSTATUSMSG
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync{
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync /** Pointer to the short message string. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync const char *pszMsgShort;
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync /** Pointer to the full message string. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync const char *pszMsgFull;
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync /** Pointer to the define string. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync const char *pszDefine;
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync /** Status code number. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync int iCode;
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync} RTSTATUSMSG;
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Pointer to iprt status code message. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsynctypedef RTSTATUSMSG *PRTSTATUSMSG;
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Pointer to const iprt status code message. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsynctypedef const RTSTATUSMSG *PCRTSTATUSMSG;
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/**
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * Get the message structure corresponding to a given iprt status code.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync *
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @returns Pointer to read-only message description.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @param rc The status code.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncRTDECL(PCRTSTATUSMSG) RTErrGet(int rc);
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/**
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * Get the define corresponding to a given iprt status code.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync *
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @returns Pointer to read-only string with the \#define identifier.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @param rc The status code.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define RTErrGetDefine(rc) (RTErrGet(rc)->pszDefine)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/**
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * Get the short description corresponding to a given iprt status code.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync *
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @returns Pointer to read-only string with the description.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @param rc The status code.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define RTErrGetShort(rc) (RTErrGet(rc)->pszMsgShort)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/**
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * Get the full description corresponding to a given iprt status code.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync *
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @returns Pointer to read-only string with the description.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @param rc The status code.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#define RTErrGetFull(rc) (RTErrGet(rc)->pszMsgFull)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#ifdef __WIN__
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/**
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * Windows error code message.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsynctypedef struct RTWINERRMSG
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync{
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync /** Pointer to the full message string. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync const char *pszMsgFull;
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync /** Pointer to the define string. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync const char *pszDefine;
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync /** Error code number. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync long iCode;
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync} RTWINERRMSG;
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Pointer to Windows error code message. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsynctypedef RTWINERRMSG *PRTWINERRMSG;
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** Pointer to const Windows error code message. */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsynctypedef const RTWINERRMSG *PCRTWINERRMSG;
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/**
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * Get the message structure corresponding to a given Windows error code.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync *
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @returns Pointer to read-only message description.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync * @param rc The status code.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncRTDECL(PCRTWINERRMSG) RTErrWinGet(long rc);
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#endif /* __WIN__ */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#endif /* IN_RING3 */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @} */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync/** @} */
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync__END_DECLS
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#endif
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync