Searched refs:oldfd (Results 1 – 4 of 4) sorted by relevance
/fs/ |
D | file.c | 909 static int ksys_dup3(unsigned int oldfd, unsigned int newfd, int flags) in ksys_dup3() argument 918 if (unlikely(oldfd == newfd)) in ksys_dup3() 926 file = fcheck(oldfd); in ksys_dup3() 943 SYSCALL_DEFINE3(dup3, unsigned int, oldfd, unsigned int, newfd, int, flags) in SYSCALL_DEFINE3() argument 945 return ksys_dup3(oldfd, newfd, flags); in SYSCALL_DEFINE3() 948 SYSCALL_DEFINE2(dup2, unsigned int, oldfd, unsigned int, newfd) in SYSCALL_DEFINE2() argument 950 if (unlikely(newfd == oldfd)) { /* corner case */ in SYSCALL_DEFINE2() 952 int retval = oldfd; in SYSCALL_DEFINE2() 955 if (!fcheck_files(files, oldfd)) in SYSCALL_DEFINE2() 960 return ksys_dup3(oldfd, newfd, 0); in SYSCALL_DEFINE2()
|
/fs/hostfs/ |
D | hostfs_user.c | 169 int replace_file(int oldfd, int fd) in replace_file() argument 171 return dup2(oldfd, fd); in replace_file()
|
D | hostfs.h | 75 extern int replace_file(int oldfd, int fd);
|
/fs/fuse/ |
D | dev.c | 2223 int oldfd; in fuse_dev_ioctl() local 2226 if (!get_user(oldfd, (__u32 __user *) arg)) { in fuse_dev_ioctl() 2227 struct file *old = fget(oldfd); in fuse_dev_ioctl()
|