/systemd-251/src/basic/ |
D | unit-file.c | 73 const char *src, *dst; in unit_validate_alias_symlink_or_warn() local 90 dst = basename(target); in unit_validate_alias_symlink_or_warn() 115 if (streq(src, dst)) in unit_validate_alias_symlink_or_warn() 118 filename, src, dst); in unit_validate_alias_symlink_or_warn() 120 dst_name_type = unit_name_to_instance(dst, &dst_instance); in unit_validate_alias_symlink_or_warn() 124 filename, dst); in unit_validate_alias_symlink_or_warn() 130 filename, dst); in unit_validate_alias_symlink_or_warn() 138 filename, dst); in unit_validate_alias_symlink_or_warn() 141 dst_unit_type = unit_name_to_type(dst); in unit_validate_alias_symlink_or_warn() 145 filename, dst); in unit_validate_alias_symlink_or_warn() [all …]
|
D | compress.h | 21 void *dst, size_t dst_alloc_size, size_t *dst_size); 23 void *dst, size_t dst_alloc_size, size_t *dst_size); 25 void *dst, size_t dst_alloc_size, size_t *dst_size); 28 void **dst, size_t* dst_size, size_t dst_max); 30 void **dst, size_t* dst_size, size_t dst_max); 32 void **dst, size_t* dst_size, size_t dst_max); 35 void **dst, size_t* dst_size, size_t dst_max); 66 void *dst, size_t dst_alloc_size, size_t *dst_size) { in compress_blob_explicit() argument 70 return compress_blob_zstd(src, src_size, dst, dst_alloc_size, dst_size); in compress_blob_explicit() 72 return compress_blob_lz4(src, src_size, dst, dst_alloc_size, dst_size); in compress_blob_explicit() [all …]
|
D | compress.c | 70 void *dst, size_t dst_alloc_size, size_t *dst_size) { in compress_blob_xz() argument 85 assert(dst); in compress_blob_xz() 96 src, src_size, dst, &out_pos, dst_alloc_size); in compress_blob_xz() 108 void *dst, size_t dst_alloc_size, size_t *dst_size) { in compress_blob_lz4() argument 114 assert(dst); in compress_blob_lz4() 124 r = LZ4_compress_default(src, (char*)dst + 8, src_size, (int) dst_alloc_size - 8); in compress_blob_lz4() 128 unaligned_write_le64(dst, src_size); in compress_blob_lz4() 139 void *dst, size_t dst_alloc_size, size_t *dst_size) { in compress_blob_zstd() argument 145 assert(dst); in compress_blob_zstd() 149 k = ZSTD_compress(dst, dst_alloc_size, src, src_size, 0); in compress_blob_zstd() [all …]
|
D | memory-util.h | 19 static inline void *memcpy_safe(void *dst, const void *src, size_t n) { in memcpy_safe() argument 21 return dst; in memcpy_safe() 23 return memcpy(dst, src, n); in memcpy_safe() 27 static inline void *mempcpy_safe(void *dst, const void *src, size_t n) { in mempcpy_safe() argument 29 return dst; in mempcpy_safe() 31 return mempcpy(dst, src, n); in mempcpy_safe()
|
/systemd-251/src/test/ |
D | test-compress.c | 35 void *dst, size_t dst_alloc_size, size_t *dst_size); 37 void **dst, 173 _cleanup_close_ int src = -1, dst = -1, dst2 = -1; in test_compress_stream() local 196 assert_se((dst = mkostemp_safe(pattern)) >= 0); in test_compress_stream() 198 assert_se(compress(src, dst, -1, &uncompressed_size) == flag); in test_compress_stream() 212 assert_se(lseek(dst, 0, SEEK_SET) == 0); in test_compress_stream() 213 r = decompress(dst, dst2, st.st_size); in test_compress_stream() 221 assert_se(lseek(dst, 1, SEEK_SET) == 1); in test_compress_stream() 222 r = decompress(dst, dst2, st.st_size); in test_compress_stream() 225 assert_se(lseek(dst, 0, SEEK_SET) == 0); in test_compress_stream() [all …]
|
D | test-unit-file.c | 31 const char *k, *dst; in TEST() local 42 HASHMAP_FOREACH_KEY(dst, k, unit_ids) in TEST() 43 log_info("ids: %s → %s", k, dst); in TEST()
|
D | test-compress-benchmark.c | 15 typedef int (compress_t)(const void *src, uint64_t src_size, void *dst, 18 void **dst, size_t* dst_size, size_t dst_max);
|
/systemd-251/src/analyze/ |
D | analyze-verify.c | 19 _cleanup_free_ char *src = NULL, *dst = NULL, *base = NULL; in process_aliases() local 39 dst = path_join(tempdir, base); in process_aliases() 40 if (!dst) in process_aliases() 43 r = copy_file(src, dst, 0, 0644, 0, 0, COPY_REFLINK); in process_aliases() 47 r = strv_consume(&filenames, TAKE_PTR(dst)); in process_aliases()
|
D | analyze-unit-files.c | 20 const char *k, *dst; in verb_unit_files() local 32 HASHMAP_FOREACH_KEY(dst, k, unit_ids) { in verb_unit_files() 34 !strv_fnmatch_or_empty(patterns, dst, FNM_NOESCAPE)) in verb_unit_files() 37 printf("ids: %s → %s\n", k, dst); in verb_unit_files()
|
/systemd-251/tools/ |
D | meson-build.sh | 6 dst="$2" 13 [ -f "$dst/ninja.build" ] || CC="$CC" CXX="$CXX" meson "$src" "$dst" $options 22 "$ninja" -C "$dst" "$target"
|
/systemd-251/src/network/tc/ |
D | tclass.c | 189 _cleanup_(tclass_freep) TClass *dst = NULL; in tclass_dup() 195 dst = memdup(src, TCLASS_VTABLE(src)->object_size); in tclass_dup() 197 dst = newdup(TClass, src, 1); in tclass_dup() 198 if (!dst) in tclass_dup() 202 dst->network = NULL; in tclass_dup() 203 dst->section = NULL; in tclass_dup() 204 dst->link = NULL; in tclass_dup() 205 dst->tca_kind = NULL; in tclass_dup() 208 dst->tca_kind = strdup(src->tca_kind); in tclass_dup() 209 if (!dst->tca_kind) in tclass_dup() [all …]
|
D | qdisc.c | 219 _cleanup_(qdisc_freep) QDisc *dst = NULL; in qdisc_dup() 225 dst = memdup(src, QDISC_VTABLE(src)->object_size); in qdisc_dup() 227 dst = newdup(QDisc, src, 1); in qdisc_dup() 228 if (!dst) in qdisc_dup() 232 dst->network = NULL; in qdisc_dup() 233 dst->section = NULL; in qdisc_dup() 234 dst->link = NULL; in qdisc_dup() 235 dst->tca_kind = NULL; in qdisc_dup() 238 dst->tca_kind = strdup(src->tca_kind); in qdisc_dup() 239 if (!dst->tca_kind) in qdisc_dup() [all …]
|
/systemd-251/test/TEST-01-BASIC/ |
D | test.sh | 15 local dst="${1:?}/usr/lib/systemd/tests/testdata/units/" 16 mkdir -p "$dst" 17 cp -v "$TEST_UNITS_DIR"/{testsuite-01,end}.service "$TEST_UNITS_DIR/testsuite.target" "$dst"
|
/systemd-251/src/shared/ |
D | ethtool-util.c | 1337 u32_opt *dst = data; in config_parse_ring_buffer_or_channel() local 1348 dst->value = 0; in config_parse_ring_buffer_or_channel() 1349 dst->set = false; in config_parse_ring_buffer_or_channel() 1354 dst->value = 0; in config_parse_ring_buffer_or_channel() 1355 dst->set = true; in config_parse_ring_buffer_or_channel() 1371 dst->value = k; in config_parse_ring_buffer_or_channel() 1372 dst->set = true; in config_parse_ring_buffer_or_channel() 1453 u32_opt *dst = data; in config_parse_coalesce_u32() local 1458 dst->value = 0; in config_parse_coalesce_u32() 1459 dst->set = false; in config_parse_coalesce_u32() [all …]
|
D | install.c | 1766 const char *dst, in unit_file_verify_alias() argument 1787 const char *path_alias = strrchr(dst, '/'); in unit_file_verify_alias() 1795 dir = dirname_malloc(dst); in unit_file_verify_alias() 1803 unit_file_changes_add(changes, n_changes, -EXDEV, dst, NULL); in unit_file_verify_alias() 1811 unit_file_changes_add(changes, n_changes, -EXDEV, dst, NULL); in unit_file_verify_alias() 1823 unit_file_changes_add(changes, n_changes, -EXDEV, dst, info->name); in unit_file_verify_alias() 1826 info->name, dst); in unit_file_verify_alias() 1832 if (unit_name_is_valid(dst, UNIT_NAME_TEMPLATE)) { in unit_file_verify_alias() 1842 r = unit_name_replace_instance(dst, inst, &dst_updated); in unit_file_verify_alias() 1845 dst, inst); in unit_file_verify_alias() [all …]
|
D | acl-util.c | 127 acl_entry_t dst; in add_base_acls_if_needed() local 137 r = acl_create_entry(acl_p, &dst); in add_base_acls_if_needed() 141 r = acl_copy_entry(dst, i); in add_base_acls_if_needed()
|
D | firewall-util-iptables.c | 75 entry->ip.dst = destination->in; in entry_fill_basics() 303 entry->ip.dst.s_addr = htobe32(0x7F000000); in fw_iptables_add_local_dnat() 334 entry->ip.dst.s_addr = htobe32(0x7F000000); in fw_iptables_add_local_dnat()
|
/systemd-251/src/core/ |
D | smack-setup.c | 183 _cleanup_fclose_ FILE *dst = NULL; in write_netlabel_rules() local 187 dst = fopen("/sys/fs/smackfs/netlabel", "we"); in write_netlabel_rules() 188 if (!dst) { in write_netlabel_rules() 222 if (!fputs(buf, dst)) { in write_netlabel_rules() 228 q = fflush_and_check(dst); in write_netlabel_rules()
|
/systemd-251/src/boot/efi/ |
D | splash.c | 138 static void pixel_blend(UINT32 *dst, const UINT32 source) { in pixel_blend() argument 141 assert(dst); in pixel_blend() 152 dst_rb = (*dst & 0xff00ff); in pixel_blend() 153 dst_g = (*dst & 0x00ff00); in pixel_blend() 159 *dst = (rb | g); in pixel_blend()
|
/systemd-251/src/network/ |
D | networkd-dhcp4.c | 284 route->dst.in.s_addr = address.s_addr & netmask.s_addr; in dhcp4_request_prefix_route() 309 route->dst.in = *gw; in dhcp4_request_route_to_gateway() 343 if (in4_addr_is_localhost(&route->dst.in)) { in dhcp4_request_route_auto() 347 … IPV4_ADDRESS_FMT_VAL(route->dst.in), route->dst_prefixlen, IPV4_ADDRESS_FMT_VAL(*gw)); in dhcp4_request_route_auto() 354 } else if (in4_addr_equal(&route->dst.in, &address)) { in dhcp4_request_route_auto() 358 … IPV4_ADDRESS_FMT_VAL(route->dst.in), route->dst_prefixlen, IPV4_ADDRESS_FMT_VAL(*gw)); in dhcp4_request_route_auto() 366 (route->dst.in.s_addr & netmask.s_addr) == prefix.s_addr) { in dhcp4_request_route_auto() 370 IPV4_ADDRESS_FMT_VAL(route->dst.in), route->dst_prefixlen, in dhcp4_request_route_auto() 383 IPV4_ADDRESS_FMT_VAL(route->dst.in), route->dst_prefixlen, in dhcp4_request_route_auto() 444 struct in_addr dst; in dhcp4_request_static_routes() local [all …]
|
D | networkd-ndisc.c | 530 r = sd_ndisc_router_prefix_get_address(rt, &route->dst.in6); in ndisc_router_process_onlink_prefix() 594 struct in6_addr gateway, dst; in ndisc_router_process_route() local 611 r = sd_ndisc_router_route_get_address(rt, &dst); in ndisc_router_process_route() 619 if (in6_addr_is_null(&dst) && prefixlen == 0) { in ndisc_router_process_route() 624 …if (in6_prefix_is_filtered(&dst, prefixlen, link->network->ndisc_allow_listed_route_prefix, link->… in ndisc_router_process_route() 628 (void) in6_addr_prefix_to_string(&dst, prefixlen, &buf); in ndisc_router_process_route() 667 route->dst.in6 = dst; in ndisc_router_process_route()
|
D | networkd-dhcp-prefix-delegation.c | 157 if (in6_addr_prefix_covers(pd_prefix, pd_prefix_len, &route->dst.in6) > 0) { in dhcp_pd_get_assigned_subnet_prefix() 159 *ret = route->dst.in6; in dhcp_pd_get_assigned_subnet_prefix() 190 sd_radv_remove_prefix(link->radv, &route->dst.in6, 64); in dhcp_pd_remove() 192 link_remove_dhcp_pd_subnet_prefix(link, &route->dst.in6); in dhcp_pd_remove() 325 route->dst.in6 = *prefix; in dhcp_pd_request_route() 634 .address = route->dst })) in dhcp_pd_prefix_lost() 724 route->dst.in6 = *addr; in dhcp_request_unreachable_route()
|
/systemd-251/src/libsystemd-network/ |
D | icmp6-util.c | 112 struct sockaddr_in6 dst = { in icmp6_send_router_solicitation() local 130 .msg_name = &dst, in icmp6_send_router_solicitation() 131 .msg_namelen = sizeof(dst), in icmp6_send_router_solicitation()
|
D | sd-dhcp-lease.c | 494 struct in_addr dst, gw; in lease_parse_static_routes() local 497 assert_se(lease_parse_be32(option, 4, &dst.s_addr) >= 0); in lease_parse_static_routes() 505 r = in4_addr_default_prefixlen(&dst, &prefixlen); in lease_parse_static_routes() 511 (void) in4_addr_mask(&dst, prefixlen); in lease_parse_static_routes() 517 .dst_addr = dst, in lease_parse_static_routes() 535 struct in_addr dst = {}, gw; in lease_parse_classless_routes() local 547 memcpy(&dst, option, dst_octets); in lease_parse_classless_routes() 562 .dst_addr = dst, in lease_parse_classless_routes()
|
/systemd-251/man/ |
D | meson.build | 83 dst = docdir / 'html' / htmlalias variable 84 cmd = 'ln -fs @0@ $DESTDIR@1@'.format(html, dst) 156 dst = docdir / 'html' / htmlalias variable 157 cmd = 'ln -fs @0@ $DESTDIR@1@'.format(html, dst)
|