10 int main(int argc, char *argv[])
17 printf("Usage: cat <file>\n");
21 printf("Contents of `%s'\n", argv[1]);
22 fd = open(argv[1], OPENFLAG_READ);
24 printf("Unable to open '%s' for reading\n", argv[1]);
29 num = read(fd, BUF_SIZE, buf);
30 //printf("num = %i\n", num);
33 } while(num == BUF_SIZE);