This is the mail archive of the libc-alpha@sources.redhat.com 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: bug-wfflush.out Error 1


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;
    }



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