summaryrefslogtreecommitdiffstats
path: root/share/man/man3/Makefile
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2008-05-22 14:40:03 +0000
committered <ed@FreeBSD.org>2008-05-22 14:40:03 +0000
commitd5f58395c36e992d3a854bd647f411bb67b6471b (patch)
treeb0da12855d9e0a37cd43331a956e65edea4624da /share/man/man3/Makefile
parent48d3064e97a093b9da51c6dc8eb2550ce2057454 (diff)
downloadFreeBSD-src-d5f58395c36e992d3a854bd647f411bb67b6471b.zip
FreeBSD-src-d5f58395c36e992d3a854bd647f411bb67b6471b.tar.gz
Introduce REMOVE_NEXT() macro's for SLIST and STAILQ.
Even though single linked lists allow items to be removed at constant time (when the previous element is known), the queue macro's don't allow this. Implement new REMOVE_NEXT() macro's. Because the REMOVE() macro's also contain the same code, make it call REMOVE_NEXT(). The OpenBSD version of SLIST_REMOVE_NEXT() needs a reference to the list head, even though it is unused. We'd better mimic this. The STAILQ version also needs a reference to the list. This means the prototypes of both macro's are the same. Approved by: philip (mentor) PR: kern/121117
Diffstat (limited to 'share/man/man3/Makefile')
-rw-r--r--share/man/man3/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/share/man/man3/Makefile b/share/man/man3/Makefile
index b673945..2513a60 100644
--- a/share/man/man3/Makefile
+++ b/share/man/man3/Makefile
@@ -63,6 +63,7 @@ MLINKS+= queue.3 LIST_EMPTY.3 \
queue.3 SLIST_NEXT.3 \
queue.3 SLIST_REMOVE.3 \
queue.3 SLIST_REMOVE_HEAD.3 \
+ queue.3 SLIST_REMOVE_NEXT.3 \
queue.3 STAILQ_CONCAT.3 \
queue.3 STAILQ_EMPTY.3 \
queue.3 STAILQ_ENTRY.3 \
@@ -79,6 +80,7 @@ MLINKS+= queue.3 LIST_EMPTY.3 \
queue.3 STAILQ_NEXT.3 \
queue.3 STAILQ_REMOVE.3 \
queue.3 STAILQ_REMOVE_HEAD.3 \
+ queue.3 STAILQ_REMOVE_NEXT.3 \
queue.3 TAILQ_CONCAT.3 \
queue.3 TAILQ_EMPTY.3 \
queue.3 TAILQ_ENTRY.3 \
OpenPOWER on IntegriCloud