newfd 909 fs/file.c static int ksys_dup3(unsigned int oldfd, unsigned int newfd, int flags) newfd 918 fs/file.c if (unlikely(oldfd == newfd)) newfd 921 fs/file.c if (newfd >= rlimit(RLIMIT_NOFILE)) newfd 925 fs/file.c err = expand_files(files, newfd); newfd 934 fs/file.c return do_dup2(files, file, newfd, flags); newfd 943 fs/file.c SYSCALL_DEFINE3(dup3, unsigned int, oldfd, unsigned int, newfd, int, flags) newfd 945 fs/file.c return ksys_dup3(oldfd, newfd, flags); newfd 948 fs/file.c SYSCALL_DEFINE2(dup2, unsigned int, oldfd, unsigned int, newfd) newfd 950 fs/file.c if (unlikely(newfd == oldfd)) { /* corner case */ newfd 960 fs/file.c return ksys_dup3(oldfd, newfd, 0); newfd 369 include/linux/syscalls.h asmlinkage long sys_dup3(unsigned int oldfd, unsigned int newfd, int flags); newfd 1060 include/linux/syscalls.h asmlinkage long sys_dup2(unsigned int oldfd, unsigned int newfd); newfd 1710 net/socket.c int err, len, newfd, fput_needed; newfd 1737 net/socket.c newfd = get_unused_fd_flags(flags); newfd 1738 net/socket.c if (unlikely(newfd < 0)) { newfd 1739 net/socket.c err = newfd; newfd 1746 net/socket.c put_unused_fd(newfd); newfd 1773 net/socket.c fd_install(newfd, newfile); newfd 1774 net/socket.c err = newfd; newfd 1782 net/socket.c put_unused_fd(newfd);