From owner-freebsd-current Tue Jul 2 14:14:26 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AEB3237B88D for ; Tue, 2 Jul 2002 14:12:10 -0700 (PDT) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1790B44015 for ; Tue, 2 Jul 2002 09:54:09 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: from khavrinen.lcs.mit.edu (localhost [IPv6:::1]) by khavrinen.lcs.mit.edu (8.12.3/8.12.3) with ESMTP id g62Gs6DK090816; Tue, 2 Jul 2002 12:54:07 -0400 (EDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.12.3/8.12.3/Submit) id g62Gs67R090813; Tue, 2 Jul 2002 12:54:06 -0400 (EDT) (envelope-from wollman) Date: Tue, 2 Jul 2002 12:54:06 -0400 (EDT) From: Garrett Wollman Message-Id: <200207021654.g62Gs67R090813@khavrinen.lcs.mit.edu> To: Jonathan Lemon Cc: current@FreeBSD.ORG Subject: additional queue macro In-Reply-To: <20020702095402.D1020@prism.flugsvamp.com> References: <20020702095402.D1020@prism.flugsvamp.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG < said: > Essentially, this provides a traversal of the tailq that is safe > from element removal, while being simple to drop in to those sections > of the code that need updating, as evidenced in the patch below. The queue macros always guaranteed that traversal was safe in the presence of deletions. Julian's change is erroneous and should be reverted for compatibility with the other implementations of queue(3). -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message