fcloseallのヘルプ・マニュアル
日本語 英語
fcloseall --help
man fcloseall
FCLOSEALL(3) Linux Programmer’s Manual FCLOSEALL(3)
名前
fcloseall - 開いているすべてのストリームを閉じる
書式
#define _GNU_SOURCE
#include
int fcloseall(void);
説明
fcloseall() 関数は、呼び出し元プロセスが開いているすべてのストリームを
閉じる。ストリームを閉じる前に、 (fflush(3) と同じように) 各ストリー ム
の バッファに溜っている出力データは書き出される。入力バッファ内のデータ
は破棄される。
標準入出力 stdin, stdout, stderr も閉じられる。
返り値
この関数は、すべてのファイルが正常に閉じられた場合 0 を返す。エラーの場
合、 EOF を返す。
準拠
この関数は GNU 拡張である。
関連項目
close(2), fclose(3), fflush(3), fopen(3), setbuf(3), fea-
ture_test_macros(7)
GNU 2006-12-27 FCLOSEALL(3)
FCLOSEALL(3) Linux Programmer’s Manual FCLOSEALL(3)
NAME
fcloseall - close all open streams
SYNOPSIS
#define _GNU_SOURCE
#include
int fcloseall(void);
DESCRIPTION
The fcloseall() function closes all of the calling process’s open
streams. Buffered output for each stream is written before it is
closed (as for fflush(3)); buffered input is discarded.
The standard streams, stdin, stdout, and stderr are also closed.
RETURN VALUE
This function returns 0 if all files were successfully closed; on
error, EOF is returned.
CONFORMING TO
This function is a GNU extension.
SEE ALSO
close(2), fclose(3), fflush(3), fopen(3), setbuf(3), fea-
ture_test_macros(7)
COLOPHON
This page is part of release 3.22 of the Linux man-pages project. A
description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
GNU 2006-12-27 FCLOSEALL(3)