Home
last modified time | relevance | path

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

/linux-3.4.99/fs/
Dfcntl.c53 SYSCALL_DEFINE3(dup3, unsigned int, oldfd, unsigned int, newfd, int, flags) in SYSCALL_DEFINE3() argument
63 if (unlikely(oldfd == newfd)) in SYSCALL_DEFINE3()
68 file = fcheck(oldfd); in SYSCALL_DEFINE3()
116 SYSCALL_DEFINE2(dup2, unsigned int, oldfd, unsigned int, newfd) in SYSCALL_DEFINE2() argument
118 if (unlikely(newfd == oldfd)) { /* corner case */ in SYSCALL_DEFINE2()
120 int retval = oldfd; in SYSCALL_DEFINE2()
123 if (!fcheck_files(files, oldfd)) in SYSCALL_DEFINE2()
128 return sys_dup3(oldfd, newfd, 0); in SYSCALL_DEFINE2()
/linux-3.4.99/fs/hostfs/
Dhostfs.h73 extern int replace_file(int oldfd, int fd);
Dhostfs_user.c163 int replace_file(int oldfd, int fd) in replace_file() argument
165 return dup2(oldfd, fd); in replace_file()
/linux-3.4.99/include/linux/
Dsyscalls.h498 asmlinkage long sys_dup2(unsigned int oldfd, unsigned int newfd);
499 asmlinkage long sys_dup3(unsigned int oldfd, unsigned int newfd, int flags);