Searched refs:newfd (Results 1 – 11 of 11) sorted by relevance
/linux-6.12.1/fs/ |
D | file.c | 1321 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/ |
D | seccomp.h | 136 __u32 newfd; member
|
/linux-6.12.1/include/uapi/linux/ |
D | seccomp.h | 136 __u32 newfd; member
|
/linux-6.12.1/Documentation/translations/zh_CN/userspace-api/ |
D | seccomp_filter.rst | 219 ``SECCOMP_ADDFD_FLAG_SETFD`` 标志,并设置 ``newfd`` 成员为要使用的特定数字。
|
/linux-6.12.1/tools/lib/bpf/ |
D | libbpf_internal.h | 625 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/ |
D | socket.c | 1980 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/ |
D | seccomp_bpf.c | 242 __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/ |
D | seccomp.c | 1700 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/ |
D | syscalls.h | 376 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/ |
D | seccomp_filter.rst | 268 ``SECCOMP_ADDFD_FLAG_SETFD`` flag can be used, and set the ``newfd`` member to
|
/linux-6.12.1/Documentation/trace/ |
D | ftrace.rst | 3695 bash-1998 [000] d... 140.733504: sys_dup2(oldfd: a, newfd: 1)
|