/usr/include/dune/pdelab/common/hostname.hh is in libdune-pdelab-dev 2.0.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | // -*- tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=8 sw=2 sts=2:
#ifndef DUNE_PDELAB_COMMON_HOSTNAME_HH
#define DUNE_PDELAB_COMMON_HOSTNAME_HH
#include <string>
namespace Dune {
namespace PDELab {
//! C++ friendly wrapper around POSIX' gethostname()
/**
* \note Anything after the first '.' is stripped from the value returned
* by the underlying implementation.
*/
std::string getHostName();
} // namespace PDELab
} // namespace Dune
#endif // DUNE_PDELAB_COMMON_HOSTNAME_HH
|