Index: base/linux_util.h |
=================================================================== |
--- base/linux_util.h (revision 29799) |
+++ base/linux_util.h (working copy) |
@@ -53,6 +53,13 @@ |
// Convenience wrapper that calls GetDesktopEnvironment() first. |
const char* GetDesktopEnvironmentName(EnvironmentVariableGetter* env); |
+// Return the inode number for the UNIX domain socket |fd|. |
+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); |
+ |
} // namespace base |
#endif // BASE_LINUX_UTIL_H__ |