VirtualBox

Changeset 26755 in vbox for trunk/include/iprt/pipe.h


Ignore:
Timestamp:
Feb 24, 2010 5:02:09 PM (15 years ago)
Author:
vboxsync
Message:

iprt/pipe.h: Need RTPipeWriteBlocking, some spec adjustments.

File:
1 edited

Legend:

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

    r26724 r26755  
    7979 *
    8080 * @returns IPRT status code.
     81 * @retval  VERR_WRONG_ORDER if racing a call to RTPipeReadBlocking.
     82 *
    8183 * @param   hPipe           The IPRT pipe handle to read from.
    8284 * @param   pvBuf           Where to put the bytes we read.
    83  * @param   cbToRead        How much to read.
     85 * @param   cbToRead        How much to read.  Must be greater than 0.
    8486 * @param   pcbRead         Where to return the number of bytes that has been
    85  *                          read (mandatory).
     87 *                          read (mandatory).  This is 0 if there is no more
     88 *                          bytes to read.
    8689 * @sa      RTPipeReadBlocking.
    8790 */
     
    9295 *
    9396 * @returns IPRT status code.
     97 * @retval  VERR_WRONG_ORDER if racing a call to RTPipeRead.
     98 *
    9499 * @param   hPipe           The IPRT pipe handle to read from.
    95100 * @param   pvBuf           Where to put the bytes we read.
     
    99104
    100105/**
    101  * Write bytes to a pipe.
    102  *
    103  * This will block until all bytes are written.
     106 * Write bytes to a pipe, non-blocking.
    104107 *
    105108 * @returns IPRT status code.
     109 * @retval  VERR_WRONG_ORDER if racing a call to RTPipeWriteBlocking.
     110 *
     111 * @param   hPipe           The IPRT pipe handle to write to.
     112 * @param   pvBuf           What to write.
     113 * @param   cbToWrite       How much to write.
     114 * @param   pcbWritten      How many bytes we wrote.
     115 */
     116RTDECL(int) RTPipeWrite(RTPIPE hPipe, const void *pvBuf, size_t cbToWrite, size_t *pcbWritten);
     117
     118/**
     119 * Write bytes to a pipe, blocking.
     120 *
     121 * @returns IPRT status code.
     122 * @retval  VERR_WRONG_ORDER if racing a call to RTPipeWrite.
     123 *
    106124 * @param   hPipe           The IPRT pipe handle to write to.
    107125 * @param   pvBuf           What to write.
    108126 * @param   cbToWrite       How much to write.
    109127 */
    110 RTDECL(int) RTPipeWrite(RTPIPE hPipe, const void *pvBuf, size_t cbToWrite);
     128RTDECL(int) RTPipeWriteBlocking(RTPIPE hPipe, const void *pvBuf, size_t cbToWrite);
    111129
    112130/**
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