OmniSciDB
1dac507f6e
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
SysInfo.cpp
Go to the documentation of this file.
1
#include "
SysInfo.h
"
2
3
#include <unistd.h>
4
#include <climits>
5
6
std::string
get_hostname
() {
7
char
hostname[_POSIX_HOST_NAME_MAX];
8
9
gethostname(hostname, _POSIX_HOST_NAME_MAX);
10
11
return
{hostname};
12
}
SysInfo.h
get_hostname
std::string get_hostname()
Definition:
SysInfo.cpp:6
Shared
SysInfo.cpp
Generated on Thu Dec 5 2019 18:24:01 for OmniSciDB by
1.8.5