This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Fix typo in manual - BZ#6486
- From: Andreas Jaeger <aj at suse dot com>
- To: libc-alpha <libc-alpha at sourceware dot org>
- Date: Fri, 06 Apr 2012 21:39:19 +0200
- Subject: Fix typo in manual - BZ#6486
The lseek documentation refers to WHENCE when it really means OFFSET,
fixed with the appended patch, committed as obvious,
Andreas
2012-04-06 Robert Millan <rmh@gnu.org>
[BZ #6486]
* manual/llio.texi (File Position Primitive): lseek
refers to WHENCE when it really means OFFSET.
--- a/manual/llio.texi
+++ b/manual/llio.texi
@@ -634,15 +634,15 @@ be one of the symbolic constants @code{SEEK_SET},
@code{SEEK_CUR}, or
@table @code
@item SEEK_SET
-Specifies that @var{whence} is a count of characters from the beginning
+Specifies that @var{offset} is a count of characters from the beginning
of the file.
@item SEEK_CUR
-Specifies that @var{whence} is a count of characters from the current
+Specifies that @var{offset} is a count of characters from the current
file position. This count may be positive or negative.
@item SEEK_END
-Specifies that @var{whence} is a count of characters from the end of
+Specifies that @var{offset} is a count of characters from the end of
the file. A negative count specifies a position within the current
extent of the file; a positive count specifies a position past the
current end. If you set the position past the current end, and
--
Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126