Changeset 77632 in vbox for trunk/include/iprt
- Timestamp:
- Mar 10, 2019 1:33:52 PM (6 years ago)
- Location:
- trunk/include/iprt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/file.h
r77236 r77632 370 370 * @param pvBuf Where to put the bytes we read. 371 371 * @param cbToRead How much to read. 372 * @param *pcbReadHow much we actually read .372 * @param pcbRead How much we actually read . 373 373 * If NULL an error will be returned for a partial read. 374 374 */ … … 383 383 * @param pvBuf Where to put the bytes we read. 384 384 * @param cbToRead How much to read. 385 * @param *pcbReadHow much we actually read .385 * @param pcbRead How much we actually read . 386 386 * If NULL an error will be returned for a partial read. 387 * 388 * @note OS/2 requires separate seek and write calls. 389 * 387 390 * @note Whether the file position is modified or not is host specific. 388 391 */ 389 392 RTDECL(int) RTFileReadAt(RTFILE File, RTFOFF off, void *pvBuf, size_t cbToRead, size_t *pcbRead); 393 394 /** 395 * Read bytes from a file at a given offset into a S/G buffer. 396 * 397 * @returns iprt status code. 398 * @param hFile Handle to the file. 399 * @param pSgBuf Pointer to the S/G buffer to read into. 400 * @param cbToRead How much to read. 401 * @param pcbRead How much we actually read . 402 * If NULL an error will be returned for a partial read. 403 * 404 * @note It is not possible to guarantee atomicity on all platforms, so 405 * caller must take care wrt concurrent access to @a hFile. 406 */ 407 RTDECL(int) RTFileSgRead(RTFILE hFile, PRTSGBUF pSgBuf, size_t cbToRead, size_t *pcbRead); 390 408 391 409 /** … … 397 415 * @param pSgBuf Pointer to the S/G buffer to read into. 398 416 * @param cbToRead How much to read. 399 * @param *pcbReadHow much we actually read .417 * @param pcbRead How much we actually read . 400 418 * If NULL an error will be returned for a partial read. 419 * 401 420 * @note Whether the file position is modified or not is host specific. 421 * 422 * @note It is not possible to guarantee atomicity on all platforms, so 423 * caller must take care wrt concurrent access to @a hFile. 402 424 */ 403 425 RTDECL(int) RTFileSgReadAt(RTFILE hFile, RTFOFF off, PRTSGBUF pSgBuf, size_t cbToRead, size_t *pcbRead); … … 410 432 * @param pvBuf What to write. 411 433 * @param cbToWrite How much to write. 412 * @param *pcbWrittenHow much we actually wrote.434 * @param pcbWritten How much we actually wrote. 413 435 * If NULL an error will be returned for a partial write. 414 436 */ … … 423 445 * @param pvBuf What to write. 424 446 * @param cbToWrite How much to write. 425 * @param *pcbWrittenHow much we actually wrote.447 * @param pcbWritten How much we actually wrote. 426 448 * If NULL an error will be returned for a partial write. 427 449 * 450 * @note OS/2 requires separate seek and write calls. 451 * 428 452 * @note Whether the file position is modified or not is host specific. 453 * 429 454 * @note Whether @a off is used when @a hFile was opened with RTFILE_O_APPEND 430 455 * is also host specific. Currently Linux is the the only one … … 432 457 */ 433 458 RTDECL(int) RTFileWriteAt(RTFILE hFile, RTFOFF off, const void *pvBuf, size_t cbToWrite, size_t *pcbWritten); 459 460 /** 461 * Write bytes from a S/G buffer to a file. 462 * 463 * @returns iprt status code. 464 * @param hFile Handle to the file. 465 * @param pSgBuf What to write. 466 * @param cbToWrite How much to write. 467 * @param pcbWritten How much we actually wrote. 468 * If NULL an error will be returned for a partial write. 469 * 470 * @note It is not possible to guarantee atomicity on all platforms, so 471 * caller must take care wrt concurrent access to @a hFile. 472 */ 473 RTDECL(int) RTFileSgWrite(RTFILE hFile, PRTSGBUF pSgBuf, size_t cbToWrite, size_t *pcbWritten); 434 474 435 475 /** … … 441 481 * @param pSgBuf What to write. 442 482 * @param cbToWrite How much to write. 443 * @param *pcbWrittenHow much we actually wrote.483 * @param pcbWritten How much we actually wrote. 444 484 * If NULL an error will be returned for a partial write. 445 485 * 486 * @note It is not possible to guarantee atomicity on all platforms, so 487 * caller must take care wrt concurrent access to @a hFile. 488 * 446 489 * @note Whether the file position is modified or not is host specific. 490 * 447 491 * @note Whether @a off is used when @a hFile was opened with RTFILE_O_APPEND 448 492 * is also host specific. Currently Linux is the the only one -
trunk/include/iprt/mangling.h
r77549 r77632 956 956 # define RTFileSetSize RT_MANGLER(RTFileSetSize) 957 957 # define RTFileSetTimes RT_MANGLER(RTFileSetTimes) 958 # define RTFileSgRead RT_MANGLER(RTFileSgRead) 958 959 # define RTFileSgReadAt RT_MANGLER(RTFileSgReadAt) 960 # define RTFileSgWrite RT_MANGLER(RTFileSgWrite) 959 961 # define RTFileSgWriteAt RT_MANGLER(RTFileSgWriteAt) 960 962 # define RTFileTell RT_MANGLER(RTFileTell)
Note:
See TracChangeset
for help on using the changeset viewer.