This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-devel] [PATCH] Use stddef.h in Mini-OS to define size_t

To: ramsdell@xxxxxxxxx (John D. Ramsdell)
Subject: Re: [Xen-devel] [PATCH] Use stddef.h in Mini-OS to define size_t
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Mon, 1 May 2006 16:59:19 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Grzegorz Milos <gm281@xxxxxxxxx>
Delivery-date: Mon, 01 May 2006 08:59:34 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <ogthd494w7u.fsf@xxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <ogthd494w7u.fsf@xxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

On 1 May 2006, at 16:10, John D. Ramsdell wrote:

Please patch Mini-OS so that it uses stddef.h to define size_t and
NULL. This problem fixes errors that occur when linking Mini-OS with
ANSI standard code that uses stddef.h.

Linux goes to considerable pain to ensure that stdarg.h is the only system header that it needs to include. stddef.h looks like it ought to be safe in a kernel environment, but would it not be just as easy to modify the files that you are adding to the build? They're not being built in anything like a standard C environment: I would have thought that stddef.h would be the tip of the iceberg.

 -- Keir

Xen-devel mailing list