Searched refs:dup (Results 1 – 25 of 30) sorted by relevance
12
/systemd-251/src/test/ |
D | test-alloc-util.c | 60 _cleanup_free_ int *dup; in TEST() local 64 dup = memdup_suffix0_multiply(org, sizeof(int), 3); in TEST() 65 assert_se(dup); in TEST() 66 assert_se(dup[0] == 1); in TEST() 67 assert_se(dup[1] == 2); in TEST() 68 assert_se(dup[2] == 3); in TEST() 69 assert_se(((uint8_t*) dup)[sizeof(int) * 3] == 0); in TEST() 70 free(dup); in TEST() 72 dup = memdup_multiply(org, sizeof(int), 3); in TEST() 73 assert_se(dup); in TEST() [all …]
|
/systemd-251/src/shared/ |
D | netif-sriov.c | 324 SRIOV *dup; in sr_iov_drop_invalid_sections() local 331 dup = set_remove(set, sr_iov); in sr_iov_drop_invalid_sections() 332 if (dup) { in sr_iov_drop_invalid_sections() 335 dup->section->filename, sr_iov->section->line, in sr_iov_drop_invalid_sections() 336 dup->section->line, dup->section->line); in sr_iov_drop_invalid_sections() 337 sr_iov_free(dup); in sr_iov_drop_invalid_sections()
|
/systemd-251/coccinelle/ |
D | dup-fcntl.cocci | 3 /* We want to stick with dup() in test-fd-util.c */ 7 - dup@p(fd)
|
/systemd-251/.lgtm/cpp-queries/ |
D | PotentiallyDangerousFunction.ql | 29 f.getQualifiedName() = "dup" and 30 message = "Call to dup() is potentially dangerous. Use fcntl(fd, FD_DUPFD_CLOEXEC, 3) instead."
|
/systemd-251/test/test-execute/ |
D | exec-standardinput-file-cat.service | 10 # The "cat" tool is going to write to stdout, which fails if we dup() stdin to stdout
|
/systemd-251/src/basic/ |
D | strv.h | 87 #define strv_split_and_extend(t, s, sep, dup) strv_split_and_extend_full(t, s, sep, dup, 0) argument
|
D | syscall-list.txt | 52 dup
|
D | syscalls-alpha.txt | 52 dup 41
|
D | syscalls-arc.txt | 52 dup 23
|
D | syscalls-arm.txt | 52 dup 41
|
D | syscalls-arm64.txt | 52 dup 23
|
D | syscalls-i386.txt | 52 dup 41
|
D | syscalls-ia64.txt | 52 dup 1057
|
D | syscalls-loongarch64.txt | 52 dup 23
|
D | syscalls-m68k.txt | 52 dup 41
|
D | syscalls-mips64.txt | 52 dup 5031
|
D | syscalls-mips64n32.txt | 52 dup 6031
|
D | syscalls-mipso32.txt | 52 dup 4041
|
D | syscalls-powerpc.txt | 52 dup 41
|
D | syscalls-powerpc64.txt | 52 dup 41
|
D | syscalls-riscv32.txt | 52 dup 23
|
D | syscalls-riscv64.txt | 52 dup 23
|
D | syscalls-s390.txt | 52 dup 41
|
/systemd-251/src/network/ |
D | networkd-address.c | 2012 Address *dup; in network_drop_invalid_addresses() local 2022 dup = set_remove(addresses, address); in network_drop_invalid_addresses() 2023 if (dup) { in network_drop_invalid_addresses() 2029 dup->section->filename, strna(buf), address->section->line, in network_drop_invalid_addresses() 2030 dup->section->line, dup->section->line); in network_drop_invalid_addresses() 2032 address_free(dup); in network_drop_invalid_addresses()
|
/systemd-251/src/tmpfiles/ |
D | tmpfiles.c | 1070 _cleanup_(acl_freep) acl_t dup = NULL; in path_set_acl() 1077 r = acls_for_file(path, type, acl, &dup); in path_set_acl() 1081 r = calc_acl_mask_if_needed(&dup); in path_set_acl() 1085 dup = acl_dup(acl); in path_set_acl() 1086 if (!dup) in path_set_acl() 1092 r = add_base_acls_if_needed(&dup, path); in path_set_acl() 1096 t = acl_to_any_text(dup, NULL, ',', TEXT_ABBREVIATE); in path_set_acl() 1101 r = acl_set_file(path, type, dup); in path_set_acl()
|
12