OSDN Git Service

25c4bc3466b995ae7dff8774f24f2818bf7459ba
[linuxjm/LDP_man-pages.git] / draft / 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 .\"O .SH NAME
33 .SH 名前
34 .\"O fcloseall \- close all open streams
35 fcloseall \- 開いているすべてのストリームを閉じる
36 .\"O .SH SYNOPSIS
37 .SH 書式
38 .nf
39 .\"O .BR "#define _GNU_SOURCE" "         /* See feature_test_macros(7) */"
40 .BR "#define _GNU_SOURCE" "         /* feature_test_macros(7) 参照 */"
41 .B #include <stdio.h>
42 .sp
43 .B int fcloseall(void);
44 .fi
45 .\"O .SH DESCRIPTION
46 .SH 説明
47 .\"O The
48 .\"O .BR fcloseall ()
49 .\"O function closes all of the calling process's open streams.
50 .\"O Buffered output for each stream is written before it is closed
51 .\"O (as for
52 .\"O .BR fflush (3));
53 .\"O buffered input is discarded.
54 .BR fcloseall ()
55 関数は、呼び出し元プロセスが開いているすべてのストリームを閉じる。
56 ストリームを閉じる前に、
57 .RB ( fflush (3)
58 と同じように) 各ストリームのバッファに溜っている出力データは書き出される。
59 入力バッファ内のデータは破棄される。
60
61 .\"O The standard streams,
62 .\"O .IR stdin ,
63 .\"O .IR stdout ,
64 .\"O and
65 .\"O .I stderr
66 .\"O are also closed.
67 標準入出力
68 .IR stdin ,
69 .IR stdout ,
70 .I stderr
71 も閉じられる。
72 .\"O .SH "RETURN VALUES"
73 .SH 返り値
74 .\"O This function returns 0 if all files were successfully closed;
75 .\"O on error,
76 .\"O .B EOF
77 .\"O is returned.
78 この関数は、すべてのファイルが正常に閉じられた場合 0 を返す。
79 エラーの場合、
80 .B EOF
81 を返す。
82 .\"O .SH "CONFORMING TO"
83 .SH 準拠
84 .\"O This function is a GNU extension.
85 この関数は GNU 拡張である。
86 .\"O .SH "SEE ALSO"
87 .SH 関連項目
88 .BR close (2),
89 .BR fclose (3),
90 .BR fflush (3),
91 .BR fopen (3),
92 .BR setbuf (3)