aio_return
Section: C Library Functions (3)
Updated: 2026-02-08
Index
JM Home Page
roff page
名前
aio_return - 非同期 I/O 操作の返り値 (return status) を取得する
ライブラリ
リアルタイムライブラリ (librt,~-lrt)
書式
#include <aio.h>
ssize_t aio_return(struct aiocb *aiocbp);
説明
aio_return() 関数は aiocbp で指された制御ブロックにおける非同期 I/O
リクエストの最終的な返り値を返す。
(aiocb 構造体の説明は aio(7) を参照)
この関数は、 aio_error(3) が EINPROGRESS 以外を返した後で、 与えられたリクエストに対して 1
回だけ呼ばれるべきである。
返り値
If the asynchronous I/O operation has completed, this function returns the
value that would have been returned in case of a synchronous read(2),
write(2), fsync(2), or fdatasync(2), call. On error, -1 is
returned, and errno is set to indicate the error.
非同期 I/O 操作が完了していない場合、
aio_return() の返り値とその影響は不定である。
エラー
- EINVAL
-
aiocbp が、返り値がまだ取得されていない非同期 I/O リクエストの 制御ブロックを指していない。
- ENOSYS
-
aio_return() は実装されていない。
属性
この節で使用されている用語の説明については、 attributes(7) を参照。
| インターフェース | 属性 | 値
|
|
aio_return()
| Thread safety | MT-Safe
|
標準規格
POSIX.1-2008.
歴史
glibc 2.1. POSIX.1-2001.
例
aio(7) を参照。
関連項目
aio_cancel(3), aio_error(3), aio_fsync(3), aio_read(3),
aio_suspend(3), aio_write(3), lio_listio(3), aio(7)
Index
- 名前
-
- ライブラリ
-
- 書式
-
- 説明
-
- 返り値
-
- エラー
-
- 属性
-
- 標準規格
-
- 歴史
-
- 例
-
- 関連項目
-
This document was created by
man2html,
using the manual pages.