]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - tools/regression/ccd/layout/b.c
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / tools / regression / ccd / layout / b.c
1 /* $FreeBSD$ */
2
3 #include <unistd.h>
4 #include <fcntl.h>
5
6 static uint32_t buf[512/4];
7 main()
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 }