Deleted Added
full compact
read.2 (108028) read.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.\" @(#)read.2 8.4 (Berkeley) 2/26/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.\" @(#)read.2 8.4 (Berkeley) 2/26/94
33.\" $FreeBSD: head/lib/libc/sys/read.2 108028 2002-12-18 09:22:32Z ru $
33.\" $FreeBSD: head/lib/libc/sys/read.2 108087 2002-12-19 09:40:28Z ru $
34.\"
35.Dd February 26, 1994
36.Dt READ 2
37.Os
38.Sh NAME
39.Nm read ,
40.Nm readv ,
41.Nm pread

--- 95 unchanged lines hidden (view full) ---

137.Fn read ,
138.Fn readv ,
139and
140.Fn pread
141system calls
142will succeed unless:
143.Bl -tag -width Er
144.It Bq Er EBADF
34.\"
35.Dd February 26, 1994
36.Dt READ 2
37.Os
38.Sh NAME
39.Nm read ,
40.Nm readv ,
41.Nm pread

--- 95 unchanged lines hidden (view full) ---

137.Fn read ,
138.Fn readv ,
139and
140.Fn pread
141system calls
142will succeed unless:
143.Bl -tag -width Er
144.It Bq Er EBADF
145.Fa D
145The
146.Fa d
147argument
146is not a valid file or socket descriptor open for reading.
147.It Bq Er EFAULT
148is not a valid file or socket descriptor open for reading.
149.It Bq Er EFAULT
148.Fa Buf
150The
151.Fa buf
152argument
149points outside the allocated address space.
150.It Bq Er EIO
151An I/O error occurred while reading from the file system.
152.It Bq Er EINTR
153A read from a slow device was interrupted before
154any data arrived by the delivery of a signal.
155.It Bq Er EINVAL
156The pointer associated with

--- 4 unchanged lines hidden (view full) ---

161and no data were ready to be read.
162.El
163.Pp
164In addition,
165.Fn readv
166may return one of the following errors:
167.Bl -tag -width Er
168.It Bq Er EINVAL
153points outside the allocated address space.
154.It Bq Er EIO
155An I/O error occurred while reading from the file system.
156.It Bq Er EINTR
157A read from a slow device was interrupted before
158any data arrived by the delivery of a signal.
159.It Bq Er EINVAL
160The pointer associated with

--- 4 unchanged lines hidden (view full) ---

165and no data were ready to be read.
166.El
167.Pp
168In addition,
169.Fn readv
170may return one of the following errors:
171.Bl -tag -width Er
172.It Bq Er EINVAL
169.Fa Iovcnt
173The
174.Fa iovcnt
175argument
170was less than or equal to 0, or greater than 16.
171.It Bq Er EINVAL
172One of the
173.Fa iov_len
174values in the
175.Fa iov
176array was negative.
177.It Bq Er EINVAL

--- 52 unchanged lines hidden ---
176was less than or equal to 0, or greater than 16.
177.It Bq Er EINVAL
178One of the
179.Fa iov_len
180values in the
181.Fa iov
182array was negative.
183.It Bq Er EINVAL

--- 52 unchanged lines hidden ---