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.

Paolo


Reply via email to