1 .\" $NetBSD: aio_suspend.3,v 1.2 2007/05/05 19:16:01 ad Exp $
3 .\" Copyright (c) 1999 Softweyr LLC.
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
15 .\" THIS SOFTWARE IS PROVIDED BY Softweyr LLC AND CONTRIBUTORS ``AS IS'' AND
16 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 .\" ARE DISCLAIMED. IN NO EVENT SHALL Softweyr LLC OR CONTRIBUTORS BE LIABLE
19 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 .\" $FreeBSD: /repoman/r/ncvs/src/lib/libc/sys/aio_suspend.2,v 1.22 2004/12/23 23:45:25 keramida Exp $
34 .Nd suspend until asynchronous I/O operations or timeout complete (REALTIME)
40 .Fn aio_suspend "const struct aiocb * const list[]" "int nent" "const struct timespec * timeout"
44 system call suspends the calling process until at least one of the
45 specified asynchronous I/O requests have completed, a signal is
55 pointers to asynchronous I/O requests.
56 Array members containing
57 null pointers will be silently ignored.
61 is not a null pointer, it specifies a maximum interval to suspend.
64 is a null pointer, the suspend blocks indefinitely.
68 should point to a zero-value timespec structure.
70 If one or more of the specified asynchronous I/O requests have
74 Otherwise it returns \-1 and sets
76 to indicate the error, as enumerated below.
80 system call will fail if:
85 expired before any I/O requests completed.
87 The suspend was interrupted by a signal.
94 asynchronous I/O requests, or at least one of the requests is not
106 is expected to conform to the
112 system call first appeared in