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: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] errno i xs_wire.h
From: Oleg Goldshmidt <pub@xxxxxxxxxxxxxx>
Date: 08 Nov 2005 18:26:01 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Jacob Gorm Hansen <jacobg@xxxxxxx>
Delivery-date: Tue, 08 Nov 2005 15:18:51 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <200511081325.18626.mark.williamson@xxxxxxxxxxxx>
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>
Organization: Speaking for myself only.
References: <e08041f30511080404s6b838e38u83b3cd7f6224e5f7@xxxxxxxxxxxxxx> <200511081325.18626.mark.williamson@xxxxxxxxxxxx>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp)
Mark Williamson <mark.williamson@xxxxxxxxxxxx> writes:

> > 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)
> 
> Isn't the basic set of errno vals posix standardised?  So even if a guest OS 
> doesn't deal in errnos itself, it can just import the BSD errno.h or 
> similar...?

POSIX does not standardise errno *values*. It only specifies a set of
symbolic error names and their meanings, and says that all the POSIX
symbolic error names must have distinct values.

So if you need to share the values between entities that may have
different error name/value mappings (even if everybody is
POSIX-compliant) you need a conversion protocol.

I suppose "man errno" will give you the set of POSIX error names.

-- 
Oleg Goldshmidt | pub@xxxxxxxxxxxxxxxxxxxxx | http://www.goldshmidt.org

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

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