xref: /freebsd/tools/regression/ccd/layout/b.c (revision 8aac90f18aef7c9eea906c3ff9a001ca7b94f375)
1 
2 #include <unistd.h>
3 #include <fcntl.h>
4 
5 static uint32_t buf[512/4];
6 main()
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