11 * \fn int main(int argc, char *argv[])
14 int main(int argc, char *argv[])
21 printf("Usage: cat <file>\n");
25 fd = open(argv[1], OPENFLAG_READ);
27 printf("Unable to open '%s' for reading\n", argv[1]);
32 num = read(fd, buf, BUF_SIZE);
35 } while(num == BUF_SIZE);