This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] argp: Use fwrite_unlocked instead of __fxprintf when !_LIBC
- From: Florian Weimer <fweimer at redhat dot com>
- To: Khem Raj <raj dot khem at gmail dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Mon, 4 Jan 2016 08:10:38 +0100
- Subject: Re: [PATCH] argp: Use fwrite_unlocked instead of __fxprintf when !_LIBC
- Authentication-results: sourceware.org; auth=none
- References: <1451679626-28351-1-git-send-email-raj dot khem at gmail dot com>
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?
Thanks,
Florian