# 2.11BSD#431 - /usr/src/lib/libc/gen/closedir.c

##### Functions

    closedir          X

       1: /*
       2:  * Copyright (c) 1983 Regents of the University of California.
       3:  * All rights reserved.  The Berkeley software License Agreement
       4:  * specifies the terms and conditions for redistribution.
       5:  */
       6:
       7: #if defined(LIBC_SCCS) && !defined(lint)
       8: static char sccsid[] = "@(#)closedir.c	5.2 (Berkeley) 3/9/86";
       9: #endif LIBC_SCCS and not lint
      10:
      11: #include <sys/param.h>
      12: #include <sys/dir.h>
      13:
      14: /*
      15:  * close a directory.
      16:  */
      17: void
      18: closedir(dirp)
      19:     register DIR *dirp;
      20: {
      21:     close(dirp->dd_fd);
      22:     dirp->dd_fd = -1;
      23:     dirp->dd_loc = 0;
      24:     free(dirp);
      25: }

#### Defined functions

closedir defined in line 17; used 82 times

- in /usr/ingres/source/support/destroydb.c line 163
- in /usr/ingres/source/support/purge.c line 228
- in /usr/ingres/source/support/restore.c line 244
- in /usr/src/bin/chflags/chflags.c line 161
- in /usr/src/bin/chgrp.c line 175
- in /usr/src/bin/chmod.c line 142
- in /usr/src/bin/cp.c line 199
- in /usr/src/bin/csh/sh.exec.c line 279, 292
- in /usr/src/bin/csh/sh.file.c line 427
- in /usr/src/bin/csh/sh.glob.c line 204-208(2)
- in /usr/src/bin/diff/diffdir.c line 223
- in /usr/src/bin/du.c line 121, 131, 151
- in /usr/src/bin/ls/ls.c line 303
- in /usr/src/bin/make/files.c line 320
- in /usr/src/bin/ps.c line 314
- in /usr/src/bin/rcp.c line 520, 527, 543
- in /usr/src/bin/rm.c line 137, 167
- in /usr/src/bin/sh/expand.c line 93
- in /usr/src/bin/tar.c line 528-533(2)
- in /usr/src/bin/tcsh/glob.c line 531
- in /usr/src/bin/tcsh/sh.exec.c line 471, 486
- in /usr/src/bin/tcsh/sh.file.c line 554
- in /usr/src/bin/tcsh/tc.os.c line 810
- in /usr/src/bin/tcsh/tw.h line 55, 73
- in /usr/src/bin/tcsh/tw.parse.c line 1479, 1497
- in /usr/src/bin/tp/tp2.c line 263
- in /usr/src/lib/libc/gen/getwd.c line 68-73(2), 81, 88
- in /usr/src/lib/libc/gen/scandir.c line 77
- in /usr/src/lib/libc/gen/ttyname.c line 45-49(2)
- in /usr/src/libexec/ftpd/ftpd.c line 1388
- in /usr/src/new/crash/crashsubs.c line 470
- in /usr/src/new/kermit5.188/ckufio.c line 2611
- in /usr/src/new/nntp/server/scandir.c line 45
- in /usr/src/ucb/ex/expreserve.c line 134
- in /usr/src/ucb/ex/exrecover.c line 285, 474
- in /usr/src/ucb/ftp/glob.c line 222-226(2)
- in /usr/src/ucb/msgs/msgs.c line 269
- in /usr/src/ucb/rdist/docmd.c line 438
- in /usr/src/ucb/rdist/expand.c line 285-289(2)
- in /usr/src/ucb/rdist/server.c line 325, 351, 1211, 1272
- in /usr/src/ucb/sccs.c line 1042
- in /usr/src/ucb/sendbug/bugfiler.c line 536
- in /usr/src/ucb/whereis.c line 285
- in /usr/src/usr.bin/find/find.c line 674
- in /usr/src/usr.bin/learn/selsub.c line 159
- in /usr/src/usr.bin/learn/start.c line 25
- in /usr/src/usr.bin/uucp/gnsys.c line 65
- in /usr/src/usr.bin/uucp/uuclean.c line 114
- in /usr/src/usr.bin/uucp/uuq.c line 211
- in /usr/src/usr.bin/uucp/uusnap.c line 188, 237
- in /usr/src/usr.sbin/catman/catman.c line 242
- in /usr/src/usr.sbin/chown/chown.c line 163
- in /usr/src/usr.sbin/cron/database.c line 121
- in /usr/src/usr.sbin/lpr/cmds.c line 670
- in /usr/src/usr.sbin/lpr/common.c line 200, 207
- in /usr/src/usr.sbin/lpr/recvjob.c line 97, 103
- in /usr/src/usr.sbin/sendmail.MX/src/queue.c line 479
- in /usr/src/usr.sbin/sendmail/src/queue.c line 466

#### Defined variables

sccsid defined in line 8; never used

Last modified: 1986-03-10 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 566 |