Searched refs:oldfd (Results 1 – 7 of 7) sorted by relevance
/linux-6.12.1/fs/ |
D | file.c | 1321 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/ |
D | hostfs.h | 81 extern int replace_file(int oldfd, int fd);
|
D | hostfs_user.c | 171 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/ |
D | libbpf_internal.h | 625 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/ |
D | dev.c | 2372 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/ |
D | syscalls.h | 376 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/ |
D | ftrace.rst | 3695 bash-1998 [000] d... 140.733504: sys_dup2(oldfd: a, newfd: 1)
|