Home
last modified time | relevance | path

Searched refs:newFd (Results 1 - 9 of 9) sorted by relevance

/third_party/musl/libc-test/src/functionalext/supplement/fcntl/fcntl_gtest/
H A Dfcntl_fcntl_test.cpp43 int newFd = fcntl(fd, F_DUPFD, 0); in HWTEST_F() local
44 EXPECT_GE(newFd, 0); in HWTEST_F()
46 close(newFd); in HWTEST_F()
/third_party/vk-gl-cts/framework/delibs/deutil/
H A DdeSocket.c544 deSocketHandle newFd = DE_INVALID_SOCKET_HANDLE; in deSocket_accept() local
552 newFd = accept(sock->handle, bsdAddr, &bsdAddrLen); in deSocket_accept()
553 if (!deSocketHandleIsValid(newFd)) in deSocket_accept()
560 closesocket(newFd); in deSocket_accept()
562 close(newFd); in deSocket_accept()
568 newSock->handle = newFd; in deSocket_accept()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/
H A DvktApiExternalMemoryTests.cpp1681 NativeHandle newFd (dup(fd.getFd())); in testSemaphoreFdDup()
1683 if (newFd.getFd() < 0) in testSemaphoreFdDup()
1686 TCU_CHECK_MSG(newFd.getFd() >= 0, "Failed to call dup() for semaphores fd"); in testSemaphoreFdDup()
1689 const vk::Unique<vk::VkSemaphore> semaphoreB (createAndImportSemaphore(vkd, *device, config.externalType, newFd, flags)); in testSemaphoreFdDup()
1754 int newFd (dup2(fd.getFd(), secondFd.getFd())); in testSemaphoreFdDup2()
1756 if (newFd < 0) in testSemaphoreFdDup2()
1759 TCU_CHECK_MSG(newFd >= 0, "Failed to call dup2() for fences fd"); in testSemaphoreFdDup2()
1827 const int newFd (dup3(fd.getFd(), secondFd.getFd(), 0)); in testSemaphoreFdDup3()
1829 if (newFd < 0) in testSemaphoreFdDup3()
1832 TCU_CHECK_MSG(newFd > in testSemaphoreFdDup3()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/api/
H A DvktApiExternalMemoryTests.cpp1666 NativeHandle newFd (dup(fd.getFd())); in testSemaphoreFdDup()
1668 if (newFd.getFd() < 0) in testSemaphoreFdDup()
1671 TCU_CHECK_MSG(newFd.getFd() >= 0, "Failed to call dup() for semaphores fd"); in testSemaphoreFdDup()
1674 const vk::Unique<vk::VkSemaphore> semaphoreB (createAndImportSemaphore(vkd, *device, config.externalType, newFd, flags)); in testSemaphoreFdDup()
1739 int newFd (dup2(fd.getFd(), secondFd.getFd())); in testSemaphoreFdDup2()
1741 if (newFd < 0) in testSemaphoreFdDup2()
1744 TCU_CHECK_MSG(newFd >= 0, "Failed to call dup2() for fences fd"); in testSemaphoreFdDup2()
1812 const int newFd (dup3(fd.getFd(), secondFd.getFd(), 0)); in testSemaphoreFdDup3()
1814 if (newFd < 0) in testSemaphoreFdDup3()
1817 TCU_CHECK_MSG(newFd > in testSemaphoreFdDup3()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/form/
H A Dsub_container.cpp444 auto newFd = dup(fd); in UpdateSharedImage() local
445 if (newFd < 0) { in UpdateSharedImage()
451 auto ashmem = Ashmem(newFd, byteLenArray[i]); in UpdateSharedImage()
/third_party/musl/Benchmark/musl/
H A Dlibc_stdio.cpp1466 int newFd = open(newPath, O_RDWR | O_CREAT, OPEN_MODE); in Bm_function_Renameat() local
1467 if (newFd == -1) { in Bm_function_Renameat()
1470 close(newFd); in Bm_function_Renameat()
1472 benchmark::DoNotOptimize(renameat(oldFd, oldPath, newFd, newPath)); in Bm_function_Renameat()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/sock/
H A Dsocket.cpp173 int newFd = socket.AddSocketInternal(socket.remoteAddr_, transport, sendMTU, recvMTU); in OnConnectedNative() local
174 Socket::SendAppConnectInfo(socket.transportFd_, newFd, connectInfo); in OnConnectedNative()
/third_party/python/Lib/test/
H A Dtest_urllib.py733 newFd, newFilePath = tempfile.mkstemp()
736 newFile = os.fdopen(newFd, "wb")
/foundation/arkui/ace_engine/adapter/ohos/entrance/
H A Dace_container.cpp2860 auto newFd = dup(fd); in UpdateSharedImage() local
2861 if (newFd < 0) { in UpdateSharedImage()
2867 auto ashmem = Ashmem(newFd, byteLenArray[i]); in UpdateSharedImage()

Completed in 22 milliseconds