summaryrefslogtreecommitdiffstats
path: root/share/man/man3/queue.3
diff options
context:
space:
mode:
authorjason <jason@openbsd.org>2002-02-03 16:36:40 +0000
committerjason <jason@openbsd.org>2002-02-03 16:36:40 +0000
commit14bdd124cdb5bb0b45e3fd35e0459fb290c15ee8 (patch)
treebcc4cb2148640bc35acd564e6e73265b13b5d6ad /share/man/man3/queue.3
parentrestore hpt size computation, does not break things as i thought (diff)
downloadwireguard-openbsd-14bdd124cdb5bb0b45e3fd35e0459fb290c15ee8.tar.xz
wireguard-openbsd-14bdd124cdb5bb0b45e3fd35e0459fb290c15ee8.zip
document SLIST_REMOVE; vedge@csoft.org (pr2373)
Diffstat (limited to 'share/man/man3/queue.3')
-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