Searched refs:read_fd (Results 1 – 6 of 6) sorted by relevance
| /llvm-project-15.0.7/libc/test/src/fcntl/ |
| H A D | openat_test.cpp | 30 int read_fd = __llvm_libc::openat(dir_fd, TEST_FILE, O_RDONLY); in TEST() local 32 ASSERT_GT(read_fd, 0); in TEST() 34 ASSERT_THAT(__llvm_libc::read(read_fd, read_buf, TEST_MSG_SIZE), in TEST() 36 ASSERT_THAT(__llvm_libc::close(read_fd), Succeeds(0)); in TEST()
|
| /llvm-project-15.0.7/libc/test/src/unistd/ |
| H A D | read_write_test.cpp | 33 int read_fd = __llvm_libc::open(TEST_FILE, O_RDONLY); in TEST() local 35 ASSERT_GT(read_fd, 0); in TEST() 37 ASSERT_THAT(__llvm_libc::read(read_fd, read_buf, HELLO_SIZE), in TEST() 40 ASSERT_THAT(__llvm_libc::close(read_fd), Succeeds(0)); in TEST()
|
| /llvm-project-15.0.7/lldb/tools/lldb-vscode/ |
| H A D | OutputRedirector.cpp | 43 int read_fd = new_fd[0]; in RedirectFd() local 44 std::thread t([read_fd, callback]() { in RedirectFd() 47 ssize_t bytes_count = read(read_fd, &buffer, sizeof(buffer)); in RedirectFd()
|
| /llvm-project-15.0.7/libcxx/src/filesystem/ |
| H A D | operations.cpp | 820 bool copy_file_impl(FileDescriptor& read_fd, FileDescriptor& write_fd, error_code& ec) { in copy_file_impl() argument 821 size_t count = read_fd.get_stat().st_size; in copy_file_impl() 824 if ((res = ::sendfile(write_fd.fd, read_fd.fd, nullptr, count)) == -1) { in copy_file_impl() 836 bool copy_file_impl(FileDescriptor& read_fd, FileDescriptor& write_fd, error_code& ec) { 848 if (fcopyfile(read_fd.fd, write_fd.fd, cfs.state, COPYFILE_DATA) < 0) { 857 bool copy_file_impl(FileDescriptor& read_fd, FileDescriptor& write_fd, error_code& ec) { 859 in.__open(read_fd.fd, ios::binary); 865 read_fd.fd = -1;
|
| /llvm-project-15.0.7/llvm/utils/unittest/googletest/src/ |
| H A D | gtest-death-test.cc | 421 int read_fd() const { return read_fd_; } in read_fd() function in testing::internal::DeathTestImpl 470 bytes_read = posix::Read(read_fd(), &flag, 1); in ReadAndInterpretStatusByte() 487 FailFromInternalError(read_fd()); // Does not return. in ReadAndInterpretStatusByte() 498 GTEST_DEATH_TEST_CHECK_SYSCALL_(posix::Close(read_fd())); in ReadAndInterpretStatusByte()
|
| /llvm-project-15.0.7/lldb/source/Target/ |
| H A D | Process.cpp | 4353 const int read_fd = m_read_file.GetDescriptor(); in Run() local 4354 Terminal terminal(read_fd); in Run() 4371 select_helper.FDSetRead(read_fd); in Run() 4380 if (select_helper.FDIsSetRead(read_fd)) { in Run()
|