23 #include "common_priv.h"
34 if (pipe(filedes) != 0) {
59 ret = write(wfiled, &c,
sizeof(c));
61 if (errno == EAGAIN) {
67 }
while (ret !=
sizeof(c));
76 }
while (ret ==
sizeof(c));
void Read()
Read until not readable anymore.
void SetBlocking(bool blocking)
Manipulate how the current file handles blocking.
void SendWakeup()
Causes this handler to become readable any Poll on this FileHandler will then return.
bool Writeable() const
Gives the current writability status of the file.
bool Readable() const
Gives the current readability status of the file.
unsigned Read(void *ptr, unsigned len)
Read data from the file descriptor.