write_with_restart
if ((r = write_with_restart(fd, b, bsz)) <= 0)
int write_with_restart(int, void *, int);
if (write_with_restart(fd, blnk, 1) < 0) {