Home
last modified time | relevance | path

Searched refs:dup_fd (Results 1 – 14 of 14) sorted by relevance

/third_party/mbedtls/tests/suites/
Dhelpers.function118 int out_fd, dup_fd;
122 dup_fd = dup( out_fd );
124 if( dup_fd == -1 )
132 close( dup_fd );
139 close( dup_fd );
145 return( dup_fd );
148 static int restore_output( FILE* out_stream, int dup_fd )
153 if( dup2( dup_fd, out_fd ) == -1 )
156 close( dup_fd );
160 close( dup_fd );
/third_party/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl29.c47 int lc, dup_fd; in main() local
61 dup_fd = TEST_RETURN; in main()
63 TEST(fcntl(dup_fd, F_GETFD)); in main()
65 SAFE_CLOSE(cleanup, dup_fd); in main()
78 SAFE_CLOSE(cleanup, dup_fd); in main()
/third_party/libdrm/etnaviv/
Detnaviv_device.c64 int dup_fd = dup(fd); in etna_device_new_dup() local
65 struct etna_device *dev = etna_device_new(dup_fd); in etna_device_new_dup()
70 close(dup_fd); in etna_device_new_dup()
/third_party/mesa3d/src/gallium/winsys/lima/drm/
Dlima_drm_winsys.c83 int dup_fd = os_dupfd_cloexec(fd); in lima_drm_screen_create() local
85 pscreen = lima_screen_create(dup_fd, NULL); in lima_drm_screen_create()
87 _mesa_hash_table_insert(fd_tab, intptr_to_pointer(dup_fd), pscreen); in lima_drm_screen_create()
/third_party/mesa3d/src/etnaviv/drm/
Detnaviv_device.c87 int dup_fd = os_dupfd_cloexec(fd); in etna_device_new_dup() local
88 struct etna_device *dev = etna_device_new(dup_fd); in etna_device_new_dup()
93 close(dup_fd); in etna_device_new_dup()
/third_party/libdrm/freedreno/
Dfreedreno_device.c95 int dup_fd = dup(fd); in fd_device_new_dup() local
96 struct fd_device *dev = fd_device_new(dup_fd); in fd_device_new_dup()
100 close(dup_fd); in fd_device_new_dup()
/third_party/mesa3d/src/freedreno/drm/
Dfreedreno_device.c108 int dup_fd = os_dupfd_cloexec(fd); in fd_device_new_dup() local
109 struct fd_device *dev = fd_device_new(dup_fd); in fd_device_new_dup()
113 close(dup_fd); in fd_device_new_dup()
/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_fence.c251 int dup_fd = os_dupfd_cloexec(fd); in zink_create_fence_fd() local
252 if (dup_fd < 0) in zink_create_fence_fd()
266 .fd = dup_fd, in zink_create_fence_fd()
278 close(dup_fd); in zink_create_fence_fd()
/third_party/mesa3d/src/virtio/vulkan/
Dvn_android.c582 int dup_fd = -1; in vn_android_image_from_anb() local
654 dup_fd = os_dupfd_cloexec(dma_buf_fd); in vn_android_image_from_anb()
655 if (dup_fd < 0) { in vn_android_image_from_anb()
665 .fd = dup_fd, in vn_android_image_from_anb()
676 close(dup_fd); in vn_android_image_from_anb()
1144 int dup_fd = -1; in vn_android_device_import_ahb() local
1230 dup_fd = os_dupfd_cloexec(dma_buf_fd); in vn_android_device_import_ahb()
1231 if (dup_fd < 0) in vn_android_device_import_ahb()
1253 force_unmappable, dup_fd); in vn_android_device_import_ahb()
1255 close(dup_fd); in vn_android_device_import_ahb()
/third_party/gstreamer/gstreamer/gst/
Dgstpluginloader.c661 int dup_fd; in _gst_plugin_loader_client_run() local
663 dup_fd = dup (0); /* STDIN */ in _gst_plugin_loader_client_run()
664 if (dup_fd == -1) { in _gst_plugin_loader_client_run()
669 l->fd_r.fd = dup_fd; in _gst_plugin_loader_client_run()
672 dup_fd = dup (1); /* STDOUT */ in _gst_plugin_loader_client_run()
673 if (dup_fd == -1) { in _gst_plugin_loader_client_run()
678 l->fd_w.fd = dup_fd; in _gst_plugin_loader_client_run()
/third_party/mesa3d/src/gallium/winsys/virgl/drm/
Dvirgl_drm_winsys.c1355 int dup_fd = os_dupfd_cloexec(fd); in virgl_drm_screen_create() local
1357 vws = virgl_drm_winsys_create(dup_fd); in virgl_drm_screen_create()
1359 close(dup_fd); in virgl_drm_screen_create()
1365 _mesa_hash_table_insert(fd_tab, intptr_to_pointer(dup_fd), pscreen); in virgl_drm_screen_create()
/third_party/libuv/test/
Dtest-spawn.c1506 uv_os_fd_t dup_fd; in TEST_IMPL() local
1537 ASSERT(0 != DuplicateHandle(GetCurrentProcess(), fd, GetCurrentProcess(), &dup_fd, in TEST_IMPL()
1542 ASSERT(pCompareObjectHandles == NULL || pCompareObjectHandles(fd, dup_fd)); in TEST_IMPL()
1544 dup_fd = dup(fd); in TEST_IMPL()
1552 buf = uv_buf_init((char*) &dup_fd, sizeof(fd)); in TEST_IMPL()
/third_party/python/Lib/test/
Dtest_curses.py80 dup_fd = os.dup(stdout_fd)
81 self.addCleanup(os.close, dup_fd)
82 self.addCleanup(os.dup2, dup_fd, stdout_fd)
/third_party/NuttX/fs/inode/
Dfs_files.c809 struct files_struct *dup_fd(struct files_struct *old_files) in dup_fd() function