OSDN Git Service

(split) LDP: Update draft pages
[linuxjm/LDP_man-pages.git] / draft / man3 / aio_return.3
1 .\" Copyright (c) 2003 Andries Brouwer (aeb@cwi.nl)
2 .\"
3 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
8 .\"
9 .\" The GNU General Public License's references to "object code"
10 .\" and "executables" are to be interpreted as the output of any
11 .\" document formatting or typesetting system, including
12 .\" intermediate and printed output.
13 .\"
14 .\" This manual is distributed in the hope that it will be useful,
15 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
16 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 .\" GNU General Public License for more details.
18 .\"
19 .\" You should have received a copy of the GNU General Public
20 .\" License along with this manual; if not, see
21 .\" <http://www.gnu.org/licenses/>.
22 .\" %%%LICENSE_END
23 .\"
24 .\"*******************************************************************
25 .\"
26 .\" This file was generated with po4a. Translate the source file.
27 .\"
28 .\"*******************************************************************
29 .TH AIO_RETURN 3 2013\-07\-04 "" "Linux Programmer's Manual"
30 .SH 名前
31 aio_return \- 非同期 I/O 操作の返り値 (return status) を取得する
32 .SH 書式
33 \fB#include <aio.h>\fP
34 .sp
35 \fBssize_t aio_return(struct aiocb *\fP\fIaiocbp\fP\fB);\fP
36 .sp
37 \fI\-lrt\fP でリンクする。
38 .SH 説明
39 \fBaio_return\fP() 関数は \fIaiocbp\fP で指された制御ブロックにおける非同期 I/O
40 リクエストの最終的な返り値を返す。
41 (\fIaiocb\fP 構造体の説明は \fBaio\fP(7) を参照)
42 .LP
43 この関数は、 \fBaio_error\fP(3)  が \fBEINPROGRESS\fP 以外を返した後で、 与えられたリクエストに対して 1
44 回だけ呼ばれるべきである。
45 .SH 返り値
46 非同期 I/O 操作が完了した場合、この関数は、同期呼び出し \fBread\fP(2),
47 \fBwrite\fP(2), \fBfsync\fP(2), \fBfdatasync\fP(2) が返すのと同じ値を返す。
48
49 非同期 I/O 操作が完了していない場合、
50 \fBaio_return\fP() の返り値とその影響は不定である。
51 .SH エラー
52 .TP 
53 \fBEINVAL\fP
54 \fIaiocbp\fP が、返り値がまだ取得されていない非同期 I/O リクエストの 制御ブロックを指していない。
55 .TP 
56 \fBENOSYS\fP
57 \fBaio_return\fP() は実装されていない。
58 .SH バージョン
59 The \fBaio_return\fP() 関数は glibc 2.1 以降で利用できる。
60 .SH 属性
61 .SS "マルチスレッディング (pthreads(7) 参照)"
62 The \fBaio_return\fP() 関数はスレッドセーフである。
63 .SH 準拠
64 POSIX.1\-2001, POSIX.1\-2008.
65 .SH 例
66 \fBaio\fP(7) を参照。
67 .SH 関連項目
68 \fBaio_cancel\fP(3), \fBaio_error\fP(3), \fBaio_fsync\fP(3), \fBaio_read\fP(3),
69 \fBaio_suspend\fP(3), \fBaio_write\fP(3), \fBlio_listio\fP(3), \fBaio\fP(7)
70 .SH この文書について
71 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部
72 である。プロジェクトの説明とバグ報告に関する情報は
73 http://www.kernel.org/doc/man\-pages/ に書かれている。