Searched refs:dup_fd (Results 1 – 12 of 12) sorted by relevance
/external/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl29.c | 48 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/ |
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()
|
/external/mesa3d/src/gallium/winsys/lima/drm/ |
D | lima_drm_winsys.c | 77 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/ |
D | etnaviv_device.c | 65 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/ |
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()
|
/external/mesa3d/src/freedreno/drm/ |
D | freedreno_device.c | 95 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/ |
D | file_desc.h | 52 int dup_fd = ::dup(fd_); in dup() local 53 return FileDesc(dup_fd); in dup()
|
/external/bcc/src/cc/ |
D | file_desc.h | 52 int dup_fd = ::dup(fd_); in dup() local 53 return FileDesc(dup_fd); in dup()
|
/external/crosvm/sys_util/src/ |
D | lib.rs | 318 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/ |
D | connection.c | 606 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/ |
D | virgl_drm_winsys.c | 1159 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/ |
D | seccomp_bpf.c | 3573 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);
|