Home
last modified time | relevance | path

Searched refs:newfd (Results 1 - 20 of 20) sorted by relevance

/kernel/linux/linux-5.10/fs/
H A Dfile.c1196 static int ksys_dup3(unsigned int oldfd, unsigned int newfd, int flags) in ksys_dup3() argument
1205 if (unlikely(oldfd == newfd)) in ksys_dup3()
1208 if (newfd >= rlimit(RLIMIT_NOFILE)) in ksys_dup3()
1212 err = expand_files(files, newfd); in ksys_dup3()
1221 return do_dup2(files, file, newfd, flags); in ksys_dup3()
1230 SYSCALL_DEFINE3(dup3, unsigned int, oldfd, unsigned int, newfd, int, flags) in SYSCALL_DEFINE3()
1232 return ksys_dup3(oldfd, newfd, flags); in SYSCALL_DEFINE3()
1235 SYSCALL_DEFINE2(dup2, unsigned int, oldfd, unsigned int, newfd) in SYSCALL_DEFINE2()
1237 if (unlikely(newfd == oldfd)) { /* corner case */ in SYSCALL_DEFINE2()
1247 return ksys_dup3(oldfd, newfd, in SYSCALL_DEFINE2()
[all...]
/kernel/linux/linux-6.6/fs/
H A Dfile.c1232 static int ksys_dup3(unsigned int oldfd, unsigned int newfd, int flags) in ksys_dup3() argument
1241 if (unlikely(oldfd == newfd)) in ksys_dup3()
1244 if (newfd >= rlimit(RLIMIT_NOFILE)) in ksys_dup3()
1248 err = expand_files(files, newfd); in ksys_dup3()
1257 return do_dup2(files, file, newfd, flags); in ksys_dup3()
1266 SYSCALL_DEFINE3(dup3, unsigned int, oldfd, unsigned int, newfd, int, flags) in SYSCALL_DEFINE3()
1268 return ksys_dup3(oldfd, newfd, flags); in SYSCALL_DEFINE3()
1271 SYSCALL_DEFINE2(dup2, unsigned int, oldfd, unsigned int, newfd) in SYSCALL_DEFINE2()
1273 if (unlikely(newfd == oldfd)) { /* corner case */ in SYSCALL_DEFINE2()
1283 return ksys_dup3(oldfd, newfd, in SYSCALL_DEFINE2()
[all...]
/kernel/linux/linux-5.10/include/uapi/linux/
H A Dseccomp.h124 * @newfd: Optional remote FD number if SETFD option is set, otherwise 0.
131 __u32 newfd; member
/kernel/linux/linux-5.10/fs/hmdfs/comm/
H A Ddevice_node.h23 int32_t newfd; member
H A Ddevice_node.c55 conn = hmdfs_get_conn_tcp(node, cmd.newfd, cmd.masterkey, cmd.status); in ctrl_cmd_update_socket_handler()
/kernel/linux/linux-6.6/fs/hmdfs/comm/
H A Ddevice_node.h23 int32_t newfd; member
H A Ddevice_node.c55 conn = hmdfs_get_conn_tcp(node, cmd.newfd, cmd.masterkey, cmd.status); in ctrl_cmd_update_socket_handler()
/kernel/linux/linux-6.6/include/uapi/linux/
H A Dseccomp.h129 * @newfd: Optional remote FD number if SETFD option is set, otherwise 0.
136 __u32 newfd; member
/kernel/linux/linux-6.6/tools/include/uapi/linux/
H A Dseccomp.h129 * @newfd: Optional remote FD number if SETFD option is set, otherwise 0.
136 __u32 newfd; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
H A Dseccomp.h76 __u32 newfd; member
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/
H A Dseccomp.h76 __u32 newfd; member
/kernel/linux/linux-5.10/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c235 __u32 newfd; member
4002 addfd.newfd = 0; in TEST()
4019 addfd.newfd = 1; in TEST()
4022 addfd.newfd = 0; in TEST()
4051 addfd.newfd = 42; in TEST()
4130 addfd.newfd = 0; in TEST()
4138 addfd.newfd = 100; in TEST()
/kernel/linux/linux-5.10/net/
H A Dsocket.c1775 int newfd; in __sys_accept4_file() local
1783 newfd = __get_unused_fd_flags(flags, nofile); in __sys_accept4_file()
1784 if (unlikely(newfd < 0)) in __sys_accept4_file()
1785 return newfd; in __sys_accept4_file()
1790 put_unused_fd(newfd); in __sys_accept4_file()
1793 fd_install(newfd, newfile); in __sys_accept4_file()
1794 return newfd; in __sys_accept4_file()
/kernel/linux/linux-6.6/net/
H A Dsocket.c1961 int newfd; in __sys_accept4_file() local
1969 newfd = get_unused_fd_flags(flags); in __sys_accept4_file()
1970 if (unlikely(newfd < 0)) in __sys_accept4_file()
1971 return newfd; in __sys_accept4_file()
1976 put_unused_fd(newfd); in __sys_accept4_file()
1979 fd_install(newfd, newfile); in __sys_accept4_file()
1980 return newfd; in __sys_accept4_file()
/kernel/liteos_a/syscall/
H A Dlos_syscall.h220 extern int do_rename(int oldfd, const char *oldpath, int newfd, const char *newpath);
/kernel/linux/linux-6.6/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c240 __u32 newfd; member
4087 addfd.newfd = 0; in TEST()
4104 addfd.newfd = 1; in TEST()
4107 addfd.newfd = 0; in TEST()
4132 addfd.newfd = 42; in TEST()
4160 addfd.newfd = 0; in TEST()
4237 addfd.newfd = 0; in TEST()
4249 addfd.newfd = 100; in TEST()
/kernel/linux/linux-5.10/kernel/
H A 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/
H A Dsyscalls.h393 asmlinkage long sys_dup3(unsigned int oldfd, unsigned int newfd, int flags);
1093 asmlinkage long sys_dup2(unsigned int oldfd, unsigned int newfd);
/kernel/linux/linux-6.6/include/linux/
H A Dsyscalls.h374 asmlinkage long sys_dup3(unsigned int oldfd, unsigned int newfd, int flags);
1001 asmlinkage long sys_dup2(unsigned int oldfd, unsigned int newfd);
/kernel/linux/linux-6.6/kernel/
H A Dseccomp.c1682 if (addfd.newfd && !(addfd.flags & SECCOMP_ADDFD_FLAG_SETFD)) in seccomp_notify_addfd()
1692 kaddfd.fd = addfd.newfd; in seccomp_notify_addfd()

Completed in 38 milliseconds