[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH 7/9] qdev: Use QError for not found error

From: Paolo Bonzini
Subject: [Qemu-devel] Re: [PATCH 7/9] qdev: Use QError for not found error
Date: Mon, 19 Oct 2009 13:22:54 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20091014 Fedora/3.0-2.8.b4.fc11 Lightning/1.0pre Thunderbird/3.0b4

On 10/19/2009 12:40 PM, Gerd Hoffmann wrote:
'could not open device: permission denied' 'could not open device:
no such file or directory' 'could not open device: device or
resource busy'

Which makes me wonder whenever it makes sense to re-use errno for the
error codes instead of inventing our own QERR_* codes?

The errno would be just one field in the error.  You'd have
QERR_COULD_NOT_OPEN with a string field EACCES/ENOENT/EBUSY/Ewhatever.

Not the numbers of course because they are not standardized as far I
know, but the Ename strings.

No, numbers are not standardized.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]