|
|
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(name) ! 13: char *name; ! 14: { ! 15: register DIR *dirp; ! 16: ! 17: dirp = opendir(name); ! 18: if(dirp!=NULL) ! 19: openfiles[dirp->dd_fd] = 1; ! 20: return dirp; ! 21: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.