21 r =
read(fd,sa->
s + sa->
len,bufsize);
22 if (r == -1)
if (errno == EINTR)
continue;
23 if (r <= 0) {
close(fd);
return r; }
39 if (errno == ENOENT)
return 0;
42 if (
readclose(fd,sa,bufsize) == -1)
return -1;
int stralloc_readyplus(stralloc *sa, size_t len)
int stralloc_copys(stralloc *, const char *)
int open_read(const char *)
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 read(int _str, void *_buf, int _b)