This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: bug-wfflush.out Error 1
- From: Kaoru Fukui <k_fukui at highway dot ne dot jp>
- To: k_fukui at highway dot ne dot jp
- Cc: aj at suse dot de, libc-alpha at sources dot redhat dot com
- Date: Fri, 1 Nov 2002 06:02:16 +0900 (JST)
- Subject: Re: bug-wfflush.out Error 1
- Reply-to: Kaoru Fukui <k_fukui at highway dot ne dot jp>
On 31 Oct, To: k_fukui@highway.ne.jp wrote:
> On 31 Oct, To: aj@suse.de wrote:
>> On 31 Oct, Andreas Jaeger wrote:
>>
>>> Please send the file bug-wfflush.out, it might indicate the exact
>>> problem.
>>
>> it was empty
>
> Not empty, SORRY.
> ---bug-wfflush.out--
> fflush: Invalid argument
>
>
> ------------------------
> make[2]: Entering directory `/usr/src/redhat/BUILD/glibc-2.3.1/libio'
> make[2]: *** [/usr/src/redhat/BUILD/glibc-2.3.1/build-ppc-linux/libio/bug-wfflush.out] Error 1
> make[2]: Target `tests' not remade because of errors.
> make[2]: Leaving directory `/usr/src/redhat/BUILD/glibc-2.3.1/libio'
> make[1]: *** [libio/tests] Error 2
> ------------------
The cause of the problem had
if (fwprintf (f, L_("1!")) < 2)
I tried delete fwprinf() that it's no problem.
So fflush was not problem.
Kaoru
-------- bug-wfflush.c ---------
}
#if 0
if (fwprintf (f, L_("1!")) < 2)
{
printf ("fwprintf: %m\n");
return 1;
}
#endif
if (fflush (f) != 0)
{
printf ("fflush: %m\n");
return 1;
}