Home
last modified time | relevance | path

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

/linux/fs/
A Dfile.c1203 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 Dseccomp.h132 __u32 newfd; member
/linux/net/
A Dsocket.c1804 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 Dseccomp_bpf.c233 __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 Dseccomp.c1580 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 Dsyscalls.h401 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 Dseccomp_filter.rst268 ``SECCOMP_ADDFD_FLAG_SETFD`` flag can be used, and set the ``newfd`` member to
/linux/Documentation/trace/
A Dftrace.rst3472 bash-1998 [000] d... 140.733504: sys_dup2(oldfd: a, newfd: 1)

Completed in 39 milliseconds