mirror of
https://github.com/opnsense/src.git
synced 2026-04-12 21:06:41 -04:00
18 lines
207 B
C
18 lines
207 B
C
|
|
#include <unistd.h>
|
|
#include <fcntl.h>
|
|
|
|
static uint32_t buf[512/4];
|
|
main()
|
|
{
|
|
u_int u = 0;
|
|
|
|
while (1) {
|
|
|
|
if (512 != read(0, buf, sizeof buf))
|
|
break;
|
|
|
|
printf("%u %u\n", u++, buf[0]);
|
|
}
|
|
exit (0);
|
|
}
|