bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: more gcc warnings


From: Paul Eggert
Subject: Re: more gcc warnings
Date: Thu, 14 Jul 2005 17:03:27 -0700
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

Eric Blake <address@hidden> writes:

> As it is, you will need a wrapper for freopen.  At least Solaris 8 and cygwin 
> 1.5.18 choke on the program below,

Solaris 8 won't choke with the way coreutils invokes it, since it
always looks something like this:

      if (O_BINARY && ! isatty (STDIN_FILENO))
        freopen (NULL, "rb", stdin);

and O_BINARY is zero in Solaris 8.

So we don't have to worry about this problem with traditional Unix
implementations; only with DOS-like ones.

> has broken coreutils CVS head on cygwin until we have a replacement freopen 
> that can handle a NULL filename when the platform won't.

Is it easy to write an freopen wrapper for cygwin?  And have it do the
isatty check as well?  That way, we can migrate the "&& ! isatty
(fileno (stream))" part out of the mailine code.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]