15 lines
185 B
C
15 lines
185 B
C
|
#include <sys/types.h>
|
||
|
#include <sys/dir.h>
|
||
|
|
||
|
/*
|
||
|
* close a directory.
|
||
|
*/
|
||
|
closedir(dirp)
|
||
|
register DIR *dirp;
|
||
|
{
|
||
|
close(dirp->dd_fd);
|
||
|
dirp->dd_fd = -1;
|
||
|
dirp->dd_loc = 0;
|
||
|
free(dirp);
|
||
|
}
|