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


On 8 Nov 2005, at 21:59, Everhart, Craig wrote:

Yes, trusting that different OS's will map errno names to the same
integers is asking for trouble.  Doing it right means translating
the values between domains.  Harry had it right with "local" and
"wire" error values, translating between them.

There's overlap in the mappings, particularly for some of the
smallest error values, but it's best not to be seduced by
the overlap into assuming it continues.

We already have the distinction. We use text strings on the wire which are converted to/from local errno numbers at either end.

 -- Keir


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

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