OSDN Git Service

(split) LDP: draft snapshot generated from latest ja.po files.
[linuxjm/LDP_man-pages.git] / draft / man3 / fclose.3
index e39596b..d23c725 100644 (file)
 .\"
 .\" Converted for Linux, Mon Nov 29 15:19:14 1993, faith@cs.unc.edu
 .\"
-.\" Modified 2000-07-22 by Nicolas Lichtmaier <nick@debian.org>
+.\" Modified 2000-07-22 by Nicolás Lichtmaier <nick@debian.org>
 .\"
-.\" Japanese Version Copyright (c) 1997 YOSHINO Takashi
-.\"       all rights reserved.
-.\" Translated Mon Jan 20 18:30:47 JST 1997
-.\"       by Takashi Yoshino <tyoshino@eng.toyo.ac.jp>
-.\" Updated Mon Sep 25 01:58:44 JST 2000
-.\"       by Kentaro Shirakata <argrath@ub32.org>
-.\" Updated & Modified Tue Apr  3 20:49:00 JST 2001
-.\"         by Yuichi SATO <ysato@h4.dion.ne.jp>
-.\" Updated & Modified Mon Jan 10 08:08:29 JST 2005
-.\"         by Yuichi SATO <ysato444@yahoo.co.jp>
+.\"*******************************************************************
 .\"
-.TH FCLOSE 3  2009-02-23 "GNU" "Linux Programmer's Manual"
-.\"O .SH NAME
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH FCLOSE 3 2009\-02\-23 GNU "Linux Programmer's Manual"
 .SH 名前
-.\"O fclose \- close a stream
 fclose \- ストリームを閉じる
-.\"O .SH SYNOPSIS
 .SH 書式
-.B #include <stdio.h>
+\fB#include <stdio.h>\fP
 .sp
-.BI "int fclose(FILE *" fp );
-.\"O .SH DESCRIPTION
+\fBint fclose(FILE *\fP\fIfp\fP\fB);\fP
 .SH 説明
-.\"O The
-.\"O .BR fclose ()
-.\"O function will flushes the stream pointed to by
-.\"O .I fp
-.\"O (writing any buffered output data using
-.\"O .BR fflush (3))
-.\"O and closes the underlying file descriptor.
-.BR fclose ()
-関数は
-.I fp
-で指されるストリームを (バッファリングされていた全ての出力データを
-.BR fflush (3)
-を用いて書き込んで) フラッシュし、
-その基となるファイルディスクリプタをクローズする。
-.\"O .SH "RETURN VALUES"
+\fBfclose\fP()  関数は \fIfp\fP で指されるストリームを (バッファリングされていた全ての出力データを \fBfflush\fP(3)
+を用いて書き込んで) フラッシュし、 その基となるファイルディスクリプタをクローズする。
 .SH 返り値
-.\"O Upon successful completion 0 is returned.
-関数が正常に終了すると 0 が返される。
-.\"O Otherwise,
-.\"O .B EOF
-.\"O is returned and
-.\"O .I errno
-.\"O is set to indicate the error.
-正常に終了しなかった場合には
-.B EOF
-が返され、
-.I errno
-がエラーを示すために設定される。
-.\"O In either case any further access
-.\"O (including another call to
-.\"O .BR fclose ())
-.\"O to the stream results in undefined behavior.
-どちらの場合も、そのストリームに対する
-.RB ( fclose ()
-へのさらなる呼び出しを含む) それ以上のアクセスは
-未定義の動作を生じさせる。
-.\"O .SH ERRORS
+関数が正常に終了すると 0 が返される。 正常に終了しなかった場合には \fBEOF\fP が返され、 \fIerrno\fP がエラーを示すために設定される。
+どちらの場合も、そのストリームに対する (\fBfclose\fP()  へのさらなる呼び出しを含む) それ以上のアクセスは 未定義の動作を生じさせる。
 .SH エラー
-.TP
-.B EBADF
-.\"O The file descriptor underlying
-.\"O .I fp
-.\"O is not valid.
-.I fp
-の基となるファイルディスクリプタが不正である。
-.\"O .\"  This error cannot occur unless you are mixing ANSI C stdio operations and
-.\"O .\"  low-level file operations on the same stream. If you do get this error,
-.\"O .\"  you must have closed the stream's low-level file descriptor using
-.\"O .\"  something like close(fileno(fp)).
-.\"  同じストリームに対して ANSI C stdio の操作と低レベルファイル操作を
-.\"  取り混ぜて行わない限り、このエラーは起こらない。
-.\"  このエラーを受け取ったのは、ストリームの低レベルファイルディスクリプタを、
-.\"  close(fileno(fp)) などで、既にクローズしてしまったからに違いない。
+.TP 
+\fBEBADF\fP
+.\"  This error cannot occur unless you are mixing ANSI C stdio operations and
+.\"  low-level file operations on the same stream. If you do get this error,
+.\"  you must have closed the stream's low-level file descriptor using
+.\"  something like close(fileno(fp)).
+\fIfp\fP の基となるファイルディスクリプタが不正である。
 .PP
-.\"O The
-.\"O .BR fclose ()
-.\"O function may also fail and set
-.\"O .I errno
-.\"O for any of the errors specified for the routines
-.\"O .BR close (2),
-.\"O .BR write (2)
-.\"O or
-.\"O .BR fflush (3).
-.BR fclose ()
-関数はこれ以外にも
-.BR close (2),
-.BR write (2),
-.BR fflush (3)
-のルーチンで失敗することがある。その場合は
-.I errno
-が、失敗したルーチンで設定された値に設定される。
-.\"O .SH "CONFORMING TO"
+\fBfclose\fP()  関数はこれ以外にも \fBclose\fP(2), \fBwrite\fP(2), \fBfflush\fP(3)
+のルーチンで失敗することがある。その場合は \fIerrno\fP が、失敗したルーチンで設定された値に設定される。
 .SH 準拠
 C89, C99.
-.\"O .SH NOTES
 .SH 注意
-.\"O Note that
-.\"O .BR fclose ()
-.\"O only flushes the user space buffers provided by the
-.\"O C library.
-.\"O To ensure that the data is physically stored
-.\"O on disk the kernel buffers must be flushed too, for example, with
-.\"O .BR sync (2)
-.\"O or
-.\"O .BR fsync (2).
-.BR fclose ()
-は C ライブラリで提供されたユーザー空間バッファをフラッシュするだけで
-ある点に注意すること。
-データを確実に物理的にディスクに記録するためには
-カーネルバッファも
-.RB ( sync (2)
-や
-.BR fsync (2)
-を用いて) フラッシュしなければならない。
-.\"O .SH SEE ALSO
+\fBfclose\fP()  は C ライブラリで提供されたユーザー空間バッファをフラッシュするだけで ある点に注意すること。
+データを確実に物理的にディスクに記録するためには カーネルバッファも (\fBsync\fP(2)  や \fBfsync\fP(2)  を用いて)
+フラッシュしなければならない。
 .SH 関連項目
-.BR close (2),
-.BR fcloseall (3),
-.BR fflush (3),
-.BR fopen (3),
-.BR setbuf (3)
+\fBclose\fP(2), \fBfcloseall\fP(3), \fBfflush\fP(3), \fBfopen\fP(3), \fBsetbuf\fP(3)