OSDN Git Service

(split) LDP: Update the version to 3.53 in PO files
[linuxjm/LDP_man-pages.git] / draft / man3 / fpurge.3
1 .\" Copyright (C) 2001 Andries Brouwer <aeb@cwi.nl>.
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
24 .\"
25 .\"*******************************************************************
26 .\"
27 .\" This file was generated with po4a. Translate the source file.
28 .\"
29 .\"*******************************************************************
30 .TH FPURGE 3 2001\-12\-15 "" "Linux Programmer's Manual"
31 .SH 名前
32 fpurge, __fpurge \- ストリームを一掃 (purge) する
33 .SH 書式
34 .nf
35 /* unsupported */
36 \fB#include <stdio.h>\fP
37 .sp
38 \fBint fpurge(FILE *\fP\fIstream\fP\fB);\fP
39 .sp
40 /* supported */
41 \fB#include <stdio.h>\fP
42 .br
43 \fB#include <stdio_ext.h>\fP
44 .sp
45 \fBvoid  __fpurge(FILE *\fP\fIstream\fP\fB);\fP
46 .fi
47 .SH 説明
48 \fBfpurge\fP()  関数は、与えられたストリームのバッファをクリアする。 出力ストリームでこれを行うと、書き出されていない出力は捨てられる。
49 入力ストリームでこれを行うと、 下層にあるオブジェクトから読み込まれ \fBgetc\fP(3)  による取得を待っている入力が、すべて捨てられる。 これには
50 \fBungetc\fP(3)  によって戻されたテキストも含まれる。 \fBfflush\fP(3)  も参照のこと。
51 .LP
52 \fB__fpurge\fP()  関数も全く同じことを行うが、ただし返り値を返さない。
53 .SH 返り値
54 成功すると \fBfpurge\fP()  は 0 を返す。 エラーが起こると \-1 を返し、 \fIerrno\fP を適切な値に設定する。
55 .SH エラー
56 .TP 
57 \fBEBADF\fP
58 \fIstream\fP がオープンされていない。
59 .SH 準拠
60 これらの関数は標準ではなく、よって移植性もない。 \fBfpurge\fP()  関数は 4.4BSD で導入されたが、Linux では利用できない。
61 \fB__fpurge\fP()  関数は Solaris で導入され、glibc 2.1.95 以降には存在している。
62 .SH 注意
63 通常は入力バッファを捨てようとするのは間違っている。
64 .SH 関連項目
65 .\" .BR fclean (3),
66 \fBfflush\fP(3), \fBsetbuf\fP(3), \fBstdio_ext\fP(3)
67 .SH この文書について
68 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
69 である。プロジェクトの説明とバグ報告に関する情報は
70 http://www.kernel.org/doc/man\-pages/ に書かれている。