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] argp: Use fwrite_unlocked instead of __fxprintf when !_LIBC


On Mon, 4 Jan 2016, Florian Weimer wrote:

> On 01/01/2016 09:20 PM, Khem Raj wrote:
> 
> > +#ifdef _LIBC
> >        __fxprintf (fs->stream, "%.*s", (int) (fs->p - fs->buf), fs->buf);
> > +#else
> > +      fwrite_unlocked (fs->buf, 1, fs->p - fs->buf, fs->stream);
> > +#endif
> 
> Why not use fwrite_unlocked unconditionally?

Does fwrite_unlocked work on wide-oriented streams in glibc (the point of 
__fxprintf as I understand it being to work whatever the orientation of 
the stream)?

-- 
Joseph S. Myers
joseph@codesourcery.com


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