1 #include <sys/select.h>
20 struct timeval timeout;
26 return select(fd + 1, &fds, NULL, NULL, &timeout);
52 buf = ((
unsigned char *) buf) + i;
72 void const *buf,
const size_t count)
79 i = write(fd, buf, n);
83 buf = ((
unsigned char *) buf) + i;
ssize_t hipcPosixWriteExactly(const int fd, void const *buf, const size_t count)
Writes count bytes to fd by using write(2).
ssize_t hipcPosixReadExactly(const int fd, void *buf, const size_t count)
Read count bytes from fd by using read(2).
int hipcPosixReadReady(int fd)
Check a file descriptor is ready to read by using select(2) and returns the result of select(2)...