3 Prints files specified on command line to the console, using
10 main (int argc, char *argv[])
14 for (i = 1; i < argc; i++)
18 void *data = (void *) 0x10000000;
21 /* Open input file. */
25 printf ("%s: open failed\n", argv[i]);
31 map = mmap (fd, data);
32 if (map == MAP_FAILED)
34 printf ("%s: mmap failed\n", argv[i]);
38 /* Write file to console. */
39 write (STDOUT_FILENO, data, size);
41 /* Unmap files (optional). */