summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/strerror.3
diff options
context:
space:
mode:
authorschwarze <>2019-05-16 13:35:16 +0000
committerschwarze <>2019-05-16 13:35:16 +0000
commit656919abadeb5a96c2594db38952c4073b401577 (patch)
treeee3d8ae2187ff7f0d5efb64053bda8791c07e84f /src/lib/libc/string/strerror.3
parente93f132f9ace4d42865eb3dc1477aed0ab150a46 (diff)
downloadopenbsd-656919abadeb5a96c2594db38952c4073b401577.tar.gz
openbsd-656919abadeb5a96c2594db38952c4073b401577.tar.bz2
openbsd-656919abadeb5a96c2594db38952c4073b401577.zip
More consistently put remarks about the less useful LC_* categoties,
i.e. those other than LC_CTYPE, into the CAVEATS section, and standardize wording somewhat. OK jmc@
Diffstat (limited to 'src/lib/libc/string/strerror.3')
-rw-r--r--src/lib/libc/string/strerror.322
1 files changed, 12 insertions, 10 deletions
diff --git a/src/lib/libc/string/strerror.3 b/src/lib/libc/string/strerror.3
index 0d4f084e5e..6c5b890fa4 100644
--- a/src/lib/libc/string/strerror.3
+++ b/src/lib/libc/string/strerror.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: strerror.3,v 1.15 2017/09/05 03:16:13 schwarze Exp $ 1.\" $OpenBSD: strerror.3,v 1.16 2019/05/16 13:35:16 schwarze Exp $
2.\" 2.\"
3.\" Copyright (c) 1980, 1991 Regents of the University of California. 3.\" Copyright (c) 1980, 1991 Regents of the University of California.
4.\" Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org> 4.\" Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -32,7 +32,7 @@
32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33.\" SUCH DAMAGE. 33.\" SUCH DAMAGE.
34.\" 34.\"
35.Dd $Mdocdate: September 5 2017 $ 35.Dd $Mdocdate: May 16 2019 $
36.Dt STRERROR 3 36.Dt STRERROR 3
37.Os 37.Os
38.Sh NAME 38.Sh NAME
@@ -95,14 +95,6 @@ returns zero upon successful completion.
95If an error occurs, the error code is stored in 95If an error occurs, the error code is stored in
96.Va errno 96.Va errno
97and the error code is returned. 97and the error code is returned.
98.Sh ENVIRONMENT
99On other operating systems, the behaviour of
100.Fn strerror
101and
102.Fn strerror_r
103may depend on the
104.Dv LC_MESSAGES
105.Xr locale 1 .
106.Sh ERRORS 98.Sh ERRORS
107All these functions may fail if: 99All these functions may fail if:
108.Bl -tag -width Er 100.Bl -tag -width Er
@@ -150,3 +142,13 @@ and
150.Fn strerror_l 142.Fn strerror_l
151since 143since
152.Ox 6.2 . 144.Ox 6.2 .
145.Sh CAVEATS
146On systems other than
147.Ox ,
148the
149.Dv LC_MESSAGES
150.Xr locale 1
151category can cause different strings to be returned instead of the
152normal error messages; see CAVEATS in
153.Xr setlocale 3
154for details.