Searched refs:newfd (Results 1 – 8 of 8) sorted by relevance
/linux-6.1.9/fs/ |
D | file.c | 1215 static int ksys_dup3(unsigned int oldfd, unsigned int newfd, int flags) in ksys_dup3() argument 1224 if (unlikely(oldfd == newfd)) in ksys_dup3() 1227 if (newfd >= rlimit(RLIMIT_NOFILE)) in ksys_dup3() 1231 err = expand_files(files, newfd); in ksys_dup3() 1240 return do_dup2(files, file, newfd, flags); in ksys_dup3() 1249 SYSCALL_DEFINE3(dup3, unsigned int, oldfd, unsigned int, newfd, int, flags) in SYSCALL_DEFINE3() argument 1251 return ksys_dup3(oldfd, newfd, flags); in SYSCALL_DEFINE3() 1254 SYSCALL_DEFINE2(dup2, unsigned int, oldfd, unsigned int, newfd) in SYSCALL_DEFINE2() argument 1256 if (unlikely(newfd == oldfd)) { /* corner case */ in SYSCALL_DEFINE2() 1266 return ksys_dup3(oldfd, newfd, 0); in SYSCALL_DEFINE2()
|
/linux-6.1.9/include/uapi/linux/ |
D | seccomp.h | 134 __u32 newfd; member
|
/linux-6.1.9/net/ |
D | socket.c | 1885 int newfd; in __sys_accept4_file() local 1893 newfd = get_unused_fd_flags(flags); in __sys_accept4_file() 1894 if (unlikely(newfd < 0)) in __sys_accept4_file() 1895 return newfd; in __sys_accept4_file() 1900 put_unused_fd(newfd); in __sys_accept4_file() 1903 fd_install(newfd, newfile); in __sys_accept4_file() 1904 return newfd; in __sys_accept4_file()
|
/linux-6.1.9/tools/testing/selftests/seccomp/ |
D | seccomp_bpf.c | 236 __u32 newfd; member 4063 addfd.newfd = 0; in TEST() 4080 addfd.newfd = 1; in TEST() 4083 addfd.newfd = 0; in TEST() 4108 addfd.newfd = 42; in TEST() 4136 addfd.newfd = 0; in TEST() 4213 addfd.newfd = 0; in TEST() 4225 addfd.newfd = 100; in TEST()
|
/linux-6.1.9/kernel/ |
D | seccomp.c | 1619 if (addfd.newfd && !(addfd.flags & SECCOMP_ADDFD_FLAG_SETFD)) in seccomp_notify_addfd() 1629 kaddfd.fd = addfd.newfd; in seccomp_notify_addfd()
|
/linux-6.1.9/include/linux/ |
D | syscalls.h | 397 asmlinkage long sys_dup3(unsigned int oldfd, unsigned int newfd, int flags); 1116 asmlinkage long sys_dup2(unsigned int oldfd, unsigned int newfd);
|
/linux-6.1.9/Documentation/userspace-api/ |
D | seccomp_filter.rst | 268 ``SECCOMP_ADDFD_FLAG_SETFD`` flag can be used, and set the ``newfd`` member to
|
/linux-6.1.9/Documentation/trace/ |
D | ftrace.rst | 3484 bash-1998 [000] d... 140.733504: sys_dup2(oldfd: a, newfd: 1)
|