VirtualBox

Changeset 84146 in vbox


Ignore:
Timestamp:
May 5, 2020 3:10:47 PM (4 years ago)
Author:
vboxsync
Message:

IPRT: Added RTVfsFilePrintf, RTVfsFilePrintfV, RTVfsIoStrmPrintf and RTVfsIoStrmPrintfV. bugref:9699

Location:
trunk
Files:
1 added
3 edited

Legend:

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

    r84054 r84146  
    27122712# define RTVfsFileOpenNormal                            RT_MANGLER(RTVfsFileOpenNormal)
    27132713# define RTVfsFilePoll                                  RT_MANGLER(RTVfsFilePoll)
     2714# define RTVfsFilePrintf                                RT_MANGLER(RTVfsFilePrintf)
     2715# define RTVfsFilePrintfV                               RT_MANGLER(RTVfsFilePrintfV)
    27142716# define RTVfsFileQueryInfo                             RT_MANGLER(RTVfsFileQueryInfo)
    27152717# define RTVfsFileQueryMaxSize                          RT_MANGLER(RTVfsFileQueryMaxSize)
     
    27492751# define RTVfsIoStrmOpenNormal                          RT_MANGLER(RTVfsIoStrmOpenNormal)
    27502752# define RTVfsIoStrmPoll                                RT_MANGLER(RTVfsIoStrmPoll)
     2753# define RTVfsIoStrmPrintf                              RT_MANGLER(RTVfsIoStrmPrintf)
     2754# define RTVfsIoStrmPrintfV                             RT_MANGLER(RTVfsIoStrmPrintfV)
    27512755# define RTVfsIoStrmQueryInfo                           RT_MANGLER(RTVfsIoStrmQueryInfo)
    27522756# define RTVfsIoStrmRead                                RT_MANGLER(RTVfsIoStrmRead)
  • trunk/include/iprt/vfs.h

    r82968 r84146  
    12071207/** @}  */
    12081208
     1209/**
     1210 * Printf-like write function.
     1211 *
     1212 * @returns Number of characters written on success, negative error status on
     1213 *          failure.
     1214 * @param   hVfsIos         The VFS I/O stream handle to write to.
     1215 * @param   pszFormat       The format string.
     1216 * @param   ...             Format arguments.
     1217 */
     1218RTDECL(ssize_t)     RTVfsIoStrmPrintf(RTVFSIOSTREAM hVfsIos, const char *pszFormat, ...);
     1219
     1220/**
     1221 * Printf-like write function.
     1222 *
     1223 * @returns Number of characters written on success, negative error status on
     1224 *          failure.
     1225 * @param   hVfsIos         The VFS I/O stream handle to write to.
     1226 * @param   pszFormat       The format string.
     1227 * @param   va              Format arguments.
     1228 */
     1229RTDECL(ssize_t)     RTVfsIoStrmPrintfV(RTVFSIOSTREAM hVfsIos, const char *pszFormat, va_list va);
     1230
    12091231/** @} */
    12101232
     
    14841506RTDECL(uint64_t)    RTVfsFileGetOpenFlags(RTVFSFILE hVfsFile);
    14851507
     1508/**
     1509 * Printf-like write function.
     1510 *
     1511 * @returns Number of characters written on success, negative error status on
     1512 *          failure.
     1513 * @param   hVfsFile        The VFS file handle to write to.
     1514 * @param   pszFormat       The format string.
     1515 * @param   ...             Format arguments.
     1516 */
     1517RTDECL(ssize_t)     RTVfsFilePrintf(RTVFSFILE hVfsFile, const char *pszFormat, ...);
     1518
     1519/**
     1520 * Printf-like write function.
     1521 *
     1522 * @returns Number of characters written on success, negative error status on
     1523 *          failure.
     1524 * @param   hVfsFile        The VFS file handle to write to.
     1525 * @param   pszFormat       The format string.
     1526 * @param   va              Format arguments.
     1527 */
     1528RTDECL(ssize_t)     RTVfsFilePrintfV(RTVFSFILE hVfsFile, const char *pszFormat, va_list va);
     1529
    14861530/** @} */
    14871531
  • trunk/src/VBox/Runtime/Makefile.kmk

    r84067 r84146  
    675675        common/vfs/vfsstdfile.cpp \
    676676        common/vfs/vfsstdpipe.cpp \
     677        common/vfs/vfsprintf.cpp \
    677678        common/zip/tar.cpp \
    678679        common/zip/tarcmd.cpp \
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