Home
last modified time | relevance | path

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

/openbmc/qemu/monitor/
H A Dfds.c425 int dup_fd; in monitor_fdset_dup_fd_add()
459 dup_fd = qemu_dup_flags(fd, flags); in monitor_fdset_dup_fd_add()
460 if (dup_fd == -1) { in monitor_fdset_dup_fd_add()
466 mon_fdset_fd_dup->fd = dup_fd; in monitor_fdset_dup_fd_add()
468 return dup_fd; in monitor_fdset_dup_fd_add()
477 void monitor_fdset_dup_fd_remove(int dup_fd) in monitor_fdset_dup_fd_remove() argument
485 if (mon_fdset_fd_dup->fd == dup_fd) { in monitor_fdset_dup_fd_remove()
/openbmc/linux/include/linux/
H A Dfdtable.h122 struct files_struct *dup_fd(struct files_struct *, struct fd_range *) __latent_entropy;
/openbmc/qemu/include/monitor/
H A Dmonitor.h55 void monitor_fdset_dup_fd_remove(int dup_fd);
/openbmc/linux/fs/
H A Dfile.c299 struct files_struct *dup_fd(struct files_struct *oldf, struct fd_range *punch_hole) in dup_fd()
736 fds = dup_fd(cur_fds, punch_hole); in __close_range()
298 struct files_struct *dup_fd(struct files_struct *oldf, struct fd_range *punch_hole) dup_fd() function
/openbmc/linux/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c3841 int dup_fd, pipe_fds[2]; in TEST() local
3846 dup_fd = dup(pipe_fds[0]); in TEST()
3847 ASSERT_GE(dup_fd, 0); in TEST()
3848 EXPECT_NE(pipe_fds[0], dup_fd); in TEST()
3851 ASSERT_EQ(filecmp(self, self, pipe_fds[0], dup_fd), 0); in TEST()
/openbmc/linux/kernel/
H A Dfork.c1789 newf = dup_fd(oldf, NULL); in copy_files()
3367 fd = dup_fd(fd, NULL); in unshare_fd()