Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl29.c48 int lc, dup_fd; in main() local
62 dup_fd = TEST_RETURN; in main()
64 TEST(fcntl(dup_fd, F_GETFD)); in main()
66 SAFE_CLOSE(cleanup, dup_fd); in main()
79 SAFE_CLOSE(cleanup, dup_fd); in main()
/external/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()
/external/mesa3d/src/gallium/winsys/lima/drm/
Dlima_drm_winsys.c77 int dup_fd = os_dupfd_cloexec(fd); in lima_drm_screen_create() local
79 pscreen = lima_screen_create(dup_fd, NULL); in lima_drm_screen_create()
81 _mesa_hash_table_insert(fd_tab, intptr_to_pointer(dup_fd), pscreen); in lima_drm_screen_create()
/external/mesa3d/src/etnaviv/drm/
Detnaviv_device.c65 int dup_fd = os_dupfd_cloexec(fd); in etna_device_new_dup() local
66 struct etna_device *dev = etna_device_new(dup_fd); in etna_device_new_dup()
71 close(dup_fd); in etna_device_new_dup()
/external/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()
/external/mesa3d/src/freedreno/drm/
Dfreedreno_device.c95 int dup_fd = os_dupfd_cloexec(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()
/external/bcc/src/cc/includes/
Dfile_desc.h52 int dup_fd = ::dup(fd_); in dup() local
53 return FileDesc(dup_fd); in dup()
/external/bcc/src/cc/
Dfile_desc.h52 int dup_fd = ::dup(fd_); in dup() local
53 return FileDesc(dup_fd); in dup()
/external/crosvm/sys_util/src/
Dlib.rs318 let dup_fd = unsafe { libc::fcntl(raw_fd, libc::F_DUPFD_CLOEXEC, 0) }; in validate_raw_fd() localVariable
319 if dup_fd < 0 { in validate_raw_fd()
322 Ok(dup_fd as RawFd) in validate_raw_fd()
/external/wayland/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()
649 closure->args[i].h = dup_fd; in wl_closure_marshal()
/external/mesa3d/src/gallium/winsys/virgl/drm/
Dvirgl_drm_winsys.c1159 int dup_fd = os_dupfd_cloexec(fd); in virgl_drm_screen_create() local
1161 vws = virgl_drm_winsys_create(dup_fd); in virgl_drm_screen_create()
1163 close(dup_fd); in virgl_drm_screen_create()
1169 _mesa_hash_table_insert(fd_tab, intptr_to_pointer(dup_fd), pscreen); in virgl_drm_screen_create()
/external/linux-kselftest/tools/testing/selftests/seccomp/
Dseccomp_bpf.c3573 int dup_fd, pipe_fds[2];
3580 dup_fd = dup(pipe_fds[0]);
3581 if (dup_fd < 0)
3586 ret = filecmp(self, self, pipe_fds[0], dup_fd);