Searched refs:nr_read (Results 1 – 3 of 3) sorted by relevance
31 ssize_t nr_read = 0; in ReadFullyWithRead() local33 while (nr_read < count) { in ReadFullyWithRead()34 ssize_t to_read = count - nr_read; in ReadFullyWithRead()35 ssize_t chunk = read(fd, buf + nr_read, to_read); in ReadFullyWithRead()41 nr_read += chunk; in ReadFullyWithRead()43 return nr_read; in ReadFullyWithRead()
119 ssize_t nr_read; in read_write() local126 nr_read = read(source_fd, buf, to_read); in read_write()127 if (nr_read < 0) { in read_write()131 while (nr_write < nr_read) { in read_write()132 ssize_t s = write(dest_fd, buf + nr_write, nr_read - nr_write); in read_write()138 copied += nr_read; in read_write()
45 static unsigned long nr_read = 0; variable156 nr_read++; in packet_handler()248 fprintf(stderr, "%lu packets processed\n", nr_read); in main()