/third_party/mbedtls/tests/suites/ |
D | helpers.function | 118 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/ |
D | fcntl29.c | 47 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/ |
D | etnaviv_device.c | 64 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/ |
D | lima_drm_winsys.c | 83 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/ |
D | etnaviv_device.c | 87 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/ |
D | freedreno_device.c | 95 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/ |
D | freedreno_device.c | 108 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/ |
D | zink_fence.c | 251 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/ |
D | vn_android.c | 582 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/ |
D | gstpluginloader.c | 661 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/ |
D | virgl_drm_winsys.c | 1355 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/ |
D | test-spawn.c | 1506 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/ |
D | test_curses.py | 80 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/ |
D | fs_files.c | 809 struct files_struct *dup_fd(struct files_struct *old_files) in dup_fd() function
|