OmniSciDB  04ee39c94c
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.

Functions

std::string get_hostname ()
 

Function Documentation

◆ get_hostname()

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];
8 
9  gethostname(hostname, _POSIX_HOST_NAME_MAX);
10 
11  return {hostname};
12 }
+ Here is the caller graph for this function: