Searched refs:tz (Results 1 - 9 of 9) sorted by relevance

/systemd/src/basic/
H A Dclock-util.c107 struct timezone tz; local
113 tz.tz_minuteswest = -minutesdelta;
114 tz.tz_dsttime = 0; /* DST_NONE */
122 if (settimeofday(tv_null, &tz) < 0)
132 struct timezone tz; local
134 tz.tz_minuteswest = 0;
135 tz.tz_dsttime = 0; /* DST_NONE */
142 if (settimeofday(tv_null, &tz) < 0)
H A Dtime-util.c1069 int get_timezone(char **tz) { argument
1092 *tz = z;
/systemd/src/timedate/
H A Dtimedatectl.c87 const char *old_tz = NULL, *tz; local
93 tz = getenv("TZ");
94 if (tz)
95 old_tz = strdupa(tz);
/systemd/src/libsystemd-network/
H A Dsd-dhcp-lease.c629 _cleanup_free_ char *tz = NULL; local
631 r = lease_parse_string(option, len, &tz);
637 if (!timezone_is_valid(tz)) {
643 lease->timezone = tz;
644 tz = NULL;
1145 int sd_dhcp_lease_get_timezone(sd_dhcp_lease *lease, const char **tz) { argument
1147 assert_return(tz, -EINVAL);
1152 *tz = lease->timezone;
H A Dsd-dhcp-server.c1071 int sd_dhcp_server_set_timezone(sd_dhcp_server *server, const char *tz) { argument
1075 assert_return(timezone_is_valid(tz), -EINVAL);
1077 if (streq_ptr(tz, server->timezone))
1080 r = free_and_strdup(&server->timezone, tz);
/systemd/src/network/
H A Dnetworkd-dhcp4.c440 const char *tz = NULL; local
442 (void) sd_dhcp_lease_get_timezone(link->dhcp_lease, &tz);
444 if (tz) {
445 r = link_set_timezone(link, tz);
447 log_link_error_errno(link, r, "Failed to set timezone to '%s': %m", tz);
H A Dnetworkd-network.c838 char **datap = data, *tz = NULL; local
845 r = config_parse_string(unit, filename, line, section, section_line, lvalue, ltype, rvalue, &tz, userdata);
849 if (!timezone_is_valid(tz)) {
851 free(tz);
856 *datap = tz;
H A Dnetworkd-link.c939 const char *tz = NULL; local
942 tz = link->network->dhcp_server_timezone;
948 tz = buffer;
951 if (tz) {
952 r = sd_dhcp_server_set_timezone(link->dhcp_server, tz);
1096 int link_set_timezone(Link *link, const char *tz) { argument
1101 assert(tz);
1103 log_link_debug(link, "Setting system timezone: '%s'", tz);
1120 tz,
2914 const char *tz local
[all...]
H A Dnetworkctl.c507 _cleanup_free_ char *setup_state = NULL, *operational_state = NULL, *tz = NULL; local
656 (void) sd_network_link_get_timezone(ifindex, &tz);
657 if (tz)
658 printf(" Time Zone: %s", tz);

Completed in 2085 milliseconds