Source-Changes-HG archive

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

[src/trunk]: src/share/man/man3 correct descriptions of SLIST_REMOVE_HEAD() a...



details:   https://anonhg.NetBSD.org/src/rev/c1742bb19b4f
branches:  trunk
changeset: 532145:c1742bb19b4f
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sat Jun 01 06:08:07 2002 +0000

description:
correct descriptions of SLIST_REMOVE_HEAD() and SIMPLEQ_REMOVE_HEAD()

diffstat:

 share/man/man3/queue.3 |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (49 lines):

diff -r e1b62e75638e -r c1742bb19b4f share/man/man3/queue.3
--- a/share/man/man3/queue.3    Sat Jun 01 03:41:33 2002 +0000
+++ b/share/man/man3/queue.3    Sat Jun 01 06:08:07 2002 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: queue.3,v 1.22 2002/02/13 08:17:29 ross Exp $
+.\"    $NetBSD: queue.3,v 1.23 2002/06/01 06:08:07 lukem Exp $
 .\"
 .\" Copyright (c) 2000 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -64,7 +64,7 @@
 .\"
 .\"    @(#)queue.3     8.1 (Berkeley) 12/13/93
 .\"
-.Dd July 19, 2000
+.Dd June 1, 2002
 .Dt QUEUE 3
 .Os
 .Sh NAME
@@ -162,7 +162,7 @@
 .Fn SLIST_INSERT_AFTER "TYPE *listelm" "TYPE *elm" "SLIST_ENTRY NAME"
 .Fn SLIST_INSERT_HEAD "SLIST_HEAD *head" "TYPE *elm" "SLIST_ENTRY NAME"
 .Fn SLIST_REMOVE "SLIST_HEAD *head" "TYPE *elm" "TYPE" "SLIST_ENTRY NAME"
-.Fn SLIST_REMOVE_HEAD "TYPE *elm" "SLIST_ENTRY NAME"
+.Fn SLIST_REMOVE_HEAD "SLIST_HEAD *head" "SLIST_ENTRY NAME"
 .Ft int
 .Fn SLIST_EMPTY "SLIST_HEAD *head"
 .Ft TYPE *
@@ -430,9 +430,7 @@
 .Pp
 The macro
 .Nm SLIST_REMOVE_HEAD
-removes the element
-.Fa elm
-from the head of the list.
+removes the first element from the head of the list.
 For optimum efficiency,
 elements being removed from the head of the list should explicitly use
 this macro instead of the generic
@@ -680,7 +678,9 @@
 .Pp
 The macro
 .Nm SIMPLEQ_REMOVE_HEAD
-removes the first element from the simple queue.
+removes all the elements up to and including
+.Fa elm
+from the simple queue.
 .Pp
 The macro
 .Nm SIMPLEQ_EMPTY



Home | Main Index | Thread Index | Old Index