OSDN Git Service

29cea476793042419ad15a04d9333511ce07f1fa
[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 .B #define _GNU_SOURCE
40 .B #include <stdio.h>
41 .sp
42 .B int fcloseall(void);
43 .fi
44 .\"O .SH DESCRIPTION
45 .SH ÀâÌÀ
46 .\"O The
47 .\"O .BR fcloseall ()
48 .\"O function closes all of the calling process's open streams.
49 .\"O Buffered output for each stream is written before it is closed
50 .\"O (as for
51 .\"O .BR fflush (3));
52 .\"O buffered input is discarded.
53 .BR fcloseall ()
54 ´Ø¿ô¤Ï¡¢¸Æ¤Ó½Ð¤·¸µ¥×¥í¥»¥¹¤¬³«¤¤¤Æ¤¤¤ë¤¹¤Ù¤Æ¤Î¥¹¥È¥ê¡¼¥à¤òÊĤ¸¤ë¡£
55 ¥¹¥È¥ê¡¼¥à¤òÊĤ¸¤ëÁ°¤Ë¡¢
56 .RB ( fflush (3)
57 ¤ÈƱ¤¸¤è¤¦¤Ë) ³Æ¥¹¥È¥ê¡¼¥à¤Î¥Ð¥Ã¥Õ¥¡¤Ëί¤Ã¤Æ¤¤¤ë½ÐÎϥǡ¼¥¿¤Ï½ñ¤­½Ð¤µ¤ì¤ë¡£
58 ÆþÎϥХåե¡Æâ¤Î¥Ç¡¼¥¿¤ÏÇË´þ¤µ¤ì¤ë¡£
59
60 .\"O The standard streams,
61 .\"O .IR stdin ,
62 .\"O .IR stdout ,
63 .\"O and
64 .\"O .I stderr
65 .\"O are also closed.
66 ɸ½àÆþ½ÐÎÏ
67 .IR stdin ,
68 .IR stdout ,
69 .I stderr
70 ¤âÊĤ¸¤é¤ì¤ë¡£
71 .\"O .SH "RETURN VALUES"
72 .SH ÊÖ¤êÃÍ
73 .\"O This function returns 0 if all files were successfully closed;
74 .\"O on error,
75 .\"O .B EOF
76 .\"O is returned.
77 ¤³¤Î´Ø¿ô¤Ï¡¢¤¹¤Ù¤Æ¤Î¥Õ¥¡¥¤¥ë¤¬Àµ¾ï¤ËÊĤ¸¤é¤ì¤¿¾ì¹ç 0 ¤òÊÖ¤¹¡£
78 ¥¨¥é¡¼¤Î¾ì¹ç¡¢
79 .B EOF
80 ¤òÊÖ¤¹¡£
81 .\"O .SH "CONFORMING TO"
82 .SH ½àµò
83 .\"O This function is a GNU extension.
84 ¤³¤Î´Ø¿ô¤Ï GNU ³ÈÄ¥¤Ç¤¢¤ë¡£
85 .\"O .SH "SEE ALSO"
86 .SH ´ØÏ¢¹àÌÜ
87 .BR close (2),
88 .BR fclose (3),
89 .BR fflush (3),
90 .BR fopen (3),
91 .BR setbuf (3),
92 .BR feature_test_macros (7)