Home
last modified time | relevance | path

Searched refs:oldfd (Results 1 – 11 of 11) sorted by relevance

/openbmc/qemu/linux-user/
H A Dfd-trans.h117 static inline void fd_trans_dup(int oldfd, int newfd) in fd_trans_dup() argument
121 if (oldfd < target_fd_max && target_fd_trans[oldfd]) { in fd_trans_dup()
122 internal_fd_trans_register_unsafe(newfd, target_fd_trans[oldfd]); in fd_trans_dup()
H A Dsyscall.c482 _syscall5(int, sys_renameat2, int, oldfd, const char *, old, int, newfd,
485 static int sys_renameat2(int oldfd, const char *old,
489 return renameat(oldfd, old, newfd, new);
/openbmc/gpioplus/src/gpioplus/internal/
H A Dsys.cpp18 int SysImpl::dup(int oldfd) const in dup()
20 return ::dup(oldfd); in dup()
H A Dsys.hpp20 virtual int dup(int oldfd) const = 0;
46 int dup(int oldfd) const override;
H A Dfd.cpp24 static int dup(int oldfd, const Sys* sys) in dup() argument
26 int fd = sys->dup(oldfd); in dup()
/openbmc/linux/fs/
H A Dfile.c1203 static int ksys_dup3(unsigned int oldfd, unsigned int newfd, int flags) in ksys_dup3() argument
1212 if (unlikely(oldfd == newfd)) in ksys_dup3()
1220 file = files_lookup_fd_locked(files, oldfd); in ksys_dup3()
1237 SYSCALL_DEFINE3(dup3, unsigned int, oldfd, unsigned int, newfd, int, flags) in SYSCALL_DEFINE3() argument
1239 return ksys_dup3(oldfd, newfd, flags); in SYSCALL_DEFINE3()
1242 SYSCALL_DEFINE2(dup2, unsigned int, oldfd, unsigned int, newfd) in SYSCALL_DEFINE2() argument
1244 if (unlikely(newfd == oldfd)) { /* corner case */ in SYSCALL_DEFINE2()
1246 int retval = oldfd; in SYSCALL_DEFINE2()
1249 if (!files_lookup_fd_rcu(files, oldfd)) in SYSCALL_DEFINE2()
1254 return ksys_dup3(oldfd, newfd, 0); in SYSCALL_DEFINE2()
/openbmc/linux/fs/hostfs/
H A Dhostfs.h81 extern int replace_file(int oldfd, int fd);
H A Dhostfs_user.c171 int replace_file(int oldfd, int fd) in replace_file() argument
173 return dup2(oldfd, fd); in replace_file()
/openbmc/linux/fs/fuse/
H A Ddev.c2260 int oldfd; in fuse_dev_ioctl() local
2266 if (get_user(oldfd, (__u32 __user *)arg)) in fuse_dev_ioctl()
2269 f = fdget(oldfd); in fuse_dev_ioctl()
/openbmc/linux/include/linux/
H A Dsyscalls.h374 asmlinkage long sys_dup3(unsigned int oldfd, unsigned int newfd, int flags);
1007 asmlinkage long sys_dup2(unsigned int oldfd, unsigned int newfd);
/openbmc/linux/Documentation/trace/
H A Dftrace.rst3647 bash-1998 [000] d... 140.733504: sys_dup2(oldfd: a, newfd: 1)