From owner-freebsd-current Tue Jul 2 16:40:15 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 5C26437B401 for ; Tue, 2 Jul 2002 16:40:11 -0700 (PDT) Received: from sccrmhc01.attbi.com (sccrmhc01.attbi.com [204.127.202.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id ADA1F43E13 for ; Tue, 2 Jul 2002 16:40:10 -0700 (PDT) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org ([12.232.206.8]) by sccrmhc01.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020702234009.JXSF29588.sccrmhc01.attbi.com@InterJet.elischer.org>; Tue, 2 Jul 2002 23:40:09 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id QAA99229; Tue, 2 Jul 2002 16:35:37 -0700 (PDT) Date: Tue, 2 Jul 2002 16:35:36 -0700 (PDT) From: Julian Elischer To: Garrett Wollman Cc: current@FreeBSD.ORG Subject: Re: additional queue macro In-Reply-To: <200207022326.g62NQMCl093288@khavrinen.lcs.mit.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Tue, 2 Jul 2002, Garrett Wollman wrote: > < said: > > > I would by the way argue that the statement "The queue macros always > > guaranteed that traversal was safe in the presence of deletions" to be > > false. Nowhere was this guaranteed, in fact the Manual page goes to > > lengths to NOT do this.. > > I'm fairly certain that this *was* documented somewhere, at some point > in time, although I can't find it in rev. 1.1 of either the > documentation or the code. Perhaps it was in a book (Stevens 2?). I would add that there is no occurance I could find in the kernel that assumes this.. (except the bad one I mentionned before in my own code) (at least it all runs fine with -1 put in that location on deletion), so I must not be alone in thinking that one shouldn't rely on it.. > > -GAWollman > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message