.\" Copyright (c) 2003 Andries Brouwer (aeb@cwi.nl) .\" .\" %%%LICENSE_START(GPLv2+_DOC_FULL) .\" This is free documentation; you can redistribute it and/or .\" modify it under the terms of the GNU General Public License as .\" published by the Free Software Foundation; either version 2 of .\" the License, or (at your option) any later version. .\" .\" The GNU General Public License's references to "object code" .\" and "executables" are to be interpreted as the output of any .\" document formatting or typesetting system, including .\" intermediate and printed output. .\" .\" This manual is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public .\" License along with this manual; if not, see .\" . .\" %%%LICENSE_END .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .\" .\" Japanese Version Copyright (c) 2004 Yuichi SATO .\" all rights reserved. .\" Translated Sun Jul 4 17:20:13 JST 2004 .\" by Yuichi SATO .\" Updated 2012-04-30, Akihiro MOTOKI .\" Updated 2012-05-29, Akihiro MOTOKI .\" .TH AIO_FSYNC 3 2017\-09\-15 "" "Linux Programmer's Manual" .SH 名前 aio_fsync \- 非同期ファイルを同期させる .SH 書式 \fB#include \fP .PP \fBint aio_fsync(int \fP\fIop\fP\fB, struct aiocb *\fP\fIaiocbp\fP\fB);\fP .PP \fI\-lrt\fP でリンクする。 .SH 説明 \fBaio_fsync\fP() 関数は、 \fIaiocbp\->aio_fildes\fP で関連付けられているまだ 完了していない全ての非同期 I/O 操作を同期させる。 (\fIaiocb\fP 構造体の説明は \fBaio\fP(7) を参照) .PP より正確に言うと、 \fIop\fP が \fBO_SYNC\fP の場合、現在キューに入れられている全て の I/O 操作は、 \fBfsync\fP(2) が呼ばれたかのように完了されるだろう。 また \fIop\fP が \fBO_DSYNC\fP の場合、この呼び出しは \fBfdatasync\fP(2) の非同期版となる。 .PP この関数はリクエストを行うだけである点に注意すること。 I/O の完了の待ち合わせは行わない。 .PP \fIaiocbp\fP で指される構造体のフィールドのうち、この呼び出しで \fIaio_fildes\fP 以外に使用されるのは \fIaio_sigevent\fP フィールド (\fIsigevent\fP 構造体、説明は \fBsigevent\fP(7) 参照) のみである。このフィールドは、完了時の非同期通知に使用 したいタイプを示す。 その他のフィールドは無視される。 .SH 返り値 成功した場合 (同期リクエストをキューに入れるのに成功した場合)、 この関数は 0 を返す。 エラーの場合、\-1 が返され、 \fIerrno\fP が適切に設定される。 .SH エラー .TP \fBEAGAIN\fP リソースが足りない。 .TP \fBEBADF\fP \fIaio_fildes\fP が書き込みのためにオープンされた有効なファイルディスクリプターではない。 .TP \fBEINVAL\fP このファイルでは同期 I/O がサポートされていない。 または \fIop\fP が \fBO_SYNC\fP でも \fBO_DSYNC\fP でもない。 .TP \fBENOSYS\fP \fBaio_fsync\fP() は実装されていない。 .SH バージョン The \fBaio_fsync\fP() 関数は glibc 2.1 以降で利用できる。 .SH 属性 この節で使用されている用語の説明については、 \fBattributes\fP(7) を参照。 .TS allbox; lb lb lb l l l. インターフェース 属性 値 T{ \fBaio_fsync\fP() T} Thread safety MT\-Safe .TE .SH 準拠 POSIX.1\-2001, POSIX.1\-2008. .SH 関連項目 \fBaio_cancel\fP(3), \fBaio_error\fP(3), \fBaio_read\fP(3), \fBaio_return\fP(3), \fBaio_suspend\fP(3), \fBaio_write\fP(3), \fBlio_listio\fP(3), \fBaio\fP(7), \fBsigevent\fP(7) .SH この文書について この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 5.10 の一部である。プロジェクトの説明とバグ報告に関する情報は \%https://www.kernel.org/doc/man\-pages/ に書かれている。