summaryrefslogtreecommitdiff
path: root/share/man
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-02-03 16:36:41 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-02-03 16:36:41 +0000
commitf8dd10f1b2f3019293a0ec3b84b709b66fe64553 (patch)
treee072f7724e3d5e25038d0038ec7ab0a623943a72 /share/man
parentc3bb1e1e567a4e9e22101cd7b716481b6bdea75d (diff)
document SLIST_REMOVE; vedge@csoft.org (pr2373)
Diffstat (limited to 'share/man')
-rw-r--r--share/man/man3/queue.312
1 files changed, 11 insertions, 1 deletions
diff --git a/share/man/man3/queue.3 b/share/man/man3/queue.3
index 6e2b2027b79..0535b18e192 100644
--- a/share/man/man3/queue.3
+++ b/share/man/man3/queue.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: queue.3,v 1.20 2001/08/02 19:06:58 mpech Exp $
+.\" $OpenBSD: queue.3,v 1.21 2002/02/03 16:36:40 jason Exp $
.\" $NetBSD: queue.3,v 1.4 1995/07/03 00:25:36 mycroft Exp $
.\"
.\" Copyright (c) 1993 The Regents of the University of California.
@@ -50,6 +50,7 @@
.Nm SLIST_INSERT_AFTER ,
.Nm SLIST_INSERT_HEAD ,
.Nm SLIST_REMOVE_HEAD ,
+.Nm SLIST_REMOVE ,
.Nm LIST_ENTRY ,
.Nm LIST_HEAD ,
.Nm LIST_HEAD_INITIALIZER ,
@@ -135,6 +136,8 @@
.Fn SLIST_INSERT_HEAD "SLIST_HEAD *head" "struct TYPE *elm" "SLIST_ENTRY NAME"
.Ft void
.Fn SLIST_REMOVE_HEAD "SLIST_HEAD *head" "SLIST_ENTRY NAME"
+.Ft void
+.Fn SLIST_REMOVE "SLIST_HEAD *head" "TYPE *elm" "TYPE" "SLIST_ENTRY NAME"
.Pp
.Fn LIST_ENTRY "TYPE"
.Fn LIST_HEAD "HEADNAME" "TYPE"
@@ -444,6 +447,13 @@ macro removes the first element of the list pointed by
.Fa head .
.Pp
The
+.Fn SLIST_REMOVE
+macro removes the element
+.Fa elm
+of the list pointed by
+.Fa head .
+.Pp
+The
.Fn SLIST_FIRST ,
and
.Fn SLIST_NEXT