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 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] errno i xs_wire.h

To: Jacob Gorm Hansen <jacobg@xxxxxxx>
Subject: Re: [Xen-devel] errno i xs_wire.h
From: Ewan Mellor <ewan@xxxxxxxxxxxxx>
Date: Tue, 8 Nov 2005 12:22:42 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 08 Nov 2005 12:23:02 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <e08041f30511080404s6b838e38u83b3cd7f6224e5f7@xxxxxxxxxxxxxx>
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: <e08041f30511080404s6b838e38u83b3cd7f6224e5f7@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Tue, Nov 08, 2005 at 01:04:33PM +0100, Jacob Gorm Hansen wrote:

> hi,
> 
> playing with xenbus support in mini-os, I noticed that xs_wire.h
> references errno constants such as EINVAL. Is the use of these
> constants (which could be guest-OS specific) in the wire-protocol not
> problematic? Should xs_wire.h define its own set of constants to be
> used instead?

I believe that xsd_errors is a translation table between your EINVAL integer
code and the string "EINVAL", for use on the wire.  That means that the table
is correct to use the integer code appropriate to your platform.

Ewan.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>