|
|
1.1 root 1: #ifndef lint
2: static char sccsid[] = "@(#)closedir.c 4.5 (Berkeley) 7/1/83";
3: #endif
4:
5: #include <sys/param.h>
6: #include <sys/dir.h>
7:
8: /*
9: * close a directory.
10: */
11: void
12: closedir(dirp)
13: register DIR *dirp;
14: {
15: close(dirp->dd_fd);
16: dirp->dd_fd = -1;
17: dirp->dd_loc = 0;
18: free(dirp);
19: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.