Lines Matching refs:bytes_read
222 int bytes_read;
231 bytes_read = read(fd[0].fd, buf, BUF_SIZE);
233 if (bytes_read < 0) {
238 } else if (bytes_read > 0) {
240 fwrite(buf, 1, bytes_read, stdout);
274 int bytes_read = fread(buf, 1, BUF_SIZE, stdin);
276 if (!bytes_read) {
280 while (bytes_read) {
287 retval = write(fd[0].fd, buf, bytes_read);
295 bytes_read -= retval;
319 int bytes_read;
331 bytes_read = read(fd, buf, BUF_SIZE);
332 if (bytes_read <= 0) {
337 fwrite(buf, 1, bytes_read, stdout);