OSDN Git Service

(split) LDP: Release pages for LDP v3.39.
[linuxjm/LDP_man-pages.git] / release / man3 / closedir.3
1 .\" Copyright (C) 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
11 .\"
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein.  The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
23 .\" References consulted:
24 .\"     Linux libc source code
25 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
26 .\"     386BSD man pages
27 .\" Modified Sat Jul 24 21:25:52 1993 by Rik Faith (faith@cs.unc.edu)
28 .\" Modified 11 June 1995 by Andries Brouwer (aeb@cwi.nl)
29 .\"*******************************************************************
30 .\"
31 .\" This file was generated with po4a. Translate the source file.
32 .\"
33 .\"*******************************************************************
34 .TH CLOSEDIR 3 2008\-09\-23 "" "Linux Programmer's Manual"
35 .SH 名前
36 closedir \- ディレクトリをクローズする
37 .SH 書式
38 .nf
39 \fB#include <sys/types.h>\fP
40 .sp
41 \fB#include <dirent.h>\fP
42 .sp
43 \fBint closedir(DIR *\fP\fIdirp\fP\fB);\fP
44 .fi
45 .SH 説明
46 \fBclosedir\fP()  関数は \fIdirp\fP に関連付けられた ディレクトリストリームをクローズする。
47 \fBclosedir\fP()  の呼び出しが成功すると、 \fIdirp\fP に関連付けられた
48 ファイルディスクリプタもクローズされる。
49 ディレクトリストリームディスクリプタ (directory stream descriptor) \fIdirp\fP は、
50 この呼び出しの後では使用することができない。
51 .SH 返り値
52 \fBclosedir\fP()  関数は成功時に 0 を返す。 エラーの場合は、\-1 が返されて、 \fIerrno\fP が適切に設定される。
53 .SH エラー
54 .TP 
55 \fBEBADF\fP
56 ディレクトリストリームディスクリプタ \fIdirp\fP が無効である。
57 .SH 準拠
58 SVr4, POSIX.1\-2001, 4.3BSD.
59 .SH 関連項目
60 \fBclose\fP(2), \fBopendir\fP(3), \fBreaddir\fP(3), \fBrewinddir\fP(3), \fBscandir\fP(3),
61 \fBseekdir\fP(3), \fBtelldir\fP(3)