Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/stdlib Various fixes, mostly missing words or letters.
details: https://anonhg.NetBSD.org/src/rev/f15348bdd75a
branches: trunk
changeset: 769576:f15348bdd75a
user: wiz <wiz%NetBSD.org@localhost>
date: Thu Sep 15 09:14:54 2011 +0000
description:
Various fixes, mostly missing words or letters.
diffstat:
lib/libc/stdlib/hcreate.3 | 23 ++++++++++++-----------
1 files changed, 12 insertions(+), 11 deletions(-)
diffs (81 lines):
diff -r 6e0a5d3a1222 -r f15348bdd75a lib/libc/stdlib/hcreate.3
--- a/lib/libc/stdlib/hcreate.3 Wed Sep 14 23:37:32 2011 +0000
+++ b/lib/libc/stdlib/hcreate.3 Thu Sep 15 09:14:54 2011 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: hcreate.3,v 1.9 2011/09/14 23:33:51 christos Exp $
+.\" $NetBSD: hcreate.3,v 1.10 2011/09/15 09:14:54 wiz Exp $
.\"
.\" Copyright (c) 1999 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -60,8 +60,8 @@
.Fn hcreate_r ,
.Fn hdestroy ,
.Fn hdestroy_r
+.Fn hsearch ,
and
-.Fn hsearch ,
.Fn hsearch_r
functions manage hash search tables.
.Pp
@@ -170,8 +170,8 @@
.Fn hdestroy_r ,
and
.Fn hsearch_r
-are re-entrant versions of the above functions that can operate on a table
-supplied by the user.
+functions are re-entrant versions of the above functions that can
+operate on a table supplied by the user.
The
.Fn hsearch_r
function returns
@@ -192,7 +192,7 @@
.Fn hcreate
and
.Fn hcreate_r
-function return a non-zero value.
+functions return a non-zero value.
Otherwise, a value of
.Dv 0
is returned and
@@ -229,7 +229,7 @@
.Dv 1
unless the table is full, when it returns
.Dv 0 .
-If the
+If
.Fn hsearch
returns
.Dv 0
@@ -254,10 +254,11 @@
and
.Fn hsearch_r
functions will also fail if the action is
-.Dv SEARCH and the element is not found:
+.Dv SEARCH
+and the element is not found:
.Bl -tag -width Er
.It Bq Er ESRCH
-The
+The
.Fa item
given is not found.
.El
@@ -287,15 +288,15 @@
.Fn hdestroy_r
and
.Fn hsearch_r
-are
+functions are
.Tn GNU
extensions.
.Sh CAVEATS
At least the following limitations can be mentioned:
.Bl -bullet
.It
-The original, non-
-.Tn GNU
+The original,
+.Pf non- Tn GNU
interface permits the use of only one hash table at a time.
.It
Individual hash table entries can be added, but not deleted.
Home |
Main Index |
Thread Index |
Old Index