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.c83 int dup_fd = os_dupfd_cloexec(fd); in etna_device_new_dup() local
84 struct etna_device *dev = etna_device_new(dup_fd); in etna_device_new_dup()
89 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.c99 int dup_fd = os_dupfd_cloexec(fd); in fd_device_new_dup() local
100 struct fd_device *dev = fd_device_new(dup_fd); in fd_device_new_dup()
104 close(dup_fd); in fd_device_new_dup()
/third_party/mesa3d/src/virtio/vulkan/
Dvn_android.c429 int dup_fd = -1; in vn_android_image_from_anb() local
488 dup_fd = os_dupfd_cloexec(dma_buf_fd); in vn_android_image_from_anb()
489 if (dup_fd < 0) { in vn_android_image_from_anb()
499 .fd = dup_fd, in vn_android_image_from_anb()
510 close(dup_fd); in vn_android_image_from_anb()
945 int dup_fd = -1; in vn_android_device_import_ahb() local
1014 dup_fd = os_dupfd_cloexec(dma_buf_fd); in vn_android_device_import_ahb()
1015 if (dup_fd < 0) in vn_android_device_import_ahb()
1037 force_unmappable, dup_fd); in vn_android_device_import_ahb()
1039 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/wayland_standard/src/
Dconnection.c606 int i, count, fd, dup_fd; in wl_closure_marshal() local
646 dup_fd = wl_os_dupfd_cloexec(fd, 0); in wl_closure_marshal()
647 if (dup_fd < 0) { in wl_closure_marshal()
653 closure->args[i].h = dup_fd; in wl_closure_marshal()
/third_party/mesa3d/src/gallium/winsys/virgl/drm/
Dvirgl_drm_winsys.c1318 int dup_fd = os_dupfd_cloexec(fd); in virgl_drm_screen_create() local
1320 vws = virgl_drm_winsys_create(dup_fd); in virgl_drm_screen_create()
1322 close(dup_fd); in virgl_drm_screen_create()
1328 _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.c794 struct files_struct *dup_fd(struct files_struct *old_files) in dup_fd() function