/systemd-251/src/resolve/ |
D | resolved-dns-rr.c | 1486 _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *copy = NULL; in dns_resource_record_copy() 1491 copy = dns_resource_record_new(rr->key); in dns_resource_record_copy() 1492 if (!copy) in dns_resource_record_copy() 1495 copy->ttl = rr->ttl; in dns_resource_record_copy() 1496 copy->expiry = rr->expiry; in dns_resource_record_copy() 1497 copy->n_skip_labels_signer = rr->n_skip_labels_signer; in dns_resource_record_copy() 1498 copy->n_skip_labels_source = rr->n_skip_labels_source; in dns_resource_record_copy() 1499 copy->unparsable = rr->unparsable; in dns_resource_record_copy() 1504 copy->srv.priority = rr->srv.priority; in dns_resource_record_copy() 1505 copy->srv.weight = rr->srv.weight; in dns_resource_record_copy() [all …]
|
D | test-dns-packet.c | 23 _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *copy = NULL; in verify_rr_copy() 26 assert_se(copy = dns_resource_record_copy(rr)); in verify_rr_copy() 27 assert_se(dns_resource_record_equal(copy, rr) > 0); in verify_rr_copy() 30 assert_se(b = dns_resource_record_to_string(copy)); in verify_rr_copy()
|
/systemd-251/src/nspawn/ |
D | nspawn-patch-uid.c | 74 _cleanup_(acl_freep) acl_t copy = NULL; in shift_acl() 107 if (modify && !copy) { in shift_acl() 117 copy = acl_init(n); in shift_acl() 118 if (!copy) in shift_acl() 129 if (copy) { in shift_acl() 132 if (acl_create_entry(©, &new_entry) < 0) in shift_acl() 148 *ret = TAKE_PTR(copy); in shift_acl() 317 int copy; in recurse_fd() local 319 copy = fcntl(fd, F_DUPFD_CLOEXEC, 3); in recurse_fd() 320 if (copy < 0) { in recurse_fd() [all …]
|
/systemd-251/src/shared/ |
D | fdset.c | 81 int copy, r; in fdset_put_dup() local 86 copy = fcntl(fd, F_DUPFD_CLOEXEC, 3); in fdset_put_dup() 87 if (copy < 0) in fdset_put_dup() 90 r = fdset_put(s, copy); in fdset_put_dup() 92 safe_close(copy); in fdset_put_dup() 96 return copy; in fdset_put_dup()
|
D | in-addr-prefix-util.c | 88 struct in_addr_prefix *copy; in in_addr_prefix_add() local 94 copy = newdup(struct in_addr_prefix, prefix, 1); in in_addr_prefix_add() 95 if (!copy) in in_addr_prefix_add() 98 (void) in_addr_mask(copy->family, ©->address, copy->prefixlen); in in_addr_prefix_add() 99 return set_ensure_consume(prefixes, &in_addr_prefix_hash_ops_free, copy); in in_addr_prefix_add()
|
D | specifier.c | 416 char *copy; in specifier_tmp_dir() local 428 copy = strdup(p); in specifier_tmp_dir() 429 if (!copy) in specifier_tmp_dir() 432 *ret = copy; in specifier_tmp_dir() 438 char *copy; in specifier_var_tmp_dir() local 450 copy = strdup(p); in specifier_var_tmp_dir() 451 if (!copy) in specifier_var_tmp_dir() 454 *ret = copy; in specifier_var_tmp_dir()
|
D | bpf-program.c | 209 _cleanup_free_ char *copy = NULL; in bpf_program_cgroup_attach() local 246 copy = strdup(path); in bpf_program_cgroup_attach() 247 if (!copy) in bpf_program_cgroup_attach() 263 free_and_replace(p->attached_path, copy); in bpf_program_cgroup_attach() 370 int copy, r; in bpf_program_serialize_attachment() local 381 copy = fdset_put_dup(fds, p->kernel_fd); in bpf_program_serialize_attachment() 382 if (copy < 0) in bpf_program_serialize_attachment() 383 return log_error_errno(copy, "Failed to add BPF kernel fd to serialize: %m"); in bpf_program_serialize_attachment() 389 copy, in bpf_program_serialize_attachment()
|
D | serialize.c | 82 int copy; in serialize_fd() local 90 copy = fdset_put_dup(fds, fd); in serialize_fd() 91 if (copy < 0) in serialize_fd() 92 … return log_error_errno(copy, "Failed to add file descriptor to serialization set: %m"); in serialize_fd() 94 return serialize_item_format(f, key, "%i", copy); in serialize_fd()
|
D | hostname-setup.c | 95 char *copy; in read_etc_hostname_stream() local 102 copy = strdup(p); in read_etc_hostname_stream() 103 if (!copy) in read_etc_hostname_stream() 106 *ret = copy; in read_etc_hostname_stream()
|
D | cgroup-show.c | 363 _cleanup_free_ pid_t *copy = NULL; in show_extra_pids() local 377 copy = new(pid_t, n_pids); in show_extra_pids() 378 if (!copy) in show_extra_pids() 391 copy[j++] = pids[i]; in show_extra_pids() 394 show_pid_array(copy, j, prefix, n_columns, true, false, flags); in show_extra_pids()
|
/systemd-251/src/basic/ |
D | fd-util.c | 569 int flags, copy; in fd_move_above_stdio() local 593 copy = fcntl(fd, F_DUPFD_CLOEXEC, 3); in fd_move_above_stdio() 595 copy = fcntl(fd, F_DUPFD, 3); in fd_move_above_stdio() 596 if (copy < 0) in fd_move_above_stdio() 599 assert(copy > 2); in fd_move_above_stdio() 602 return copy; in fd_move_above_stdio() 647 int copy; in rearrange_stdio() local 649 … copy = fcntl(null_fd, F_DUPFD_CLOEXEC, 3); /* Duplicate this with O_CLOEXEC set */ in rearrange_stdio() 650 if (copy < 0) { in rearrange_stdio() 655 CLOSE_AND_REPLACE(null_fd, copy); in rearrange_stdio()
|
D | format-util.c | 28 char buf[IF_NAMESIZE], *copy; in format_ifname_full_alloc() local 37 copy = strdup(buf); in format_ifname_full_alloc() 38 if (!copy) in format_ifname_full_alloc() 41 *ret = copy; in format_ifname_full_alloc()
|
D | conf-files.c | 254 _cleanup_strv_free_ char **copy = NULL; in conf_files_list_strv() local 258 copy = strv_copy((char**) dirs); in conf_files_list_strv() 259 if (!copy) in conf_files_list_strv() 262 return conf_files_list_strv_internal(ret, suffix, root, flags, copy); in conf_files_list_strv()
|
D | utf8.c | 482 goto copy; in utf8_to_utf16() 485 goto copy; in utf8_to_utf16() 489 goto copy; in utf8_to_utf16() 495 copy: in utf8_to_utf16()
|
D | time-util.c | 629 struct tm tm, copy; in parse_timestamp_impl() local 777 copy = tm; in parse_timestamp_impl() 786 tm = copy; in parse_timestamp_impl() 796 tm = copy; in parse_timestamp_impl() 805 tm = copy; in parse_timestamp_impl() 812 tm = copy; in parse_timestamp_impl() 819 tm = copy; in parse_timestamp_impl() 826 tm = copy; in parse_timestamp_impl() 833 tm = copy; in parse_timestamp_impl() 842 tm = copy; in parse_timestamp_impl()
|
/systemd-251/test/ |
D | sysv-generator-test.py | 54 env = os.environ.copy() 366 shutil.copy(script, script + '.dpkg-new') 367 shutil.copy(script, script + '.dpkg-dist') 368 shutil.copy(script, script + '.swp') 369 shutil.copy(script, script + '.rpmsave') 381 shutil.copy(script, script + '.bak') 382 shutil.copy(script, script + '.old') 383 shutil.copy(script, script + '.tmp') 384 shutil.copy(script, script + '.new')
|
/systemd-251/src/systemctl/ |
D | systemctl-set-environment.c | 168 _cleanup_strv_free_ char **copy = strv_copy(environ); in verb_import_environment() local 169 if (!copy) in verb_import_environment() 172 strv_env_clean_with_callback(copy, invalid_callback, NULL); in verb_import_environment() 174 STRV_FOREACH(e, copy) in verb_import_environment() 179 r = sd_bus_message_append_strv(m, copy); in verb_import_environment()
|
D | systemctl-compat-shutdown.c | 142 char **copy = strv_copy(wall); in shutdown_parse_argv() local 143 if (!copy) in shutdown_parse_argv() 145 strv_free_and_replace(arg_wall, copy); in shutdown_parse_argv()
|
/systemd-251/ |
D | LICENSE.LGPL2.1 | 6 Everyone is permitted to copy and distribute verbatim copies 50 permission to copy, distribute and/or modify the library. 150 1. You may copy and distribute verbatim copies of the Library's 152 you conspicuously and appropriately publish on each copy an 155 warranty; and distribute a copy of this License along with the 158 You may charge a fee for the physical act of transferring a copy, 162 2. You may modify your copy or copies of the Library or any portion 163 of it, thus forming a work based on the Library, and copy and 212 License instead of this License to a given copy of the Library. To do 220 Once this change is made in a given copy, it is irreversible for [all …]
|
D | LICENSE.GPL2 | 6 Everyone is permitted to copy and distribute verbatim copies 40 (2) offer you this license which gives you legal permission to copy, 79 1. You may copy and distribute verbatim copies of the Program's 81 conspicuously and appropriately publish on each copy an appropriate 84 and give any other recipients of the Program a copy of this License 87 You may charge a fee for the physical act of transferring a copy, and 90 2. You may modify your copy or copies of the Program or any portion 91 of it, thus forming a work based on the Program, and copy and 109 these conditions, and telling the user how to view a copy of this 134 3. You may copy and distribute the Program (or a work based on it, [all …]
|
/systemd-251/LICENSES/ |
D | LGPL-2.0-or-later.txt | 8 Everyone is permitted to copy and distribute verbatim copies of this license document, but changing… 24 …brary, and (2) offer you this license which gives you legal permission to copy, distribute and/or … 54 …copy and distribute verbatim copies of the Library's complete source code as you receive it, in an… 56 You may charge a fee for the physical act of transferring a copy, and you may at your option offer … 58 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work base… 76 …he ordinary GNU General Public License instead of this License to a given copy of the Library. To … 78 …copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all … 80 This option is useful when you wish to copy part of the code of the Library into a program that is … 82 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in o… 84 …copy from a designated place, then offering equivalent access to copy the source code from the sam… [all …]
|
/systemd-251/shell-completion/bash/ |
D | portablectl | 16 # You should have received a copy of the GNU Lesser General Public License 38 [ARG]='-p --profile --copy -H --host -M --machine' 53 --copy) 54 comps="copy symlink auto"
|
/systemd-251/src/libsystemd/sd-path/ |
D | sd-path.c | 156 char *copy; in from_user_dir() local 158 copy = strdup(p); in from_user_dir() 159 if (!copy) in from_user_dir() 162 *buffer = copy; in from_user_dir() 163 *ret = copy; in from_user_dir()
|
/systemd-251/shell-completion/zsh/ |
D | _machinectl | 38 "copy-to:Copy files from the host to a container" 39 "copy-from:Copy files from a container to the host" 75 copy-to|copy-from|bind)
|
/systemd-251/src/xdg-autostart-generator/ |
D | xdg-autostart-service.c | 198 _cleanup_free_ char *copy = NULL; in strv_strndup_unescape_and_push() local 201 copy = strndup(start, end - start); in strv_strndup_unescape_and_push() 202 if (!copy) in strv_strndup_unescape_and_push() 205 r = xdg_unescape_string(unit, filename, line, copy); in strv_strndup_unescape_and_push() 212 (*sv)[*n] = TAKE_PTR(copy); in strv_strndup_unescape_and_push()
|