Home | History | Annotate | Download | only in contrib

Lines Matching refs:buf

27 int full_read(int fd, char *buf, size_t count)
33 got = read(fd, buf, count);
45 buf += got;
56 char buf[1024];
68 got = full_read(0, buf, sizeof(buf));
71 if (got == sizeof(buf)) {
72 for (i=0; i < sizeof(buf); i++)
73 if (buf[i])
75 if (i == sizeof(buf)) {
76 lseek(fd, sizeof(buf), SEEK_CUR);
82 write(fd, buf, got);
86 buf[0] = 0;
87 write(fd, buf, 1);