diff options
author | danger <danger@FreeBSD.org> | 2008-07-06 12:17:53 +0000 |
---|---|---|
committer | danger <danger@FreeBSD.org> | 2008-07-06 12:17:53 +0000 |
commit | 518dda6b8f41a612a22f2b768ea18b0432bb5aa6 (patch) | |
tree | 033657e6ec6232fe971f1a2628288670056306d0 | |
parent | 3fba957487e50ca7eac7385fc9918cff1486d586 (diff) | |
download | FreeBSD-src-518dda6b8f41a612a22f2b768ea18b0432bb5aa6.zip FreeBSD-src-518dda6b8f41a612a22f2b768ea18b0432bb5aa6.tar.gz |
- Add description about a missing return value
PR: docs/75995
Submitted by: Tarc <tarc@po.cs.msu.su>
MFC after: 3 days
-rw-r--r-- | lib/libc/stdlib/hcreate.3 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/stdlib/hcreate.3 b/lib/libc/stdlib/hcreate.3 index 38743af..6065f18 100644 --- a/lib/libc/stdlib/hcreate.3 +++ b/lib/libc/stdlib/hcreate.3 @@ -111,8 +111,10 @@ is called. .Sh RETURN VALUES The .Fn hcreate -function returns 0 if it cannot allocate sufficient space for the table; -otherwise, it returns non-zero. +function returns 0 if the table creation failed and the global variable +.Va errno +is set to indicate the error; +otherwise, a non-zero value is returned. .Pp The .Fn hdestroy @@ -199,6 +201,8 @@ functions may fail if: .Bl -tag -width Er .It Bq Er ENOMEM Insufficient storage space is available. +.It Bq Er EINVAL +A table already exists. .El .Sh SEE ALSO .Xr bsearch 3 , |