1: static char sccsid[] = "@(#)closedir.c 4.2 3/10/82";
   2: 
   3: #include <sys/types.h>
   4: #include <ndir.h>
   5: 
   6: /*
   7:  * close a directory.
   8:  */
   9: void
  10: closedir(dirp)
  11:     register DIR *dirp;
  12: {
  13:     close(dirp->dd_fd);
  14:     dirp->dd_fd = -1;
  15:     dirp->dd_loc = 0;
  16:     free(dirp);
  17: }

Defined functions

closedir defined in line 9; used 1 times

Defined variables

sccsid defined in line 1; never used
Last modified: 1986-01-11
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 487
Valid CSS Valid XHTML 1.0 Strict