/systemd-251/src/shared/ |
D | hostname-setup.c | 145 const char *hn = NULL; in hostname_setup() local 155 hn = b; in hostname_setup() 163 if (!hn) { in hostname_setup() 171 hn = b; in hostname_setup() 176 if (!hn) { in hostname_setup() 192 hn = b = get_default_hostname(); in hostname_setup() 193 if (!hn) in hostname_setup() 200 r = sethostname_idempotent_full(hn, really); in hostname_setup() 202 return log_warning_errno(r, "Failed to set hostname to <%s>: %m", hn); in hostname_setup() 204 log_debug("Hostname was already set to <%s>.", hn); in hostname_setup() [all …]
|
D | utmp-wtmp.c | 344 _cleanup_free_ char *text = NULL, *hn = NULL, *un = NULL, *stdin_tty = NULL; in utmp_wall() local 348 hn = gethostname_malloc(); in utmp_wall() 349 if (!hn) in utmp_wall() 366 un ?: username, hn, in utmp_wall()
|
D | user-record.c | 1121 _cleanup_free_ char *hn = NULL; in per_machine_hostname_match() local 1124 r = gethostname_strict(&hn); in per_machine_hostname_match() 1133 return streq(json_variant_string(hns), hn); in per_machine_hostname_match() 1145 if (streq(json_variant_string(hns), hn)) in per_machine_hostname_match()
|
/systemd-251/src/nss-myhostname/ |
D | nss-myhostname.c | 39 _cleanup_free_ char *hn = NULL; in _nss_myhostname_gethostbyname4_r() local 78 hn = gethostname_malloc(); in _nss_myhostname_gethostbyname4_r() 79 if (!hn) { in _nss_myhostname_gethostbyname4_r() 87 if (!streq(name, hn) && !streq_ptr(startswith(name, hn), ".")) in _nss_myhostname_gethostbyname4_r() 94 canonical = hn; in _nss_myhostname_gethostbyname4_r() 325 _cleanup_free_ char *hn = NULL; in _nss_myhostname_gethostbyname3_r() local 372 hn = gethostname_malloc(); in _nss_myhostname_gethostbyname3_r() 373 if (!hn) { in _nss_myhostname_gethostbyname3_r() 380 if (!streq(name, hn) && !streq_ptr(startswith(name, hn), ".")) in _nss_myhostname_gethostbyname3_r() 387 canonical = hn; in _nss_myhostname_gethostbyname3_r() [all …]
|
/systemd-251/src/hostname/ |
D | hostnamed.c | 445 const char *hn; in context_update_kernel_hostname() local 453 hn = c->data[PROP_STATIC_HOSTNAME]; in context_update_kernel_hostname() 458 hn = transient_hn; in context_update_kernel_hostname() 463 hn = _hn_free = get_default_hostname(); in context_update_kernel_hostname() 464 if (!hn) in context_update_kernel_hostname() 470 r = sethostname_idempotent(hn); in context_update_kernel_hostname() 482 log_debug("Hostname was already set to <%s>.", hn); in context_update_kernel_hostname() 484 log_info("Hostname set to <%s> (%s)", hn, hostname_source_to_string(hns)); in context_update_kernel_hostname() 486 hostname_update_source_hint(hn, hns); in context_update_kernel_hostname() 641 _cleanup_free_ char *hn = NULL; in property_get_hostname() local [all …]
|
/systemd-251/src/systemctl/ |
D | systemctl-list-machines.c | 101 _cleanup_free_ char *hn = NULL; in get_machine_list() local 104 hn = gethostname_malloc(); in get_machine_list() 105 if (!hn) in get_machine_list() 108 if (output_show_machine(hn, patterns)) { in get_machine_list() 113 machine_infos[c].name = TAKE_PTR(hn); in get_machine_list()
|
D | systemctl-show.c | 2112 _cleanup_free_ char *hn = NULL; in show_system_status() local 2117 hn = gethostname_malloc(); in show_system_status() 2118 if (!hn) in show_system_status() 2144 printf("%s%s%s %s\n", on, special_glyph(SPECIAL_GLYPH_BLACK_CIRCLE), off, arg_host ?: hn); in show_system_status() 2171 arg_host ?: hn, bus_error_message(&error, r)); in show_system_status()
|
/systemd-251/src/network/ |
D | networkd-dhcp6.c | 517 const char *hn; in dhcp6_set_hostname() local 523 hn = NULL; in dhcp6_set_hostname() 525 hn = link->network->dhcp_hostname; in dhcp6_set_hostname() 531 hn = hostname; in dhcp6_set_hostname() 534 r = sd_dhcp6_client_set_fqdn(client, hn); in dhcp6_set_hostname()
|
D | networkd-dhcp4.c | 1218 const char *hn; in dhcp4_set_hostname() local 1224 hn = NULL; in dhcp4_set_hostname() 1226 hn = link->network->dhcp_hostname; in dhcp4_set_hostname() 1232 hn = hostname; in dhcp4_set_hostname() 1235 r = sd_dhcp_client_set_hostname(link->dhcp_client, hn); in dhcp4_set_hostname()
|
/systemd-251/src/journal/ |
D | journalctl.c | 1813 const char *hn, in format_journal_url() argument 1842 if (hn) in format_journal_url() 1843 fprintf(f, ";hostname=%s", hn); in format_journal_url() 1961 _cleanup_free_ char *hn = NULL, *key = NULL; in setup_keys() local 1963 r = format_journal_url(seed, seed_size, n, arg_interval, hn, machine, false, &key); in setup_keys() 1968 hn = gethostname_malloc(); in setup_keys() 1969 if (hn) in setup_keys() 1970 hostname_cleanup(hn); in setup_keys() 1986 strempty(hn), hn ? "/" : "", in setup_keys() 2002 r = format_journal_url(seed, seed_size, n, arg_interval, hn, machine, true, &url); in setup_keys()
|
/systemd-251/src/machine/ |
D | machinectl.c | 741 const char *hn; in print_image_hostname() local 748 r = sd_bus_message_read(reply, "s", &hn); in print_image_hostname() 752 if (!isempty(hn)) in print_image_hostname() 753 printf("\tHostname: %s\n", hn); in print_image_hostname()
|
/systemd-251/ |
D | NEWS | 1436 I-dont-need-name, igo95862, Jack Dähn, James Hilliard, Jan Janssen,
|