OSDN Git Service

(split) LDP: draft snapshot generated from latest ja.po files.
[linuxjm/LDP_man-pages.git] / draft / man3 / fpurge.3
1 .\" Copyright (C) 2001 Andries Brouwer <aeb@cwi.nl>.
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 .\"
23 .\"*******************************************************************
24 .\"
25 .\" This file was generated with po4a. Translate the source file.
26 .\"
27 .\"*******************************************************************
28 .TH FPURGE 3 2001\-12\-15 "" "Linux Programmer's Manual"
29 .SH 名前
30 fpurge, __fpurge \- ストリームを一掃 (purge) する
31 .SH 書式
32 .nf
33 /* unsupported */
34 \fB#include <stdio.h>\fP
35 .sp
36 \fBint fpurge(FILE *\fP\fIstream\fP\fB);\fP
37 .sp
38 /* supported */
39 \fB#include <stdio.h>\fP
40 .br
41 \fB#include <stdio_ext.h>\fP
42 .sp
43 \fBvoid  __fpurge(FILE *\fP\fIstream\fP\fB);\fP
44 .fi
45 .SH 説明
46 \fBfpurge\fP()  関数は、与えられたストリームのバッファをクリアする。 出力ストリームでこれを行うと、書き出されていない出力は捨てられる。
47 入力ストリームでこれを行うと、 下層にあるオブジェクトから読み込まれ \fBgetc\fP(3)  による取得を待っている入力が、すべて捨てられる。 これには
48 \fBungetc\fP(3)  によって戻されたテキストも含まれる。 \fBfflush\fP(3)  も参照のこと。
49 .LP
50 \fB__fpurge\fP()  関数も全く同じことを行うが、ただし返り値を返さない。
51 .SH 返り値
52 成功すると \fBfpurge\fP()  は 0 を返す。 エラーが起こると \-1 を返し、 \fIerrno\fP を適切な値に設定する。
53 .SH エラー
54 .TP 
55 \fBEBADF\fP
56 \fIstream\fP がオープンされていない。
57 .SH 準拠
58 これらの関数は標準ではなく、よって移植性もない。 \fBfpurge\fP()  関数は 4.4BSD で導入されたが、Linux では利用できない。
59 \fB__fpurge\fP()  関数は Solaris で導入され、glibc 2.1.95 以降には存在している。
60 .SH 注意
61 通常は入力バッファを捨てようとするのは間違っている。
62 .SH 関連項目
63 .\" .BR fclean (3),
64 \fBfflush\fP(3), \fBsetbuf\fP(3), \fBstdio_ext\fP(3)