Commit Graph

25 Commits

Author SHA1 Message Date
Michael Kerrisk 1e0819c860 lseek.2: Document SEEK_HOLE and SEEK_DATA
These flags, designed for discovering holes in a file,
were added in Linux 3.1. Included comments from Eric
Blake and Sunil Mushran.

Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-20 08:07:47 +02:00
Michael Kerrisk 710fdd5d6b lseek.2: Remove suspect note about 'whence' being incorrect English.
As noted by Alan Curry:

According to man2/lseek.2,

 This document's use of whence is incorrect English, but
 maintained for historical reasons.

What is the grammatical objection?

From WordNet (r) 3.0 (2006) [wn]:
 whence
     adv 1: from what place, source, or cause

Wiktionary:
 [edit] Adverb
 whence (not comparable)
  1. From where; from which place or source.

lseek's second parameter is a distance to be traveled, and
the third parameter chooses the starting point from which
that distance is measured.  How is that not a "whence"?

Looking at some man page archives, I found that the accusation
of incorrect English goes back to before 4.4BSD. It survives
not just in the linux-man-pages but also in recent versions
of {Net,Open,Free}BSD. The name "whence" for this parameter
goes back at least to V7.

Of all the people who have read this page over the years,
am I the only one wondering... what's this about? Who decided
that "whence" was incorrect and put that note in the man page?
Was there ever anything wrong, or do we have someone's
20-year-old unresearched pet peeve lingering in the man pages?

Reported-by: Alan Curry <pacman@kosh.dhis.org>
Reported-by: Reuben Thomas <rrt@sc3d.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-19 17:32:54 +02:00
Michael Kerrisk 279688a57c lseek.2: srcfix: Added FIXME
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-07 19:07:37 +02:00
Michael Kerrisk b3a452706f lseek.2: Minor wording changes
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-09-11 06:40:32 +02:00
Michael Kerrisk 3284fbc0ec lseek.2: Removed note about return type on ancient systems
Reported-by: der Mouse <mouse@rodents-montreal.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-09-11 06:13:23 +02:00
Michael Kerrisk f81fb4445b s/\\'/\\(aq/ 2008-06-09 15:49:35 +00:00
Michael Kerrisk f8a07a2154 s/'/\\'/ to improve rendering in UTF-8. 2008-06-05 17:52:37 +00:00
Michael Kerrisk 24d01c530c s/filesystem/file system/ 2008-03-19 07:26:08 +00:00
Michael Kerrisk 47752f332c s/fildes/fd/ 2007-12-24 22:04:47 +00:00
Michael Kerrisk e17aa4873c ffix 2007-11-29 18:15:54 +00:00
Michael Kerrisk 682edefb1b ffix 2007-06-22 17:16:20 +00:00
Michael Kerrisk b07cd0a96b Renamed RESTRICTIONS section to NOTES, or moved text in a RESTRICTIONS
section under existing NOTES section.
2007-05-16 05:33:35 +00:00
Michael Kerrisk 60a90ecdae Convert function formatting of the form "\fBname\fP()" to ".BR name ()". 2007-05-12 09:06:04 +00:00
Michael Kerrisk c13182efa3 Wrapped long lines, wrapped at sentence boundaries; stripped trailing
white space.
2007-04-12 22:42:49 +00:00
Michael Kerrisk cf0a9ace57 ffix 2007-04-05 12:36:57 +00:00
Michael Kerrisk 97c1eac86f Updated CONFORMING TO section 2006-08-03 13:57:17 +00:00
Michael Kerrisk 2374c17872 Add a case to the EINVAL error text.
Various minor wording fixes
2006-03-02 00:51:08 +00:00
Michael Kerrisk 1f0ea6d8b7 Added SEE ALSO referring to new posix_fallocate.3. 2006-03-01 03:34:07 +00:00
Michael Kerrisk 2486cacf6d ffix 2006-02-14 18:16:45 +00:00
Michael Kerrisk 9ff08aad91 Formatting fixes 2006-02-09 20:24:53 +00:00
Michael Kerrisk 28d88c1751 Global change to many pages...
Various pages use inconsistent terms for 'null byte' (which
is the C99/SUSv3 term for the '\0' character).
To rectify this the following changes were made in these pages:

Replace 'zero byte' with 'null byte'.
Replace 'null character' with 'null byte'.
Replace 'nulls' with 'null bytes'.
Replace 'NUL-terminated' by 'null-terminated'.
Replace 'NUL' by 'null byte'.
Replace 'terminating NUL' by 'terminating null byte'.
Replace 'final NUL' by 'terminating null byte'.
Replace 'NUL character' by 'null byte'.
2006-01-13 02:09:44 +00:00
Michael Kerrisk e511ffb6bc Automated addition of parentheses by add_parens_for_own_funcs.sh 2005-10-19 06:54:38 +00:00
Michael Kerrisk b14d4aa5b8 Classical BSD versions are now always named x.yBSD (formerly
there was a mix of x.yBSD and BSD x.y).
2005-07-18 15:05:56 +00:00
Michael Kerrisk 3ba7aed4ab Minor wording changes 2004-12-13 15:39:11 +00:00
Michael Kerrisk fea681dafb Import of man-pages 1.70 2004-11-03 13:51:07 +00:00