rem: ssize_t wr = write(fd, data, size); switch(wr) {
add: io.events = IOPOLL_WRITE; io.revents = 0; switch (iopoll(&io, 1, -1)) { case -1: die1sys(1, "Poll failed"); case 0: die2(1, "Connection closed during write to ", name); } switch (wr = write(fd, data, size)) {
context: static void retry_write(const char* data, ssize_t size,			int fd, const char* name, unsigned long* counter){  while(size > 0) {    ssize_t wr = write(fd, data, size);    switch(wr) {    case 0:      die2(1, "Short write to ", name);    case -1:      die2sys(1, "Error writing to ", name);    default:      data += wr;      size -= wr;      *counter += wr;    }  }}