VirtualBox

Changeset 8288 in vbox for trunk/include


Ignore:
Timestamp:
Apr 22, 2008 1:25:55 PM (17 years ago)
Author:
vboxsync
Message:

Added RTErrConvertFromDarwin() as a merge of the IO, Kern and COM versions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/err.h

    r8245 r8288  
    9292 *
    9393 * @returns iprt status code.
    94  * @param   iNativeCode    errno code.
     94 * @param   iNativeCode    HRESULT error code.
     95 * @remark  Darwin ring-3 only.
     96 */
     97RTDECL(int)  RTErrConvertFromDarwinCOM(int32_t iNativeCode);
     98
     99/**
     100 * Converts a Darwin IOReturn error to an iprt status code.
     101 *
     102 * @returns iprt status code.
     103 * @param   iNativeCode    IOReturn error code.
    95104 * @remark  Darwin only.
    96105 */
    97 RTDECL(int)  RTErrConvertFromDarwinCOM(int32_t iNativeCode);
    98 
    99 /**
    100  * Converts a Darwin IOReturn error to an iprt status code.
     106RTDECL(int)  RTErrConvertFromDarwinIO(int iNativeCode);
     107
     108/**
     109 * Converts a Darwin kern_return_t error to an iprt status code.
    101110 *
    102111 * @returns iprt status code.
    103  * @param   iNativeCode    errno code.
     112 * @param   iNativeCode    kern_return_t error code.
    104113 * @remark  Darwin only.
    105114 */
    106 RTDECL(int)  RTErrConvertFromDarwinIO(int iNativeCode);
    107 
    108 /**
    109  * Converts a Darwin kern_return_t error to an iprt status code.
     115RTDECL(int)  RTErrConvertFromDarwinKern(int iNativeCode);
     116
     117/**
     118 * Converts a Darwin error to an iprt status code.
     119 *
     120 * This will consult RTErrConvertFromDarwinKern, RTErrConvertFromDarwinIO
     121 * and RTErrConvertFromDarwinCOM in this order. The latter is ring-3 only as it
     122 * doesn't apply elsewhere.
    110123 *
    111124 * @returns iprt status code.
    112  * @param   iNativeCode    errno code.
    113  * @remark  Darwin only.
    114  */
    115 RTDECL(int)  RTErrConvertFromDarwinKern(int iNativeCode);
     125 * @param   iNativeCode    Darwin error code.
     126 * @remarks Darwin only.
     127 * @remarks This is recommended over RTErrConvertFromDarwinKern and RTErrConvertFromDarwinIO
     128 *          since these are really just subsets of the same error space.
     129 */
     130RTDECL(int)  RTErrConvertFromDarwin(int iNativeCode);
    116131
    117132/**
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette