inotify.7: Make comment on 'mask' field more accurate

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
inotify_add_watch.2: Clarify that the target of a watch is an i-node

The target of a watch is an i-node, not a pathname. Clarify
the text to prevent the reader possibly misunderstanding
that establishing watches by two different links to the same
file might create different watch descriptors.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
inotify.7: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
inotify.7: Clarify description of IN_EXCL_UNLINK

Clarify the text a little, in particular making it clearer
that the target of a watch is an i-node (not a pathname).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
inotify.7: Clarify IN_ONESHOT explanation

Make it clearer that the target of monitoring is an i-node,
not a pathname.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
printf.3: SUSv3 and later agree with C99 for the snprintf() return value

Determined by inspection of the SUSv3 and SUSv4 specifications.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
libc.7: Use absolute dates in discussion of libc vs glibc

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
libc.7: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
libc.7: Clarify man-pages policy on documenting C libraries other tahn glibc

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
printf.3: grfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
printf.3: Remove libc4 and libc5 details

Rich Felker noted that "scare text" in the man page warned about
the use of snprintf() on libc, and that some people had cited
this as a reason not to use snprintf().  Linux libc is now
ancient history, so there is no real need to keep that text.
But, while we're at it, we may as well clear out all of the
other ancient libc4 and libc5 pieces in the page. They are
nowadays more clutter than help.

Reported-by: Rich Felker <dalias@libc.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
cmsg.3: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
getpass.3: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
printf.3: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
printf.3: Remove some old text about glibc 2.0 changes

We probably don't now need such ancient info.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
printf.3: Update references to standards for C and S conversion specifiers

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
dup.2: Add subhead for dup3()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
dup.2: Rework and enhance discussion of dup2()

In particular, note that dup2() performs the steps of closing
and reusing 'newfd' atomically.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
dup.2: Fix erroneous discussion regarding closing 'newfd' before calling dup2()

And propose a workaround if the caller cares about catching
close() time errors.

See http://stackoverflow.com/questions/23440216/race-condition-when-using-dup2#comment36888604_23444465
and http://austingroupbugs.net/view.php?id=411

Reported-by: Rich Felker <dalias@libc.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>