| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| To: | Rolf Maier <r-maier AT shaw DOT ca> |
| Cc: | cygwin AT cygwin DOT com |
| Subject: | Re: freopen fails w/o complaining |
| References: | <000701c337c5$00da5720$657c9244 AT cg DOT shawcable DOT net> |
| From: | Benjamin Riefenstahl <Benjamin DOT Riefenstahl AT epost DOT de> |
| Date: | Sat, 21 Jun 2003 20:49:33 +0200 |
| In-Reply-To: | <000701c337c5$00da5720$657c9244@cg.shawcable.net> (Rolf Maier's |
| message of "Sat, 21 Jun 2003 01:16:14 -0600") | |
| Message-ID: | <m33ci3nu4i.fsf@seneca.benny.turtle-trading.net> |
| User-Agent: | Gnus/5.1001 (Gnus v5.10.1) Emacs/21.3.50 (gnu/linux) |
| MIME-Version: | 1.0 |
Hi Rolf,
Cygwin-xfree is the wrong list for this, where did you get the idea
that it was the right place? I'll CC this to the right list, but note
that I myself am not subscribed there, so please CC me.
Rolf Maier <r-maier AT shaw DOT ca> writes:
> freopen does not always work, [...] Here is an example that won't
> work:
>
> #include <stdio.h>
>
> main ()
> {
> (void) freopen ("of1", "w", stdout);
> (void) puts ("xxxxxxxxxxxxxxxxxxxxxx");
> exit (0);
> }
>
> freopen will silently quit.
>
> [...]
>
> My cygwin release version (uname -a):
> CYGWIN_98-4.10 s6v4u3 1.3.22(0.78/3/2) 2003-03-18 09:20 i686 unknown unknown
> Cygwin
Your program exactly as above works fine here:
>>>>>>>>
c:\tmp> gcc freopen.c
gcc freopen.c
c:\tmp> a.exe
a.exe
c:\tmp> type of1
type of1
xxxxxxxxxxxxxxxxxxxxxx
c:\tmp> uname -a
uname -a
CYGWIN_NT-5.0 caesar 1.3.22(0.78/3/2) 2003-03-18 09:20 i686 unknown unknown Cygwin
c:\tmp>
<<<<<<<<
What did you do different? What was your command-line?
Hope this helps, benny
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |