along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-#include <sys/utsname.h>
#include <ctype.h>
+#include <sys/utsname.h>
-#include "util.h"
+//#include "fd-util.h"
+#include "fileio.h"
#include "hostname-util.h"
+#include "string-util.h"
+#include "util.h"
-/// UNNEEDED by elogind
-#if 0
+#if 0 /// UNNEEDED by elogind
bool hostname_is_set(void) {
struct utsname u;
return true;
}
+#if 0 /// UNNEEDED by elogind
char* hostname_cleanup(char *s) {
char *p, *d;
bool dot;
return s;
}
+#endif // 0
bool is_localhost(const char *hostname) {
assert(hostname);
endswith_no_case(hostname, ".localdomain.");
}
+#if 0 /// UNNEEDED by elogind
bool is_gateway_hostname(const char *hostname) {
assert(hostname);
strcaseeq(hostname, "gateway.");
}
-/// UNNEEDED by elogind
-#if 0
int sethostname_idempotent(const char *s) {
char buf[HOST_NAME_MAX + 1] = {};