From: Daniel Stodden Subject: Re: how does variable num define for errno in libxc Date: Wed, 19 Mar 2008 05:09:10 +0100 Message-ID: <1205899750.12674.4.camel@thinkpad.localdomain> References: <47E08D22.10803@ncic.ac.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <47E08D22.10803@ncic.ac.cn> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: tgh Cc: xen-devel List-Id: xen-devel@lists.xenproject.org On Wed, 2008-03-19 at 11:48 +0800, tgh wrote: > 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 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 Daniel Stodden LRR - Lehrstuhl f=C3=BCr Rechnertechnik und Rechnerorganisation Institut f=C3=BCr Informatik der TU M=C3=BCnchen D-85748 Garc= hing http://www.lrr.in.tum.de/~stodden mailto:stodden@cs.tum.edu PGP Fingerprint: F5A4 1575 4C56 E26A 0B33 3D80 457E 82AE B0D8 735B