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

Unified Diff: base/linux_util.h

Issue 7076007: Add BASE_API to the remaining functions in linux_util. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/linux_util.h
diff --git a/base/linux_util.h b/base/linux_util.h
index 0e079d787cf4079ca114e060f69707e9700d4501..de597db2ed2257774bcaf8bf65bb5588f26d8fde 100644
--- a/base/linux_util.h
+++ b/base/linux_util.h
@@ -19,26 +19,27 @@ static const char kFindInodeSwitch[] = "--find-inode";
// This is declared here so the crash reporter can access the memory directly
// in compromised context without going through the standard library.
-extern char g_linux_distro[];
+BASE_API extern char g_linux_distro[];
// Get the Linux Distro if we can, or return "Unknown".
-std::string GetLinuxDistro();
+BASE_API std::string GetLinuxDistro();
// Set the Linux Distro string.
-void SetLinuxDistro(const std::string& distro);
+BASE_API void SetLinuxDistro(const std::string& distro);
// Return the inode number for the UNIX domain socket |fd|.
BASE_API bool FileDescriptorGetInode(ino_t* inode_out, int fd);
// Find the process which holds the given socket, named by inode number. If
// multiple processes hold the socket, this function returns false.
-bool FindProcessHoldingSocket(pid_t* pid_out, ino_t socket_inode);
+BASE_API bool FindProcessHoldingSocket(pid_t* pid_out, ino_t socket_inode);
// For a given process |pid|, look through all its threads and find the first
// thread with /proc/[pid]/task/[thread_id]/syscall whose first N bytes matches
// |expected_data|, where N is the length of |expected_data|.
// Returns the thread id or -1 on error.
-pid_t FindThreadIDWithSyscall(pid_t pid, const std::string& expected_data);
+BASE_API pid_t FindThreadIDWithSyscall(pid_t pid,
+ const std::string& expected_data);
} // namespace base
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698