|
|
1.1 ! root 1: /* Copyright (c) 1982 Regents of the University of California */ ! 2: ! 3: #include "config.h" ! 4: #ifdef LOCALDIR ! 5: #include <sys/types.h> ! 6: #include "ndir.h" ! 7: ! 8: static char sccsid[] = "@(#)closedir.c 4.2 3/10/82"; ! 9: ! 10: /* ! 11: * close a directory. ! 12: */ ! 13: void ! 14: closedir(dirp) ! 15: register DIR *dirp; ! 16: { ! 17: close(dirp->dd_fd); ! 18: dirp->dd_fd = -1; ! 19: dirp->dd_loc = 0; ! 20: free(dirp); ! 21: } ! 22: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.