[patch] hsearch.3: update ERRORS section

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



man-pages version: latest git repository
why:
Remove ENOMEM and ESRCH from the list for hcreate() and hcreate_h().
The (e)glibc implementation of the two functions (of course!) doesn't
set such errors. The two error codes are garbage from commit fe80e23e.

Then, hdestroy_r() was added to the list.


diff --git a/man3/hsearch.3 b/man3/hsearch.3
--- a/man3/hsearch.3
+++ b/man3/hsearch.3
@@ -191,22 +191,16 @@ returns nonzero on success, and 0 on error.
.SH ERRORS
.LP
.BR hcreate ()
-and
+,
.BR hcreate_r ()
+and
+.BR hdestroy_r ()
can fail for the following reasons:
.TP
.B EINVAL
.RB ( hcreate_r ())
.I htab
is NULL.
-.TP
-.B ENOMEM
-Table full with \fIaction\fP set to \fBENTER\fP.
-.TP
-.B ESRCH
-The \fIaction\fP argument is \fBFIND\fP and no corresponding element
-is found in the table.
-.\" hdestroy_r() can set errno to EINVAL if 'tab' is NULL.
.PP
.BR hsearch ()
and

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux