summaryrefslogtreecommitdiff
path: root/src/iopoll.h
blob: 79d5ccfeff7d94835fac2e2acfb3b06e78cb5d4f (plain)
1
2
3
4
5
6
7
8
9
#define IOPOLL_BROKEN_OUTPUT -2
#define IOPOLL_ERROR         -3

int iopoll (int fdin, int fdout, bool block);
bool iopoll_input_ok (int fdin);
bool iopoll_output_ok (int fdout);

bool fclose_nonblock (FILE *f);
bool fwrite_nonblock (char const *buf, ssize_t size, FILE *f);