diff options
author | aaron <> | 2000-10-23 19:14:41 +0000 |
---|---|---|
committer | aaron <> | 2000-10-23 19:14:41 +0000 |
commit | 8385634a0bad654a1240ee2ebe79d0c8240e1b3b (patch) | |
tree | f9b76b05dd4f5f8b99cb327b2395f59d48ecb2aa | |
parent | 47549239977a8c60c5aff9509b07f3099ced2985 (diff) | |
download | openbsd-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.3 | 8 |
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 @@ | |||
49 | The | 49 | The |
50 | .Fn strerror | 50 | .Fn strerror |
51 | function returns a pointer to the language-dependent error message | 51 | function returns a pointer to the language-dependent error message |
52 | string affiliated with an error number. | 52 | string affiliated with the specified error number |
53 | .Fa errnum . | ||
54 | The returned string contains a maximum of | ||
55 | .Dv NL_TEXTMAX | ||
56 | characters, including the trailing NUL. | ||
53 | .Pp | 57 | .Pp |
54 | The array pointed to is not to be modified by the program, but may be | 58 | The array pointed to is not to be modified by the program, but may be |
55 | overwritten by subsequent calls to | 59 | overwritten by subsequent calls to |