1 2#include <unistd.h> 3#include <fcntl.h> 4 5static uint32_t buf[512/4]; 6main() 7{ 8 u_int u = 0; 9 10 while (1) { 11 12 if (512 != read(0, buf, sizeof buf)) 13 break; 14 15 printf("%u %u\n", u++, buf[0]); 16 } 17 exit (0); 18} 19 20