9#ifndef LLDB_HOST_POSIX_FILEPOSIX_H
10#define LLDB_HOST_POSIX_FILEPOSIX_H
34 Status Read(
void *dst,
size_t &num_bytes, off_t &offset)
override;
35 Status Write(
const void *src,
size_t &num_bytes, off_t &offset)
override;
38 bool isA(
const void *classID)
const override {
An abstract base class for files.
virtual bool isA(const void *classID) const
lldb::file_t WaitableHandle
Status Write(const void *buf, size_t &num_bytes) override
Write bytes from buf to a file at the current file position.
bool isA(const void *classID) const override
Status Read(void *buf, size_t &num_bytes) override
Read bytes from a file from the current file position into buf.
Status Read(void *dst, size_t &num_bytes, off_t &offset) override
Read bytes from a file from the specified file offset.
Status Sync() override
Sync to disk.
const NativeFilePosix & operator=(const NativeFilePosix &)=delete
WaitableHandle GetWaitableHandle() override
Get a handle that can be used for OS polling interfaces, such as WaitForMultipleObjects,...
Status Write(const void *src, size_t &num_bytes, off_t &offset) override
Write bytes to a file at the specified file offset.
void CalculateInteractiveAndTerminal() override
Refresh the cached interactive / terminal / color flags by inspecting the underlying descriptor.
NativeFilePosix()=default
NativeFilePosix(const NativeFilePosix &)=delete
static bool classof(const File *file)
bool isA(const void *classID) const override
Status GetFileSpec(FileSpec &file_spec) const override
Get the file specification for this file, if possible.
A class that represents a running process on the host machine.