scalbln.3: ATTRIBUTES: Note functions that are thread-safe

The functions scalbn(), scalbnf(), scalbnl(), scalbln(),
scalblnf() and scalblnl() are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
conj.3: ATTRIBUTES: Note functions that are thread-safe

The functions conj(), conjf() and conjl() are thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
mblen.3: ATTRIBUTES: Note function that is not thread-safe

The function mblen() is not thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
console_codes.4: Replace some .in uses with equivalent .RS/.RE

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
basename.3: Replace an ad-hoc table with a real one

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
basename.3: Fix errors from Eric Raymond's previous commit

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
regex.3: Remove unused macro

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

Reported-by: Eric S. Raymond <esr@thyrsus.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
argz_add.3: ffix

Reported-by: Eric S. Raymond <esr@thyrsus.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
pread.2: pread() and pwrite() are especially useful in multithreaded applications

Reported-by: Марк Коренберг <socketpair@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
io_setup.2, perf_event_open.2, readdir.2, syscall.2, a64l.3, abs.3, asprintf.3, bindresvport.3, catgets.3, ceil.3, cimag.3, conj.3, crypt.3, drand48.3, encrypt.3, ether_aton.3, fcloseall.3, ferror.3, fmtmsg.3, getdate.3, getgrent.3, getgrnam.3, getpass.3, getpwent.3, getpwnam.3, getttyent.3, getusershell.3, localeconv.3, mblen.3, mbrlen.3, mbrtowc.3, modf.3, pthread_attr_setschedparam.3, pthread_attr_setschedpolicy.3, pthread_setname_np.3, ptsname.3, qecvt.3, re_comp.3, readdir.3, rexec.3, round.3, scalbln.3, stdio_ext.3, strerror.3, tmpnam.3, trunc.3, ttyname.3, ttyslot.3, inotify.7, man-pages.7, socket.7, tcp.7, udp.7: tstamp

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
execve: Add envp to the Linux notes about NULL pointers

During the review of static analysis results, we discovered a
functional, but non-portable, use of execve().  For example:

    char *cmd[] = { "/path/to/some/file", NULL };
    execve(cmd[0], cmd, NULL);

The call succeeds.  Yet, the static analysis tool (rightly)
pointed out that envp could be dereferenced.  But digging into
glibc and the kernel, it appears that like argv, envp when NULL
is treated as if it were an empty list.

So, to clear things up, I'm submitting this patch to update the
man page to indicate that envp is treated like argv.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
timegm.3: copy the string returned by getenv()

The example of a portable version of timegm() uses the string
returned by getenv() after calling setenv() on the same
environment variable. The tz string may be invalid as per
getenv.3:

        "The string pointed to by the return value of getenv()
         may be statically allocated, and can be modified by a
         subsequent call to getenv(), putenv(3), setenv(3), or
         unsetenv(3)."

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
ctermid.3: ATTRIBUTES: Note function that is thread safe with exceptions

The function ctermid() is thread safe with exceptions.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
aio_error.3: ATTRIBUTES: Note function that is thread-safe

The function aio_error() is thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
aio_return.3: ATTRIBUTES: Note function that is thread-safe

The function aio_return() is thread safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
proc.5: Document /proc/[pid]/fd/ symlinks a bit more

Describe the type:[inode] syntax used in this dir

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
proc.5: Tweaks to Mike Frysinger's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
proc.5: Document /proc/[pid]/fd/ anon_inode symlinks

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

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