8 printf ("(open-twice) begin\n");
10 h1 = open ("sample.txt");
12 printf ("(open-twice) fail: open() returned %d first time\n", h1);
14 h2 = open ("sample.txt");
16 printf ("(open-twice) fail: open() returned %d second time\n", h2);
18 printf ("(open-twice) fail: open() returned %d both times\n", h1);
20 printf ("(open-twice) end\n");