Home
last modified time | relevance | path

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

12

/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/llvm-project/lldb/source/Host/common/
DFileAction.cpp61 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()
DProcessLaunchInfo.cpp80 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/
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/
Dfile_desc.h52 int dup_fd = ::dup(fd_); in dup() local
53 return FileDesc(dup_fd); in 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/crosvm/devices/src/virtio/snd/vios_backend/
Dshm_streams.rs168 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/
Dlib.rs409 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()
Dvsock.rs313 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/
DFileAction.h32 bool Duplicate(int fd, int dup_fd);
DProcessLaunchInfo.h45 bool AppendDuplicateFileAction(int fd, int dup_fd);
/external/llvm-project/lldb/source/API/
DSBLaunchInfo.cpp298 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/
Dsafe_fd.cc475 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/
Dvsock.rs309 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/
DSBLaunchInfo.i116 AddDuplicateFileAction (int fd, int dup_fd);
/external/llvm-project/lldb/include/lldb/API/
DSBLaunchInfo.h160 bool AddDuplicateFileAction(int fd, int dup_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()
653 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/crosvm/cros_async/src/
Dfd_executor.rs257 File::from_raw_fd(dup_fd(fd)?) in add_operation()
507 unsafe fn dup_fd(fd: RawFd) -> Result<RawFd> { in dup_fd() function
During_executor.rs756 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/
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);

12