manual: Update documentation of strerror and related functions
authorFlorian Weimer <fweimer@redhat.com>
Mon, 3 Jul 2023 10:36:56 +0000 (12:36 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 3 Jul 2023 10:36:56 +0000 (12:36 +0200)
commite18c293af0ece38921ad71fbd76ff8049c3b2d67
treefdb0963e3a65e6099e13317b27dfda7bb3ce4808
parent9651b06940b79e3a6da3f9fe7dd5a8cfbd5c5d88
manual: Update documentation of strerror and related functions

The current implementation of strerror is thread-safe, but this
has implications for the lifetime of the return string.

Describe the strerror_l function.  Describe both variants of the
strerror_r function.  Mention the lifetime of the returned string
for strerrorname_np and strerrordesc_np.  Clarify that perror
output depends on the current locale.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
manual/errno.texi