patch for freopen(NULL,...)
Jeff Johnston
jjohnstn@redhat.com
Mon Jan 9 20:00:00 GMT 2006
Christopher Faylor wrote:
> On Mon, Jan 09, 2006 at 12:54:23PM -0500, Jeff Johnston wrote:
>
>>Patch checked in with minor modifications. A check was required for
>>HAVE_FCNTL before using _fcntl_r. I also initialized e which was
>>generating a warning message because of the new if clause.
>
>
> .../i686-pc-cygwin/newlib/libc/libc.a(freopen.o): In function `_freopen_r':
> .../newlib/libc/stdio/freopen.c:167: undefined reference to `__isatty'
> .../i686-pc-cygwin/newlib/libc/libc.a(freopen64.o): In function `_freopen64_r':
> .../newlib/libc/stdio64/freopen64.c:167: undefined reference to `__isatty'
>
> Isn't that supposed to just be "isatty()" not "_isatty()"? I'm
> wondering how this could have ever been linked.
>
> cgf
>
It builds and links fine under x86-linux which I usually use for my
testing. I'll switch it over immediately to match the usage in
libc/stdio/makebuf.c.
-- Jeff J.
More information about the Newlib
mailing list