summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraaron <>2000-10-23 19:14:41 +0000
committeraaron <>2000-10-23 19:14:41 +0000
commit8385634a0bad654a1240ee2ebe79d0c8240e1b3b (patch)
treef9b76b05dd4f5f8b99cb327b2395f59d48ecb2aa
parent47549239977a8c60c5aff9509b07f3099ced2985 (diff)
downloadopenbsd-8385634a0bad654a1240ee2ebe79d0c8240e1b3b.tar.gz
openbsd-8385634a0bad654a1240ee2ebe79d0c8240e1b3b.tar.bz2
openbsd-8385634a0bad654a1240ee2ebe79d0c8240e1b3b.zip
Document that the string returned by strerror(3) contains a maximum of
NL_TEXTMAX characters.
-rw-r--r--src/lib/libc/string/strerror.38
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/libc/string/strerror.3 b/src/lib/libc/string/strerror.3
index 72fb158388..11bacd313e 100644
--- a/src/lib/libc/string/strerror.3
+++ b/src/lib/libc/string/strerror.3
@@ -33,7 +33,7 @@
33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34.\" SUCH DAMAGE. 34.\" SUCH DAMAGE.
35.\" 35.\"
36.\" $OpenBSD: strerror.3,v 1.3 1999/05/23 14:11:03 aaron Exp $ 36.\" $OpenBSD: strerror.3,v 1.4 2000/10/23 19:14:41 aaron Exp $
37.\" 37.\"
38.Dd June 29, 1991 38.Dd June 29, 1991
39.Dt STRERROR 3 39.Dt STRERROR 3
@@ -49,7 +49,11 @@
49The 49The
50.Fn strerror 50.Fn strerror
51function returns a pointer to the language-dependent error message 51function returns a pointer to the language-dependent error message
52string affiliated with an error number. 52string affiliated with the specified error number
53.Fa errnum .
54The returned string contains a maximum of
55.Dv NL_TEXTMAX
56characters, including the trailing NUL.
53.Pp 57.Pp
54The array pointed to is not to be modified by the program, but may be 58The array pointed to is not to be modified by the program, but may be
55overwritten by subsequent calls to 59overwritten by subsequent calls to