/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/llvm-project/lldb/source/Host/common/ |
D | FileAction.cpp | 61 bool FileAction::Duplicate(int fd, int dup_fd) { in Duplicate() argument 63 if (fd >= 0 && dup_fd >= 0) { in Duplicate() 66 m_arg = dup_fd; in Duplicate()
|
D | ProcessLaunchInfo.cpp | 80 bool ProcessLaunchInfo::AppendDuplicateFileAction(int fd, int dup_fd) { in AppendDuplicateFileAction() argument 82 if (file_action.Duplicate(fd, dup_fd)) { in AppendDuplicateFileAction()
|
/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/ |
D | file_desc.h | 52 int dup_fd = ::dup(fd_); in dup() local 53 return FileDesc(dup_fd); in 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/crosvm/devices/src/virtio/snd/vios_backend/ |
D | shm_streams.rs | 168 let dup_fd = unsafe { in new() localVariable 173 if dup_fd < 0 { in new() 178 File::from_raw_fd(dup_fd) in new()
|
/external/crosvm/sys_util/src/ |
D | lib.rs | 409 let dup_fd = unsafe { libc::fcntl(raw_fd, libc::F_DUPFD_CLOEXEC, 0) }; in validate_raw_fd() localVariable 410 if dup_fd < 0 { in validate_raw_fd() 413 Ok(dup_fd as RawFd) in validate_raw_fd()
|
D | vsock.rs | 313 let dup_fd = unsafe { libc::fcntl(self.fd, libc::F_DUPFD_CLOEXEC, 0) }; in try_clone() localVariable 314 if dup_fd < 0 { in try_clone() 317 Ok(Self { fd: dup_fd }) in try_clone()
|
/external/llvm-project/lldb/include/lldb/Host/ |
D | FileAction.h | 32 bool Duplicate(int fd, int dup_fd);
|
D | ProcessLaunchInfo.h | 45 bool AppendDuplicateFileAction(int fd, int dup_fd);
|
/external/llvm-project/lldb/source/API/ |
D | SBLaunchInfo.cpp | 298 bool SBLaunchInfo::AddDuplicateFileAction(int fd, int dup_fd) { in AddDuplicateFileAction() argument 300 dup_fd); in AddDuplicateFileAction() 302 return m_opaque_sp->AppendDuplicateFileAction(fd, dup_fd); in AddDuplicateFileAction()
|
/external/libbrillo/brillo/files/ |
D | safe_fd.cc | 475 int dup_fd = dup(dir_fd.get()); in Rmdir() local 476 if (dup_fd < 0) { in Rmdir() 481 ScopedDIR dir(fdopendir(dup_fd)); in Rmdir() 484 close(dup_fd); in Rmdir()
|
/external/libchromeos-rs/src/ |
D | vsock.rs | 309 let dup_fd = unsafe { libc::fcntl(self.fd, libc::F_DUPFD_CLOEXEC, 0) }; in try_clone() localVariable 310 if dup_fd < 0 { in try_clone() 313 Ok(Self { fd: dup_fd }) in try_clone()
|
/external/llvm-project/lldb/bindings/interface/ |
D | SBLaunchInfo.i | 116 AddDuplicateFileAction (int fd, int dup_fd);
|
/external/llvm-project/lldb/include/lldb/API/ |
D | SBLaunchInfo.h | 160 bool AddDuplicateFileAction(int fd, int dup_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() 653 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/crosvm/cros_async/src/ |
D | fd_executor.rs | 257 File::from_raw_fd(dup_fd(fd)?) in add_operation() 507 unsafe fn dup_fd(fd: RawFd) -> Result<RawFd> { in dup_fd() function
|
D | uring_executor.rs | 756 File::from_raw_fd(dup_fd(fd.as_raw_fd())?) in register_source() 768 unsafe fn dup_fd(fd: RawFd) -> Result<RawFd> { in dup_fd() function
|
/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);
|