Home
last modified time | relevance | path

Searched refs:newfd (Results 1 – 11 of 11) sorted by relevance

/kernel/linux/linux-5.10/fs/
Dfile.c1098 static int ksys_dup3(unsigned int oldfd, unsigned int newfd, int flags) in ksys_dup3() argument
1107 if (unlikely(oldfd == newfd)) in ksys_dup3()
1110 if (newfd >= rlimit(RLIMIT_NOFILE)) in ksys_dup3()
1114 err = expand_files(files, newfd); in ksys_dup3()
1123 return do_dup2(files, file, newfd, flags); in ksys_dup3()
1132 SYSCALL_DEFINE3(dup3, unsigned int, oldfd, unsigned int, newfd, int, flags) in SYSCALL_DEFINE3() argument
1134 return ksys_dup3(oldfd, newfd, flags); in SYSCALL_DEFINE3()
1137 SYSCALL_DEFINE2(dup2, unsigned int, oldfd, unsigned int, newfd) in SYSCALL_DEFINE2() argument
1139 if (unlikely(newfd == oldfd)) { /* corner case */ in SYSCALL_DEFINE2()
1149 return ksys_dup3(oldfd, newfd, 0); in SYSCALL_DEFINE2()
/kernel/linux/linux-5.10/include/uapi/linux/
Dseccomp.h131 __u32 newfd; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dseccomp.h76 __u32 newfd; member
/kernel/linux/linux-5.10/fs/hmdfs/comm/
Ddevice_node.h24 int32_t newfd; member
Ddevice_node.c57 conn = hmdfs_get_conn_tcp(node, cmd.newfd, cmd.masterkey, cmd.status); in ctrl_cmd_update_socket_handler()
/kernel/linux/linux-5.10/net/
Dsocket.c1698 int err, len, newfd; in __sys_accept4_file() local
1725 newfd = __get_unused_fd_flags(flags, nofile); in __sys_accept4_file()
1726 if (unlikely(newfd < 0)) { in __sys_accept4_file()
1727 err = newfd; in __sys_accept4_file()
1734 put_unused_fd(newfd); in __sys_accept4_file()
1762 fd_install(newfd, newfile); in __sys_accept4_file()
1763 err = newfd; in __sys_accept4_file()
1768 put_unused_fd(newfd); in __sys_accept4_file()
/kernel/linux/linux-5.10/tools/testing/selftests/seccomp/
Dseccomp_bpf.c233 __u32 newfd; member
3996 addfd.newfd = 0; in TEST()
4013 addfd.newfd = 1; in TEST()
4016 addfd.newfd = 0; in TEST()
4045 addfd.newfd = 42; in TEST()
4124 addfd.newfd = 0; in TEST()
4132 addfd.newfd = 100; in TEST()
/kernel/liteos_a/syscall/
Dlos_syscall.h214 extern int do_rename(int oldfd, const char *oldpath, int newfd, const char *newpath);
/kernel/linux/linux-5.10/kernel/
Dseccomp.c1346 if (addfd.newfd && !(addfd.flags & SECCOMP_ADDFD_FLAG_SETFD)) in seccomp_notify_addfd()
1355 addfd.newfd : -1; in seccomp_notify_addfd()
/kernel/linux/linux-5.10/include/linux/
Dsyscalls.h392 asmlinkage long sys_dup3(unsigned int oldfd, unsigned int newfd, int flags);
1092 asmlinkage long sys_dup2(unsigned int oldfd, unsigned int newfd);
/kernel/linux/linux-5.10/Documentation/trace/
Dftrace.rst3467 bash-1998 [000] d... 140.733504: sys_dup2(oldfd: a, newfd: 1)