write.2 (108028) | write.2 (108087) |
---|---|
1.\" Copyright (c) 1980, 1991, 1993 2.\" The Regents of the University of California. 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. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)write.2 8.5 (Berkeley) 4/2/94 | 1.\" Copyright (c) 1980, 1991, 1993 2.\" The Regents of the University of California. 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. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)write.2 8.5 (Berkeley) 4/2/94 |
33.\" $FreeBSD: head/lib/libc/sys/write.2 108028 2002-12-18 09:22:32Z ru $ | 33.\" $FreeBSD: head/lib/libc/sys/write.2 108087 2002-12-19 09:40:28Z ru $ |
34.\" 35.Dd April 2, 1994 36.Dt WRITE 2 37.Os 38.Sh NAME 39.Nm write , 40.Nm writev , 41.Nm pwrite --- 100 unchanged lines hidden (view full) --- 142.Fn write , 143.Fn writev , 144and 145.Fn pwrite 146system calls 147will fail and the file pointer will remain unchanged if: 148.Bl -tag -width Er 149.It Bq Er EBADF | 34.\" 35.Dd April 2, 1994 36.Dt WRITE 2 37.Os 38.Sh NAME 39.Nm write , 40.Nm writev , 41.Nm pwrite --- 100 unchanged lines hidden (view full) --- 142.Fn write , 143.Fn writev , 144and 145.Fn pwrite 146system calls 147will fail and the file pointer will remain unchanged if: 148.Bl -tag -width Er 149.It Bq Er EBADF |
150.Fa D | 150The 151.Fa d 152argument |
151is not a valid descriptor open for writing. 152.It Bq Er EPIPE 153An attempt is made to write to a pipe that is not open 154for reading by any process. 155.It Bq Er EPIPE 156An attempt is made to write to a socket of type 157.Dv SOCK_STREAM 158that is not connected to a peer socket. --- 37 unchanged lines hidden (view full) --- 196.Bl -tag -width Er 197.It Bq Er EDESTADDRREQ 198The destination is no longer available when writing to a 199.Ux 200domain datagram socket on which 201.Xr connect 2 202had been used to set a destination address. 203.It Bq Er EINVAL | 153is not a valid descriptor open for writing. 154.It Bq Er EPIPE 155An attempt is made to write to a pipe that is not open 156for reading by any process. 157.It Bq Er EPIPE 158An attempt is made to write to a socket of type 159.Dv SOCK_STREAM 160that is not connected to a peer socket. --- 37 unchanged lines hidden (view full) --- 198.Bl -tag -width Er 199.It Bq Er EDESTADDRREQ 200The destination is no longer available when writing to a 201.Ux 202domain datagram socket on which 203.Xr connect 2 204had been used to set a destination address. 205.It Bq Er EINVAL |
204.Fa Iovcnt | 206The 207.Fa iovcnt 208argument |
205was less than or equal to 0, or greater than 206.Dv UIO_MAXIOV . 207.It Bq Er EINVAL 208One of the 209.Fa iov_len 210values in the 211.Fa iov 212array was negative. --- 49 unchanged lines hidden --- | 209was less than or equal to 0, or greater than 210.Dv UIO_MAXIOV . 211.It Bq Er EINVAL 212One of the 213.Fa iov_len 214values in the 215.Fa iov 216array was negative. --- 49 unchanged lines hidden --- |