Go to the documentation of this file.
34 if ((read || write) && fd >= 0 && file_spec) {
62 if (fd >= 0 && dup_fd >= 0) {
83 stream.
Printf(
"open fd %d with '%s', OFLAGS = 0x%x",
m_fd,
bool Duplicate(int fd, int dup_fd)
const char * GetCString(bool denormalize=true) const
bool Open(int fd, const FileSpec &file_spec, bool read, bool write)
void Dump(Stream &stream) const
llvm::StringRef GetPath() const
void Clear()
Clears the object state.
const FileSpec & GetFileSpec() const
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
A class that represents a running process on the host machine.
size_t PutCString(llvm::StringRef cstr)
Output a C string to the stream.