9 openfile (const char *f
)
11 return creat (f
, O_RDWR
);
15 closefile (const char *f
, int fd
)
25 const char *TMPFILE
= "file_dclose.tmp";
28 fd
= openfile (TMPFILE
);
30 fprintf(stderr
, "close %d\n", fd
);
34 fprintf (stderr
, "time passes and we close %d again\n", fd
);
35 closefile (TMPFILE
, fd
);