1 .\" Copyright (c) 2003 Andries Brouwer (aeb@cwi.nl)
3 .\" This is free documentation; you can redistribute it and/or
4 .\" modify it under the terms of the GNU General Public License as
5 .\" published by the Free Software Foundation; either version 2 of
6 .\" the License, or (at your option) any later version.
8 .\" The GNU General Public License's references to "object code"
9 .\" and "executables" are to be interpreted as the output of any
10 .\" document formatting or typesetting system, including
11 .\" intermediate and printed output.
13 .\" This manual is distributed in the hope that it will be useful,
14 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
15 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 .\" GNU General Public License for more details.
18 .\" You should have received a copy of the GNU General Public
19 .\" License along with this manual; if not, write to the Free
20 .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
23 .\" Japanese Version Copyright (c) 2004 Yuichi SATO
24 .\" all rights reserved.
25 .\" Translated Sat Jul 10 03:18:23 JST 2004
26 .\" by Yuichi SATO <ysato444@yahoo.co.jp>
28 .TH AIO_SUSPEND 3 2003-11-14 "" "Linux Programmer's Manual"
31 .\"O aio_suspend \- wait for asynchronous I/O operation or timeout
32 aio_suspend \- 非同期 I/O 操作またはタイムアウトを待つ
39 .BI "int aio_suspend(const struct aiocb * const " cblist [],
41 .BI " int " n ", const struct timespec *" timeout );
43 .\"O Link with \fI\-lrt\fP.
49 .\"O .BR aio_suspend ()
50 .\"O function suspends the calling process until at least one of the
51 .\"O asynchronous I/O requests in the list
55 .\"O have completed, a signal is delivered, or
57 .\"O is not NULL and the time interval it indicates has passed.
63 に含まれる非同期 I/O リクエストのうち少なくとも 1 つが完了するか、
66 が NULL でなく、かつその時間が過ぎるまで、
67 呼び出したプロセスを停止 (suspend) する。
69 .\"O Each item in the list must either be NULL (and then is ignored),
70 .\"O or a pointer to a control block on which I/O was initiated using
71 .\"O .BR aio_read (3),
72 .\"O .BR aio_write (3),
74 .\"O .BR lio_listio (3).
75 リストの各アイテムは、NULL (これは無視される) か、
79 を使って I/O が開始された制御ブロックへのポインタでなければならない。
82 .\"O .B CLOCK_MONOTONIC
83 .\"O is supported, this clock is used to measure
84 .\"O the timeout interval.
87 このクロックを使ってタイムアウトの間隔が計測される。
88 .\"O .SH "RETURN VALUE"
90 .\"O If this function returns after completion of one of the indicated
91 .\"O requests, it returns 0.
92 .\"O Otherwise it returns \-1 and sets
95 指示されたリクエストの 1 つが完了した後にこの関数が返る場合は、0 を返す。
103 .\"O The call was ended by timeout, before any of the indicated operations
106 この呼び出しがタイムアウトによって終了させられた。
109 .\"O The call was ended by signal; see
111 .\"O (Possibly the completion signal of one of the operations we were
113 この呼び出しがシグナルによって終了させられた。
116 (このシグナルは、完了を待っていた操作のいずれかの完了シグナルの可能性もある。)
117 .\"O .SH "CONFORMING TO"
122 .\"O One can achieve polling by using a non-NULL
124 .\"O that specifies a zero time interval.
125 時間間隔が 0 であることを指定する NULL ではない