This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: clearerr


On Fri, Mar 30, 2001 at 09:33:49PM +1000, Robert Collins wrote:
>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?

Why are you asking a question like this which is so easily verified by
a simple test case?  gdb is your friend.

cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]