Searched refs:newfd (Results 1 - 8 of 8) sorted by relevance

/linux-master/include/uapi/linux/
H A Dseccomp.h129 * @newfd: Optional remote FD number if SETFD option is set, otherwise 0.
136 __u32 newfd; member in struct:seccomp_notif_addfd
/linux-master/tools/include/uapi/linux/
H A Dseccomp.h129 * @newfd: Optional remote FD number if SETFD option is set, otherwise 0.
136 __u32 newfd; member in struct:seccomp_notif_addfd
/linux-master/fs/
H A Dfile.c1354 static int ksys_dup3(unsigned int oldfd, unsigned int newfd, int flags) argument
1363 if (unlikely(oldfd == newfd))
1366 if (newfd >= rlimit(RLIMIT_NOFILE))
1370 err = expand_files(files, newfd);
1379 return do_dup2(files, file, newfd, flags);
1388 SYSCALL_DEFINE3(dup3, unsigned int, oldfd, unsigned int, newfd, int, flags)
1390 return ksys_dup3(oldfd, newfd, flags);
1393 SYSCALL_DEFINE2(dup2, unsigned int, oldfd, unsigned int, newfd)
1395 if (unlikely(newfd == oldfd)) { /* corner case */
1409 return ksys_dup3(oldfd, newfd,
[all...]
/linux-master/tools/lib/bpf/
H A Dlibbpf_internal.h605 static inline int sys_dup2(int oldfd, int newfd) argument
608 return syscall(__NR_dup2, oldfd, newfd);
610 return syscall(__NR_dup3, oldfd, newfd, 0);
/linux-master/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c240 __u32 newfd; member in struct:seccomp_notif_addfd
4104 addfd.newfd = 0;
4121 addfd.newfd = 1;
4124 addfd.newfd = 0;
4151 addfd.newfd = 42;
4179 addfd.newfd = 0;
4257 addfd.newfd = 0;
4269 addfd.newfd = 100;
/linux-master/net/
H A Dsocket.c1957 int newfd; local
1965 newfd = get_unused_fd_flags(flags);
1966 if (unlikely(newfd < 0))
1967 return newfd;
1972 put_unused_fd(newfd);
1975 fd_install(newfd, newfile);
1976 return newfd;
/linux-master/kernel/
H A Dseccomp.c1682 if (addfd.newfd && !(addfd.flags & SECCOMP_ADDFD_FLAG_SETFD))
1692 kaddfd.fd = addfd.newfd;
/linux-master/include/linux/
H A Dsyscalls.h376 asmlinkage long sys_dup3(unsigned int oldfd, unsigned int newfd, int flags);
1024 asmlinkage long sys_dup2(unsigned int oldfd, unsigned int newfd);

Completed in 161 milliseconds