Changeset 26755 in vbox for trunk/include/iprt/pipe.h
- Timestamp:
- Feb 24, 2010 5:02:09 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/pipe.h
r26724 r26755 79 79 * 80 80 * @returns IPRT status code. 81 * @retval VERR_WRONG_ORDER if racing a call to RTPipeReadBlocking. 82 * 81 83 * @param hPipe The IPRT pipe handle to read from. 82 84 * @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. 84 86 * @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. 86 89 * @sa RTPipeReadBlocking. 87 90 */ … … 92 95 * 93 96 * @returns IPRT status code. 97 * @retval VERR_WRONG_ORDER if racing a call to RTPipeRead. 98 * 94 99 * @param hPipe The IPRT pipe handle to read from. 95 100 * @param pvBuf Where to put the bytes we read. … … 99 104 100 105 /** 101 * Write bytes to a pipe. 102 * 103 * This will block until all bytes are written. 106 * Write bytes to a pipe, non-blocking. 104 107 * 105 108 * @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 */ 116 RTDECL(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 * 106 124 * @param hPipe The IPRT pipe handle to write to. 107 125 * @param pvBuf What to write. 108 126 * @param cbToWrite How much to write. 109 127 */ 110 RTDECL(int) RTPipeWrite (RTPIPE hPipe, const void *pvBuf, size_t cbToWrite);128 RTDECL(int) RTPipeWriteBlocking(RTPIPE hPipe, const void *pvBuf, size_t cbToWrite); 111 129 112 130 /**
Note:
See TracChangeset
for help on using the changeset viewer.