20 r =
read(fd,sa->
s + sa->
len,bufsize);
21 if (r == -1)
if (errno == EINTR)
continue;
22 if (r <= 0) {
close(fd);
return r; }
38 if (errno == ENOENT)
return 0;
41 if (
readclose(fd,sa,bufsize) == -1)
return -1;
int read(int _str, void *_buf, int _b)
int readclose_append(int fd, stralloc *sa, unsigned int bufsize)
int readclose(int fd, stralloc *sa, unsigned int bufsize)
int openreadclose(const char *fn, stralloc *sa, unsigned int bufsize)
int open_read(const char *)
int stralloc_readyplus(stralloc *sa, size_t len)
int stralloc_copys(stralloc *, const char *)