OSDN Git Service

2dcacaa4444894a3af72b9066daafca8e11bd51b
[linuxjm/LDP_man-pages.git] / release / man3 / fcloseall.3
1 .\" Copyright (c) 2006 by Michael Kerrisk <mtk.manpages@gmail.com>
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 .\" License.
23 .\"
24 .\" Japanese Version Copyright (c) 2000 Yuichi SATO
25 .\"         all rights reserved.
26 .\" Translated 2000-06-24, Yuichi SATO <sato@complex.eng.hokudai.ac.jp>
27 .\" Updated 2007-05-04, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v2.46
28 .\"
29 .\"WORD:        standard streams        標準入出力
30 .\"
31 .TH FCLOSEALL 3  2006-12-27 "GNU" "Linux Programmer's Manual"
32 .SH 名前
33 fcloseall \- 開いているすべてのストリームを閉じる
34 .SH 書式
35 .nf
36 .BR "#define _GNU_SOURCE" "         /* feature_test_macros(7) 参照 */"
37 .B #include <stdio.h>
38 .sp
39 .B int fcloseall(void);
40 .fi
41 .SH 説明
42 .BR fcloseall ()
43 関数は、呼び出し元プロセスが開いているすべてのストリームを閉じる。
44 ストリームを閉じる前に、
45 .RB ( fflush (3)
46 と同じように) 各ストリームのバッファに溜っている出力データは書き出される。
47 入力バッファ内のデータは破棄される。
48
49 標準入出力
50 .IR stdin ,
51 .IR stdout ,
52 .I stderr
53 も閉じられる。
54 .SH 返り値
55 この関数は、すべてのファイルが正常に閉じられた場合 0 を返す。
56 エラーの場合、
57 .B EOF
58 を返す。
59 .SH 準拠
60 この関数は GNU 拡張である。
61 .SH 関連項目
62 .BR close (2),
63 .BR fclose (3),
64 .BR fflush (3),
65 .BR fopen (3),
66 .BR setbuf (3)