Annotation of researchv10no/dk/cmd/pupu/closedir.c, revision 1.1

1.1     ! root        1: /* Copyright (c) 1982 Regents of the University of California */
        !             2: 
        !             3: static char sccsid[] = "@(#)closedir.c 4.2 3/10/82";
        !             4: 
        !             5: static char    SCCSID[] = "@(#)closedir.c      2.1 DKHOST 85/01/15";
        !             6: 
        !             7: 
        !             8: #include <sys/types.h>
        !             9: #include "ndir.h"
        !            10: 
        !            11: /*
        !            12:  * close a directory.
        !            13:  */
        !            14: void
        !            15: closedir(dirp)
        !            16:        register DIR *dirp;
        !            17: {
        !            18:        close(dirp->dd_fd);
        !            19:        dirp->dd_fd = -1;
        !            20:        dirp->dd_loc = 0;
        !            21:        free(dirp);
        !            22: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.