This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2.1 1/2][BZ #16274] Fix shm_open.


On Tue, Dec 03, 2013 at 10:09:15AM -0500, Carlos O'Donell wrote:
> On 12/03/2013 06:20 AM, OndÅej BÃlka wrote:
> >> Shouldn't this be s/0/-1/g? It's a real failure?
> > 
> > It is failure as we passed EXIT_FAILURE to status, arguments to error are:
> > 
> >  error (int status, int errnum, const char *format, ...)
> > 
> 
> Sorry, I forgot the order of the arguments to this function.
> 
> Let me rephrase my question more precisely.
> 
> Should we instead use:
> 
> error (EXIT_FAILURE, errno, "failed to create shared memory object: shm_open");
> 
> Such that we print:
> 
> "failed to create shared memory object: shm_open: `strerror(errno)'"
> 
Possible but as existing checks pass 0 we should also convert them as
separate patch.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]