Home
last modified time | relevance | path

Searched refs:dup (Results 126 - 150 of 453) sorted by relevance

12345678910>>...19

/third_party/musl/libc-test/src/regression/
H A Dfflush-exit.c28 ASSERT(dup(fd) == 1); in main()
H A Drlimit-open-files.c25 while((fd=dup(1)) != -1) in main()
28 t_error("dup(1) failed with %s, wanted EMFILE\n", strerror(errno)); in main()
H A Ddaemon-failure.c28 fdout = dup(1); in main()
30 t_error("dup(1) failed: %s\n", strerror(errno)); in main()
47 t_error("failed to dup pipe fd for communicating results: %s\n", strerror(errno)); in main()
/third_party/protobuf/ruby/compatibility_tests/v3.0.0/tests/
H A Dstress.rb32 mnew = mnew.dup
/third_party/protobuf/ruby/tests/
H A Dstress.rb32 mnew = mnew.dup
/third_party/ltp/lib/tests/
H A Dtrerrno.c50 stdout_fd = dup(fileno(stdout)); in main()
/third_party/ltp/testcases/kernel/mce-test/stress/tools/fs-metadata/
H A Dk-tree-gen.c62 // API: open,close,dup,read,write,lseek in k_tree_gen()
64 fd2 = dup(fd); in k_tree_gen()
/third_party/optimized-routines/string/aarch64/
H A Dmemchr-sve.S20 dup z1.b, w1 /* duplicate c to a vector */
/third_party/toybox/toys/posix/
H A Dcmp.c40 TT.fd = dup(fd); in do_cmp()
/third_party/skia/third_party/externals/tint/tools/src/cmd/intrinsic-gen/resolver/
H A Dresolve.go187 if s, dup := options[ty]; dup {
505 if _, dup := set[p.Name]; !dup {
/kernel/linux/linux-5.10/tools/perf/util/
H A Ddata-convert-bt.c938 /* If dup < 0, add a prefix. Else, add _dupl_X suffix. */
939 static char *change_name(char *name, char *orig_name, int dup) in change_name() argument
947 if (dup >= 10) in change_name()
954 if (dup < 0) in change_name()
963 if (dup < 0) in change_name()
966 snprintf(new_name, len, "%s_dupl_%d", orig_name, dup); in change_name()
980 int dup = 1; in event_class_add_field() local
1000 name = change_name(name, field->name, dup++); in event_class_add_field()
1002 pr_err("Failed to create dup name for '%s'\n", field->name); in event_class_add_field()
/kernel/linux/linux-6.6/tools/perf/util/
H A Ddata-convert-bt.c944 /* If dup < 0, add a prefix. Else, add _dupl_X suffix. */
945 static char *change_name(char *name, char *orig_name, int dup) in change_name() argument
953 if (dup >= 10) in change_name()
960 if (dup < 0) in change_name()
969 if (dup < 0) in change_name()
972 snprintf(new_name, len, "%s_dupl_%d", orig_name, dup); in change_name()
986 int dup = 1; in event_class_add_field() local
1006 name = change_name(name, field->name, dup++); in event_class_add_field()
1008 pr_err("Failed to create dup name for '%s'\n", field->name); in event_class_add_field()
/third_party/curl/lib/
H A Dsmtp.c1791 char *dup = strdup(fqma[0] == '<' ? fqma + 1 : fqma); in smtp_parse_address() local
1792 if(!dup) in smtp_parse_address()
1795 length = strlen(dup); in smtp_parse_address()
1797 if(dup[length - 1] == '>') in smtp_parse_address()
1798 dup[length - 1] = '\0'; in smtp_parse_address()
1802 host->name = strpbrk(dup, "@"); in smtp_parse_address()
1816 *address = dup; in smtp_parse_address()
/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
H A DRubyMessage.java272 * Message.dup => new_message
276 public IRubyObject dup(ThreadContext context) { in dup() method in RubyMessage
277 RubyMessage dup = (RubyMessage) metaClass.newInstance(context, Block.NULL_BLOCK); in dup()
281 dup.addRepeatedField(fieldDescriptor, this.getRepeatedField(context, fieldDescriptor)); in dup()
283 dup.fields.put(fieldDescriptor, fields.get(fieldDescriptor)); in dup()
285 dup.fields.put(fieldDescriptor, wrapField(context, fieldDescriptor, this.builder.getField(fieldDescriptor))); in dup()
289 dup.maps.put(fieldDescriptor, maps.get(fieldDescriptor)); in dup()
291 return dup; in dup()
/third_party/skia/third_party/externals/abseil-cpp/absl/hash/
H A Dhash_test.cc293 const std::string dup = "foofoo"; in TEST() local
301 std::string(dup), absl::string_view(dup), absl::Cord(dup), // in TEST()
313 t(std::string(dup)), t(absl::string_view(dup)), t(absl::Cord(dup)), // in TEST()
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/
H A Dpci.c234 bool dup = false; in pnv_pci_dump_pest() local
242 if (dup) { in pnv_pci_dump_pest()
244 dup = false; in pnv_pci_dump_pest()
252 } else if (!dup && (peA & PNV_IODA_STOPPED_STATE || in pnv_pci_dump_pest()
254 dup = true; in pnv_pci_dump_pest()
/kernel/linux/linux-6.6/arch/powerpc/platforms/powernv/
H A Dpci.c166 bool dup = false; in pnv_pci_dump_pest() local
174 if (dup) { in pnv_pci_dump_pest()
176 dup = false; in pnv_pci_dump_pest()
184 } else if (!dup && (peA & PNV_IODA_STOPPED_STATE || in pnv_pci_dump_pest()
186 dup = true; in pnv_pci_dump_pest()
/third_party/mesa3d/src/drm-shim/
H A Ddrm_shim.c68 REAL_FUNCTION_POINTER(dup); variable
209 GET_FUNCTION_POINTER(dup); in init_shim()
668 /* Gallium uses this to dup the incoming fd on gbm screen creation */
695 dup(int fd) in dup() function
/third_party/gptfdisk/
H A Dsgdisk.cc37 int stdout = dup(STDOUT_FILENO); in ohos_dump()
/third_party/libuv/test/
H A Dtest-pipe-close-stdout-read-stdin.c82 r = dup(fd[0]); in TEST_IMPL()
/third_party/libdrm/etnaviv/
H A Detnaviv_device.c60 /* like etna_device_new() but creates it's own private dup() of the fd
64 int dup_fd = dup(fd); in etna_device_new_dup()
/third_party/libdrm/
H A Dlibsync.h104 /* accumulate fd2 into fd1. If *fd1 is not a valid fd then dup fd2,
128 *fd1 = dup(fd2); in sync_accumulate()
/third_party/json/tests/thirdparty/Fuzzer/
H A DFuzzerIOPosix.cpp71 return dup(Fd); in DuplicateFile()
/third_party/ltp/testcases/kernel/syscalls/kcmp/
H A Dkcmp01.c61 fd2 = dup(fd1); in do_child()
63 tst_res(TFAIL | TERRNO, "dup() failed unexpectedly"); in do_child()
/third_party/ltp/testcases/kernel/syscalls/dup/
H A Ddup06.c22 WHAT: Does dup return -1 on the 21st file?
80 if ((fildes[i] = dup(fildes[i - 1])) == -1) in main()

Completed in 18 milliseconds

12345678910>>...19