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