www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/03/30/07:41:09

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Message-ID: <02ff01c0b916$66480970$0200a8c0@lifelesswks>
From: "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au>
To: <cygwin-developers AT cygwin DOT com>
Subject: clearerr
Date: Fri, 30 Mar 2001 21:33:49 +1000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
X-OriginalArrivalTime: 30 Mar 2001 12:33:43.0231 (UTC) FILETIME=[A81D2CF0:01C0B915]

I'm confused - newlib's clearerr calls __sclearerr, but I can't find
that anywhere. cygwin.dindefines clearerr and _clearerr, but I can't
find them in the source..

In testing the fifo semantics, I've found that the expected behaviour
for a fifo on freeBSD is that clearerr() should re-open the fifo,
allowing further writes to take take place..

i.e.

a reader can loop
clearerr()
read to eof

and the pipe can have multiple separate writers write to the pipe and
exit. Without clearerr or a rewind(), the pipe gets marked eof and stays
eof.

most OS's seem to simply use rewind() to the same effect, so I'm
implementing that. The question I have is: will clearerr() actually call
any cygwin code?

Rob


- Raw text -


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