public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] hsearch.3: update ERRORS section
@ 2011-08-31 14:46 Seonghun Lim
       [not found] ` <4E5E4928.7030301-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Seonghun Lim @ 2011-08-31 14:46 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch] hsearch.3: update ERRORS section
       [not found] ` <4E5E4928.7030301-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2011-09-15 18:39   ` Michael Kerrisk
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk @ 2011-09-15 18:39 UTC (permalink / raw)
  To: Seonghun Lim; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

Hello Seonghun,

2011/8/31 Seonghun Lim <wariua-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
> 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-r28gBBs99rhWo+R/V/U2/g@public.gmane.org>
 .\"
-.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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-15 18:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-31 14:46 [patch] hsearch.3: update ERRORS section Seonghun Lim
     [not found] ` <4E5E4928.7030301-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-09-15 18:39   ` Michael Kerrisk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox