Home
last modified time | relevance | path

Searched refs:read_fd (Results 1 – 14 of 14) sorted by relevance

/freebsd/contrib/llvm-project/libcxx/src/filesystem/
H A Doperations.cpp205 bool copy_file_impl_fstream(FileDescriptor& read_fd, FileDescriptor& write_fd, error_code& ec) { in copy_file_impl_fstream() argument
207 in.__open(read_fd.fd, ios::binary); in copy_file_impl_fstream()
213 read_fd.fd = -1; in copy_file_impl_fstream()
241 bool copy_file_impl_copy_file_range(FileDescriptor& read_fd, FileDescriptor& write_fd, error_code& … in copy_file_impl_copy_file_range() argument
242 size_t count = read_fd.get_stat().st_size; in copy_file_impl_copy_file_range()
261 if ((res = ::copy_file_range(read_fd.fd, &off_in, write_fd.fd, &off_out, count, 0)) == -1) { in copy_file_impl_copy_file_range()
275 bool copy_file_impl_sendfile(FileDescriptor& read_fd, FileDescriptor& write_fd, error_code& ec) { in copy_file_impl_sendfile() argument
276 size_t count = read_fd.get_stat().st_size; in copy_file_impl_sendfile()
289 if ((res = ::sendfile(write_fd.fd, read_fd.fd, nullptr, count)) == -1) { in copy_file_impl_sendfile()
305 bool copy_file_impl(FileDescriptor& read_fd, FileDescriptor& write_fd, error_code& ec) { in copy_file_impl() argument
[all …]
/freebsd/sbin/recoverdisk/
H A Drecoverdisk.c65 static int read_fd, write_fd; variable
468 retval = pread(read_fd, work_buf, sz, lp->start); in attempt_one_lump()
535 error = fstat(read_fd, &sb); in determine_total_size()
542 error = ioctl(read_fd, DIOCGMEDIASIZE, &mediasize); in determine_total_size()
571 error = ioctl(read_fd, DIOCGSECTORSIZE, &sectorsize); in determine_read_sizes()
602 error = ioctl(read_fd, DIOCGSTRIPESIZE, &stripesize); in determine_read_sizes()
621 error = ioctl(read_fd, DIOCGFWSECTORS, &fwsectors); in determine_read_sizes()
624 error = ioctl(read_fd, DIOCGFWHEADS, &fwheads); in determine_read_sizes()
805 read_fd = open(argv[0], O_RDONLY); in main()
806 if (read_fd < 0) in main()
/freebsd/crypto/openssl/demos/guide/
H A Dquic-server-non-block.c228 fd_set read_fd, write_fd; in wait_for_activity() local
239 FD_ZERO(&read_fd); in wait_for_activity()
248 FD_SET(sock, &read_fd); in wait_for_activity()
277 select(sock + 1, &read_fd, &write_fd, NULL, tvp); in wait_for_activity()
/freebsd/lib/libsecureboot/
H A Dreadfile.c29 read_fd(int fd, size_t len) in read_fd() function
66 ucp = read_fd(fd, st.st_size); in read_file()
H A Dverify_file.c338 ucp = read_fd(fd, stp->st_size); in verify_tweak()
/freebsd/contrib/libarchive/tar/
H A Dutil.c225 int read_fd = 2; /* stderr */ in yes() local
239 read_fd = _open("CONIN$", O_RDONLY); in yes()
240 if (read_fd < 0) { in yes()
246 l = read(read_fd, buff, sizeof(buff) - 1); in yes()
249 _close(read_fd); in yes()
/freebsd/sbin/pfctl/tests/
H A Dpfctl_test.c71 read_fd(int fd, size_t sizehint) in read_fd() function
98 result = read_fd(fd, s.st_size); in read_file()
131 (*output) = read_fd(pipefds[1], 0); in run_command_pipe()
/freebsd/lib/libsecureboot/h/
H A Dlibsecureboot.h47 unsigned char * read_fd(int, size_t);
/freebsd/tests/sys/aio/
H A Daio_test.c136 aio_context_init(struct aio_context *ac, int read_fd, in aio_context_init() argument
144 ac->ac_read_fd = read_fd; in aio_context_init()
513 int error, read_fd = -1, write_fd = -1; in aio_fifo_test() local
521 read_fd = open(FIFO_PATHNAME, O_RDONLY | O_NONBLOCK); in aio_fifo_test()
522 if (read_fd == -1) { in aio_fifo_test()
537 aio_context_init(&ac, read_fd, write_fd, FIFO_LEN); in aio_fifo_test()
541 close(read_fd); in aio_fifo_test()
657 int read_fd, write_fd; in aio_pty_test() local
663 ATF_REQUIRE_MSG(openpty(&read_fd, &write_fd, NULL, NULL, NULL) == 0, in aio_pty_test()
678 aio_context_init(&ac, read_fd, write_fd, PTY_LEN); in aio_pty_test()
[all …]
/freebsd/crypto/openssl/demos/http3/
H A Dossl-nghttp3-demo-server.c986 fd_set read_fd, write_fd; in wait_for_activity() local
997 FD_ZERO(&read_fd); in wait_for_activity()
1006 FD_SET(sock, &read_fd); in wait_for_activity()
1009 FD_SET(sock, &read_fd); in wait_for_activity()
1038 return (select(sock + 1, &read_fd, &write_fd, NULL, tvp)); in wait_for_activity()
/freebsd/contrib/googletest/googletest/src/
H A Dgtest-death-test.cc430 int read_fd() const { return read_fd_; } in read_fd() function in testing::internal::DeathTestImpl
479 bytes_read = posix::Read(read_fd(), &flag, 1); in ReadAndInterpretStatusByte()
496 FailFromInternalError(read_fd()); // Does not return. in ReadAndInterpretStatusByte()
507 GTEST_DEATH_TEST_CHECK_SYSCALL_(posix::Close(read_fd())); in ReadAndInterpretStatusByte()
/freebsd/crypto/openssh/
H A Dsftp-server.c1605 int read_handle, read_fd, write_handle, write_fd; in process_extended_copy_data() local
1631 read_fd = handle_to_fd(read_handle); in process_extended_copy_data()
1635 if (read_handle == write_handle || read_fd < 0 || write_fd < 0 || in process_extended_copy_data()
1641 if (lseek(read_fd, read_off, SEEK_SET) < 0) { in process_extended_copy_data()
1659 ret = atomicio(read, read_fd, buf, len); in process_extended_copy_data()
/freebsd/crypto/openssl/doc/man7/
H A Dossl-guide-quic-server-non-block.pod247 FD_ZERO(&read_fd);
256 FD_SET(sock, &read_fd);
285 select(sock + 1, &read_fd, &write_fd, NULL, tvp);
/freebsd/contrib/llvm-project/lldb/source/Target/
H A DProcess.cpp4649 const int read_fd = m_read_file.GetDescriptor(); in Run() local
4650 Terminal terminal(read_fd); in Run()
4667 select_helper.FDSetRead(read_fd); in Run()
4676 if (select_helper.FDIsSetRead(read_fd)) { in Run()