Home
last modified time | relevance | path

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

/linux-6.12.1/fs/
Dfile.c1321 static int ksys_dup3(unsigned int oldfd, unsigned int newfd, int flags) in ksys_dup3() argument
1330 if (unlikely(oldfd == newfd)) in ksys_dup3()
1338 file = files_lookup_fd_locked(files, oldfd); in ksys_dup3()
1355 SYSCALL_DEFINE3(dup3, unsigned int, oldfd, unsigned int, newfd, int, flags) in SYSCALL_DEFINE3() argument
1357 return ksys_dup3(oldfd, newfd, flags); in SYSCALL_DEFINE3()
1360 SYSCALL_DEFINE2(dup2, unsigned int, oldfd, unsigned int, newfd) in SYSCALL_DEFINE2() argument
1362 if (unlikely(newfd == oldfd)) { /* corner case */ in SYSCALL_DEFINE2()
1365 int retval = oldfd; in SYSCALL_DEFINE2()
1368 f = __fget_files_rcu(files, oldfd, 0); in SYSCALL_DEFINE2()
1376 return ksys_dup3(oldfd, newfd, 0); in SYSCALL_DEFINE2()
/linux-6.12.1/fs/hostfs/
Dhostfs.h81 extern int replace_file(int oldfd, int fd);
Dhostfs_user.c171 int replace_file(int oldfd, int fd) in replace_file() argument
173 return dup2(oldfd, fd); in replace_file()
/linux-6.12.1/tools/lib/bpf/
Dlibbpf_internal.h625 static inline int sys_dup3(int oldfd, int newfd, int flags) in sys_dup3() argument
627 return syscall(__NR_dup3, oldfd, newfd, flags); in sys_dup3()
/linux-6.12.1/fs/fuse/
Ddev.c2372 int oldfd; in fuse_dev_ioctl_clone() local
2376 if (get_user(oldfd, argp)) in fuse_dev_ioctl_clone()
2379 f = fdget(oldfd); in fuse_dev_ioctl_clone()
/linux-6.12.1/include/linux/
Dsyscalls.h376 asmlinkage long sys_dup3(unsigned int oldfd, unsigned int newfd, int flags);
1033 asmlinkage long sys_dup2(unsigned int oldfd, unsigned int newfd);
/linux-6.12.1/Documentation/trace/
Dftrace.rst3695 bash-1998 [000] d... 140.733504: sys_dup2(oldfd: a, newfd: 1)