| Index: base/file_util.h
|
| diff --git a/base/file_util.h b/base/file_util.h
|
| index bd339980494e924d524f7a65619c70d3681ecbe9..32dce3b1a5ee0d93a83a930b8891b0f3a6a613f0 100644
|
| --- a/base/file_util.h
|
| +++ b/base/file_util.h
|
| @@ -328,20 +328,22 @@ BASE_EXPORT bool TruncateFile(FILE* file);
|
| // the number of read bytes, or -1 on error.
|
| BASE_EXPORT int ReadFile(const FilePath& filename, char* data, int size);
|
|
|
| -} // namespace base
|
| -
|
| -// -----------------------------------------------------------------------------
|
| -
|
| -namespace file_util {
|
| -
|
| // Writes the given buffer into the file, overwriting any data that was
|
| // previously there. Returns the number of bytes written, or -1 on error.
|
| -BASE_EXPORT int WriteFile(const base::FilePath& filename, const char* data,
|
| +BASE_EXPORT int WriteFile(const FilePath& filename, const char* data,
|
| int size);
|
| +
|
| #if defined(OS_POSIX)
|
| // Append the data to |fd|. Does not close |fd| when done.
|
| BASE_EXPORT int WriteFileDescriptor(const int fd, const char* data, int size);
|
| #endif
|
| +
|
| +} // namespace base
|
| +
|
| +// -----------------------------------------------------------------------------
|
| +
|
| +namespace file_util {
|
| +
|
| // Append the given buffer into the file. Returns the number of bytes written,
|
| // or -1 on error.
|
| BASE_EXPORT int AppendToFile(const base::FilePath& filename,
|
|
|