1*21339Sdist /* 2*21339Sdist * Copyright (c) 1983 Regents of the University of California. 3*21339Sdist * All rights reserved. The Berkeley software License Agreement 4*21339Sdist * specifies the terms and conditions for redistribution. 5*21339Sdist */ 6*21339Sdist 713582Ssam #ifndef lint 8*21339Sdist static char sccsid[] = "@(#)closedir.c 5.1 (Berkeley) 05/30/85"; 9*21339Sdist #endif not lint 105749Smckusick 116370Smckusic #include <sys/param.h> 1213582Ssam #include <sys/dir.h> 135749Smckusick 145749Smckusick /* 155749Smckusick * close a directory. 165749Smckusick */ 175749Smckusick void 185749Smckusick closedir(dirp) 196098Smckusic register DIR *dirp; 205749Smckusick { 215749Smckusick close(dirp->dd_fd); 226098Smckusic dirp->dd_fd = -1; 236098Smckusic dirp->dd_loc = 0; 245749Smckusick free(dirp); 255749Smckusick } 26