/systemd-251/src/resolve/ |
D | resolved-dns-transaction.c | 24 static void dns_transaction_reset_answer(DnsTransaction *t) { in dns_transaction_reset_answer() argument 25 assert(t); in dns_transaction_reset_answer() 27 t->received = dns_packet_unref(t->received); in dns_transaction_reset_answer() 28 t->answer = dns_answer_unref(t->answer); in dns_transaction_reset_answer() 29 t->answer_rcode = 0; in dns_transaction_reset_answer() 30 t->answer_dnssec_result = _DNSSEC_RESULT_INVALID; in dns_transaction_reset_answer() 31 t->answer_source = _DNS_TRANSACTION_SOURCE_INVALID; in dns_transaction_reset_answer() 32 t->answer_query_flags = 0; in dns_transaction_reset_answer() 33 t->answer_nsec_ttl = UINT32_MAX; in dns_transaction_reset_answer() 34 t->answer_errno = 0; in dns_transaction_reset_answer() [all …]
|
/systemd-251/src/test/ |
D | test-extract-word.c | 13 char *t; in TEST() local 16 assert_se(extract_first_word(&p, &t, NULL, 0) > 0); in TEST() 17 assert_se(streq(t, "foobar")); in TEST() 18 free(t); in TEST() 21 assert_se(extract_first_word(&p, &t, NULL, 0) > 0); in TEST() 22 assert_se(streq(t, "waldo")); in TEST() 23 free(t); in TEST() 26 assert_se(extract_first_word(&p, &t, NULL, 0) == 0); in TEST() 27 assert_se(!t); in TEST() 31 assert_se(extract_first_word(&p, &t, NULL, 0) > 0); in TEST() [all …]
|
D | test-ellipsize.c | 79 _cleanup_free_ char *t; in test_ellipsize_one() local 80 t = ellipsize(p, columns(), 70); in test_ellipsize_one() 81 puts(t); in test_ellipsize_one() 82 free(t); in test_ellipsize_one() 83 t = ellipsize(p, columns(), 0); in test_ellipsize_one() 84 puts(t); in test_ellipsize_one() 85 free(t); in test_ellipsize_one() 86 t = ellipsize(p, columns(), 100); in test_ellipsize_one() 87 puts(t); in test_ellipsize_one() 88 free(t); in test_ellipsize_one() [all …]
|
D | test-prioq.c | 66 struct test *t; in TEST() local 79 assert_se(t = new0(struct test, 1)); in TEST() 80 t->value = (unsigned) rand(); in TEST() 82 assert_se(prioq_put(q, t, &t->idx) >= 0); in TEST() 85 assert_se(set_consume(s, t) >= 0); in TEST() 93 PRIOQ_FOREACH_ITEM(q, t) { in TEST() 94 assert_se(t); in TEST() 99 while ((t = set_steal_first(s))) { in TEST() 100 assert_se(prioq_remove(q, t, &t->idx) == 1); in TEST() 101 assert_se(prioq_remove(q, t, &t->idx) == 0); in TEST() [all …]
|
/systemd-251/src/core/ |
D | timer.c | 38 Timer *t = TIMER(u); in timer_init() local 43 t->next_elapse_monotonic_or_boottime = USEC_INFINITY; in timer_init() 44 t->next_elapse_realtime = USEC_INFINITY; in timer_init() 45 t->accuracy_usec = u->manager->default_timer_accuracy_usec; in timer_init() 46 t->remain_after_elapse = true; in timer_init() 49 void timer_free_values(Timer *t) { in timer_free_values() argument 52 assert(t); in timer_free_values() 54 while ((v = t->values)) { in timer_free_values() 55 LIST_REMOVE(value, t->values, v); in timer_free_values() 62 Timer *t = TIMER(u); in timer_done() local [all …]
|
D | target.c | 18 static void target_set_state(Target *t, TargetState state) { in target_set_state() argument 20 assert(t); in target_set_state() 22 if (t->state != state) in target_set_state() 23 bus_unit_send_pending_change_signal(UNIT(t), false); in target_set_state() 25 old_state = t->state; in target_set_state() 26 t->state = state; in target_set_state() 30 UNIT(t)->id, in target_set_state() 34 unit_notify(UNIT(t), state_translation_table[old_state], state_translation_table[state], 0); in target_set_state() 37 static int target_add_default_dependencies(Target *t) { in target_add_default_dependencies() argument 41 assert(t); in target_add_default_dependencies() [all …]
|
D | dbus-timer.c | 22 Timer *t = userdata; in property_get_monotonic_timers() local 27 assert(t); in property_get_monotonic_timers() 33 LIST_FOREACH(value, v, t->values) { in property_get_monotonic_timers() 70 Timer *t = userdata; in property_get_calendar_timers() local 75 assert(t); in property_get_calendar_timers() 81 LIST_FOREACH(value, v, t->values) { in property_get_calendar_timers() 108 Timer *t = userdata; in property_get_next_elapse_monotonic() local 112 assert(t); in property_get_next_elapse_monotonic() 115 … (uint64_t) usec_shift_clock(t->next_elapse_monotonic_or_boottime, in property_get_next_elapse_monotonic() 116 … TIMER_MONOTONIC_CLOCK(t), CLOCK_MONOTONIC)); in property_get_next_elapse_monotonic() [all …]
|
/systemd-251/src/sysupdate/ |
D | sysupdate-transfer.c | 35 Transfer *transfer_free(Transfer *t) { in transfer_free() argument 36 if (!t) in transfer_free() 39 t->temporary_path = rm_rf_subvolume_and_free(t->temporary_path); in transfer_free() 41 free(t->definition_path); in transfer_free() 42 free(t->min_version); in transfer_free() 43 strv_free(t->protected_versions); in transfer_free() 44 free(t->current_symlink); in transfer_free() 45 free(t->final_path); in transfer_free() 47 partition_info_destroy(&t->partition_info); in transfer_free() 49 resource_destroy(&t->source); in transfer_free() [all …]
|
/systemd-251/src/import/ |
D | importd.c | 114 static Transfer *transfer_unref(Transfer *t) { in transfer_unref() argument 115 if (!t) in transfer_unref() 118 if (t->manager) in transfer_unref() 119 hashmap_remove(t->manager->transfers, UINT32_TO_PTR(t->id)); in transfer_unref() 121 sd_event_source_unref(t->pid_event_source); in transfer_unref() 122 sd_event_source_unref(t->log_event_source); in transfer_unref() 124 free(t->remote); in transfer_unref() 125 free(t->local); in transfer_unref() 126 free(t->format); in transfer_unref() 127 free(t->object_path); in transfer_unref() [all …]
|
/systemd-251/src/network/netdev/ |
D | tunnel.c | 190 static int tunnel_get_local_address(Tunnel *t, Link *link, union in_addr_union *ret) { in tunnel_get_local_address() argument 191 assert(t); in tunnel_get_local_address() 193 if (t->local_type < 0) { in tunnel_get_local_address() 195 *ret = t->local; in tunnel_get_local_address() 199 return link_get_local_address(link, t->local_type, t->family, NULL, ret); in tunnel_get_local_address() 204 Tunnel *t; in netdev_ipip_sit_fill_message_create() local 211 t = IPIP(netdev); in netdev_ipip_sit_fill_message_create() 213 t = SIT(netdev); in netdev_ipip_sit_fill_message_create() 215 assert(t); in netdev_ipip_sit_fill_message_create() 217 if (t->external) { in netdev_ipip_sit_fill_message_create() [all …]
|
D | l2tp-tunnel.c | 57 static int l2tp_session_new_static(L2tpTunnel *t, const char *filename, unsigned section_line, L2tp… in l2tp_session_new_static() argument 62 assert(t); in l2tp_session_new_static() 71 s = ordered_hashmap_get(t->sessions_by_section, n); in l2tp_session_new_static() 83 .tunnel = t, in l2tp_session_new_static() 87 … r = ordered_hashmap_ensure_put(&t->sessions_by_section, &config_section_hash_ops, s->section, s); in l2tp_session_new_static() 98 L2tpTunnel *t; in netdev_l2tp_create_message_tunnel() local 103 assert_se(t = L2TP(netdev)); in netdev_l2tp_create_message_tunnel() 109 r = sd_netlink_message_append_u32(m, L2TP_ATTR_CONN_ID, t->tunnel_id); in netdev_l2tp_create_message_tunnel() 113 r = sd_netlink_message_append_u32(m, L2TP_ATTR_PEER_CONN_ID, t->peer_tunnel_id); in netdev_l2tp_create_message_tunnel() 121 switch (t->l2tp_encap_type) { in netdev_l2tp_create_message_tunnel() [all …]
|
D | fou-tunnel.c | 28 FouTunnel *t; in netdev_fill_fou_tunnel_message() local 32 assert_se(t = FOU(netdev)); in netdev_fill_fou_tunnel_message() 34 r = sd_netlink_message_append_u16(m, FOU_ATTR_PORT, htobe16(t->port)); in netdev_fill_fou_tunnel_message() 38 if (IN_SET(t->peer_family, AF_INET, AF_INET6)) { in netdev_fill_fou_tunnel_message() 39 r = sd_netlink_message_append_u16(m, FOU_ATTR_PEER_PORT, htobe16(t->peer_port)); in netdev_fill_fou_tunnel_message() 44 switch (t->fou_encap_type) { in netdev_fill_fou_tunnel_message() 63 r = sd_netlink_message_append_u8(m, FOU_ATTR_IPPROTO, t->fou_protocol); in netdev_fill_fou_tunnel_message() 67 if (t->local_family == AF_INET) { in netdev_fill_fou_tunnel_message() 68 r = sd_netlink_message_append_in_addr(m, FOU_ATTR_LOCAL_V4, &t->local.in); in netdev_fill_fou_tunnel_message() 71 } else if (t->local_family == AF_INET6) { in netdev_fill_fou_tunnel_message() [all …]
|
D | tuntap.c | 20 TunTap *t; in netdev_fill_tuntap_message() local 27 t = TAP(netdev); in netdev_fill_tuntap_message() 30 t = TUN(netdev); in netdev_fill_tuntap_message() 34 if (!t->packet_info) in netdev_fill_tuntap_message() 37 if (t->multi_queue) in netdev_fill_tuntap_message() 40 if (t->vnet_hdr) in netdev_fill_tuntap_message() 50 TunTap *t = NULL; in netdev_tuntap_add() local 68 t = TAP(netdev); in netdev_tuntap_add() 70 t = TUN(netdev); in netdev_tuntap_add() 72 assert(t); in netdev_tuntap_add() [all …]
|
/systemd-251/src/shared/ |
D | format-table.c | 157 _cleanup_(table_unrefp) Table *t = NULL; in table_new_raw() 161 t = new(Table, 1); in table_new_raw() 162 if (!t) in table_new_raw() 165 *t = (struct Table) { in table_new_raw() 172 return TAKE_PTR(t); in table_new_raw() 176 _cleanup_(table_unrefp) Table *t = NULL; in table_new_internal() 192 t = table_new_raw(n_columns); in table_new_internal() 193 if (!t) in table_new_internal() 200 r = table_add_cell(t, &cell, TABLE_STRING, h); in table_new_internal() 207 r = table_set_uppercase(t, cell, true); in table_new_internal() [all …]
|
D | format-table.h | 73 Table *table_unref(Table *t); 77 int table_add_cell_full(Table *t, TableCell **ret_cell, TableDataType type, const void *data, size_… 78 static inline int table_add_cell(Table *t, TableCell **ret_cell, TableDataType type, const void *da… in table_add_cell() argument 79 …return table_add_cell_full(t, ret_cell, type, data, SIZE_MAX, SIZE_MAX, UINT_MAX, UINT_MAX, UINT_M… in table_add_cell() 81 int table_add_cell_stringf(Table *t, TableCell **ret_cell, const char *format, ...) _printf_(3, 4); 83 int table_fill_empty(Table *t, size_t until_column); 85 int table_dup_cell(Table *t, TableCell *cell); 87 int table_set_minimum_width(Table *t, TableCell *cell, size_t minimum_width); 88 int table_set_maximum_width(Table *t, TableCell *cell, size_t maximum_width); 89 int table_set_weight(Table *t, TableCell *cell, unsigned weight); [all …]
|
/systemd-251/src/basic/ |
D | escape.c | 81 char *r, *t; in cescape_length() local 92 for (f = s, t = r; f < s + n; f++) in cescape_length() 93 t += cescape_char(*f, t); in cescape_length() 95 *t = 0; in cescape_length() 294 char *t; in cunescape_length_with_prefix() local 313 for (f = s, t = ans + pl; f < s + length; f++) { in cunescape_length_with_prefix() 323 *(t++) = *f; in cunescape_length_with_prefix() 330 *(t++) = *f; in cunescape_length_with_prefix() 341 *(t++) = '\\'; in cunescape_length_with_prefix() 351 *(t++) = u; in cunescape_length_with_prefix() [all …]
|
D | time-util.c | 295 usec_t t, in format_timestamp_style() argument 343 if (!timestamp_is_set(t)) in format_timestamp_style() 347 r = snprintf(buf, l, "@" USEC_FMT, t / USEC_PER_SEC); /* round down µs → s */ in format_timestamp_style() 355 if (t > USEC_TIMESTAMP_FORMATTABLE_MAX) { in format_timestamp_style() 361 sec = (time_t) (t / USEC_PER_SEC); /* Round down */ in format_timestamp_style() 380 sprintf(buf + n, ".%06"PRI_USEC, t % USEC_PER_SEC); in format_timestamp_style() 419 char *format_timestamp_relative(char *buf, size_t l, usec_t t) { in format_timestamp_relative() argument 423 if (!timestamp_is_set(t)) in format_timestamp_relative() 427 if (n > t) { in format_timestamp_relative() 428 d = n - t; in format_timestamp_relative() [all …]
|
D | string-util.c | 94 for (const char *t = x; t; t = va_arg(ap, const char *)) { in strjoin_real() local 97 n = strlen(t); in strjoin_real() 111 for (const char *t = x; t; t = va_arg(ap, const char *)) in strjoin_real() local 112 p = stpcpy(p, t); in strjoin_real() 130 char *f, *t; in delete_chars() local 140 for (f = s, t = s; *f; f++) { in delete_chars() 144 *(t++) = *f; in delete_chars() 147 *t = 0; in delete_chars() 195 char *ascii_strlower(char *t) { in ascii_strlower() argument 196 assert(t); in ascii_strlower() [all …]
|
/systemd-251/src/analyze/ |
D | analyze-time-data.c | 132 BootTimes *t; in pretty_boot_time() local 135 r = acquire_boot_times(bus, &t); in pretty_boot_time() 165 …if (t->firmware_time > 0 && !strextend(&text, FORMAT_TIMESPAN(t->firmware_time - t->loader_time, U… in pretty_boot_time() 167 …if (t->loader_time > 0 && !strextend(&text, FORMAT_TIMESPAN(t->loader_time, USEC_PER_MSEC), " (loa… in pretty_boot_time() 169 …if (t->kernel_done_time > 0 && !strextend(&text, FORMAT_TIMESPAN(t->kernel_done_time, USEC_PER_MSE… in pretty_boot_time() 171 …if (t->initrd_time > 0 && !strextend(&text, FORMAT_TIMESPAN(t->userspace_time - t->initrd_time, US… in pretty_boot_time() 174 …if (!strextend(&text, FORMAT_TIMESPAN(t->finish_time - t->userspace_time, USEC_PER_MSEC), " (users… in pretty_boot_time() 177 if (t->kernel_done_time > 0) in pretty_boot_time() 178 …if (!strextend(&text, "= ", FORMAT_TIMESPAN(t->firmware_time + t->finish_time, USEC_PER_MSEC), " … in pretty_boot_time() 182 usec_t base = t->userspace_time > 0 ? t->userspace_time : t->reverse_offset; in pretty_boot_time() [all …]
|
/systemd-251/src/busctl/ |
D | busctl-introspect.c | 63 int t; in parse_xml_annotation() local 65 t = xml_tokenize(&context->current, &name, &context->xml_state, NULL); in parse_xml_annotation() 66 if (t < 0) { in parse_xml_annotation() 68 return t; in parse_xml_annotation() 71 if (t == XML_END) in parse_xml_annotation() 79 if (t == XML_ATTRIBUTE_NAME) { in parse_xml_annotation() 92 } else if (t == XML_TAG_CLOSE_EMPTY || in parse_xml_annotation() 93 (t == XML_TAG_CLOSE && streq_ptr(name, "annotation"))) { in parse_xml_annotation() 119 } else if (t != XML_TEXT || !in_charset(name, WHITESPACE)) in parse_xml_annotation() 127 if (t == XML_ATTRIBUTE_VALUE) { in parse_xml_annotation() [all …]
|
/systemd-251/src/network/ |
D | test-networkd-conf.c | 107 const struct ether_addr t[] = { in TEST() local 115 test_config_parse_ether_addr_one("aa:bb:cc:dd:ee:ff", 0, &t[0]); in TEST() 124 test_config_parse_ether_addr_one("aa:Bb:CC:dd:ee:ff", 0, &t[0]); in TEST() 125 test_config_parse_ether_addr_one("01:23:45:67:89:aB", 0, &t[1]); in TEST() 126 test_config_parse_ether_addr_one("1:23:45:67:89:aB", 0, &t[1]); in TEST() 127 test_config_parse_ether_addr_one("aa-bb-cc-dd-ee-ff", 0, &t[0]); in TEST() 128 test_config_parse_ether_addr_one("AA-BB-CC-DD-EE-FF", 0, &t[0]); in TEST() 129 test_config_parse_ether_addr_one("01-23-45-67-89-ab", 0, &t[1]); in TEST() 130 test_config_parse_ether_addr_one("aabb.ccdd.eeff", 0, &t[0]); in TEST() 131 test_config_parse_ether_addr_one("0123.4567.89ab", 0, &t[1]); in TEST() [all …]
|
D | networkd-util.h | 51 type *t, \ 55 assert(t); \ 57 t->state = (t->state & ~mask) | (value & mask); \ 59 static inline bool name##_exists(type *t) { \ 60 assert(t); \ 62 if ((t->state & (NETWORK_CONFIG_STATE_CONFIGURING | \ 65 if (FLAGS_SET(t->state, NETWORK_CONFIG_STATE_REMOVING)) \ 69 static inline void name##_enter_requesting(type *t) { \ 70 name##_update_state(t, \ 74 static inline void name##_cancel_requesting(type *t) { \ [all …]
|
/systemd-251/test/fuzz/fuzz-unit-file/ |
D | oss-fuzz-33270 | 307 IOMMMMMMMMMMMMMMMe=%t%t] 308 PIDFile=%t%t] 309 PIDFile=%t%t] 310 PIDFile=%t%t] 311 PIDFile=%t%t] 312 PIDFile=%t%t] 313 PIDFile=%t%t] 314 PIDFile=%t%t] 315 PIDFile=%t%t] 316 =le=%t%t] [all …]
|
/systemd-251/src/libsystemd/sd-bus/ |
D | bus-gvariant.c | 26 char t[n+1]; in bus_gvariant_get_size() local 28 memcpy(t, p, n); in bus_gvariant_get_size() 29 t[n] = 0; in bus_gvariant_get_size() 31 r = bus_gvariant_get_alignment(t); in bus_gvariant_get_size() 68 char t[n-1]; in bus_gvariant_get_size() local 70 memcpy(t, p + 1, n - 2); in bus_gvariant_get_size() 71 t[n - 2] = 0; in bus_gvariant_get_size() 73 r = bus_gvariant_get_size(t); in bus_gvariant_get_size() 146 char t[n]; in bus_gvariant_get_alignment() local 148 memcpy(t, p + 1, n - 1); in bus_gvariant_get_alignment() [all …]
|
/systemd-251/po/ |
D | hu.po | 30 "Hitelesítés szükséges a bevitt jelmondat visszaküldéséhez a rendszernek." 39 "Hitelesítés szükséges a rendszerszolgáltatások vagy más egységek kezeléséhez." 48 "Hitelesítés szükséges a rendszerszolgáltatás- vagy egységfájlok kezeléséhez." 53 "Rendszer- és szolgáltatáskezelő környezeti változóinak beállítása vagy " 54 "törlése" 61 "Hitelesítés szükséges a rendszer- és szolgáltatáskezelő környezeti " 62 "változóinak beállításához vagy törléséhez." 70 msgstr "Hitelesítés szükséges a systemd állapotának újratöltéséhez." 80 msgstr "Hitelesítés szükséges a systemd állapotának újratöltéséhez." 90 msgstr "Hitelesítés szükséges a systemd állapotának újratöltéséhez." [all …]
|