VirtualBox

Ignore:
Timestamp:
Feb 9, 2019 6:30:14 PM (6 years ago)
Author:
vboxsync
Message:

IPRT: Implemented RTFileSgWriteAt and RTfileSgReadAt for linux and freebsd. Clearified RTFileWriteAt and RTFileSgWriteAt specs wrt RTFILE_O_APPEND. bugref:9172

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/generic/fileio-at-generic.cpp

    r77209 r77235  
    3636
    3737
    38 /**
    39  * Read bytes from a file at a given offset.
    40  * This function may modify the file position.
    41  *
    42  * @returns iprt status code.
    43  * @param   File        Handle to the file.
    44  * @param   off         Where to read.
    45  * @param   pvBuf       Where to put the bytes we read.
    46  * @param   cbToRead    How much to read.
    47  * @param   *pcbRead    How much we actually read.
    48  *                      If NULL an error will be returned for a partial read.
    49  */
    5038RTDECL(int)  RTFileReadAt(RTFILE File, RTFOFF off, void *pvBuf, size_t cbToRead, size_t *pcbRead)
    5139{
     
    5745
    5846
    59 /**
    60  * Write bytes to a file at a given offset.
    61  * This function may modify the file position.
    62  *
    63  * @returns iprt status code.
    64  * @param   File        Handle to the file.
    65  * @param   off         Where to write.
    66  * @param   pvBuf       What to write.
    67  * @param   cbToWrite   How much to write.
    68  * @param   *pcbWritten How much we actually wrote.
    69  *                      If NULL an error will be returned for a partial write.
    70  */
    7147RTDECL(int)  RTFileWriteAt(RTFILE File, RTFOFF off, const void *pvBuf, size_t cbToWrite, size_t *pcbWritten)
    7248{
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