77f3a9073f
[andersk@mit.edu: Move code to new third/libstddjb directory]
14 lines
252 B
C
14 lines
252 B
C
/* ISC license. */
|
|
|
|
#include <unistd.h>
|
|
#include <errno.h>
|
|
#include "allreadwrite.h"
|
|
|
|
int fd_write (int fd, char const *buf, unsigned int len)
|
|
{
|
|
register int r ;
|
|
do r = write(fd, buf, len) ;
|
|
while ((r == -1) && (errno == EINTR)) ;
|
|
return r ;
|
|
}
|