From: Ewan Mellor Subject: Re: errno i xs_wire.h Date: Tue, 8 Nov 2005 12:22:42 +0000 Message-ID: <20051108122242.GI842@leeni.uk.xensource.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jacob Gorm Hansen Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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.