getgrent.3, getgrent_r.3, getgrnam.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
fgetgrent.3, getgrent.3, getgrent_r.3, getgrnam.3: Clarify that 'gr_mem' is a NULL-terminated array of pointers

Reported-by: Rob Landley <rob@landley.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
perf_event_open.2: Clarify PERF_SAMPLE_STACK_USER usage

This clarifies the PERF_SAMPLE_STACK_USER section.
I found these issue while implementing some code that uses
the option.  The important change is fixing the name of the
sample_stack_user parameter, the rest is just some wording
fixes and minor clarifications.

Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
perf_event_open.2: Clarify PERF_SAMPLE_DATA_SRC usage

When checking the fields in the PERF_SAMPLE_DATA_SRC type samples
you need to shift the masks before doing the compare.

Although the value you are checking (perf_mem_data_src) is
specified as a bitfield so this might all fall apart if trying
to access the field in a cross-endian way.  The Power people
were working on this issue, not sure if they resolved it.

Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
inotify.7: Note that IN_ONLY_DIR can be used to avoid races

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

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
inotify.7: Note that insertion of IN_MOVED_FROM+IN_MOVED_TO pair is not atomic

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
inotify.7: Mention use of timeout when reading IN_MOVED_TO after IN_MOVED_FROM

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
stat.2: nfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
bind.2: Correct EINVAL error description

As pointed out by Ryan:

    My application is trying to bind an IPV4 UDP socket to an
    address. I've found that passing an invalid address length
    to bind() causes bind to return EINVAL. According to the
    bind(2) manpage, this should only occur when using unix
    domain sockets (which I am not).

Reported-by: Ryan Hammonds <rhammonds@unicoi.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
recv.2: 'addrlen' should be NULL (not 0) if we don't need sender address

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
getauxval.3: Document ENOENT error

And add an entry to BUGS explaining the ambiguity that was
present before the addition of this error.

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

Reported-by: Damir Nedzibovic <d.nedzibovic@anoxtech.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
cerf.3, cexp2.3, clog2.3: Update version number on "Not yet in glibc" sentence

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