Home
last modified time | relevance | path

Searched refs:read_etc_hostname (Results 1 – 5 of 5) sorted by relevance

/systemd-251/src/test/
Dtest-hostname-setup.c12 TEST(read_etc_hostname) { in TEST() argument
23 assert_se(read_etc_hostname(path, &hostname) == 0); in TEST()
29 assert_se(read_etc_hostname(path, &hostname) == 0); in TEST()
36 assert_se(read_etc_hostname(path, &hostname) == 0); in TEST()
43 assert_se(read_etc_hostname(path, &hostname) == 0); in TEST()
51 assert_se(read_etc_hostname(path, &hostname) == -ENOENT); in TEST()
55 assert_se(read_etc_hostname("/non/existing", &hostname) == -ENOENT); in TEST()
/systemd-251/src/shared/
Dhostname-setup.c112 int read_etc_hostname(const char *path, char **ret) { in read_etc_hostname() function
164 r = read_etc_hostname(NULL, &b); in hostname_setup()
Dhostname-setup.h22 int read_etc_hostname(const char *path, char **ret);
Ddiscover-image.c1139 r = read_etc_hostname(path, &hostname); in image_read_metadata()
/systemd-251/src/hostname/
Dhostnamed.c109 r = read_etc_hostname(NULL, &c->data[PROP_STATIC_HOSTNAME]); in context_read_etc_hostname()