tail head cat sleep
QR code linking to this page

manページ  — AIO_ERROR

名称

aio_error – 非同期入出力操作のエラー状態を取り出す (REALTIME)

内容

ライブラリ

Standard C Library (libc, -lc)

書式

#include <aio.h>

int
aio_error(const struct aiocb *iocb);

解説

aio_error() システムコールは、 iocb の指す構造体に対応する非同期入出力要求のエラー状態を返します。

戻り値

非同期入出力要求が成功した上で正常に完了している場合に aio_error() は 0 を返します。 要求がまだ完了していない場合は EINPROGRESS が返されます。 要求が失敗した上で完了している場合、 read(2), write(2), fsync(2) に記述されているようなエラー状態が返されます。 処理が失敗した場合に aio_error() -1 を返し、 errno を設定してエラー状態を示します。

エラー

aio_error() システムコールは次の場合に失敗します:
[EINVAL]
  iocb 引数が未解決の非同期 I/O 要求を参照していません。

関連項目

aio_cancel(2), aio_read(2), aio_return(2), aio_suspend(2), aio_write(2), fsync(2), read(2), write(2), aio(4) [英語]

規格

aio_error() システムコールは IEEE Std 1003.1 ("POSIX.1") に適合しています。

歴史

aio_error() システムコールは FreeBSD 3.0 ではじめて登場しました。

作者

このマニュアルページは Wes Peters <wes@softweyr.com> が作成しました。

AIO_ERROR (2) June 2, 1999

tail head cat sleep
QR code linking to this page


このマニュアルページサービスについてのご意見は Ben Bullock にお知らせください。 Privacy policy.

Our grievance is not just against Unix itself, but against the cult of Unix zealots who defend and nurture it. They take the heat, disease, and pestilence as givens, and, as ancient shamans did, display their wounds, some self-inflicted, as proof of their power and wizardry. We aim, through bluntness and humor, to show them that they pray to a tin god, and that science, not religion, is the path to useful and friendly technology.
— The Unix Haters' handbook