Searched refs:fd_in (Results 1 - 21 of 21) sorted by relevance

/freebsd-current/contrib/capsicum-test/
H A Dcopy_file_range.cc75 int fd_in = openInFile(&rights_in); local
79 EXPECT_NOTCAPABLE(copy_file_range(fd_in, NULL, fd_out, NULL, 8, 0));
80 EXPECT_NOTCAPABLE(copy_file_range(fd_in, &off_in, fd_out, NULL, 8, 0));
81 EXPECT_NOTCAPABLE(copy_file_range(fd_in, NULL, fd_out, &off_out, 8, 0));
82 EXPECT_NOTCAPABLE(copy_file_range(fd_in, &off_in, fd_out, &off_out, 8, 0));
85 EXPECT_NOTCAPABLE(copy_file_range(fd_in, &off_in, fd_out, NULL, 8, 0));
86 EXPECT_NOTCAPABLE(copy_file_range(fd_in, NULL, fd_out, &off_out, 8, 0));
87 EXPECT_NOTCAPABLE(copy_file_range(fd_in, &off_in, fd_out, &off_out, 8, 0));
88 close(fd_in);
98 int fd_in local
121 int fd_in = openInFile(&rights_in); local
144 int fd_in = openInFile(&rights_in); local
167 int fd_in = openInFile(&rights_in); local
190 int fd_in = openInFile(&rights_in); local
213 int fd_in = openInFile(&rights_in); local
[all...]
/freebsd-current/usr.sbin/ppp/
H A Dprompt.c143 if (p->fd_in >= 0) {
145 FD_SET(p->fd_in, r);
146 log_Printf(LogTIMER, "prompt %s: fdset(r) %d\n", p->src.from, p->fd_in);
150 FD_SET(p->fd_in, e);
151 log_Printf(LogTIMER, "prompt %s: fdset(e) %d\n", p->src.from, p->fd_in);
154 if (sets && *n < p->fd_in + 1)
155 *n = p->fd_in + 1;
167 return p->fd_in >= 0 && FD_ISSET(p->fd_in, fdset);
193 n = read(p->fd_in, linebuf
[all...]
H A Dprompt.h42 int fd_in, fd_out; member in struct:prompt
51 unsigned readtilde : 1; /* We've read a ``~'' from fd_in */
/freebsd-current/crypto/heimdal/lib/krb5/
H A Dstore_fd.c89 krb5_storage_from_fd(krb5_socket_t fd_in) argument
96 if (_get_osfhandle(fd_in) != -1) {
97 fd = dup(fd_in);
99 fd = _open_osfhandle(fd_in, 0);
105 fd = dup(fd_in);
/freebsd-current/contrib/libucl/tests/
H A Dtest_basic.c43 flags, fd_out, fd_in, use_fd = 0, msgpack_input = 0; local
102 fd_in = open (fname_in, O_RDONLY);
103 if (fd_in == -1) {
108 fd_in = STDIN_FILENO;
157 ucl_parser_add_fd (parser, fd_in);
158 close (fd_in);
/freebsd-current/libexec/atrun/
H A Datrun.c126 int fd_out, fd_in; local
201 if ((fd_in = dup(fileno(stream))) <0)
204 if (fstat(fd_in, &buf) == -1)
222 if ((fflags = fcntl(fd_in, F_GETFD)) <0)
225 fcntl(fd_in, F_SETFD, fflags & ~FD_CLOEXEC);
282 if (lseek(fd_in, (off_t) 0, SEEK_SET) < 0)
285 if (dup(fd_in) != STDIN_FILENO)
294 close(fd_in);
341 close(fd_in);
/freebsd-current/tests/sys/fs/fusefs/
H A Ddefault_permissions.cc517 int fd_in, fd_out; local
529 fd_in = open(FULLPATH_IN, O_RDONLY);
530 ASSERT_LE(0, fd_in) << strerror(errno);
534 copy_file_range(fd_in, &off_in, fd_out, &off_out, len, 0))
538 ASSERT_EQ(0, fstat(fd_in, &sb)) << strerror(errno);
541 leak(fd_in);
561 int fd_in, fd_out; local
573 fd_in = open(FULLPATH_IN, O_RDONLY);
574 ASSERT_LE(0, fd_in) << strerror(errno);
578 copy_file_range(fd_in,
[all...]
/freebsd-current/sys/kern/
H A Dsys_generic.c1098 select_check_badfd(fd_set *fd_in, int nd, int ndu, int abi_nfdbits) argument
1104 if (nd >= ndu || fd_in == NULL)
1112 addr = (char *)fd_in + b;
1114 addr = (char *)fd_in;
1137 kern_select(struct thread *td, int nd, fd_set *fd_in, fd_set *fd_ou, argument
1162 error = select_check_badfd(fd_in, nd, ndu, abi_nfdbits);
1180 if (fd_in != NULL)
1214 getbits(fd_in, 0);
1301 putbits(fd_in, 0);
/freebsd-current/crypto/openssh/
H A Dsftp-client.c91 int fd_in; member in struct:sftp_conn
197 if (atomicio6(read, conn->fd_in, p, 4, sftpio,
216 if (atomicio6(read, conn->fd_in, p, msg_len, sftpio,
456 sftp_init(int fd_in, int fd_out, u_int transfer_buflen, u_int num_requests, argument
466 ret->fd_in = fd_in;
2403 pfd.fd = to->fd_in;
H A Dpacket.c294 ssh_packet_set_connection(struct ssh *ssh, int fd_in, int fd_out) argument
311 state->connection_in = fd_in;
/freebsd-current/contrib/llvm-project/compiler-rt/include/sanitizer/
H A Dlinux_syscall_hooks.h1676 #define __sanitizer_syscall_pre_splice(fd_in, off_in, fd_out, off_out, len, \
1678 __sanitizer_syscall_pre_impl_splice((long)(fd_in), (long)(off_in), \
1681 #define __sanitizer_syscall_post_splice(res, fd_in, off_in, fd_out, off_out, \
1683 __sanitizer_syscall_post_impl_splice(res, (long)(fd_in), (long)(off_in), \
2975 void __sanitizer_syscall_pre_impl_splice(long fd_in, long off_in, long fd_out,
2977 void __sanitizer_syscall_post_impl_splice(long res, long fd_in, long off_in,
/freebsd-current/sys/sys/
H A Dsyscallsubr.h319 int kern_select(struct thread *td, int nd, fd_set *fd_in, fd_set *fd_ou,
/freebsd-current/sys/compat/linux/
H A Dlinux_file.c1741 error = kern_copy_file_range(td, args->fd_in, inoffp, args->fd_out,
/freebsd-current/sys/arm64/linux/
H A Dlinux_proto.h336 char fd_in_l_[PADL_(int)]; int fd_in; char fd_in_r_[PADR_(int)]; member in struct:linux_splice_args
1091 char fd_in_l_[PADL_(l_int)]; l_int fd_in; char fd_in_r_[PADR_(l_int)]; member in struct:linux_copy_file_range_args
H A Dlinux_systrace_args.c609 iarg[a++] = p->fd_in; /* int */
2167 iarg[a++] = p->fd_in; /* l_int */
/freebsd-current/sys/i386/linux/
H A Dlinux_systrace_args.c2260 iarg[a++] = p->fd_in; /* int */
2822 iarg[a++] = p->fd_in; /* l_int */
H A Dlinux_proto.h1094 char fd_in_l_[PADL_(int)]; int fd_in; char fd_in_r_[PADR_(int)]; member in struct:linux_splice_args
1422 char fd_in_l_[PADL_(l_int)]; l_int fd_in; char fd_in_r_[PADR_(l_int)]; member in struct:linux_copy_file_range_args
/freebsd-current/sys/amd64/linux/
H A Dlinux_proto.h1027 char fd_in_l_[PADL_(int)]; int fd_in; char fd_in_r_[PADR_(int)]; member in struct:linux_splice_args
1284 char fd_in_l_[PADL_(l_int)]; l_int fd_in; char fd_in_r_[PADR_(l_int)]; member in struct:linux_copy_file_range_args
H A Dlinux_systrace_args.c2107 iarg[a++] = p->fd_in; /* int */
2550 iarg[a++] = p->fd_in; /* l_int */
/freebsd-current/sys/amd64/linux32/
H A Dlinux32_systrace_args.c2225 iarg[a++] = p->fd_in; /* int */
2791 iarg[a++] = p->fd_in; /* l_int */
H A Dlinux32_proto.h1096 char fd_in_l_[PADL_(int)]; int fd_in; char fd_in_r_[PADR_(int)]; member in struct:linux_splice_args
1428 char fd_in_l_[PADL_(l_int)]; l_int fd_in; char fd_in_r_[PADR_(l_int)]; member in struct:linux_copy_file_range_args

Completed in 375 milliseconds