[CRIU] [PATCH 2/8] lib: add criu.h

Cyrill Gorcunov gorcunov at gmail.com
Wed Dec 4 03:04:08 PST 2013


On Wed, Dec 04, 2013 at 05:59:27PM +0400, Ruslan Kuprieiev wrote:
> On 04.12.2013 14:58, Cyrill Gorcunov wrote:
> >On Wed, Dec 04, 2013 at 05:51:41PM +0400, Ruslan Kuprieiev wrote:
> >>On 04.12.2013 14:50, Cyrill Gorcunov wrote:
> >>>On Wed, Dec 04, 2013 at 05:45:52PM +0400, Ruslan Kuprieiev wrote:
> >>>>>>Our own error codes are more informative.
> >>>>>No, they are not. Plz, use standard errno codes.
> >>>>But how can i get from standard codes, for example, whether lib
> >>>>failed because request is invalid? With this codes, i can.
> >>>-EINVAL
> >>And how to separate this case from invalid response?
> >I guess it would be -EBADMSG, take a look on http://man7.org/linux/man-pages/man3/errno.3.html
> Oh, I see. Thanks.

Look, I think custom error codes can be used but only if there is
absolutely no way to use standart error codes, which is happening
quite rarely.


More information about the CRIU mailing list