OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / release / man3 / fclose.3
1 .\" Copyright (c) 1990, 1991 The Regents of the University of California.
2 .\" All rights reserved.
3 .\"
4 .\" This code is derived from software contributed to Berkeley by
5 .\" Chris Torek and the American National Standards Committee X3,
6 .\" on Information Processing Systems.
7 .\"
8 .\" Redistribution and use in source and binary forms, with or without
9 .\" modification, are permitted provided that the following conditions
10 .\" are met:
11 .\" 1. Redistributions of source code must retain the above copyright
12 .\"    notice, this list of conditions and the following disclaimer.
13 .\" 2. Redistributions in binary form must reproduce the above copyright
14 .\"    notice, this list of conditions and the following disclaimer in the
15 .\"    documentation and/or other materials provided with the distribution.
16 .\" 3. All advertising materials mentioning features or use of this software
17 .\"    must display the following acknowledgement:
18 .\"     This product includes software developed by the University of
19 .\"     California, Berkeley and its contributors.
20 .\" 4. Neither the name of the University nor the names of its contributors
21 .\"    may be used to endorse or promote products derived from this software
22 .\"    without specific prior written permission.
23 .\"
24 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
25 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
28 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 .\" SUCH DAMAGE.
35 .\"
36 .\"     @(#)fclose.3    6.7 (Berkeley) 6/29/91
37 .\"
38 .\" Converted for Linux, Mon Nov 29 15:19:14 1993, faith@cs.unc.edu
39 .\"
40 .\" Modified 2000-07-22 by Nicolas Lichtmaier <nick@debian.org>
41 .\"
42 .\" Japanese Version Copyright (c) 1997 YOSHINO Takashi
43 .\"       all rights reserved.
44 .\" Translated Mon Jan 20 18:30:47 JST 1997
45 .\"       by Takashi Yoshino <tyoshino@eng.toyo.ac.jp>
46 .\" Updated Mon Sep 25 01:58:44 JST 2000
47 .\"       by Kentaro Shirakata <argrath@ub32.org>
48 .\" Updated & Modified Tue Apr  3 20:49:00 JST 2001
49 .\"         by Yuichi SATO <ysato@h4.dion.ne.jp>
50 .\" Updated & Modified Mon Jan 10 08:08:29 JST 2005
51 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
52 .\"
53 .TH FCLOSE 3  2009-02-23 "GNU" "Linux Programmer's Manual"
54 .SH Ì¾Á°
55 fclose \- ¥¹¥È¥ê¡¼¥à¤òÊĤ¸¤ë
56 .SH ½ñ¼°
57 .B #include <stdio.h>
58 .sp
59 .BI "int fclose(FILE *" fp );
60 .SH ÀâÌÀ
61 .BR fclose ()
62 ´Ø¿ô¤Ï
63 .I fp
64 ¤Ç»Ø¤µ¤ì¤ë¥¹¥È¥ê¡¼¥à¤ò (¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤µ¤ì¤Æ¤¤¤¿Á´¤Æ¤Î½ÐÎϥǡ¼¥¿¤ò
65 .BR fflush (3)
66 ¤òÍѤ¤¤Æ½ñ¤­¹þ¤ó¤Ç) ¥Õ¥é¥Ã¥·¥å¤·¡¢
67 ¤½¤Î´ð¤È¤Ê¤ë¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤ò¥¯¥í¡¼¥º¤¹¤ë¡£
68 .SH ÊÖ¤êÃÍ
69 ´Ø¿ô¤¬Àµ¾ï¤Ë½ªÎ»¤¹¤ë¤È 0 ¤¬ÊÖ¤µ¤ì¤ë¡£
70 Àµ¾ï¤Ë½ªÎ»¤·¤Ê¤«¤Ã¤¿¾ì¹ç¤Ë¤Ï
71 .B EOF
72 ¤¬ÊÖ¤µ¤ì¡¢
73 .I errno
74 ¤¬¥¨¥é¡¼¤ò¼¨¤¹¤¿¤á¤ËÀßÄꤵ¤ì¤ë¡£
75 ¤É¤Á¤é¤Î¾ì¹ç¤â¡¢¤½¤Î¥¹¥È¥ê¡¼¥à¤ËÂФ¹¤ë
76 .RB ( fclose ()
77 ¤Ø¤Î¤µ¤é¤Ê¤ë¸Æ¤Ó½Ð¤·¤ò´Þ¤à) ¤½¤ì°Ê¾å¤Î¥¢¥¯¥»¥¹¤Ï
78 ̤ÄêµÁ¤ÎÆ°ºî¤òÀ¸¤¸¤µ¤»¤ë¡£
79 .SH ¥¨¥é¡¼
80 .TP
81 .B EBADF
82 .I fp
83 ¤Î´ð¤È¤Ê¤ë¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤¬ÉÔÀµ¤Ç¤¢¤ë¡£
84 .\"  Æ±¤¸¥¹¥È¥ê¡¼¥à¤ËÂФ·¤Æ ANSI C stdio ¤ÎÁàºî¤ÈÄã¥ì¥Ù¥ë¥Õ¥¡¥¤¥ëÁàºî¤ò
85 .\"  ¼è¤êº®¤¼¤Æ¹Ô¤ï¤Ê¤¤¸Â¤ê¡¢¤³¤Î¥¨¥é¡¼¤Ïµ¯¤³¤é¤Ê¤¤¡£
86 .\"  ¤³¤Î¥¨¥é¡¼¤ò¼õ¤±¼è¤Ã¤¿¤Î¤Ï¡¢¥¹¥È¥ê¡¼¥à¤ÎÄã¥ì¥Ù¥ë¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤ò¡¢
87 .\"  close(fileno(fp)) ¤Ê¤É¤Ç¡¢´û¤Ë¥¯¥í¡¼¥º¤·¤Æ¤·¤Þ¤Ã¤¿¤«¤é¤Ë°ã¤¤¤Ê¤¤¡£
88 .PP
89 .BR fclose ()
90 ´Ø¿ô¤Ï¤³¤ì°Ê³°¤Ë¤â
91 .BR close (2),
92 .BR write (2),
93 .BR fflush (3)
94 ¤Î¥ë¡¼¥Á¥ó¤Ç¼ºÇÔ¤¹¤ë¤³¤È¤¬¤¢¤ë¡£¤½¤Î¾ì¹ç¤Ï
95 .I errno
96 ¤¬¡¢¼ºÇÔ¤·¤¿¥ë¡¼¥Á¥ó¤ÇÀßÄꤵ¤ì¤¿ÃͤËÀßÄꤵ¤ì¤ë¡£
97 .SH ½àµò
98 C89, C99.
99 .SH Ãí°Õ
100 .BR fclose ()
101 ¤Ï C ¥é¥¤¥Ö¥é¥ê¤ÇÄ󶡤µ¤ì¤¿¥æ¡¼¥¶¡¼¶õ´Ö¥Ð¥Ã¥Õ¥¡¤ò¥Õ¥é¥Ã¥·¥å¤¹¤ë¤À¤±¤Ç
102 ¤¢¤ëÅÀ¤ËÃí°Õ¤¹¤ë¤³¤È¡£
103 ¥Ç¡¼¥¿¤ò³Î¼Â¤ËʪÍýŪ¤Ë¥Ç¥£¥¹¥¯¤Ëµ­Ï¿¤¹¤ë¤¿¤á¤Ë¤Ï
104 ¥«¡¼¥Í¥ë¥Ð¥Ã¥Õ¥¡¤â
105 .RB ( sync (2)
106 ¤ä
107 .BR fsync (2)
108 ¤òÍѤ¤¤Æ) ¥Õ¥é¥Ã¥·¥å¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
109 .SH ´ØÏ¢¹àÌÜ
110 .BR close (2),
111 .BR fcloseall (3),
112 .BR fflush (3),
113 .BR fopen (3),
114 .BR setbuf (3)