Lines Matching refs:bytes_read
209 int bytes_read;
218 bytes_read = read(fd[0].fd, buf, BUF_SIZE);
220 if (bytes_read < 0) {
225 } else if (bytes_read > 0) {
227 fwrite(buf, 1, bytes_read, stdout);
261 int bytes_read = fread(buf, 1, BUF_SIZE, stdin);
263 if (!bytes_read) {
267 while (bytes_read) {
274 retval = write(fd[0].fd, buf, bytes_read);
282 bytes_read -= retval;
306 int bytes_read;
318 bytes_read = read(fd, buf, BUF_SIZE);
319 if (bytes_read <= 0) {
324 fwrite(buf, 1, bytes_read, stdout);