Re: [Qemu-devel] [PATCH v3 2/5] add qemu_fopen_err

2012-03-23 Thread Alon Levy
On Fri, Mar 23, 2012 at 11:22:48AM -0300, Luiz Capitulino wrote: > On Sun, 18 Mar 2012 19:29:10 +0100 > Alon Levy wrote: > > > This adds a helper to conveniently set the correct error based on the > > errno after a failed fopen. > > > > The added function is placed in it's own c file to allow li

Re: [Qemu-devel] [PATCH v3 2/5] add qemu_fopen_err

2012-03-23 Thread Luiz Capitulino
On Sun, 18 Mar 2012 19:29:10 +0100 Alon Levy wrote: > This adds a helper to conveniently set the correct error based on the > errno after a failed fopen. > > The added function is placed in it's own c file to allow libcacard to > not develop dependencies on everything that qerror will bring in,

[Qemu-devel] [PATCH v3 2/5] add qemu_fopen_err

2012-03-18 Thread Alon Levy
This adds a helper to conveniently set the correct error based on the errno after a failed fopen. The added function is placed in it's own c file to allow libcacard to not develop dependencies on everything that qerror will bring in, which includes monitor and half of qemu. I tried to make it as l