Home
last modified time | relevance | path

Searched refs:dup (Results 1 – 25 of 30) sorted by relevance

12

/systemd-251/src/test/
Dtest-alloc-util.c60 _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/
Dnetif-sriov.c324 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/
Ddup-fcntl.cocci3 /* We want to stick with dup() in test-fd-util.c */
7 - dup@p(fd)
/systemd-251/.lgtm/cpp-queries/
DPotentiallyDangerousFunction.ql29 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/
Dexec-standardinput-file-cat.service10 # The "cat" tool is going to write to stdout, which fails if we dup() stdin to stdout
/systemd-251/src/basic/
Dstrv.h87 #define strv_split_and_extend(t, s, sep, dup) strv_split_and_extend_full(t, s, sep, dup, 0) argument
Dsyscall-list.txt52 dup
Dsyscalls-alpha.txt52 dup 41
Dsyscalls-arc.txt52 dup 23
Dsyscalls-arm.txt52 dup 41
Dsyscalls-arm64.txt52 dup 23
Dsyscalls-i386.txt52 dup 41
Dsyscalls-ia64.txt52 dup 1057
Dsyscalls-loongarch64.txt52 dup 23
Dsyscalls-m68k.txt52 dup 41
Dsyscalls-mips64.txt52 dup 5031
Dsyscalls-mips64n32.txt52 dup 6031
Dsyscalls-mipso32.txt52 dup 4041
Dsyscalls-powerpc.txt52 dup 41
Dsyscalls-powerpc64.txt52 dup 41
Dsyscalls-riscv32.txt52 dup 23
Dsyscalls-riscv64.txt52 dup 23
Dsyscalls-s390.txt52 dup 41
/systemd-251/src/network/
Dnetworkd-address.c2012 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/
Dtmpfiles.c1070 _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