Home
last modified time | relevance | path

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

/linux-6.15/fs/
H A Dfile.c1377 static int ksys_dup3(unsigned int oldfd, unsigned int newfd, int flags) in ksys_dup3() argument
1386 if (unlikely(oldfd == newfd)) in ksys_dup3()
1389 if (newfd >= rlimit(RLIMIT_NOFILE)) in ksys_dup3()
1393 err = expand_files(files, newfd); in ksys_dup3()
1402 return do_dup2(files, file, newfd, flags); in ksys_dup3()
1411 SYSCALL_DEFINE3(dup3, unsigned int, oldfd, unsigned int, newfd, int, flags) in SYSCALL_DEFINE3() argument
1413 return ksys_dup3(oldfd, newfd, flags); in SYSCALL_DEFINE3()
1416 SYSCALL_DEFINE2(dup2, unsigned int, oldfd, unsigned int, newfd) in SYSCALL_DEFINE2() argument
1418 if (unlikely(newfd == oldfd)) { /* corner case */ in SYSCALL_DEFINE2()
1432 return ksys_dup3(oldfd, newfd, 0); in SYSCALL_DEFINE2()
/linux-6.15/tools/include/uapi/linux/
H A Dseccomp.h136 __u32 newfd; member
/linux-6.15/include/uapi/linux/
H A Dseccomp.h136 __u32 newfd; member
/linux-6.15/Documentation/translations/zh_CN/userspace-api/
H A Dseccomp_filter.rst219 ``SECCOMP_ADDFD_FLAG_SETFD`` 标志,并设置 ``newfd`` 成员为要使用的特定数字。
/linux-6.15/tools/lib/bpf/
H A Dlibbpf_internal.h665 static inline int sys_dup3(int oldfd, int newfd, int flags) in sys_dup3() argument
667 return syscall(__NR_dup3, oldfd, newfd, flags); in sys_dup3()
/linux-6.15/net/
H A Dsocket.c1952 int newfd; in __sys_accept4_file() local
1960 newfd = get_unused_fd_flags(flags); in __sys_accept4_file()
1961 if (unlikely(newfd < 0)) in __sys_accept4_file()
1962 return newfd; in __sys_accept4_file()
1967 put_unused_fd(newfd); in __sys_accept4_file()
1970 fd_install(newfd, newfile); in __sys_accept4_file()
1971 return newfd; in __sys_accept4_file()
/linux-6.15/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c253 __u32 newfd; member
4171 addfd.newfd = 0; in TEST()
4188 addfd.newfd = 1; in TEST()
4191 addfd.newfd = 0; in TEST()
4218 addfd.newfd = 42; in TEST()
4246 addfd.newfd = 0; in TEST()
4324 addfd.newfd = 0; in TEST()
4336 addfd.newfd = 100; in TEST()
/linux-6.15/kernel/
H A Dseccomp.c1721 if (addfd.newfd && !(addfd.flags & SECCOMP_ADDFD_FLAG_SETFD)) in seccomp_notify_addfd()
1731 kaddfd.fd = addfd.newfd; in seccomp_notify_addfd()
/linux-6.15/include/linux/
H A Dsyscalls.h389 asmlinkage long sys_dup3(unsigned int oldfd, unsigned int newfd, int flags);
1050 asmlinkage long sys_dup2(unsigned int oldfd, unsigned int newfd);
/linux-6.15/Documentation/userspace-api/
H A Dseccomp_filter.rst268 ``SECCOMP_ADDFD_FLAG_SETFD`` flag can be used, and set the ``newfd`` member to
/linux-6.15/Documentation/trace/
H A Dftrace.rst3702 bash-1998 [000] d... 140.733504: sys_dup2(oldfd: a, newfd: 1)