WARNING - OLD ARCHIVES

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/
Xen

xen-devel

[Top] [All Lists]

Re: [Xen-devel] build fixes

To: Christoph Egger <Christoph.Egger@xxxxxxx>
Subject: Re: [Xen-devel] build fixes
From: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Date: 2010年1月12日 17:22:01 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: 2010年1月12日 09:22:30 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <201001111258.26274.Christoph.Egger@xxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Newsgroups: chiark.mail.xen.devel
References: <201001111258.26274.Christoph.Egger@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Christoph Egger writes ("[Xen-devel] build fixes"):
> Attached patch fixes Xen build on NetBSD.
Nack.
> +#include <sys/wait.h> /* for pid_t */
This is fine but should read:
 #include <sys/wait.h>
as there is no point putting
 /* for somethingorother */
after every #include.
> - if (!isdigit(p[i])) {
> + if (!isdigit((uint8_t)p[i])) {
This is correct on all platforms. But it should be fixed by some more
general approach, as it's needed for almost every call to a ctype
macro.
> - seek_ret = lseek64(fd, i << PAGE_SHIFT, SEEK_SET);
> + seek_ret = lseek(fd, i << PAGE_SHIFT, SEEK_SET);
This is just wrong. It will break on >2G files.
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: Re: [Xen-devel] Xen 4.0.0 first release candidate , Keir Fraser
Next by Date: Re: [Xen-devel] [PATCH, RFC 3/4] qemu: use new (replacement) mmap-batch ioctl , Ian Jackson
Previous by Thread: [Xen-devel] build fixes , Christoph Egger
Next by Thread: Re: [Xen-devel] build fixes , Christoph Egger
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /