OmniSciDB  0fdbebe030
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SysInfo.h File Reference
#include <string>
+ Include dependency graph for SysInfo.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


std::string get_hostname ()

Function Documentation

std::string get_hostname ( )

Definition at line 6 of file SysInfo.cpp.

Referenced by MapDHandler::get_memory(), MapDHandler::get_server_status(), and MapDHandler::get_status().

6  {
7  char hostname[_POSIX_HOST_NAME_MAX];
9  gethostname(hostname, _POSIX_HOST_NAME_MAX);
11  return {hostname};
12 }

+ Here is the caller graph for this function: