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