aio_write.2 (108028) | aio_write.2 (108087) |
---|---|
1.\" Copyright (c) 1999 Softweyr LLC. 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23.\" SUCH DAMAGE. 24.\" | 1.\" Copyright (c) 1999 Softweyr LLC. 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23.\" SUCH DAMAGE. 24.\" |
25.\" $FreeBSD: head/lib/libc/sys/aio_write.2 108028 2002-12-18 09:22:32Z ru $ | 25.\" $FreeBSD: head/lib/libc/sys/aio_write.2 108087 2002-12-19 09:40:28Z ru $ |
26.\" 27.Dd June 2, 1999 28.Dt AIO_WRITE 2 29.Os 30.Sh NAME 31.Nm aio_write 32.Nd asynchronous write to a file (REALTIME) 33.Sh LIBRARY --- 100 unchanged lines hidden (view full) --- 134system call must be called, and will return -1, and 135.Fn aio_error 136must be called to determine the actual value that would have been 137returned in 138.Va errno . 139.Pp 140.Bl -tag -width Er 141.It Bq Er EBADF | 26.\" 27.Dd June 2, 1999 28.Dt AIO_WRITE 2 29.Os 30.Sh NAME 31.Nm aio_write 32.Nd asynchronous write to a file (REALTIME) 33.Sh LIBRARY --- 100 unchanged lines hidden (view full) --- 134system call must be called, and will return -1, and 135.Fn aio_error 136must be called to determine the actual value that would have been 137returned in 138.Va errno . 139.Pp 140.Bl -tag -width Er 141.It Bq Er EBADF |
142The |
|
142.Fa iocb->aio_fildes | 143.Fa iocb->aio_fildes |
144argument |
|
143is invalid, or is not opened for writing. 144.It Bq Er EINVAL 145The offset 146.Fa iocb->aio_offset 147is not valid, the priority specified by 148.Fa iocb->aio_reqprio 149is not a valid priority, or the number of bytes specified by 150.Fa iocb->aio_nbytes --- 7 unchanged lines hidden (view full) --- 158.Xr write 2 159system call, and the value returned by the 160.Fn aio_error 161system call is either one of the error returns from the 162.Xr write 2 163system call, or one of: 164.Bl -tag -width Er 165.It Bq Er EBADF | 145is invalid, or is not opened for writing. 146.It Bq Er EINVAL 147The offset 148.Fa iocb->aio_offset 149is not valid, the priority specified by 150.Fa iocb->aio_reqprio 151is not a valid priority, or the number of bytes specified by 152.Fa iocb->aio_nbytes --- 7 unchanged lines hidden (view full) --- 160.Xr write 2 161system call, and the value returned by the 162.Fn aio_error 163system call is either one of the error returns from the 164.Xr write 2 165system call, or one of: 166.Bl -tag -width Er 167.It Bq Er EBADF |
168The |
|
166.Fa iocb->aio_fildes | 169.Fa iocb->aio_fildes |
170argument |
|
167is invalid for writing. 168.It Bq Er ECANCELED 169The request was explicitly canceled via a call to 170.Fn aio_cancel . 171.It Bq Er EINVAL 172The offset 173.Fa iocb->aio_offset 174would be invalid. --- 27 unchanged lines hidden --- | 171is invalid for writing. 172.It Bq Er ECANCELED 173The request was explicitly canceled via a call to 174.Fn aio_cancel . 175.It Bq Er EINVAL 176The offset 177.Fa iocb->aio_offset 178would be invalid. --- 27 unchanged lines hidden --- |