Re: [patch] hsearch.3: update ERRORS section

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

 



Hello Seonghun,

2011/8/31 Seonghun Lim <wariua@xxxxxxxxx>:
> 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

Thanks. I tweaked your patch a little and applied the version below for 3.33.

Cheers,

Michael


--- a/man3/hsearch.3
+++ b/man3/hsearch.3
@@ -32,7 +32,7 @@
 .\" 2008-09-03, mtk, restructured somewhat, in part after suggestions from
 .\"     Timothy S. Nelson <wayland@xxxxxxxxxxxxx>
 .\"
-.TH HSEARCH 3 2008-10-06 "GNU" "Linux Programmer's Manual"
+.TH HSEARCH 3 2011-09-10 "GNU" "Linux Programmer's Manual"
 .SH NAME
 hcreate, hdestroy, hsearch, hcreate_r, hdestroy_r,
 hsearch_r \- hash table management
@@ -190,23 +190,14 @@ cannot be found in the hash table.
 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




-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
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