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 107 times
- in /usr/ingres/source/support/creatdb.c line
329
- in /usr/ingres/source/support/destroydb.c line
148
- in /usr/ingres/source/support/purge.c line
277
- in /usr/ingres/source/support/restore.c line
273
- in /usr/ingres/source/support/subs.c line
26
- in /usr/src/bin/chgrp.c line
167
- in /usr/src/bin/chmod.c line
130
- in /usr/src/bin/cp.c line
199
- in /usr/src/bin/csh/sh.exec.c line
302,
315
- 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
211
- in /usr/src/bin/du.c line
121,
131,
151
- in /usr/src/bin/ls.c line
278
- in /usr/src/bin/make/files.c line
307
- in /usr/src/bin/ps.c line
756
- in /usr/src/bin/rcp.c line
406,
413,
429
- 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
522-527(2)
- in /usr/src/bin/tp/tp2.c line
263
- in /usr/src/etc/badsect.c line
85
- in /usr/src/etc/catman.c line
245
- in /usr/src/etc/chown.c line
158
- in /usr/src/etc/savecore.c line
195,
201
- in /usr/src/games/compat/unixtraps.c line
625
- 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/new/dsh/src/getwd.c line
53
- in /usr/src/new/help/help.c line
804
- in /usr/src/new/kermit/ckufio.c line
810
- in /usr/src/new/mh/sbr/m_gmsg.c line
145
- in /usr/src/new/mh/sbr/pwd.c line
74-79(2),
92-97(2),
108,
121
- in /usr/src/new/mh/uip/bbl.c line
308
- in /usr/src/new/mh/uip/conflict.c line
315
- in /usr/src/new/mh/uip/folder.c line
524
- in /usr/src/new/mh/uip/rmf.c line
207
- in /usr/src/new/mkmf/src/buildlist.c line
249
- in /usr/src/new/nntp/server/scandir.c line
46
- in /usr/src/new/spms/src/bin/pfind/Pfind.c line
138
- in /usr/src/new/spms/src/bin/phelp/index.c line
61
- in /usr/src/new/spms/src/lib/libspms/src/getwd.c line
58,
64,
73,
79
- in /usr/src/new/xns/examples/filing/glob.c line
214-218(2)
- in /usr/src/old/berknet/net.c line
498
- in /usr/src/old/berknet/netq.c line
113,
137
- in /usr/src/old/berknet/netrm.c line
80
- in /usr/src/old/vpr/vpd.c line
166,
180
- in /usr/src/old/vpr/vpq.c line
106
- in /usr/src/old/vpr/vprm.c line
71
- in /usr/src/ucb/ex/expreserve.c line
136
- in /usr/src/ucb/ex/exrecover.c line
287,
476
- in /usr/src/ucb/ftp/glob.c line
208-212(2)
- in /usr/src/ucb/lastcomm.c line
219,
235
- in /usr/src/ucb/msgs/msgs.c line
269
- in /usr/src/ucb/rdist/docmd.c line
439
- in /usr/src/ucb/rdist/expand.c line
285-289(2)
- in /usr/src/ucb/rdist/server.c line
317,
343,
1193,
1254
- in /usr/src/ucb/sccs.c line
1043
- in /usr/src/ucb/sendbug/bugfiler.c line
538
- in /usr/src/ucb/whereis.c line
288
- in /usr/src/usr.bin/find/find.c line
678
- 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
213
- in /usr/src/usr.bin/uucp/uusnap.c line
188,
237
- in /usr/src/usr.bin/xsend/xget.c line
132
- in /usr/src/usr.lib/lpr/cmds.c line
670
- in /usr/src/usr.lib/lpr/common.c line
200,
207
- in /usr/src/usr.lib/lpr/recvjob.c line
96,
102
- in /usr/src/usr.lib/sendmail/src/queue.c line
471
Defined variables
sccsid
defined in line
8;
never used