summaryrefslogtreecommitdiff
path: root/lib/libc/sys/read.2
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>1998-08-29 08:32:32 +0000
committerlukem <lukem@NetBSD.org>1998-08-29 08:32:32 +0000
commitce83c69e00a77ed28196913aa6cd4d90b18a5a40 (patch)
tree450c82d7051427c4a5591ae055ee20a914f89ff7 /lib/libc/sys/read.2
parented88a6f1032cd4c9cfba1c0bd934bbe6bff8fc05 (diff)
first pass at fixing up capitalization of function names and
arguments; ensure that each is correct with respect to the implementation, rather than being correct as per english.
Diffstat (limited to 'lib/libc/sys/read.2')
-rw-r--r--lib/libc/sys/read.218
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/libc/sys/read.2 b/lib/libc/sys/read.2
index 2976798e03d..15d981e2176 100644
--- a/lib/libc/sys/read.2
+++ b/lib/libc/sys/read.2
@@ -1,4 +1,4 @@
-.\" $NetBSD: read.2,v 1.11 1998/08/03 15:02:47 kleink Exp $
+.\" $NetBSD: read.2,v 1.12 1998/08/29 08:32:40 lukem Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -55,21 +55,21 @@
.Ft ssize_t
.Fn preadv "int d" "const struct iovec *iov" "int iovcnt" "off_t offset"
.Sh DESCRIPTION
-.Fn Read
+.Fn read
attempts to read
.Fa nbytes
of data from the object referenced by the descriptor
.Fa d
into the buffer pointed to by
.Fa buf .
-.Fn Readv
+.Fn readv
performs the same action, but scatters the input data
into the
.Fa iovcnt
buffers specified by the members of the
.Fa iov
array: iov[0], iov[1], ..., iov[iovcnt\|\-\|1].
-.Fn Pread
+.Fn pread
and
.Fn preadv
perform the same functions, but read from the specified position in
@@ -94,7 +94,7 @@ Each
.Fa iovec
entry specifies the base address and length of an area
in memory where data should be placed.
-.Fn Readv
+.Fn readv
will always fill an area completely before proceeding
to the next.
.Pp
@@ -132,7 +132,7 @@ Otherwise, a -1 is returned and the global variable
.Va errno
is set to indicate the error.
.Sh ERRORS
-.Fn Read ,
+.Fn read ,
.Fn readv ,
.Fn pread ,
and
@@ -140,10 +140,10 @@ and
will succeed unless:
.Bl -tag -width Er
.It Bq Er EBADF
-.Fa D
+.Fa d
is not a valid file or socket descriptor open for reading.
.It Bq Er EFAULT
-.Fa Buf
+.Fa buf
points outside the allocated address space.
.It Bq Er EIO
An I/O error occurred while reading from the file system.
@@ -169,7 +169,7 @@ and
may return one of the following errors:
.Bl -tag -width Er
.It Bq Er EINVAL
-.Fa Iovcnt
+.Fa iovcnt
was less than or equal to 0, or greater than
.Dv {IOV_MAX} .
.It Bq Er EINVAL