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