read.c (210B)
1 #include <unistd.h> 2 #include "rep.h" 3 4 char buf[65536]; 5 6 int main() 7 { 8 int fd = open("/dev/zero", 0); 9 if (fd < 0) 10 return -1; 11 for (int i = 0; i < 100000; i++) { 12 read(fd, buf, sizeof(buf)); 13 } 14 return 0; 15 } 16