summaryrefslogtreecommitdiff
path: root/share/man/man3/queue.3
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2012-01-11 00:06:49 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2012-01-11 00:06:49 +0000
commit4646d03381b43d034623d2442dc63ee658d42ab1 (patch)
tree9d1378cf559d6b404101b48be5adb13ca645d32a /share/man/man3/queue.3
parent273751925371291287be0b0e2928a26dcba5681c (diff)
Remove SLIST_FOREACH_PREVPTR from src tree, it is not used anymore.
ok guenther@ deraadt@
Diffstat (limited to 'share/man/man3/queue.3')
-rw-r--r--share/man/man3/queue.315
1 files changed, 2 insertions, 13 deletions
diff --git a/share/man/man3/queue.3 b/share/man/man3/queue.3
index 7ac90b85f01..dac05ac707f 100644
--- a/share/man/man3/queue.3
+++ b/share/man/man3/queue.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: queue.3,v 1.52 2011/07/09 08:43:01 jmc Exp $
+.\" $OpenBSD: queue.3,v 1.53 2012/01/11 00:06:48 bluhm 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.
@@ -30,7 +30,7 @@
.\"
.\" @(#)queue.3 8.1 (Berkeley) 12/13/93
.\"
-.Dd $Mdocdate: July 9 2011 $
+.Dd $Mdocdate: January 11 2012 $
.Dt QUEUE 3
.Os
.Sh NAME
@@ -43,7 +43,6 @@
.Nm SLIST_EMPTY ,
.Nm SLIST_FOREACH ,
.Nm SLIST_FOREACH_SAFE ,
-.Nm SLIST_FOREACH_PREVPTR ,
.Nm SLIST_INIT ,
.Nm SLIST_INSERT_AFTER ,
.Nm SLIST_INSERT_HEAD ,
@@ -136,7 +135,6 @@
.Fn SLIST_EMPTY "SLIST_HEAD *head"
.Fn SLIST_FOREACH "VARNAME" "SLIST_HEAD *head" "SLIST_ENTRY NAME"
.Fn SLIST_FOREACH_SAFE "VARNAME" "SLIST_HEAD *head" "SLIST_ENTRY NAME" "TEMP_VARNAME"
-.Fn SLIST_FOREACH_PREVPTR "VARNAME" "VARNAMEP" "SLIST_HEAD *head" "SLIST_ENTRY NAME"
.Ft void
.Fn SLIST_INIT "SLIST_HEAD *head"
.Ft void
@@ -509,15 +507,6 @@ it is permitted to remove var as well
as free it from within the loop safely without interfering with the traversal.
.Pp
The
-.Fn SLIST_FOREACH_PREVPTR
-macro is similar to
-.Fn SLIST_FOREACH
-except that it stores a pointer to the previous element in
-.Fa VARNAMEP .
-This provides access to the previous element while traversing the list,
-as one would have with a doubly-linked list.
-.Pp
-The
.Fn SLIST_EMPTY
macro should be used to check whether a simple list is empty.
.Sh SINGLY-LINKED LIST EXAMPLE