OSDN Git Service

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