summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2000-10-23 19:14:42 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2000-10-23 19:14:42 +0000
commit0103780fd13fdcaf3db411c5465a23ac7ff4d3e3 (patch)
tree90c3837c60446818cdc926bd7e50eb9aed6c891c
parent664ebb0012b33dec6fc2d149fb641113c19d2f36 (diff)
Document that the string returned by strerror(3) contains a maximum of
NL_TEXTMAX characters.
-rw-r--r--lib/libc/string/strerror.38
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/string/strerror.3 b/lib/libc/string/strerror.3
index 72fb158388b..11bacd313e9 100644
--- a/lib/libc/string/strerror.3
+++ b/lib/libc/string/strerror.3
@@ -33,7 +33,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: strerror.3,v 1.3 1999/05/23 14:11:03 aaron Exp $
+.\" $OpenBSD: strerror.3,v 1.4 2000/10/23 19:14:41 aaron Exp $
.\"
.Dd June 29, 1991
.Dt STRERROR 3
@@ -49,7 +49,11 @@
The
.Fn strerror
function returns a pointer to the language-dependent error message
-string affiliated with an error number.
+string affiliated with the specified error number
+.Fa errnum .
+The returned string contains a maximum of
+.Dv NL_TEXTMAX
+characters, including the trailing NUL.
.Pp
The array pointed to is not to be modified by the program, but may be
overwritten by subsequent calls to