previous | start | next

11.1

    1   int main()
    2   {
    3     int fd1, fd2;
    4   
    5     fd1 = open("foo.txt", O_RDONLY, 0);
    6     close(fd1);
    7     fd2 = open("baz.txt", O_RDONLY, 0);
    8     printf("fd2 = %d\n", fd2);
    9     exit(0);
   10   }


previous | start | next