From: tgh Subject: Re: how does variable num define for errno in libxc Date: Wed, 19 Mar 2008 16:06:41 +0800 Message-ID: <47E0C991.5070704@sina.com.cn> References: <47E08D22.10803@ncic.ac.cn> <1205899750.12674.4.camel@thinkpad.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1205899750.12674.4.camel@thinkpad.localdomain> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Daniel Stodden Cc: xen-devel List-Id: xen-devel@lists.xenproject.org Thank you and man errno ,there is no match or map between num,say 104 and =20 consist ,say EBADMSG, or maybe some book more helpful another question i am confused about how to use shadow mechanism ,that is, when live=20 migration, after shutdown VM,and XEN_DOMCTL_SHADOW_OP_CLEAN, how to make = VM =20 remain in shadow mode XEN_DOMCTL_SHADOW_OP_ENABLE_LOGDIRTY? i have=20 modified the code to try to make it as follows if ( !(xc_shadow_control(xc_handle, dom,=20 XEN_DOMCTL_SHADOW_OP_OFF, NULL, 0, NULL, 0, NULL) >=3D 0 && xc_shadow_control(xc_handle, dom, XEN_DOMCTL_SHADOW_OP_ENABLE_LOGDIRTY= , NULL, 0, NULL, 0, NULL) >=3D 0) ) but it seems not to work , and how to do it ,or any help Thanks Daniel Stodden =E5=86=99=E9=81=93: > On Wed, 2008-03-19 at 11:48 +0800, tgh wrote: > =20 >> hi >> i try to modify code of xc_domain_save.c >> and there is error, comes out from ERROR("Error when writing to state >> file (5)" " (errno %d)", errno); >> i am confused about where is the errno defined ,and what does variable >> num mean? say errno=3D104 or errno=3D26 or some else >> =20 > > Error numbers are a C library feature. If you're running Linux, check > whether you have installed the base development manual pages and try > 'man errno'. Or see a good book on C programming. > > good luck, > Daniel > > =20