15std::string readLine(
int fd);
20void writeLine(
int fd, std::string s);
25std::string readFile(
int fd);
31void readFull(
int fd,
char * buf,
size_t count);
32void writeFull(
int fd, std::string_view s,
bool allowInterrupts =
true);
37std::string drainFD(
int fd,
bool block =
true,
const size_t reserveSize=0);
39Generator<Bytes> drainFDSource(
int fd,
bool block =
true);
53 explicit operator bool()
const;
57 void reset() { *
this = {}; }
77void closeOnExec(
int fd);
79MakeError(EndOfFile, Error);
Definition file-descriptor.hh:42
Definition file-descriptor.hh:61
This file defines two main structs/classes used in nix error handling.