Searched refs:newfd (Results 1 – 8 of 8) sorted by relevance
/linux/fs/ |
A D | file.c | 1203 static int ksys_dup3(unsigned int oldfd, unsigned int newfd, int flags) in ksys_dup3() argument 1212 if (unlikely(oldfd == newfd)) in ksys_dup3() 1215 if (newfd >= rlimit(RLIMIT_NOFILE)) in ksys_dup3() 1219 err = expand_files(files, newfd); in ksys_dup3() 1228 return do_dup2(files, file, newfd, flags); in ksys_dup3() 1237 SYSCALL_DEFINE3(dup3, unsigned int, oldfd, unsigned int, newfd, int, flags) in SYSCALL_DEFINE3() argument 1239 return ksys_dup3(oldfd, newfd, flags); in SYSCALL_DEFINE3() 1242 SYSCALL_DEFINE2(dup2, unsigned int, oldfd, unsigned int, newfd) in SYSCALL_DEFINE2() argument 1244 if (unlikely(newfd == oldfd)) { /* corner case */ in SYSCALL_DEFINE2() 1254 return ksys_dup3(oldfd, newfd, 0); in SYSCALL_DEFINE2()
|
/linux/include/uapi/linux/ |
A D | seccomp.h | 132 __u32 newfd; member
|
/linux/net/ |
A D | socket.c | 1804 int newfd; in __sys_accept4_file() local 1812 newfd = __get_unused_fd_flags(flags, nofile); in __sys_accept4_file() 1813 if (unlikely(newfd < 0)) in __sys_accept4_file() 1814 return newfd; in __sys_accept4_file() 1819 put_unused_fd(newfd); in __sys_accept4_file() 1822 fd_install(newfd, newfile); in __sys_accept4_file() 1823 return newfd; in __sys_accept4_file()
|
/linux/tools/testing/selftests/seccomp/ |
A D | seccomp_bpf.c | 233 __u32 newfd; member 4009 addfd.newfd = 0; in TEST() 4026 addfd.newfd = 1; in TEST() 4029 addfd.newfd = 0; in TEST() 4054 addfd.newfd = 42; in TEST() 4082 addfd.newfd = 0; in TEST() 4159 addfd.newfd = 0; in TEST() 4171 addfd.newfd = 100; in TEST()
|
/linux/kernel/ |
A D | seccomp.c | 1580 if (addfd.newfd && !(addfd.flags & SECCOMP_ADDFD_FLAG_SETFD)) in seccomp_notify_addfd() 1590 kaddfd.fd = addfd.newfd; in seccomp_notify_addfd()
|
/linux/include/linux/ |
A D | syscalls.h | 401 asmlinkage long sys_dup3(unsigned int oldfd, unsigned int newfd, int flags); 1117 asmlinkage long sys_dup2(unsigned int oldfd, unsigned int newfd);
|
/linux/Documentation/userspace-api/ |
A D | seccomp_filter.rst | 268 ``SECCOMP_ADDFD_FLAG_SETFD`` flag can be used, and set the ``newfd`` member to
|
/linux/Documentation/trace/ |
A D | ftrace.rst | 3472 bash-1998 [000] d... 140.733504: sys_dup2(oldfd: a, newfd: 1)
|
Completed in 39 milliseconds