]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/source/Host/common/PipeBase.cpp
MFV r331695, 331700: 9166 zfs storage pool checkpoint
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / source / Host / common / PipeBase.cpp
1 //===-- source/Host/common/PipeBase.cpp -------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #include "lldb/Host/PipeBase.h"
11
12 using namespace lldb_private;
13
14 PipeBase::~PipeBase() = default;
15
16 Status PipeBase::OpenAsWriter(llvm::StringRef name,
17                               bool child_process_inherit) {
18   return OpenAsWriterWithTimeout(name, child_process_inherit,
19                                  std::chrono::microseconds::zero());
20 }
21
22 Status PipeBase::Read(void *buf, size_t size, size_t &bytes_read) {
23   return ReadWithTimeout(buf, size, std::chrono::microseconds::zero(),
24                          bytes_read);
25 }