diff options
| author | Daniel Gerzo <danger@FreeBSD.org> | 2008-07-06 12:17:53 +0000 |
|---|---|---|
| committer | Daniel Gerzo <danger@FreeBSD.org> | 2008-07-06 12:17:53 +0000 |
| commit | 6d05da1dc9937ecdf2933b13954a2fae37da77c7 (patch) | |
| tree | 033657e6ec6232fe971f1a2628288670056306d0 | |
| parent | 408425ce37da455de3c7bd165d431f4d84841b21 (diff) | |
Notes
| -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 38743afb4746..6065f18b3698 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 , |
