system.c (237B)
1 #include "rc.h" 2 3 extern void writeall(int fd, char *buf, size_t remain) { 4 int i; 5 6 for (i = 0; remain > 0; buf += i, remain -= i) 7 if ((i = write(fd, buf, remain)) <= 0) 8 break; /* abort silently on errors in write() */ 9 sigchk(); 10 }