Home
last modified time | relevance | path

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

/linux/fs/
H A Dfile.c1399 static int ksys_dup3(unsigned int oldfd, unsigned int newfd, int flags) in ksys_dup3() argument
1408 if (unlikely(oldfd == newfd)) in ksys_dup3()
1411 if (newfd >= rlimit(RLIMIT_NOFILE)) in ksys_dup3()
1415 err = expand_files(files, newfd); in ksys_dup3()
1424 return do_dup2(files, file, newfd, flags); in ksys_dup3()
1433 SYSCALL_DEFINE3(dup3, unsigned int, oldfd, unsigned int, newfd, int, flags) in SYSCALL_DEFINE3() argument
1435 return ksys_dup3(oldfd, newfd, flags); in SYSCALL_DEFINE3()
1438 SYSCALL_DEFINE2(dup2, unsigned int, oldfd, unsigned int, newfd) in SYSCALL_DEFINE2() argument
1440 if (unlikely(newfd == oldfd)) { /* corner case */ in SYSCALL_DEFINE2()
1454 return ksys_dup3(oldfd, newfd, 0); in SYSCALL_DEFINE2()
/linux/include/uapi/linux/
H A Dseccomp.h136 __u32 newfd; member
/linux/tools/include/uapi/linux/
H A Dseccomp.h136 __u32 newfd; member
/linux/Documentation/translations/zh_CN/userspace-api/
H A Dseccomp_filter.rst219 ``SECCOMP_ADDFD_FLAG_SETFD`` 标志,并设置 ``newfd`` 成员为要使用的特定数字。
/linux/tools/lib/bpf/
H A Dlibbpf_internal.h675 static inline int sys_dup3(int oldfd, int newfd, int flags) in sys_dup3() argument
677 return syscall(__NR_dup3, oldfd, newfd, flags); in sys_dup3()
/linux/net/
H A Dsocket.c2016 int newfd; in __sys_accept4_file() local
2024 newfd = get_unused_fd_flags(flags); in __sys_accept4_file()
2025 if (unlikely(newfd < 0)) in __sys_accept4_file()
2026 return newfd; in __sys_accept4_file()
2031 put_unused_fd(newfd); in __sys_accept4_file()
2034 fd_install(newfd, newfile); in __sys_accept4_file()
2035 return newfd; in __sys_accept4_file()
/linux/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c262 __u32 newfd; member
4181 addfd.newfd = 0; in TEST()
4198 addfd.newfd = 1; in TEST()
4201 addfd.newfd = 0; in TEST()
4228 addfd.newfd = 42; in TEST()
4256 addfd.newfd = 0; in TEST()
4334 addfd.newfd = 0; in TEST()
4346 addfd.newfd = 100; in TEST()
/linux/kernel/
H A Dseccomp.c1737 if (addfd.newfd && !(addfd.flags & SECCOMP_ADDFD_FLAG_SETFD)) in seccomp_notify_addfd()
1747 kaddfd.fd = addfd.newfd; in seccomp_notify_addfd()
/linux/include/linux/
H A Dsyscalls.h396 asmlinkage long sys_dup3(unsigned int oldfd, unsigned int newfd, int flags);
1059 asmlinkage long sys_dup2(unsigned int oldfd, unsigned int newfd);
/linux/Documentation/userspace-api/
H A Dseccomp_filter.rst268 ``SECCOMP_ADDFD_FLAG_SETFD`` flag can be used, and set the ``newfd`` member to
/linux/Documentation/trace/
H A Dftrace.rst3715 bash-1998 [000] d... 140.733504: sys_dup2(oldfd: a, newfd: 1)