OSDN Git Service

435b600933393a5d5b0b93cdb0fd7f53de5d9d37
[linuxjm/LDP_man-pages.git] / draft / man3 / aio_error.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_ERROR 3 2013\-07\-04 "" "Linux Programmer's Manual"
30 .SH 名前
31 aio_error \- 非同期 I/O 操作のエラー状態を取得する
32 .SH 書式
33 \fB#include <aio.h>\fP
34 .sp
35 \fBint aio_error(const struct aiocb *\fP\fIaiocbp\fP\fB);\fP
36 .sp
37 \fI\-lrt\fP でリンクする。
38 .SH 説明
39 \fBaio_error\fP() 関数は \fIaiocbp\fP で指された制御ブロックでの非同期 I/O リクエス
40 トのエラー状態を返す。(\fIaiocb\fP 構造体の説明は \fBaio\fP(7) を参照)
41 .SH 返り値
42 この関数の返り値は以下のいずれかである。
43 .IP * 3
44 \fBEINPROGRESS\fP (リクエストがまだ完了していない場合)
45 .IP *
46 \fBECANCELED\fP (リクエストがキャンセルされた場合)
47 .IP *
48 0 (リクエストが正常に完了した場合)
49 .IP *
50 正のエラー番号 (非同期 I/O 命令が失敗した場合)。
51 同期の \fBread\fP(2), \fBwrite\fP(2), \fBfsync\fP(2), \fBfdatasync\fP(2) の呼び出しの場合で
52 \fIerrno\fP 変数に格納されるのと同じ値になる。
53 .SH エラー
54 .TP 
55 \fBEINVAL\fP
56 \fIaiocbp\fP が、まだ返り値 (return status)  (\fBaio_return\fP(3)  を参照) が取得されていない非同期 I/O
57 リクエストの制御ブロックを指していない。
58 .TP 
59 \fBENOSYS\fP
60 \fBaio_error\fP() は実装されていない。
61 .SH バージョン
62 \fBaio_error\fP() 関数は glibc 2.1 以降で利用できる。
63 .SH ATTRIBUTES
64 .SS "Multithreading (see pthreads(7))"
65 \fBaio_error\fP() 関数はスレッドセーフである。
66 .SH 準拠
67 POSIX.1\-2001, POSIX.1\-2008.
68 .SH 例
69 \fBaio\fP(7) を参照。
70 .SH 関連項目
71 \fBaio_cancel\fP(3), \fBaio_fsync\fP(3), \fBaio_read\fP(3), \fBaio_return\fP(3),
72 \fBaio_suspend\fP(3), \fBaio_write\fP(3), \fBlio_listio\fP(3), \fBaio\fP(7)
73 .SH この文書について
74 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部
75 である。プロジェクトの説明とバグ報告に関する情報は
76 http://www.kernel.org/doc/man\-pages/ に書かれている。