OmniSciDB  b24e664e58
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SysInfo.cpp File Reference
#include "SysInfo.h"
#include <unistd.h>
#include <climits>
+ Include dependency graph for SysInfo.cpp:

Go to the source code of this file.

Functions

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];
8 
9  gethostname(hostname, _POSIX_HOST_NAME_MAX);
10 
11  return {hostname};
12 }

+ Here is the caller graph for this function: