summaryrefslogtreecommitdiffstats
path: root/base/file_util.h
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-29 20:45:22 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-29 20:45:22 +0000
commit91d91fac1db8f2f163e4873bd93a65f4fada37ee (patch)
treea128f7ef2b816771bc0a69fa025350992c4ba5b9 /base/file_util.h
parent666f40f61545af4f8f52d964c341d01630a352cd (diff)
downloadchromium_src-91d91fac1db8f2f163e4873bd93a65f4fada37ee.zip
chromium_src-91d91fac1db8f2f163e4873bd93a65f4fada37ee.tar.gz
chromium_src-91d91fac1db8f2f163e4873bd93a65f4fada37ee.tar.bz2
linux: components support for base/
This builds base_unittests using libbase as a component. Review URL: http://codereview.chromium.org/6904109 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83583 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util.h')
-rw-r--r--base/file_util.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/base/file_util.h b/base/file_util.h
index 6fe9a3d..a187fee 100644
--- a/base/file_util.h
+++ b/base/file_util.h
@@ -180,15 +180,16 @@ BASE_API bool ReadFileToString(const FilePath& path, std::string* contents);
// Read exactly |bytes| bytes from file descriptor |fd|, storing the result
// in |buffer|. This function is protected against EINTR and partial reads.
// Returns true iff |bytes| bytes have been successfuly read from |fd|.
-bool ReadFromFD(int fd, char* buffer, size_t bytes);
+BASE_API bool ReadFromFD(int fd, char* buffer, size_t bytes);
// Creates a symbolic link at |symlink| pointing to |target|. Returns
// false on failure.
-bool CreateSymbolicLink(const FilePath& target, const FilePath& symlink);
+BASE_API bool CreateSymbolicLink(const FilePath& target,
+ const FilePath& symlink);
// Reads the given |symlink| and returns where it points to in |target|.
// Returns false upon failure.
-bool ReadSymbolicLink(const FilePath& symlink, FilePath* target);
+BASE_API bool ReadSymbolicLink(const FilePath& symlink, FilePath* target);
#endif // defined(OS_POSIX)
#if defined(OS_WIN)