From: Ian Jackson Subject: Re: [PATCH] libxl: Include a version of bsd's queue.h Date: Tue, 25 Oct 2011 18:58:41 +0100 Message-ID: <20134.63697.38240.276236@mariner.uk.xensource.com> References: <20134.62279.50041.126603@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20134.62279.50041.126603@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Jackson Cc: Anthony PERARD , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Ian Jackson writes ("[Xen-devel] [PATCH] libxl: Include a version of bsd's queue.h"): > We would like some linked list macros which are (a) well known to be > sane and (b) typesafe. BSD's queue.h meets these criteria. > > The files in this changeset were obtained with: > svn co -r 221843 svn://svn.freebsd.org/base/head/sys/sys/ > svn co -r 221843 svn://svn.freebsd.org/base/head/share/man/man3 I posted this because I noticed (too late) that libxl_qmp.c includes and uses some macros that are only available in some queue.h versions. This is not ideal for portability of course. I think it would be good to include this massaged queue.h and use it in libxl_qmp.c. Ian.