delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/02/27/14:06:09

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type; q=dns; s=default; b=JYI7/Ha
+ixwUFHB3wppOH4OmEsM10xEr55gFVn1Mk3VQR0YkJHubrODPPIdG0Nk3MQBtj4o
HLuKnTKNBJHcqWSH/HewwHTAa2a5sSUrWeGIImUVS40o5GU1mwyiriRUnxkhWABw
gRIk0z3/uC6PVzbKdcPbBI6fLyqie9Qcq1mQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type; s=default; bh=/EBiiRvjlXaZv
EIa9df3RK+BIpU=; b=wqnBlE5Sb1u6whp60Uht71rWIYVfPUp+Z5PSu6hko3d8R
Z/6pCUHt5SMByubJUPpqbeFKl92Rmbg3epIJTjwXMKcmbpsz693zXAThzawBju2u
UVn3h5vaZzwcFMN1zLAlgf4+53hOVwHgRBbXt/ZkqVVl4924wBxPRV1KCGULJc=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=3.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2
X-HELO: mail-ig0-f176.google.com
X-Received: by 10.107.9.213 with SMTP id 82mr20546302ioj.56.1425063920213; Fri, 27 Feb 2015 11:05:20 -0800 (PST)
MIME-Version: 1.0
In-Reply-To: <CAKVG1_qobJxAZSeZDozsGb7pb3ugYk_AgmEJXU-wRt+ifhf-QA@mail.gmail.com>
References: <CAKVG1_qobJxAZSeZDozsGb7pb3ugYk_AgmEJXU-wRt+ifhf-QA AT mail DOT gmail DOT com>
From: A L <al20878 AT gmail DOT com>
Date: Fri, 27 Feb 2015 14:04:59 -0500
Message-ID: <CAKVG1_qNT=QfCdOAs1VbUrU9v6jbGtj3c9S88gz9cqfuZhQhvg@mail.gmail.com>
Subject: Re: freopen/fread/popen bug
To: cygwin AT cygwin DOT com

> Thanks (and thanks to Corinna and Eric) for correcting my misconceptions.

You're welcome.  I only wanted to follow up that (I don't know what
the heck happened to my head, but) when I was
referring to file descriptors, I was consistently and mistakenly using
"1" where "0" should have been used:
stdin is at "0", and stdout is at "1" (and your code shares input
stream with "cat", i.e. fd 0).  Apologies.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019