patch for freopen(NULL,...)

Christopher Faylor cgf-use-the-mailinglist-please@sourceware.org
Mon Jan 9 18:39:00 GMT 2006


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



More information about the Newlib mailing list