VirtualBox

Changeset 96077 in vbox for trunk/include


Ignore:
Timestamp:
Aug 6, 2022 1:58:08 AM (2 years ago)
Author:
vboxsync
Message:

IPRT/RTStream: Added a RTStrmOpenFileHandle API for implementing fdopen & tmpfile[_s]. bugref:10261

File:
1 edited

Legend:

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

    r95977 r96077  
    127127 */
    128128RTR3DECL(int) RTStrmOpenF(const char *pszMode, PRTSTREAM *ppStream, const char *pszFilenameFmt, ...) RT_IPRT_FORMAT_ATTR(3, 4);
     129
     130/**
     131 * Opens a file stream for a RTFILE handle, taking ownership of the handle.
     132 *
     133 * @returns iprt status code.
     134 * @param   hFile           The file handle to use.  On success, handle
     135 *                          ownership is transfered to the stream and it will be
     136 *                          closed when the stream closes.
     137 * @param   pszMode         The open mode, accept the same as RTStrOpen and
     138 *                          friends however it is only used to figure out what
     139 *                          we can do with the handle.
     140 * @param   fFlags          Reserved, must be zero.
     141 * @param   ppStream        Where to store the opened stream.
     142 */
     143RTR3DECL(int) RTStrmOpenFileHandle(RTFILE hFile, const char *pszMode, uint32_t fFlags, PRTSTREAM *ppStream);
    129144
    130145/**
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