Home
last modified time | relevance | path

Searched refs:newfd (Results 1 – 11 of 11) 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()
1333 if (newfd >= rlimit(RLIMIT_NOFILE)) in ksys_dup3()
1337 err = expand_files(files, newfd); in ksys_dup3()
1346 return do_dup2(files, file, newfd, flags); 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()
1376 return ksys_dup3(oldfd, newfd, 0); in SYSCALL_DEFINE2()
/linux-6.12.1/tools/include/uapi/linux/
Dseccomp.h136 __u32 newfd; member
/linux-6.12.1/include/uapi/linux/
Dseccomp.h136 __u32 newfd; member
/linux-6.12.1/Documentation/translations/zh_CN/userspace-api/
Dseccomp_filter.rst219 ``SECCOMP_ADDFD_FLAG_SETFD`` 标志,并设置 ``newfd`` 成员为要使用的特定数字。
/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/net/
Dsocket.c1980 int newfd; in __sys_accept4_file() local
1988 newfd = get_unused_fd_flags(flags); in __sys_accept4_file()
1989 if (unlikely(newfd < 0)) in __sys_accept4_file()
1990 return newfd; in __sys_accept4_file()
1995 put_unused_fd(newfd); in __sys_accept4_file()
1998 fd_install(newfd, newfile); in __sys_accept4_file()
1999 return newfd; in __sys_accept4_file()
/linux-6.12.1/tools/testing/selftests/seccomp/
Dseccomp_bpf.c242 __u32 newfd; member
4160 addfd.newfd = 0; in TEST()
4177 addfd.newfd = 1; in TEST()
4180 addfd.newfd = 0; in TEST()
4207 addfd.newfd = 42; in TEST()
4235 addfd.newfd = 0; in TEST()
4313 addfd.newfd = 0; in TEST()
4325 addfd.newfd = 100; in TEST()
/linux-6.12.1/kernel/
Dseccomp.c1700 if (addfd.newfd && !(addfd.flags & SECCOMP_ADDFD_FLAG_SETFD)) in seccomp_notify_addfd()
1710 kaddfd.fd = addfd.newfd; in seccomp_notify_addfd()
/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/userspace-api/
Dseccomp_filter.rst268 ``SECCOMP_ADDFD_FLAG_SETFD`` flag can be used, and set the ``newfd`` member to
/linux-6.12.1/Documentation/trace/
Dftrace.rst3695 bash-1998 [000] d... 140.733504: sys_dup2(oldfd: a, newfd: 1)