summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authordanger <danger@FreeBSD.org>2008-07-06 12:17:53 +0000
committerdanger <danger@FreeBSD.org>2008-07-06 12:17:53 +0000
commit518dda6b8f41a612a22f2b768ea18b0432bb5aa6 (patch)
tree033657e6ec6232fe971f1a2628288670056306d0 /lib/libc
parent3fba957487e50ca7eac7385fc9918cff1486d586 (diff)
downloadFreeBSD-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
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdlib/hcreate.38
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 ,
OpenPOWER on IntegriCloud