Home
last modified time | relevance | path

Searched refs:hostname_cleanup (Results 1 – 9 of 9) sorted by relevance

/systemd-251/src/test/
Dtest-hostname-util.c49 TEST(hostname_cleanup) { in TEST() argument
53 assert_se(streq(hostname_cleanup(s), "foobar")); in TEST()
55 assert_se(streq(hostname_cleanup(s), "foobar.com")); in TEST()
57 assert_se(streq(hostname_cleanup(s), "foobar.com")); in TEST()
59 assert_se(streq(hostname_cleanup(s), "foo-bar.com")); in TEST()
61 assert_se(streq(hostname_cleanup(s), "foo-bar--com")); in TEST()
63 assert_se(streq(hostname_cleanup(s), "foo-bar.com")); in TEST()
65 assert_se(streq(hostname_cleanup(s), "fooBAR")); in TEST()
67 assert_se(streq(hostname_cleanup(s), "fooBAR.com")); in TEST()
69 assert_se(streq(hostname_cleanup(s), "fooBAR")); in TEST()
[all …]
/systemd-251/src/basic/
Dhostname-util.h49 char* hostname_cleanup(char *s);
Dhostname-util.c140 char* hostname_cleanup(char *s) { in hostname_cleanup() function
/systemd-251/src/shared/
Dhostname-setup.c97 hostname_cleanup(p); /* normalize the hostname */ in read_etc_hostname_stream()
/systemd-251/src/firstboot/
Dfirstboot.c537 arg_hostname = hostname_cleanup(h); in prompt_hostname()
1206 hostname_cleanup(arg_hostname); in parse_argv()
/systemd-251/src/hostname/
Dhostnamectl.c486 hostname = hostname_cleanup(h); /* Use the cleaned up name as static hostname */ in set_hostname()
/systemd-251/src/journal-remote/
Djournal-gatewayd.c785 hostname_cleanup(hostname), in request_handler_machine()
/systemd-251/src/journal/
Djournalctl.c1970 hostname_cleanup(hn); in setup_keys()
/systemd-251/src/nspawn/
Dnspawn.c3047 hostname_cleanup(arg_machine); in determine_names()