OSDN Git Service

(split) LDP v3.30, v3.31 の定型的な変更内容を反映。
[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)