aio_error
Section: C Library Functions (3)
Updated: 2026-02-08
Index
JM Home Page
roff page
名前
aio_error - 非同期 I/O 操作のエラー状態を取得する
ライブラリ
リアルタイムライブラリ (librt,~-lrt)
書式
#include <aio.h>
int aio_error(const struct aiocb *aiocbp);
説明
aio_error() 関数は aiocbp で指された制御ブロックでの非同期 I/O リクエス
トのエラー状態を返す。(aiocb 構造体の説明は aio(7) を参照)
返り値
この関数の返り値は以下のいずれかである。
- EINPROGRESS
-
if the request has not been completed yet.
- ECANCELED
-
if the request was canceled.
- 0
-
if the request completed successfully.
- > 0
-
正のエラー番号 (非同期 I/O 命令が失敗した場合)。
同期の read(2), write(2), fsync(2), fdatasync(2) の呼び出しの場合で
errno 変数に格納されるのと同じ値になる。
エラー
- EINVAL
-
aiocbp が、まだ返り値 (return status) (aio_return(3) を参照) が取得されていない非同期 I/O
リクエストの制御ブロックを指していない。
- ENOSYS
-
aio_error() は実装されていない。
属性
この節で使用されている用語の説明については、 attributes(7) を参照。
| インターフェース | 属性 | 値
|
|
aio_error()
| Thread safety | MT-Safe
|
標準規格
POSIX.1-2008.
歴史
glibc 2.1. POSIX.1-2001.
例
aio(7) を参照。
関連項目
aio_cancel(3), aio_fsync(3), aio_read(3), aio_return(3),
aio_suspend(3), aio_write(3), lio_listio(3), aio(7)
Index
- 名前
-
- ライブラリ
-
- 書式
-
- 説明
-
- 返り値
-
- エラー
-
- 属性
-
- 標準規格
-
- 歴史
-
- 例
-
- 関連項目
-
This document was created by
man2html,
using the manual pages.