|
|
1.1 root 1:
2: static char SCCSID[] = "@(#)fdopendir.c 2.1 DKHOST 85/01/15";
3:
4: #include <sys/types.h>
5: #include <sys/stat.h>
6: #include "ndir.h"
7:
8: /*
9: * open a directory.
10: */
11: DIR *
12: fdopendir(fd)
13: {
14: register DIR *dirp;
15:
16: dirp = (DIR *)malloc(sizeof(DIR));
17: dirp->dd_fd = fd;
18:
19: dirp->dd_loc = 0;
20: return dirp;
21: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.