Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(762)

Unified Diff: base/safe_strerror_posix.h

Issue 6902177: linux components: expose more BASE_API used by Chrome itself (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyrights Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/safe_strerror_posix.h
diff --git a/base/safe_strerror_posix.h b/base/safe_strerror_posix.h
index 03c18c80f4ac81eaf5a7a7a0bba3cf93cb28c034..e72c836ee64d21a20705c87be4bd84616fb92066 100644
--- a/base/safe_strerror_posix.h
+++ b/base/safe_strerror_posix.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -8,6 +8,8 @@
#include <string>
+#include "base/base_api.h"
+
// BEFORE using anything from this file, first look at PLOG and friends in
// logging.h and use them instead if applicable.
//
@@ -24,7 +26,7 @@
// result is always null-terminated. The value of errno is never changed.
//
// Use this instead of strerror_r().
-void safe_strerror_r(int err, char *buf, size_t len);
+BASE_API void safe_strerror_r(int err, char *buf, size_t len);
// Calls safe_strerror_r with a buffer of suitable size and returns the result
// in a C++ string.
@@ -32,6 +34,6 @@ void safe_strerror_r(int err, char *buf, size_t len);
// Use this instead of strerror(). Note though that safe_strerror_r will be
// more robust in the case of heap corruption errors, since it doesn't need to
// allocate a string.
-std::string safe_strerror(int err);
+BASE_API std::string safe_strerror(int err);
#endif // BASE_SAFE_STRERROR_POSIX_H_
« base/linux_util.h ('K') | « base/process_util.h ('k') | sandbox/linux/suid/process_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698