.\" 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 Sat Jul 3 05:28:09 JST 2004 .\" by Yuichi SATO .\" Updated 2012-04-30, Akihiro MOTOKI .\" Updated 2012-05-29, Akihiro MOTOKI .\" .TH AIO_ERROR 3 2013\-07\-04 "" "Linux Programmer's Manual" .SH 名前 aio_error \- 非同期 I/O 操作のエラー状態を取得する .SH 書式 \fB#include \fP .sp \fBint aio_error(const struct aiocb *\fP\fIaiocbp\fP\fB);\fP .sp \fI\-lrt\fP でリンクする。 .SH 説明 \fBaio_error\fP() 関数は \fIaiocbp\fP で指された制御ブロックでの非同期 I/O リクエス トのエラー状態を返す。(\fIaiocb\fP 構造体の説明は \fBaio\fP(7) を参照) .SH 返り値 この関数の返り値は以下のいずれかである。 .IP * 3 \fBEINPROGRESS\fP (リクエストがまだ完了していない場合) .IP * \fBECANCELED\fP (リクエストがキャンセルされた場合) .IP * 0 (リクエストが正常に完了した場合) .IP * 正のエラー番号 (非同期 I/O 命令が失敗した場合)。 同期の \fBread\fP(2), \fBwrite\fP(2), \fBfsync\fP(2), \fBfdatasync\fP(2) の呼び出しの場合で \fIerrno\fP 変数に格納されるのと同じ値になる。 .SH エラー .TP \fBEINVAL\fP \fIaiocbp\fP が、まだ返り値 (return status) (\fBaio_return\fP(3) を参照) が取得されていない非同期 I/O リクエストの制御ブロックを指していない。 .TP \fBENOSYS\fP \fBaio_error\fP() は実装されていない。 .SH バージョン \fBaio_error\fP() 関数は glibc 2.1 以降で利用できる。 .SH 属性 .SS "マルチスレッディング (pthreads(7) 参照)" \fBaio_error\fP() 関数はスレッドセーフである。 .SH 準拠 POSIX.1\-2001, POSIX.1\-2008. .SH 例 \fBaio\fP(7) を参照。 .SH 関連項目 \fBaio_cancel\fP(3), \fBaio_fsync\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) .SH この文書について この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部 である。プロジェクトの説明とバグ報告に関する情報は http://www.kernel.org/doc/man\-pages/ に書かれている。