Home
last modified time | relevance | path

Searched refs:t2 (Results 1 – 14 of 14) sorted by relevance

/systemd-251/src/test/
Dtest-ellipsize.c16 _cleanup_free_ char *t1 = NULL, *t2 = NULL, *t3 = NULL; in test_ellipsize_mem_one() local
45 t2 = ellipsize_mem(n, old_length, new_length, 90); in test_ellipsize_mem_one()
46 log_info("90%% → %s utf8_console_width=%zu", t2, utf8_console_width(t2)); in test_ellipsize_mem_one()
48 assert_se(utf8_console_width(t2) == max_width); in test_ellipsize_mem_one()
50 assert_se(utf8_console_width(t2) <= max_width); in test_ellipsize_mem_one()
61 assert_se(streq(t2, n)); in test_ellipsize_mem_one()
Dtest-recurse-dir.c123 usec_t t1, t2, t3, t4; in main() local
137 t2 = now(CLOCK_MONOTONIC); in main()
148 …log_info("recurse_dir(): %s – nftw(): %s", FORMAT_TIMESPAN(t2 - t1, 1), FORMAT_TIMESPAN(t4 - t3, 1… in main()
/systemd-251/src/nspawn/
Dnspawn-util.c48 char *t, *t2; in systemd_installation_has_version() local
54 t2 = endswith(t, ".so"); in systemd_installation_has_version()
55 if (!t2) in systemd_installation_has_version()
57 *t2 = '\0'; in systemd_installation_has_version()
/systemd-251/src/libsystemd-network/
Dsd-dhcp6-lease.c43 uint32_t t1 = UINT32_MAX, t2 = UINT32_MAX, min_valid_lt = UINT32_MAX; in dhcp6_lease_set_lifetime() local
50 t2 = MIN(t2, be32toh(lease->ia_na->header.lifetime_t2)); in dhcp6_lease_set_lifetime()
58 t2 = MIN(t2, be32toh(lease->ia_pd->header.lifetime_t2)); in dhcp6_lease_set_lifetime()
64 if (t2 == 0 || t2 > min_valid_lt) { in dhcp6_lease_set_lifetime()
68 t2 = min_valid_lt / 10 * 8; in dhcp6_lease_set_lifetime()
73 lease->lifetime_t2 = sec2usec(t2); in dhcp6_lease_set_lifetime()
Dsd-dhcp-lease.c78 int sd_dhcp_lease_get_t2(sd_dhcp_lease *lease, uint32_t *t2) { in sd_dhcp_lease_get_t2() argument
80 assert_return(t2, -EINVAL); in sd_dhcp_lease_get_t2()
82 if (lease->t2 <= 0) in sd_dhcp_lease_get_t2()
85 *t2 = lease->t2; in sd_dhcp_lease_get_t2()
760 r = lease_parse_u32(option, len, &lease->t2, 1); in dhcp_lease_parse_options()
975 uint32_t t1, t2, lifetime; in dhcp_lease_save() local
1025 r = sd_dhcp_lease_get_t2(lease, &t2); in dhcp_lease_save()
1027 fprintf(f, "T2=%" PRIu32 "\n", t2); in dhcp_lease_save()
1163 *t2 = NULL; in dhcp_lease_load() local
1204 "T2", &t2, in dhcp_lease_load()
[all …]
Ddhcp-lease-internal.h34 uint32_t t2; member
Dsd-dhcp-client.c1693 if (client->lease->t2 == 0 || client->lease->t2 >= client->lease->lifetime) in client_set_lease_timeouts()
1694 client->lease->t2 = T2_DEFAULT(client->lease->lifetime); in client_set_lease_timeouts()
1696 if (client->lease->t1 == 0 || client->lease->t1 >= client->lease->t2) in client_set_lease_timeouts()
1701 if (client->lease->t1 >= client->lease->t2) in client_set_lease_timeouts()
1702 client->lease->t2 = T2_DEFAULT(client->lease->lifetime); in client_set_lease_timeouts()
1706 client->t2_time = client->request_sent + client->lease->t2 * USEC_PER_SEC; in client_set_lease_timeouts()
/systemd-251/src/oom/
Dtest-oomd-util.c292 _cleanup_set_free_ Set *t1 = NULL, *t2 = NULL, *t3 = NULL; in test_oomd_pressure_above() local
321 assert_se(oomd_pressure_above(h2, 0 /* duration */, &t2) == 0); in test_oomd_pressure_above()
322 assert_se(!t2); in test_oomd_pressure_above()
/systemd-251/src/basic/linux/hdlc/
Dioctl.h87 unsigned int t2; /* timeout t2 */ member
/systemd-251/src/shared/
Dfind-esp.c232 const char *t2, *trigger; in verify_fsroot_dir() local
264 t2 = strjoina(path, "/.."); in verify_fsroot_dir()
265 if (stat(t2, &st2) < 0) { in verify_fsroot_dir()
Dbootspec.c1150 _cleanup_free_ char *t = NULL, *t2 = NULL; in show_boot_entry() local
1161 t2 = strv_join(ts, "\n "); in show_boot_entry()
1162 if (!t2) in show_boot_entry()
1165 printf(" options: %s\n", t2); in show_boot_entry()
/systemd-251/src/systemd/
Dsd-dhcp-lease.h52 int sd_dhcp_lease_get_t2(sd_dhcp_lease *lease, uint32_t *t2);
/systemd-251/src/journal/
Djournalctl.c1163 _cleanup_free_ char *p = NULL, *t = NULL, *t2 = NULL, *interpreter = NULL; in add_matches() local
1188 t2 = strjoin("_EXE=", interpreter); in add_matches()
1189 if (!t2) in add_matches()
1200 if (r >=0 && t2) in add_matches()
1201 r = sd_journal_add_match(j, t2, 0); in add_matches()
/systemd-251/src/systemctl/
Dsystemctl-show.c559 STRV_FOREACH_PAIR(t, t2, i->listen) in print_status_info()
560 printf(" %*s %s (%s)\n", 9, t == i->listen ? "Listen:" : "", *t2, *t); in print_status_info()