VirtualBox

Changeset 100929 in vbox


Ignore:
Timestamp:
Aug 21, 2023 11:09:45 PM (17 months ago)
Author:
vboxsync
Message:

IPRT/vfs: Reverted r158866 after committing too much.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/formats/codeview.h

    r100928 r100929  
    326326    RTCVSEGMAPHDR   Hdr;
    327327    /** Descriptor array. */
    328     RT_FLEXIBLE_ARRAY_EXTENSION
    329     RTCVSEGMAPDESC  aDescs[RT_FLEXIBLE_ARRAY];
     328    RTCVSEGMAPDESC  aDescs[1];
    330329} RTCVSEGMAP;
    331330/** Pointer to a segment map subsection. */
     
    536535    kCvSymType_V2_LThread,
    537536    kCvSymType_V2_GThread,
    538     kCvSymType_V2_LProcMips,
    539     kCvSymType_V2_GProcMips,
     537    kCvSymType_V2_Unknown_1010,
     538    kCvSymType_V2_Unknown_1011,
    540539    kCvSymType_V2_FrameInfo,
    541540    kCvSymType_V2_Compliand,
     
    568567    kCvSymType_V3_MSTool,               /**< RTCVSYMV3MSTOOL */
    569568
    570     kCvSymType_V3_ProcRef = 0x1125,
    571     kCvSymType_V3_LProcRef = 0x1127,
    572     kCvSymType_V3_Unknown_1128,
     569    kCvSymType_V3_PubFunc1 = 0x1125,
     570    kCvSymType_V3_PubFunc2 = 0x1127,
    573571    kCvSymType_V3_SectInfo = 0x1136,
    574572    kCvSymType_V3_SubSectInfo,
     
    638636typedef RTCVSYMV3LABEL *PRTCVSYMV3LABEL;
    639637typedef RTCVSYMV3LABEL const *PCRTCVSYMV3LABEL;
    640 
    641 /**
    642  * kCvSymType_V2_LData, kCvSymType_V2_GData and kCvSymType_V2_Pub format.
    643  *
    644  * Same as RTCVSYMV3TYPEDNAME but with pascal string name, rather than C.
    645  */
    646 typedef struct RTCVSYMV2TYPEDNAME
    647 {
    648     /** The type ID. */
    649     uint32_t        idType;
    650     /** Offset into iSection of this symbol. */
    651     uint32_t        offSection;
    652     /** The index of the section where the symbol lives. */
    653     uint16_t        iSection;
    654     /** Name length. */
    655     uint8_t         cchName;
    656     /** Zero terminated symbol name (variable length). */
    657     RT_FLEXIBLE_ARRAY_EXTENSION
    658     char            achName[RT_FLEXIBLE_ARRAY];
    659 } RTCVSYMV2TYPEDNAME;
    660 AssertCompileMemberOffset(RTCVSYMV2TYPEDNAME, achName, 11);
    661 typedef RTCVSYMV2TYPEDNAME *PRTCVSYMV2TYPEDNAME;
    662 typedef RTCVSYMV2TYPEDNAME const *PCRTCVSYMV2TYPEDNAME;
    663638
    664639/**
  • trunk/include/iprt/mangling.h

    r100928 r100929  
    29162916# define RTVfsFileQueryMaxSize                          RT_MANGLER(RTVfsFileQueryMaxSize)
    29172917# define RTVfsFileRead                                  RT_MANGLER(RTVfsFileRead)
    2918 # define RTVfsFileReadAll                               RT_MANGLER(RTVfsFileReadAll)
    2919 # define RTVfsFileReadAllFree                           RT_MANGLER(RTVfsFileReadAllFree)
    29202918# define RTVfsFileReadAt                                RT_MANGLER(RTVfsFileReadAt)
    29212919# define RTVfsFileRelease                               RT_MANGLER(RTVfsFileRelease)
  • trunk/include/iprt/vfs.h

    r100928 r100929  
    10661066 * Reads the remainder of the stream into a memory buffer.
    10671067 *
    1068  * For simplifying string-style processing, there is a zero byte after the
     1068 * For simplifying string-style processing, the is a zero byte after the
    10691069 * returned buffer, making sure it can be used as a zero terminated string.
    10701070 *
     
    10741074 *                          RTVfsIoStrmReadAllFree for freeing, not RTMemFree!
    10751075 * @param   pcbBuf          Where to return the buffer size.
    1076  * @sa      RTVfsFileReadAll
    10771076 */
    10781077RTDECL(int)         RTVfsIoStrmReadAll(RTVFSIOSTREAM hVfsIos, void **ppvBuf, size_t *pcbBuf);
     
    10831082 * @param   pvBuf           What RTVfsIoStrmReadAll returned.
    10841083 * @param   cbBuf           What RTVfsIoStrmReadAll returned.
    1085  * @sa      RTVfsFileReadAllFree
    10861084 */
    10871085RTDECL(void)        RTVfsIoStrmReadAllFree(void *pvBuf, size_t cbBuf);
     
    14101408RTDECL(int)         RTVfsFileRead(RTVFSFILE hVfsFile, void *pvBuf, size_t cbToRead, size_t *pcbRead);
    14111409RTDECL(int)         RTVfsFileReadAt(RTVFSFILE hVfsFile, RTFOFF off, void *pvBuf, size_t cbToRead, size_t *pcbRead);
    1412 
    1413 /**
    1414  * Reads the remainder of the file into a memory buffer.
    1415  *
    1416  * For simplifying string-style processing, there is a zero byte after the
    1417  * returned buffer, making sure it can be used as a zero terminated string.
    1418  *
    1419  * @returns IPRT status code.
    1420  * @param   hVfsIos         The VFS I/O stream handle.
    1421  * @param   ppvBuf          Where to return the buffer.  Must pass to
    1422  *                          RTVfsFileReadAllFree for freeing, not RTMemFree!
    1423  * @param   pcbBuf          Where to return the buffer size.
    1424  * @sa      RTVfsIoStrmReadAll
    1425  */
    1426 RTDECL(int)         RTVfsFileReadAll(RTVFSFILE hVfsFile, void **ppvBuf, size_t *pcbBuf);
    1427 
    1428 /**
    1429  * Free memory buffer returned by RTVfsFileReadAll.
    1430  *
    1431  * @param   pvBuf           What RTVfsFileReadAll returned.
    1432  * @param   cbBuf           What RTVfsFileReadAll returned.
    1433  * @sa      RTVfsIoStrmReadAllFree
    1434  */
    1435 RTDECL(void)        RTVfsFileReadAllFree(void *pvBuf, size_t cbBuf);
    14361410
    14371411/**
  • trunk/src/VBox/Runtime/common/vfs/vfsiosmisc.cpp

    r100928 r100929  
    237237}
    238238
    239 
    240 RTDECL(int) RTVfsFileReadAll(RTVFSFILE hVfsFile, void **ppvBuf, size_t *pcbBuf)
    241 {
    242     RTVFSIOSTREAM hVfsIos = RTVfsFileToIoStream(hVfsFile);
    243     int rc = RTVfsIoStrmReadAll(hVfsIos, ppvBuf, pcbBuf);
    244     RTVfsIoStrmRelease(hVfsIos);
    245     return rc;
    246 }
    247 
    248 
    249 RTDECL(void) RTVfsFileReadAllFree(void *pvBuf, size_t cbBuf)
    250 {
    251     RTVfsIoStrmReadAllFree(pvBuf, cbBuf);
    252 }
    253 
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