1: /* Copyright (c) 1982 Regents of the University of California */
   2: 
   3: static char sccsid[] = "@(#)closedir.c 4.2 3/10/82";
   4: 
   5: #include <sys/types.h>
   6: #include <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: }

Defined functions

closedir defined in line 11; used 1 times

Defined variables

sccsid defined in line 3; never used
Last modified: 1983-12-09
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 654
Valid CSS Valid XHTML 1.0 Strict