OSDN Git Service

(split) LDP: Release pages for LDP v3.39.
[linuxjm/LDP_man-pages.git] / release / man3 / aio_fsync.3
1 .\" Copyright (c) 2003 Andries Brouwer (aeb@cwi.nl)
2 .\"
3 .\" This is free documentation; you can redistribute it and/or
4 .\" modify it under the terms of the GNU General Public License as
5 .\" published by the Free Software Foundation; either version 2 of
6 .\" the License, or (at your option) any later version.
7 .\"
8 .\" The GNU General Public License's references to "object code"
9 .\" and "executables" are to be interpreted as the output of any
10 .\" document formatting or typesetting system, including
11 .\" intermediate and printed output.
12 .\"
13 .\" This manual is distributed in the hope that it will be useful,
14 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
15 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 .\" GNU General Public License for more details.
17 .\"
18 .\" You should have received a copy of the GNU General Public
19 .\" License along with this manual; if not, write to the Free
20 .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
21 .\" USA.
22 .\"
23 .\"*******************************************************************
24 .\"
25 .\" This file was generated with po4a. Translate the source file.
26 .\"
27 .\"*******************************************************************
28 .TH AIO_FSYNC 3 2010\-10\-02 "" "Linux Programmer's Manual"
29 .SH 名前
30 aio_fsync \- 非同期ファイルを同期させる
31 .SH 書式
32 \fB#include <aio.h>\fP
33 .sp
34 \fBint aio_fsync(int \fP\fIop\fP\fB, struct aiocb *\fP\fIaiocbp\fP\fB);\fP
35 .sp
36 \fI\-lrt\fP でリンクする。
37 .SH 説明
38 \fBaio_fsync\fP() 関数は、 \fIaiocbp\->aio_fildes\fP で関連付けられているまだ
39 完了していない全ての非同期 I/O 操作を同期させる。
40 (\fIaiocb\fP 構造体の説明は \fBaio\fP(7) を参照)
41 .LP
42 より正確に言うと、 \fIop\fP が \fBO_SYNC\fP の場合、現在キューに入れられている全て
43 の I/O 操作は、 \fBfsync\fP(2) が呼ばれたかのように完了されるだろう。 また
44 \fIop\fP が \fBO_DSYNC\fP の場合、この呼び出しは \fBfdatasync\fP(2) の非同期版となる。
45
46 この関数はリクエストを行うだけである点に注意すること。
47 I/O の完了の待ち合わせは行わない。
48 .LP
49 \fIaiocbp\fP で指される構造体のフィールドのうち、この呼び出しで \fIaio_fildes\fP
50 以外に使用されるのは \fIaio_sigevent\fP フィールド (\fIsigevent\fP 構造体、説明は
51 \fBsigevent\fP(7) 参照) のみである。このフィールドは、完了時の非同期通知に使用
52 したいタイプを示す。 その他のフィールドは無視される。
53 .SH 返り値
54 成功した場合 (同期リクエストをキューに入れるのに成功した場合)、 この関数は 0 を返す。 エラーの場合、\-1 が返され、 \fIerrno\fP
55 が適切に設定される。
56 .SH エラー
57 .TP 
58 \fBEAGAIN\fP
59 リソースが足りない。
60 .TP 
61 \fBEBADF\fP
62 \fIaio_fildes\fP が書き込みのためにオープンされた有効なファイルディスクリプタではない。
63 .TP 
64 \fBEINVAL\fP
65 このファイルでは同期 I/O がサポートされていない。
66 または \fIop\fP が \fBO_SYNC\fP でも \fBO_DSYNC\fP でもない。
67 .SH バージョン
68 The \fBaio_fsync\fP() 関数は glibc 2.1 以降で利用できる。
69 .SH 準拠
70 POSIX.1\-2001, POSIX.1\-2008.
71 .SH 関連項目
72 \fBaio_cancel\fP(3), \fBaio_error\fP(3), \fBaio_read\fP(3), \fBaio_return\fP(3),
73 \fBaio_suspend\fP(3), \fBaio_write\fP(3), \fBlio_listio\fP(3), \fBaio\fP(7),
74 \fBsigevent\fP(7)