9#ifndef LLDB_HOST_FILEACTION_H
10#define LLDB_HOST_FILEACTION_H
56 bool Open(
int fd,
const FileSpec &file_spec,
bool read,
bool write);
Action GetAction() const
Get the type of action.
void Clear()
Reset this FileAction to its default state.
bool Duplicate(int fd, int dup_fd)
Configure this action to duplicate a file descriptor.
void Dump(Stream &stream) const
Action m_action
The action for this file.
int m_fd
The file descriptor this action applies to.
int GetActionArgument() const
Get the action-specific argument.
int m_arg
oflag for eFileActionOpen, dup_fd for eFileActionDuplicate.
const FileSpec & GetFileSpec() const
Get the file specification for open actions.
bool Open(int fd, const FileSpec &file_spec, bool read, bool write)
Configure this action to open a file.
bool Close(int fd)
Configure this action to close a file descriptor.
FileSpec m_file_spec
File spec to use for opening after fork or posix_spawn.
int GetFD() const
Get the file descriptor this action applies to.
A stream class that can stream formatted output to a file.
A class that represents a running process on the host machine.