22 #include <sys/utsname.h> 28 return std::string(mysys.nodename);
42 tm* now_c = localtime(&now);
44 strftime(d, 32, format, now_c);
45 return std::string(d);
49 #include <sys/sysinfo.h> 50 #include <sys/resource.h> 58 si.freeram += si.bufferram;
70 getrusage(RUSAGE_SELF, &RU);
string getHostName()
< return the host name