putc on unbuffered FILE
Jakub Jelinek
jakub@redhat.com
Mon Jul 3 14:54:00 GMT 2000
On Mon, Jul 03, 2000 at 02:40:36PM -0700, Ulrich Drepper wrote:
> Jakub Jelinek <jakub@redhat.com> writes:
>
> > int main(void)
> > {
> > putc('1', stderr);
> > putc('2', stderr);
> > }
>
> Thanks for the test. I've added it and checked in a patch.
Thanks for fixing it (I got to starting debugger on it just now).
Am just wondering if your tst-unbputc.sh will work: the program does not
insert the trailing newline (and putting there a third putc would cause the
test to pass even with glibc before your patch) and so cmp will complain.
So, I'd think you might need to add something like
echo >> ${common_objpfx}stdio-common/tst-unbputc.out
before the cmp line.
Jakub
More information about the Libc-hacker
mailing list