From owner-cvs-src@FreeBSD.ORG Thu May 22 14:40:03 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B14871065685; Thu, 22 May 2008 14:40:03 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 998348FC21; Thu, 22 May 2008 14:40:03 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m4MEe3mJ039560; Thu, 22 May 2008 14:40:03 GMT (envelope-from ed@repoman.freebsd.org) Received: (from ed@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m4MEe32W039559; Thu, 22 May 2008 14:40:03 GMT (envelope-from ed) Message-Id: <200805221440.m4MEe32W039559@repoman.freebsd.org> From: Ed Schouten Date: Thu, 22 May 2008 14:40:03 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/share/man/man3 Makefile queue.3 src/sys/sys queue.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 May 2008 14:40:03 -0000 ed 2008-05-22 14:40:03 UTC FreeBSD src repository Modified files: share/man/man3 Makefile queue.3 sys/sys queue.h Log: 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 Revision Changes Path 1.48 +2 -0 src/share/man/man3/Makefile 1.42 +20 -0 src/share/man/man3/queue.3 1.69 +14 -5 src/sys/sys/queue.h