VirtualBox

Changeset 77235 in vbox for trunk/src/VBox/Runtime/r3


Ignore:
Timestamp:
Feb 9, 2019 6:30:14 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
128742
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/r3/posix/fileio-at-posix.cpp

    r77210 r77235  
    8686                ssize_t cbWrittenPart = pwrite(RTFileToNative(hFile), (const char *)pvBuf + cbWritten, cbToWrite - cbWritten,
    8787                                               off + cbWritten);
    88                 if (cbWrittenPart <= 0)
    89                     return RTErrConvertFromErrno(errno);
     88                if (cbWrittenPart < 0)
     89                    return cbWrittenPart < 0 ? RTErrConvertFromErrno(errno) : VERR_TRY_AGAIN;
    9090                cbWritten += cbWrittenPart;
    9191            }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette