Home
last modified time | relevance | path

Searched refs:dup (Results 51 - 75 of 453) sorted by relevance

12345678910>>...19

/test/xts/hats/kernel/syscalls/fileio/dup/
H A DDupApiTest.cpp53 * @tc.desc : dup file fd success.
64 newFd = dup(fd); in HWTEST_F()
74 * @tc.desc : dup fd -1 failed, errno EBADF.
84 newFd = dup(fd); in HWTEST_F()
/third_party/rust/crates/rustix/src/io/
H A Ddup.rs10 /// `dup(fd)`—Creates a new `OwnedFd` instance that shares the same
13 /// This function does not set the `O_CLOEXEC` flag. To do a `dup` that does
16 /// POSIX guarantees that `dup` will use the lowest unused file descriptor,
27 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/dup.html
28 /// [Linux]: https://man7.org/linux/man-pages/man2/dup.2.html
29 /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/dup.2.html
32 pub fn dup<Fd: AsFd>(fd: Fd) -> io::Result<OwnedFd> { in dup() functions
33 backend::io::syscalls::dup(fd.as_fd()) in dup()
/kernel/linux/linux-5.10/drivers/platform/x86/
H A Dtopstar-laptop.c239 bool *dup; in topstar_acpi_notify() local
243 dup = &dup_evnt[event - 0x83]; in topstar_acpi_notify()
244 if (*dup) { in topstar_acpi_notify()
245 *dup = false; in topstar_acpi_notify()
248 *dup = true; in topstar_acpi_notify()
/kernel/linux/linux-6.6/drivers/platform/x86/
H A Dtopstar-laptop.c239 bool *dup; in topstar_acpi_notify() local
243 dup = &dup_evnt[event - 0x83]; in topstar_acpi_notify()
244 if (*dup) { in topstar_acpi_notify()
245 *dup = false; in topstar_acpi_notify()
248 *dup = true; in topstar_acpi_notify()
/third_party/node/deps/uvwasi/src/
H A Dpoll_oneoff.c162 struct uvwasi__poll_fdevent_t* dup; in uvwasi__poll_oneoff_state_add_fdevent() local
194 dup = &state->fdevents[i]; in uvwasi__poll_oneoff_state_add_fdevent()
195 if (dup->wrap->id == fd) { in uvwasi__poll_oneoff_state_add_fdevent()
197 event->wrap = dup->wrap; in uvwasi__poll_oneoff_state_add_fdevent()
198 event->poll_handle = dup->poll_handle; in uvwasi__poll_oneoff_state_add_fdevent()
/third_party/ffmpeg/libavutil/
H A Dchannel_layout.c408 const char *dup; in av_channel_layout_from_string() local
487 dup = chlist; in av_channel_layout_from_string()
488 while (*dup) { in av_channel_layout_from_string()
490 int ret = av_opt_get_key_value(&dup, "@", "+", AV_OPT_FLAG_IMPLICIT_KEY, &channel, &chname); in av_channel_layout_from_string()
495 if (*dup) in av_channel_layout_from_string()
496 dup++; // skip separator in av_channel_layout_from_string()
564 dup = chlist; in av_channel_layout_from_string()
565 while (*dup) { in av_channel_layout_from_string()
567 int ret = av_opt_get_key_value(&dup, "@", "+", AV_OPT_FLAG_IMPLICIT_KEY, &channel, &chname); in av_channel_layout_from_string()
573 if (*dup) in av_channel_layout_from_string()
[all...]
/third_party/littlefs/scripts/
H A Dteepipe.py22 return os.fdopen(os.dup(sys.stdin.fileno()), mode, buffering)
24 return os.fdopen(os.dup(sys.stdout.fileno()), mode, buffering)
/third_party/python/Python/
H A Dpystrtod.c389 char *dup, *end; in _Py_string_to_number_with_underscores() local
398 dup = PyMem_Malloc(orig_len + 1); in _Py_string_to_number_with_underscores()
399 if (dup == NULL) { in _Py_string_to_number_with_underscores()
402 end = dup; in _Py_string_to_number_with_underscores()
430 result = innerfunc(dup, end - dup, arg); in _Py_string_to_number_with_underscores()
431 PyMem_Free(dup); in _Py_string_to_number_with_underscores()
435 PyMem_Free(dup); in _Py_string_to_number_with_underscores()
/third_party/ffmpeg/libavcodec/aarch64/
H A Dopusdsp_neon.S76 dup v1.4s, v0.s[1]
77 dup v2.4s, v0.s[2]
78 dup v0.4s, v0.s[0]
H A Dvp8dsp_neon.S89 dup v4.2s, w4
318 dup v23.16b, \hev_thresh // hev_thresh
475 dup v23.16b, w3 // flim_I
477 dup v22.16b, w2 // flim_E
527 dup v22.16b, w3 // flim_E
528 dup v23.16b, w4 // flim_I
584 dup v22.16b, w2 // flim_E
586 dup v23.16b, w3 // flim_I
646 dup v22.16b, w3 // flim_E
647 dup v2
[all...]
H A Dh264dsp_neon.S41 dup v22.16B, w2 // alpha
50 dup v22.16B, w3 // beta
189 dup v30.16b, w2 // alpha
190 dup v31.16b, w3 // beta
380 dup v22.8B, w2 // alpha
381 dup v23.8B, w3 // beta
587 dup v0.16B, w5
588 dup v1.16B, w6
623 dup v0.8B, w5
624 dup v
[all...]
/third_party/protobuf/src/google/protobuf/testing/
H A Dgoogletest.cc60 using google::protobuf::io::win32::dup;
209 original_stdout_ = dup(1); in CaptureTestStdout()
224 original_stderr_ = dup(2); in CaptureTestStderr()
/third_party/python/Lib/test/
H A Dtest_set.py234 dup = pickle.loads(p)
235 self.assertEqual(self.s, dup, "%s != %s" % (self.s, dup))
237 self.assertEqual(self.s.x, dup.x)
238 self.assertEqual(self.s.z, dup.z)
273 dup = copy.deepcopy(s)
274 self.assertNotEqual(id(s), id(dup))
275 for elem in dup:
405 dup = self.s.copy()
406 self.assertEqual(self.s, dup)
[all...]
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
H A DCodedOutputStreamTest.java133 ByteBuffer dup = buffer.duplicate(); in toByteArray()
134 dup.position(initialPosition); in toByteArray()
135 dup.limit(buffer.position()); in toByteArray()
137 byte[] bytes = new byte[dup.remaining()]; in toByteArray()
138 dup.get(bytes); in toByteArray()
176 ByteBuffer dup = buffer.duplicate(); in toByteArray()
177 dup.position(initialPosition); in toByteArray()
178 dup.limit(buffer.position()); in toByteArray()
180 byte[] bytes = new byte[dup.remaining()]; in toByteArray()
181 dup in toByteArray()
[all...]
/third_party/ffmpeg/libswscale/aarch64/
H A Dyuv2rgb_neon.S37 dup v0.8H, w10
38 dup v3.8H, w9
55 dup v0.8H, w10
56 dup v3.8H, w9
71 dup v0.8H, w10
72 dup v3.8H, w9
/kernel/linux/linux-5.10/kernel/bpf/preload/iterators/
H A Diterators.c48 to_kernel = dup(1); in main()
50 dup(debug_fd); in main()
/third_party/libuv/test/
H A Dtest-emfile.c70 first_fd = dup(0); in TEST_IMPL()
74 while (dup(0) != -1 || errno == EINTR); in TEST_IMPL()
/third_party/python/Lib/asyncio/
H A Dtrsock.py59 def dup(self): member in TransportSocket
60 return self._sock.dup()
/third_party/selinux/libsepol/src/
H A Dhierarchy.c61 avtab_datum_t *dup = avtab_search(avtab, avtab_key); in bounds_insert_rule() local
63 if (!dup) { in bounds_insert_rule()
67 dup->data |= datum->data; in bounds_insert_rule()
75 dup = avtab_search(other, avtab_key); in bounds_insert_rule()
76 if (dup) { in bounds_insert_rule()
77 data = dup->data & datum->data; in bounds_insert_rule()
79 dup = avtab_search(global, avtab_key); in bounds_insert_rule()
80 if (!dup) { in bounds_insert_rule()
87 dup->data |= data; in bounds_insert_rule()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
H A Dport.c189 bool dup = mlx4_is_mf_bonded(dev); in __mlx4_register_mac() local
197 dup ? "with" : "without"); in __mlx4_register_mac()
266 if (dup) { in __mlx4_register_mac()
279 if (dup) { in __mlx4_register_mac()
282 dup = false; in __mlx4_register_mac()
311 if (dup) { in __mlx4_register_mac()
384 bool dup = mlx4_is_mf_bonded(dev); in __mlx4_unregister_mac() local
395 if (dup) { in __mlx4_unregister_mac()
425 if (dup) { in __mlx4_unregister_mac()
436 if (dup) { in __mlx4_unregister_mac()
480 bool dup = mlx4_is_mf_bonded(dev); __mlx4_replace_mac() local
584 bool dup = mlx4_is_mf_bonded(dev); __mlx4_register_vlan() local
766 bool dup = mlx4_is_mf_bonded(dev); __mlx4_unregister_vlan() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx4/
H A Dport.c189 bool dup = mlx4_is_mf_bonded(dev); in __mlx4_register_mac() local
197 dup ? "with" : "without"); in __mlx4_register_mac()
266 if (dup) { in __mlx4_register_mac()
279 if (dup) { in __mlx4_register_mac()
282 dup = false; in __mlx4_register_mac()
311 if (dup) { in __mlx4_register_mac()
384 bool dup = mlx4_is_mf_bonded(dev); in __mlx4_unregister_mac() local
395 if (dup) { in __mlx4_unregister_mac()
425 if (dup) { in __mlx4_unregister_mac()
436 if (dup) { in __mlx4_unregister_mac()
480 bool dup = mlx4_is_mf_bonded(dev); __mlx4_replace_mac() local
584 bool dup = mlx4_is_mf_bonded(dev); __mlx4_register_vlan() local
766 bool dup = mlx4_is_mf_bonded(dev); __mlx4_unregister_vlan() local
[all...]
/kernel/linux/linux-5.10/drivers/isdn/mISDN/
H A Ddsp_pipeline.c196 char *dup, *next, *tok, *name, *args; in dsp_pipeline_build() local
207 dup = next = kstrdup(cfg, GFP_ATOMIC); in dsp_pipeline_build()
208 if (!dup) in dsp_pipeline_build()
269 kfree(dup); in dsp_pipeline_build()
/kernel/linux/linux-5.10/drivers/pci/
H A Dslot.c109 int len, max, dup; in make_slot_name() local
122 dup = 1; in make_slot_name()
130 if (dup == max) { in make_slot_name()
138 sprintf(new_name, "%s-%d", name, dup++); in make_slot_name()
/kernel/linux/linux-6.6/fs/
H A Dmbcache.c77 struct mb_cache_entry *entry, *dup; in mb_cache_entry_create() local
108 hlist_bl_for_each_entry(dup, dup_node, head, e_hash_list) { in mb_cache_entry_create()
109 if (dup->e_key == key && dup->e_value == value) { in mb_cache_entry_create()
/kernel/linux/linux-6.6/drivers/pci/
H A Dslot.c110 int len, max, dup; in make_slot_name() local
123 dup = 1; in make_slot_name()
131 if (dup == max) { in make_slot_name()
139 sprintf(new_name, "%s-%d", name, dup++); in make_slot_name()

Completed in 18 milliseconds

12345678910>>...19