Home
last modified time | relevance | path

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

/linux-4.19.296/fs/
Dfile.c926 static int ksys_dup3(unsigned int oldfd, unsigned int newfd, int flags) in ksys_dup3() argument
935 if (unlikely(oldfd == newfd)) in ksys_dup3()
943 file = fcheck(oldfd); in ksys_dup3()
960 SYSCALL_DEFINE3(dup3, unsigned int, oldfd, unsigned int, newfd, int, flags) in SYSCALL_DEFINE3() argument
962 return ksys_dup3(oldfd, newfd, flags); in SYSCALL_DEFINE3()
965 SYSCALL_DEFINE2(dup2, unsigned int, oldfd, unsigned int, newfd) in SYSCALL_DEFINE2() argument
967 if (unlikely(newfd == oldfd)) { /* corner case */ in SYSCALL_DEFINE2()
969 int retval = oldfd; in SYSCALL_DEFINE2()
972 if (!fcheck_files(files, oldfd)) in SYSCALL_DEFINE2()
977 return ksys_dup3(oldfd, newfd, 0); in SYSCALL_DEFINE2()
/linux-4.19.296/fs/hostfs/
Dhostfs.h75 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-4.19.296/fs/fuse/
Ddev.c2282 int oldfd; in fuse_dev_ioctl() local
2285 if (!get_user(oldfd, (__u32 __user *) arg)) { in fuse_dev_ioctl()
2286 struct file *old = fget(oldfd); in fuse_dev_ioctl()
/linux-4.19.296/include/linux/
Dsyscalls.h351 asmlinkage long sys_dup3(unsigned int oldfd, unsigned int newfd, int flags);
968 asmlinkage long sys_dup2(unsigned int oldfd, unsigned int newfd);