summaryrefslogtreecommitdiffstats
path: root/base/platform_file.h
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-26 22:17:19 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-26 22:17:19 +0000
commit29b5121000536bc5b11488a6235ef66302265ec5 (patch)
treead91611ccf0f06a2bbf7fd0a0920a40c7e378b1d /base/platform_file.h
parent5e36e7f06e1be8b93ecdd09acfc0f26ea3177fb2 (diff)
downloadchromium_src-29b5121000536bc5b11488a6235ef66302265ec5.zip
chromium_src-29b5121000536bc5b11488a6235ef66302265ec5.tar.gz
chromium_src-29b5121000536bc5b11488a6235ef66302265ec5.tar.bz2
Base: WritePlatformFile now retries the operation if
the OS writes less than expected (for POSIX). BUG=94161 TEST=none Review URL: http://codereview.chromium.org/7745008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98497 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/platform_file.h')
-rw-r--r--base/platform_file.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/base/platform_file.h b/base/platform_file.h
index 856ec8e..cf3716c 100644
--- a/base/platform_file.h
+++ b/base/platform_file.h
@@ -123,7 +123,8 @@ BASE_EXPORT int ReadPlatformFile(PlatformFile file, int64 offset,
// Writes the given buffer into the file at the given offset, overwritting any
// data that was previously there. Returns the number of bytes written, or -1
-// on error.
+// on error. Note that this function makes a best effort to write all data on
+// all platforms.
BASE_EXPORT int WritePlatformFile(PlatformFile file, int64 offset,
const char* data, int size);