summaryrefslogtreecommitdiff
path: root/base/hostinfo.hh
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2003-12-15 18:24:02 -0500
committerNathan Binkert <binkertn@umich.edu>2003-12-15 18:24:02 -0500
commitce4aba3e54eb69b0902c75de2db1810ed7dcfe6b (patch)
treeb0e747e920051d0a8600a883266cb4332ab30e0e /base/hostinfo.hh
parentef659565ffcd8927323d068c29f03a4d628c010e (diff)
downloadgem5-ce4aba3e54eb69b0902c75de2db1810ed7dcfe6b.tar.xz
Add support for getting the hostname
--HG-- extra : convert_revision : 498a950e574059eac2e3b1969880ecc04cf53f31
Diffstat (limited to 'base/hostinfo.hh')
-rw-r--r--base/hostinfo.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/hostinfo.hh b/base/hostinfo.hh
index 2293d2b6a..453a1e69a 100644
--- a/base/hostinfo.hh
+++ b/base/hostinfo.hh
@@ -29,8 +29,12 @@
#ifndef __HOSTINFO_HH__
#define __HOSTINFO_HH__
+#include <string>
+
#include "sim/host.hh"
+std::string &hostname();
+
uint64_t procInfo(char *filename, char *target);
inline uint64_t memUsage()