Home
last modified time | relevance | path

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

/linux-6.1.9/fs/
Dfile.c1215 static int ksys_dup3(unsigned int oldfd, unsigned int newfd, int flags) in ksys_dup3() argument
1224 if (unlikely(oldfd == newfd)) in ksys_dup3()
1232 file = files_lookup_fd_locked(files, oldfd); in ksys_dup3()
1249 SYSCALL_DEFINE3(dup3, unsigned int, oldfd, unsigned int, newfd, int, flags) in SYSCALL_DEFINE3() argument
1251 return ksys_dup3(oldfd, newfd, flags); in SYSCALL_DEFINE3()
1254 SYSCALL_DEFINE2(dup2, unsigned int, oldfd, unsigned int, newfd) in SYSCALL_DEFINE2() argument
1256 if (unlikely(newfd == oldfd)) { /* corner case */ in SYSCALL_DEFINE2()
1258 int retval = oldfd; in SYSCALL_DEFINE2()
1261 if (!files_lookup_fd_rcu(files, oldfd)) in SYSCALL_DEFINE2()
1266 return ksys_dup3(oldfd, newfd, 0); in SYSCALL_DEFINE2()
/linux-6.1.9/fs/hostfs/
Dhostfs.h79 extern int replace_file(int oldfd, int fd);
Dhostfs_user.c169 int replace_file(int oldfd, int fd) in replace_file() argument
171 return dup2(oldfd, fd); in replace_file()
/linux-6.1.9/fs/fuse/
Ddev.c2255 int oldfd; in fuse_dev_ioctl() local
2261 if (!get_user(oldfd, (__u32 __user *)arg)) { in fuse_dev_ioctl()
2262 struct file *old = fget(oldfd); in fuse_dev_ioctl()
/linux-6.1.9/include/linux/
Dsyscalls.h397 asmlinkage long sys_dup3(unsigned int oldfd, unsigned int newfd, int flags);
1116 asmlinkage long sys_dup2(unsigned int oldfd, unsigned int newfd);
/linux-6.1.9/Documentation/trace/
Dftrace.rst3484 bash-1998 [000] d... 140.733504: sys_dup2(oldfd: a, newfd: 1)